/** * Client **/ import * as runtime from '@prisma/client/runtime/library.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model AppSetting * */ export type AppSetting = $Result.DefaultSelection /** * Model User * */ export type User = $Result.DefaultSelection /** * Model Role * */ export type Role = $Result.DefaultSelection /** * Model Permission * */ export type Permission = $Result.DefaultSelection /** * Model RolePermission * */ export type RolePermission = $Result.DefaultSelection /** * Model UserRole * */ export type UserRole = $Result.DefaultSelection /** * Model Customer * */ export type Customer = $Result.DefaultSelection /** * Model CustomerRepresentative * */ export type CustomerRepresentative = $Result.DefaultSelection /** * Model Address * */ export type Address = $Result.DefaultSelection /** * Model BankCard * */ export type BankCard = $Result.DefaultSelection /** * Model IdentityDocument * */ export type IdentityDocument = $Result.DefaultSelection /** * Model EmailProviderConfig * */ export type EmailProviderConfig = $Result.DefaultSelection /** * Model StressfreiEmail * */ export type StressfreiEmail = $Result.DefaultSelection /** * Model CachedEmail * */ export type CachedEmail = $Result.DefaultSelection /** * Model Meter * */ export type Meter = $Result.DefaultSelection /** * Model MeterReading * */ export type MeterReading = $Result.DefaultSelection /** * Model SalesPlatform * */ export type SalesPlatform = $Result.DefaultSelection /** * Model CancellationPeriod * */ export type CancellationPeriod = $Result.DefaultSelection /** * Model ContractDuration * */ export type ContractDuration = $Result.DefaultSelection /** * Model Provider * */ export type Provider = $Result.DefaultSelection /** * Model Tariff * */ export type Tariff = $Result.DefaultSelection /** * Model ContractCategory * */ export type ContractCategory = $Result.DefaultSelection /** * Model Contract * */ export type Contract = $Result.DefaultSelection /** * Model ContractTask * */ export type ContractTask = $Result.DefaultSelection /** * Model ContractTaskSubtask * */ export type ContractTaskSubtask = $Result.DefaultSelection /** * Model EnergyContractDetails * */ export type EnergyContractDetails = $Result.DefaultSelection /** * Model Invoice * */ export type Invoice = $Result.DefaultSelection /** * Model InternetContractDetails * */ export type InternetContractDetails = $Result.DefaultSelection /** * Model PhoneNumber * */ export type PhoneNumber = $Result.DefaultSelection /** * Model MobileContractDetails * */ export type MobileContractDetails = $Result.DefaultSelection /** * Model SimCard * */ export type SimCard = $Result.DefaultSelection /** * Model TvContractDetails * */ export type TvContractDetails = $Result.DefaultSelection /** * Model CarInsuranceDetails * */ export type CarInsuranceDetails = $Result.DefaultSelection /** * Enums */ export namespace $Enums { export const CustomerType: { PRIVATE: 'PRIVATE', BUSINESS: 'BUSINESS' }; export type CustomerType = (typeof CustomerType)[keyof typeof CustomerType] export const AddressType: { DELIVERY_RESIDENCE: 'DELIVERY_RESIDENCE', BILLING: 'BILLING' }; export type AddressType = (typeof AddressType)[keyof typeof AddressType] export const DocumentType: { ID_CARD: 'ID_CARD', PASSPORT: 'PASSPORT', DRIVERS_LICENSE: 'DRIVERS_LICENSE', OTHER: 'OTHER' }; export type DocumentType = (typeof DocumentType)[keyof typeof DocumentType] export const EmailProviderType: { PLESK: 'PLESK', CPANEL: 'CPANEL', DIRECTADMIN: 'DIRECTADMIN' }; export type EmailProviderType = (typeof EmailProviderType)[keyof typeof EmailProviderType] export const MailEncryption: { SSL: 'SSL', STARTTLS: 'STARTTLS', NONE: 'NONE' }; export type MailEncryption = (typeof MailEncryption)[keyof typeof MailEncryption] export const EmailFolder: { INBOX: 'INBOX', SENT: 'SENT' }; export type EmailFolder = (typeof EmailFolder)[keyof typeof EmailFolder] export const MeterType: { ELECTRICITY: 'ELECTRICITY', GAS: 'GAS' }; export type MeterType = (typeof MeterType)[keyof typeof MeterType] export const ContractType: { ELECTRICITY: 'ELECTRICITY', GAS: 'GAS', DSL: 'DSL', CABLE: 'CABLE', FIBER: 'FIBER', MOBILE: 'MOBILE', TV: 'TV', CAR_INSURANCE: 'CAR_INSURANCE' }; export type ContractType = (typeof ContractType)[keyof typeof ContractType] export const ContractStatus: { DRAFT: 'DRAFT', PENDING: 'PENDING', ACTIVE: 'ACTIVE', CANCELLED: 'CANCELLED', EXPIRED: 'EXPIRED', DEACTIVATED: 'DEACTIVATED' }; export type ContractStatus = (typeof ContractStatus)[keyof typeof ContractStatus] export const ContractTaskStatus: { OPEN: 'OPEN', COMPLETED: 'COMPLETED' }; export type ContractTaskStatus = (typeof ContractTaskStatus)[keyof typeof ContractTaskStatus] export const InvoiceType: { INTERIM: 'INTERIM', FINAL: 'FINAL', NOT_AVAILABLE: 'NOT_AVAILABLE' }; export type InvoiceType = (typeof InvoiceType)[keyof typeof InvoiceType] export const InsuranceType: { LIABILITY: 'LIABILITY', PARTIAL: 'PARTIAL', FULL: 'FULL' }; export type InsuranceType = (typeof InsuranceType)[keyof typeof InsuranceType] } export type CustomerType = $Enums.CustomerType export const CustomerType: typeof $Enums.CustomerType export type AddressType = $Enums.AddressType export const AddressType: typeof $Enums.AddressType export type DocumentType = $Enums.DocumentType export const DocumentType: typeof $Enums.DocumentType export type EmailProviderType = $Enums.EmailProviderType export const EmailProviderType: typeof $Enums.EmailProviderType export type MailEncryption = $Enums.MailEncryption export const MailEncryption: typeof $Enums.MailEncryption export type EmailFolder = $Enums.EmailFolder export const EmailFolder: typeof $Enums.EmailFolder export type MeterType = $Enums.MeterType export const MeterType: typeof $Enums.MeterType export type ContractType = $Enums.ContractType export const ContractType: typeof $Enums.ContractType export type ContractStatus = $Enums.ContractStatus export const ContractStatus: typeof $Enums.ContractStatus export type ContractTaskStatus = $Enums.ContractTaskStatus export const ContractTaskStatus: typeof $Enums.ContractTaskStatus export type InvoiceType = $Enums.InvoiceType export const InvoiceType: typeof $Enums.InvoiceType export type InsuranceType = $Enums.InsuranceType export const InsuranceType: typeof $Enums.InsuranceType /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more AppSettings * const appSettings = await prisma.appSetting.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export class PrismaClient< ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more AppSettings * const appSettings = await prisma.appSetting.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * Add a middleware * @deprecated since 4.16.0. For new code, prefer client extensions instead. * @see https://pris.ly/d/extensions */ $use(cb: Prisma.Middleware): void /** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Executes a raw query and returns the number of affected rows. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Performs a prepared raw query and returns the `SELECT` data. * @example * ``` * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Performs a raw query and returns the `SELECT` data. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. * @example * ``` * const [george, bob, alice] = await prisma.$transaction([ * prisma.user.create({ data: { name: 'George' } }), * prisma.user.create({ data: { name: 'Bob' } }), * prisma.user.create({ data: { name: 'Alice' } }), * ]) * ``` * * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). */ $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs> /** * `prisma.appSetting`: Exposes CRUD operations for the **AppSetting** model. * Example usage: * ```ts * // Fetch zero or more AppSettings * const appSettings = await prisma.appSetting.findMany() * ``` */ get appSetting(): Prisma.AppSettingDelegate; /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.role`: Exposes CRUD operations for the **Role** model. * Example usage: * ```ts * // Fetch zero or more Roles * const roles = await prisma.role.findMany() * ``` */ get role(): Prisma.RoleDelegate; /** * `prisma.permission`: Exposes CRUD operations for the **Permission** model. * Example usage: * ```ts * // Fetch zero or more Permissions * const permissions = await prisma.permission.findMany() * ``` */ get permission(): Prisma.PermissionDelegate; /** * `prisma.rolePermission`: Exposes CRUD operations for the **RolePermission** model. * Example usage: * ```ts * // Fetch zero or more RolePermissions * const rolePermissions = await prisma.rolePermission.findMany() * ``` */ get rolePermission(): Prisma.RolePermissionDelegate; /** * `prisma.userRole`: Exposes CRUD operations for the **UserRole** model. * Example usage: * ```ts * // Fetch zero or more UserRoles * const userRoles = await prisma.userRole.findMany() * ``` */ get userRole(): Prisma.UserRoleDelegate; /** * `prisma.customer`: Exposes CRUD operations for the **Customer** model. * Example usage: * ```ts * // Fetch zero or more Customers * const customers = await prisma.customer.findMany() * ``` */ get customer(): Prisma.CustomerDelegate; /** * `prisma.customerRepresentative`: Exposes CRUD operations for the **CustomerRepresentative** model. * Example usage: * ```ts * // Fetch zero or more CustomerRepresentatives * const customerRepresentatives = await prisma.customerRepresentative.findMany() * ``` */ get customerRepresentative(): Prisma.CustomerRepresentativeDelegate; /** * `prisma.address`: Exposes CRUD operations for the **Address** model. * Example usage: * ```ts * // Fetch zero or more Addresses * const addresses = await prisma.address.findMany() * ``` */ get address(): Prisma.AddressDelegate; /** * `prisma.bankCard`: Exposes CRUD operations for the **BankCard** model. * Example usage: * ```ts * // Fetch zero or more BankCards * const bankCards = await prisma.bankCard.findMany() * ``` */ get bankCard(): Prisma.BankCardDelegate; /** * `prisma.identityDocument`: Exposes CRUD operations for the **IdentityDocument** model. * Example usage: * ```ts * // Fetch zero or more IdentityDocuments * const identityDocuments = await prisma.identityDocument.findMany() * ``` */ get identityDocument(): Prisma.IdentityDocumentDelegate; /** * `prisma.emailProviderConfig`: Exposes CRUD operations for the **EmailProviderConfig** model. * Example usage: * ```ts * // Fetch zero or more EmailProviderConfigs * const emailProviderConfigs = await prisma.emailProviderConfig.findMany() * ``` */ get emailProviderConfig(): Prisma.EmailProviderConfigDelegate; /** * `prisma.stressfreiEmail`: Exposes CRUD operations for the **StressfreiEmail** model. * Example usage: * ```ts * // Fetch zero or more StressfreiEmails * const stressfreiEmails = await prisma.stressfreiEmail.findMany() * ``` */ get stressfreiEmail(): Prisma.StressfreiEmailDelegate; /** * `prisma.cachedEmail`: Exposes CRUD operations for the **CachedEmail** model. * Example usage: * ```ts * // Fetch zero or more CachedEmails * const cachedEmails = await prisma.cachedEmail.findMany() * ``` */ get cachedEmail(): Prisma.CachedEmailDelegate; /** * `prisma.meter`: Exposes CRUD operations for the **Meter** model. * Example usage: * ```ts * // Fetch zero or more Meters * const meters = await prisma.meter.findMany() * ``` */ get meter(): Prisma.MeterDelegate; /** * `prisma.meterReading`: Exposes CRUD operations for the **MeterReading** model. * Example usage: * ```ts * // Fetch zero or more MeterReadings * const meterReadings = await prisma.meterReading.findMany() * ``` */ get meterReading(): Prisma.MeterReadingDelegate; /** * `prisma.salesPlatform`: Exposes CRUD operations for the **SalesPlatform** model. * Example usage: * ```ts * // Fetch zero or more SalesPlatforms * const salesPlatforms = await prisma.salesPlatform.findMany() * ``` */ get salesPlatform(): Prisma.SalesPlatformDelegate; /** * `prisma.cancellationPeriod`: Exposes CRUD operations for the **CancellationPeriod** model. * Example usage: * ```ts * // Fetch zero or more CancellationPeriods * const cancellationPeriods = await prisma.cancellationPeriod.findMany() * ``` */ get cancellationPeriod(): Prisma.CancellationPeriodDelegate; /** * `prisma.contractDuration`: Exposes CRUD operations for the **ContractDuration** model. * Example usage: * ```ts * // Fetch zero or more ContractDurations * const contractDurations = await prisma.contractDuration.findMany() * ``` */ get contractDuration(): Prisma.ContractDurationDelegate; /** * `prisma.provider`: Exposes CRUD operations for the **Provider** model. * Example usage: * ```ts * // Fetch zero or more Providers * const providers = await prisma.provider.findMany() * ``` */ get provider(): Prisma.ProviderDelegate; /** * `prisma.tariff`: Exposes CRUD operations for the **Tariff** model. * Example usage: * ```ts * // Fetch zero or more Tariffs * const tariffs = await prisma.tariff.findMany() * ``` */ get tariff(): Prisma.TariffDelegate; /** * `prisma.contractCategory`: Exposes CRUD operations for the **ContractCategory** model. * Example usage: * ```ts * // Fetch zero or more ContractCategories * const contractCategories = await prisma.contractCategory.findMany() * ``` */ get contractCategory(): Prisma.ContractCategoryDelegate; /** * `prisma.contract`: Exposes CRUD operations for the **Contract** model. * Example usage: * ```ts * // Fetch zero or more Contracts * const contracts = await prisma.contract.findMany() * ``` */ get contract(): Prisma.ContractDelegate; /** * `prisma.contractTask`: Exposes CRUD operations for the **ContractTask** model. * Example usage: * ```ts * // Fetch zero or more ContractTasks * const contractTasks = await prisma.contractTask.findMany() * ``` */ get contractTask(): Prisma.ContractTaskDelegate; /** * `prisma.contractTaskSubtask`: Exposes CRUD operations for the **ContractTaskSubtask** model. * Example usage: * ```ts * // Fetch zero or more ContractTaskSubtasks * const contractTaskSubtasks = await prisma.contractTaskSubtask.findMany() * ``` */ get contractTaskSubtask(): Prisma.ContractTaskSubtaskDelegate; /** * `prisma.energyContractDetails`: Exposes CRUD operations for the **EnergyContractDetails** model. * Example usage: * ```ts * // Fetch zero or more EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.findMany() * ``` */ get energyContractDetails(): Prisma.EnergyContractDetailsDelegate; /** * `prisma.invoice`: Exposes CRUD operations for the **Invoice** model. * Example usage: * ```ts * // Fetch zero or more Invoices * const invoices = await prisma.invoice.findMany() * ``` */ get invoice(): Prisma.InvoiceDelegate; /** * `prisma.internetContractDetails`: Exposes CRUD operations for the **InternetContractDetails** model. * Example usage: * ```ts * // Fetch zero or more InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.findMany() * ``` */ get internetContractDetails(): Prisma.InternetContractDetailsDelegate; /** * `prisma.phoneNumber`: Exposes CRUD operations for the **PhoneNumber** model. * Example usage: * ```ts * // Fetch zero or more PhoneNumbers * const phoneNumbers = await prisma.phoneNumber.findMany() * ``` */ get phoneNumber(): Prisma.PhoneNumberDelegate; /** * `prisma.mobileContractDetails`: Exposes CRUD operations for the **MobileContractDetails** model. * Example usage: * ```ts * // Fetch zero or more MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.findMany() * ``` */ get mobileContractDetails(): Prisma.MobileContractDetailsDelegate; /** * `prisma.simCard`: Exposes CRUD operations for the **SimCard** model. * Example usage: * ```ts * // Fetch zero or more SimCards * const simCards = await prisma.simCard.findMany() * ``` */ get simCard(): Prisma.SimCardDelegate; /** * `prisma.tvContractDetails`: Exposes CRUD operations for the **TvContractDetails** model. * Example usage: * ```ts * // Fetch zero or more TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.findMany() * ``` */ get tvContractDetails(): Prisma.TvContractDetailsDelegate; /** * `prisma.carInsuranceDetails`: Exposes CRUD operations for the **CarInsuranceDetails** model. * Example usage: * ```ts * // Fetch zero or more CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.findMany() * ``` */ get carInsuranceDetails(): Prisma.CarInsuranceDetailsDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError export import NotFoundError = runtime.NotFoundError /** * Re-export of sql-template-tag */ export import sql = runtime.sqltag export import empty = runtime.empty export import join = runtime.join export import raw = runtime.raw export import Sql = runtime.Sql /** * Decimal.js */ export import Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** * Metrics */ export type Metrics = runtime.Metrics export type Metric = runtime.Metric export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 5.22.0 * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import JsonObject = runtime.JsonObject export import JsonArray = runtime.JsonArray export import JsonValue = runtime.JsonValue export import InputJsonObject = runtime.InputJsonObject export import InputJsonArray = runtime.InputJsonArray export import InputJsonValue = runtime.InputJsonValue /** * Types of the values used to represent different kinds of `null` values when working with JSON fields. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ namespace NullTypes { /** * Type of `Prisma.DbNull`. * * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class DbNull { private DbNull: never private constructor() } /** * Type of `Prisma.JsonNull`. * * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class JsonNull { private JsonNull: never private constructor() } /** * Type of `Prisma.AnyNull`. * * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class AnyNull { private AnyNull: never private constructor() } } /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const DbNull: NullTypes.DbNull /** * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const JsonNull: NullTypes.JsonNull /** * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const AnyNull: NullTypes.AnyNull type SelectAndInclude = { select: any include: any } type SelectAndOmit = { select: any omit: any } /** * Get the type of the value, that the Promise holds. */ export type PromiseType> = T extends PromiseLike ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [key in keyof T]: key extends keyof U ? T[key] : never; }; /** * SelectSubset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. * Additionally, it validates, if both select and include are present. If the case, it errors. */ export type SelectSubset = { [key in keyof T]: key extends keyof U ? T[key] : never } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {}) /** * Subset + Intersection * @desc From `T` pick properties that exist in `U` and intersect `K` */ export type SubsetIntersection = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ type XOR = T extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False /** * If it's T[], return T */ export type UnEnumerate = T extends Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? K : never]-?: O[P]} & O : never>; type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, Extends<'AND', K>>, Extends<'NOT', K> > extends True ? // infer is only needed to not hit TS limit // based on the brilliant idea of Pierre-Antoine Mills // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 T[K] extends infer TK ? GetHavingFields extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { AppSetting: 'AppSetting', User: 'User', Role: 'Role', Permission: 'Permission', RolePermission: 'RolePermission', UserRole: 'UserRole', Customer: 'Customer', CustomerRepresentative: 'CustomerRepresentative', Address: 'Address', BankCard: 'BankCard', IdentityDocument: 'IdentityDocument', EmailProviderConfig: 'EmailProviderConfig', StressfreiEmail: 'StressfreiEmail', CachedEmail: 'CachedEmail', Meter: 'Meter', MeterReading: 'MeterReading', SalesPlatform: 'SalesPlatform', CancellationPeriod: 'CancellationPeriod', ContractDuration: 'ContractDuration', Provider: 'Provider', Tariff: 'Tariff', ContractCategory: 'ContractCategory', Contract: 'Contract', ContractTask: 'ContractTask', ContractTaskSubtask: 'ContractTaskSubtask', EnergyContractDetails: 'EnergyContractDetails', Invoice: 'Invoice', InternetContractDetails: 'InternetContractDetails', PhoneNumber: 'PhoneNumber', MobileContractDetails: 'MobileContractDetails', SimCard: 'SimCard', TvContractDetails: 'TvContractDetails', CarInsuranceDetails: 'CarInsuranceDetails' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { meta: { modelProps: "appSetting" | "user" | "role" | "permission" | "rolePermission" | "userRole" | "customer" | "customerRepresentative" | "address" | "bankCard" | "identityDocument" | "emailProviderConfig" | "stressfreiEmail" | "cachedEmail" | "meter" | "meterReading" | "salesPlatform" | "cancellationPeriod" | "contractDuration" | "provider" | "tariff" | "contractCategory" | "contract" | "contractTask" | "contractTaskSubtask" | "energyContractDetails" | "invoice" | "internetContractDetails" | "phoneNumber" | "mobileContractDetails" | "simCard" | "tvContractDetails" | "carInsuranceDetails" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { AppSetting: { payload: Prisma.$AppSettingPayload fields: Prisma.AppSettingFieldRefs operations: { findUnique: { args: Prisma.AppSettingFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AppSettingFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AppSettingFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AppSettingFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AppSettingFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AppSettingCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AppSettingCreateManyArgs result: BatchPayload } delete: { args: Prisma.AppSettingDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AppSettingUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AppSettingDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AppSettingUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.AppSettingUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AppSettingAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AppSettingGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AppSettingCountArgs result: $Utils.Optional | number } } } User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } Role: { payload: Prisma.$RolePayload fields: Prisma.RoleFieldRefs operations: { findUnique: { args: Prisma.RoleFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.RoleFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.RoleFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.RoleFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.RoleFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.RoleCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.RoleCreateManyArgs result: BatchPayload } delete: { args: Prisma.RoleDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.RoleUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.RoleDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.RoleUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.RoleUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.RoleAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.RoleGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.RoleCountArgs result: $Utils.Optional | number } } } Permission: { payload: Prisma.$PermissionPayload fields: Prisma.PermissionFieldRefs operations: { findUnique: { args: Prisma.PermissionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PermissionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PermissionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PermissionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PermissionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PermissionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PermissionCreateManyArgs result: BatchPayload } delete: { args: Prisma.PermissionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PermissionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PermissionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PermissionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.PermissionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PermissionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PermissionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PermissionCountArgs result: $Utils.Optional | number } } } RolePermission: { payload: Prisma.$RolePermissionPayload fields: Prisma.RolePermissionFieldRefs operations: { findUnique: { args: Prisma.RolePermissionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.RolePermissionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.RolePermissionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.RolePermissionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.RolePermissionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.RolePermissionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.RolePermissionCreateManyArgs result: BatchPayload } delete: { args: Prisma.RolePermissionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.RolePermissionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.RolePermissionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.RolePermissionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.RolePermissionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.RolePermissionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.RolePermissionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.RolePermissionCountArgs result: $Utils.Optional | number } } } UserRole: { payload: Prisma.$UserRolePayload fields: Prisma.UserRoleFieldRefs operations: { findUnique: { args: Prisma.UserRoleFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserRoleFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserRoleFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserRoleFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserRoleFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserRoleCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserRoleCreateManyArgs result: BatchPayload } delete: { args: Prisma.UserRoleDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserRoleUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserRoleDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserRoleUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.UserRoleUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserRoleAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserRoleGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserRoleCountArgs result: $Utils.Optional | number } } } Customer: { payload: Prisma.$CustomerPayload fields: Prisma.CustomerFieldRefs operations: { findUnique: { args: Prisma.CustomerFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CustomerFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CustomerFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CustomerFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CustomerFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CustomerCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CustomerCreateManyArgs result: BatchPayload } delete: { args: Prisma.CustomerDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CustomerUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CustomerDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CustomerUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.CustomerUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CustomerAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CustomerGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CustomerCountArgs result: $Utils.Optional | number } } } CustomerRepresentative: { payload: Prisma.$CustomerRepresentativePayload fields: Prisma.CustomerRepresentativeFieldRefs operations: { findUnique: { args: Prisma.CustomerRepresentativeFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CustomerRepresentativeFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CustomerRepresentativeFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CustomerRepresentativeFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CustomerRepresentativeFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CustomerRepresentativeCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CustomerRepresentativeCreateManyArgs result: BatchPayload } delete: { args: Prisma.CustomerRepresentativeDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CustomerRepresentativeUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CustomerRepresentativeDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CustomerRepresentativeUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.CustomerRepresentativeUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CustomerRepresentativeAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CustomerRepresentativeGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CustomerRepresentativeCountArgs result: $Utils.Optional | number } } } Address: { payload: Prisma.$AddressPayload fields: Prisma.AddressFieldRefs operations: { findUnique: { args: Prisma.AddressFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AddressFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AddressFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AddressFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AddressFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AddressCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AddressCreateManyArgs result: BatchPayload } delete: { args: Prisma.AddressDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AddressUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AddressDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AddressUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.AddressUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AddressAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AddressGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AddressCountArgs result: $Utils.Optional | number } } } BankCard: { payload: Prisma.$BankCardPayload fields: Prisma.BankCardFieldRefs operations: { findUnique: { args: Prisma.BankCardFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.BankCardFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.BankCardFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.BankCardFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.BankCardFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.BankCardCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.BankCardCreateManyArgs result: BatchPayload } delete: { args: Prisma.BankCardDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.BankCardUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.BankCardDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.BankCardUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.BankCardUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.BankCardAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.BankCardGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.BankCardCountArgs result: $Utils.Optional | number } } } IdentityDocument: { payload: Prisma.$IdentityDocumentPayload fields: Prisma.IdentityDocumentFieldRefs operations: { findUnique: { args: Prisma.IdentityDocumentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.IdentityDocumentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.IdentityDocumentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.IdentityDocumentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.IdentityDocumentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.IdentityDocumentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.IdentityDocumentCreateManyArgs result: BatchPayload } delete: { args: Prisma.IdentityDocumentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.IdentityDocumentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.IdentityDocumentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.IdentityDocumentUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.IdentityDocumentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.IdentityDocumentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.IdentityDocumentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.IdentityDocumentCountArgs result: $Utils.Optional | number } } } EmailProviderConfig: { payload: Prisma.$EmailProviderConfigPayload fields: Prisma.EmailProviderConfigFieldRefs operations: { findUnique: { args: Prisma.EmailProviderConfigFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EmailProviderConfigFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EmailProviderConfigFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EmailProviderConfigFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EmailProviderConfigFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EmailProviderConfigCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EmailProviderConfigCreateManyArgs result: BatchPayload } delete: { args: Prisma.EmailProviderConfigDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EmailProviderConfigUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EmailProviderConfigDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EmailProviderConfigUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EmailProviderConfigUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EmailProviderConfigAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EmailProviderConfigGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EmailProviderConfigCountArgs result: $Utils.Optional | number } } } StressfreiEmail: { payload: Prisma.$StressfreiEmailPayload fields: Prisma.StressfreiEmailFieldRefs operations: { findUnique: { args: Prisma.StressfreiEmailFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StressfreiEmailFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StressfreiEmailFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StressfreiEmailFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StressfreiEmailFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StressfreiEmailCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StressfreiEmailCreateManyArgs result: BatchPayload } delete: { args: Prisma.StressfreiEmailDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StressfreiEmailUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StressfreiEmailDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StressfreiEmailUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.StressfreiEmailUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StressfreiEmailAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StressfreiEmailGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StressfreiEmailCountArgs result: $Utils.Optional | number } } } CachedEmail: { payload: Prisma.$CachedEmailPayload fields: Prisma.CachedEmailFieldRefs operations: { findUnique: { args: Prisma.CachedEmailFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CachedEmailFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CachedEmailFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CachedEmailFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CachedEmailFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CachedEmailCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CachedEmailCreateManyArgs result: BatchPayload } delete: { args: Prisma.CachedEmailDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CachedEmailUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CachedEmailDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CachedEmailUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.CachedEmailUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CachedEmailAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CachedEmailGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CachedEmailCountArgs result: $Utils.Optional | number } } } Meter: { payload: Prisma.$MeterPayload fields: Prisma.MeterFieldRefs operations: { findUnique: { args: Prisma.MeterFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.MeterFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.MeterFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.MeterFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.MeterFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.MeterCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.MeterCreateManyArgs result: BatchPayload } delete: { args: Prisma.MeterDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.MeterUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.MeterDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.MeterUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.MeterUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.MeterAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.MeterGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.MeterCountArgs result: $Utils.Optional | number } } } MeterReading: { payload: Prisma.$MeterReadingPayload fields: Prisma.MeterReadingFieldRefs operations: { findUnique: { args: Prisma.MeterReadingFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.MeterReadingFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.MeterReadingFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.MeterReadingFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.MeterReadingFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.MeterReadingCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.MeterReadingCreateManyArgs result: BatchPayload } delete: { args: Prisma.MeterReadingDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.MeterReadingUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.MeterReadingDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.MeterReadingUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.MeterReadingUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.MeterReadingAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.MeterReadingGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.MeterReadingCountArgs result: $Utils.Optional | number } } } SalesPlatform: { payload: Prisma.$SalesPlatformPayload fields: Prisma.SalesPlatformFieldRefs operations: { findUnique: { args: Prisma.SalesPlatformFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SalesPlatformFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SalesPlatformFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SalesPlatformFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SalesPlatformFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SalesPlatformCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SalesPlatformCreateManyArgs result: BatchPayload } delete: { args: Prisma.SalesPlatformDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SalesPlatformUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SalesPlatformDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SalesPlatformUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.SalesPlatformUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SalesPlatformAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SalesPlatformGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SalesPlatformCountArgs result: $Utils.Optional | number } } } CancellationPeriod: { payload: Prisma.$CancellationPeriodPayload fields: Prisma.CancellationPeriodFieldRefs operations: { findUnique: { args: Prisma.CancellationPeriodFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CancellationPeriodFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CancellationPeriodFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CancellationPeriodFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CancellationPeriodFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CancellationPeriodCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CancellationPeriodCreateManyArgs result: BatchPayload } delete: { args: Prisma.CancellationPeriodDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CancellationPeriodUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CancellationPeriodDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CancellationPeriodUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.CancellationPeriodUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CancellationPeriodAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CancellationPeriodGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CancellationPeriodCountArgs result: $Utils.Optional | number } } } ContractDuration: { payload: Prisma.$ContractDurationPayload fields: Prisma.ContractDurationFieldRefs operations: { findUnique: { args: Prisma.ContractDurationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ContractDurationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ContractDurationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ContractDurationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ContractDurationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ContractDurationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ContractDurationCreateManyArgs result: BatchPayload } delete: { args: Prisma.ContractDurationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ContractDurationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ContractDurationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ContractDurationUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ContractDurationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ContractDurationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ContractDurationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ContractDurationCountArgs result: $Utils.Optional | number } } } Provider: { payload: Prisma.$ProviderPayload fields: Prisma.ProviderFieldRefs operations: { findUnique: { args: Prisma.ProviderFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ProviderFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ProviderFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ProviderFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ProviderFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ProviderCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ProviderCreateManyArgs result: BatchPayload } delete: { args: Prisma.ProviderDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ProviderUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ProviderDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ProviderUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ProviderUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ProviderAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ProviderGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ProviderCountArgs result: $Utils.Optional | number } } } Tariff: { payload: Prisma.$TariffPayload fields: Prisma.TariffFieldRefs operations: { findUnique: { args: Prisma.TariffFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TariffFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TariffFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TariffFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TariffFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TariffCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TariffCreateManyArgs result: BatchPayload } delete: { args: Prisma.TariffDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TariffUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TariffDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TariffUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.TariffUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TariffAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TariffGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TariffCountArgs result: $Utils.Optional | number } } } ContractCategory: { payload: Prisma.$ContractCategoryPayload fields: Prisma.ContractCategoryFieldRefs operations: { findUnique: { args: Prisma.ContractCategoryFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ContractCategoryFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ContractCategoryFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ContractCategoryFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ContractCategoryFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ContractCategoryCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ContractCategoryCreateManyArgs result: BatchPayload } delete: { args: Prisma.ContractCategoryDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ContractCategoryUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ContractCategoryDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ContractCategoryUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ContractCategoryUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ContractCategoryAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ContractCategoryGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ContractCategoryCountArgs result: $Utils.Optional | number } } } Contract: { payload: Prisma.$ContractPayload fields: Prisma.ContractFieldRefs operations: { findUnique: { args: Prisma.ContractFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ContractFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ContractFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ContractFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ContractFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ContractCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ContractCreateManyArgs result: BatchPayload } delete: { args: Prisma.ContractDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ContractUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ContractDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ContractUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ContractUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ContractAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ContractGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ContractCountArgs result: $Utils.Optional | number } } } ContractTask: { payload: Prisma.$ContractTaskPayload fields: Prisma.ContractTaskFieldRefs operations: { findUnique: { args: Prisma.ContractTaskFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ContractTaskFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ContractTaskFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ContractTaskFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ContractTaskFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ContractTaskCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ContractTaskCreateManyArgs result: BatchPayload } delete: { args: Prisma.ContractTaskDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ContractTaskUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ContractTaskDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ContractTaskUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ContractTaskUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ContractTaskAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ContractTaskGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ContractTaskCountArgs result: $Utils.Optional | number } } } ContractTaskSubtask: { payload: Prisma.$ContractTaskSubtaskPayload fields: Prisma.ContractTaskSubtaskFieldRefs operations: { findUnique: { args: Prisma.ContractTaskSubtaskFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ContractTaskSubtaskFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ContractTaskSubtaskFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ContractTaskSubtaskFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ContractTaskSubtaskFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ContractTaskSubtaskCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ContractTaskSubtaskCreateManyArgs result: BatchPayload } delete: { args: Prisma.ContractTaskSubtaskDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ContractTaskSubtaskUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ContractTaskSubtaskDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ContractTaskSubtaskUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ContractTaskSubtaskUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ContractTaskSubtaskAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ContractTaskSubtaskGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ContractTaskSubtaskCountArgs result: $Utils.Optional | number } } } EnergyContractDetails: { payload: Prisma.$EnergyContractDetailsPayload fields: Prisma.EnergyContractDetailsFieldRefs operations: { findUnique: { args: Prisma.EnergyContractDetailsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EnergyContractDetailsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EnergyContractDetailsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EnergyContractDetailsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EnergyContractDetailsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EnergyContractDetailsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EnergyContractDetailsCreateManyArgs result: BatchPayload } delete: { args: Prisma.EnergyContractDetailsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EnergyContractDetailsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EnergyContractDetailsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EnergyContractDetailsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EnergyContractDetailsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EnergyContractDetailsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EnergyContractDetailsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EnergyContractDetailsCountArgs result: $Utils.Optional | number } } } Invoice: { payload: Prisma.$InvoicePayload fields: Prisma.InvoiceFieldRefs operations: { findUnique: { args: Prisma.InvoiceFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.InvoiceFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.InvoiceFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.InvoiceFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.InvoiceFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.InvoiceCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.InvoiceCreateManyArgs result: BatchPayload } delete: { args: Prisma.InvoiceDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.InvoiceUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.InvoiceDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.InvoiceUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.InvoiceUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.InvoiceAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.InvoiceGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.InvoiceCountArgs result: $Utils.Optional | number } } } InternetContractDetails: { payload: Prisma.$InternetContractDetailsPayload fields: Prisma.InternetContractDetailsFieldRefs operations: { findUnique: { args: Prisma.InternetContractDetailsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.InternetContractDetailsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.InternetContractDetailsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.InternetContractDetailsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.InternetContractDetailsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.InternetContractDetailsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.InternetContractDetailsCreateManyArgs result: BatchPayload } delete: { args: Prisma.InternetContractDetailsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.InternetContractDetailsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.InternetContractDetailsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.InternetContractDetailsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.InternetContractDetailsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.InternetContractDetailsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.InternetContractDetailsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.InternetContractDetailsCountArgs result: $Utils.Optional | number } } } PhoneNumber: { payload: Prisma.$PhoneNumberPayload fields: Prisma.PhoneNumberFieldRefs operations: { findUnique: { args: Prisma.PhoneNumberFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PhoneNumberFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PhoneNumberFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PhoneNumberFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PhoneNumberFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PhoneNumberCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PhoneNumberCreateManyArgs result: BatchPayload } delete: { args: Prisma.PhoneNumberDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PhoneNumberUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PhoneNumberDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PhoneNumberUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.PhoneNumberUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PhoneNumberAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PhoneNumberGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PhoneNumberCountArgs result: $Utils.Optional | number } } } MobileContractDetails: { payload: Prisma.$MobileContractDetailsPayload fields: Prisma.MobileContractDetailsFieldRefs operations: { findUnique: { args: Prisma.MobileContractDetailsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.MobileContractDetailsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.MobileContractDetailsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.MobileContractDetailsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.MobileContractDetailsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.MobileContractDetailsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.MobileContractDetailsCreateManyArgs result: BatchPayload } delete: { args: Prisma.MobileContractDetailsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.MobileContractDetailsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.MobileContractDetailsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.MobileContractDetailsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.MobileContractDetailsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.MobileContractDetailsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.MobileContractDetailsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.MobileContractDetailsCountArgs result: $Utils.Optional | number } } } SimCard: { payload: Prisma.$SimCardPayload fields: Prisma.SimCardFieldRefs operations: { findUnique: { args: Prisma.SimCardFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SimCardFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SimCardFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SimCardFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SimCardFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SimCardCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SimCardCreateManyArgs result: BatchPayload } delete: { args: Prisma.SimCardDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SimCardUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SimCardDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SimCardUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.SimCardUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SimCardAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SimCardGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SimCardCountArgs result: $Utils.Optional | number } } } TvContractDetails: { payload: Prisma.$TvContractDetailsPayload fields: Prisma.TvContractDetailsFieldRefs operations: { findUnique: { args: Prisma.TvContractDetailsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TvContractDetailsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TvContractDetailsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TvContractDetailsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TvContractDetailsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TvContractDetailsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TvContractDetailsCreateManyArgs result: BatchPayload } delete: { args: Prisma.TvContractDetailsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TvContractDetailsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TvContractDetailsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TvContractDetailsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.TvContractDetailsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TvContractDetailsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TvContractDetailsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TvContractDetailsCountArgs result: $Utils.Optional | number } } } CarInsuranceDetails: { payload: Prisma.$CarInsuranceDetailsPayload fields: Prisma.CarInsuranceDetailsFieldRefs operations: { findUnique: { args: Prisma.CarInsuranceDetailsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CarInsuranceDetailsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CarInsuranceDetailsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CarInsuranceDetailsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CarInsuranceDetailsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CarInsuranceDetailsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CarInsuranceDetailsCreateManyArgs result: BatchPayload } delete: { args: Prisma.CarInsuranceDetailsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CarInsuranceDetailsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CarInsuranceDetailsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CarInsuranceDetailsUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.CarInsuranceDetailsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CarInsuranceDetailsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CarInsuranceDetailsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CarInsuranceDetailsCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Defaults to stdout * log: ['query', 'info', 'warn', 'error'] * * // Emit as events * log: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * ] * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type GetEvents = T extends Array ? GetLogType | GetLogType | GetLogType | GetLogType : never export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' /** * These options are being passed into the middleware as "params" */ export type MiddlewareParams = { model?: ModelName action: PrismaAction args: any dataPath: string[] runInTransaction: boolean } /** * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation */ export type Middleware = ( params: MiddlewareParams, next: (params: MiddlewareParams) => $Utils.JsPromise, ) => $Utils.JsPromise // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type UserCountOutputType */ export type UserCountOutputType = { roles: number } export type UserCountOutputTypeSelect = { roles?: boolean | UserCountOutputTypeCountRolesArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountRolesArgs = { where?: UserRoleWhereInput } /** * Count Type RoleCountOutputType */ export type RoleCountOutputType = { permissions: number users: number } export type RoleCountOutputTypeSelect = { permissions?: boolean | RoleCountOutputTypeCountPermissionsArgs users?: boolean | RoleCountOutputTypeCountUsersArgs } // Custom InputTypes /** * RoleCountOutputType without action */ export type RoleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the RoleCountOutputType */ select?: RoleCountOutputTypeSelect | null } /** * RoleCountOutputType without action */ export type RoleCountOutputTypeCountPermissionsArgs = { where?: RolePermissionWhereInput } /** * RoleCountOutputType without action */ export type RoleCountOutputTypeCountUsersArgs = { where?: UserRoleWhereInput } /** * Count Type PermissionCountOutputType */ export type PermissionCountOutputType = { roles: number } export type PermissionCountOutputTypeSelect = { roles?: boolean | PermissionCountOutputTypeCountRolesArgs } // Custom InputTypes /** * PermissionCountOutputType without action */ export type PermissionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PermissionCountOutputType */ select?: PermissionCountOutputTypeSelect | null } /** * PermissionCountOutputType without action */ export type PermissionCountOutputTypeCountRolesArgs = { where?: RolePermissionWhereInput } /** * Count Type CustomerCountOutputType */ export type CustomerCountOutputType = { addresses: number bankCards: number identityDocuments: number meters: number stressfreiEmails: number contracts: number representingFor: number representedBy: number } export type CustomerCountOutputTypeSelect = { addresses?: boolean | CustomerCountOutputTypeCountAddressesArgs bankCards?: boolean | CustomerCountOutputTypeCountBankCardsArgs identityDocuments?: boolean | CustomerCountOutputTypeCountIdentityDocumentsArgs meters?: boolean | CustomerCountOutputTypeCountMetersArgs stressfreiEmails?: boolean | CustomerCountOutputTypeCountStressfreiEmailsArgs contracts?: boolean | CustomerCountOutputTypeCountContractsArgs representingFor?: boolean | CustomerCountOutputTypeCountRepresentingForArgs representedBy?: boolean | CustomerCountOutputTypeCountRepresentedByArgs } // Custom InputTypes /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CustomerCountOutputType */ select?: CustomerCountOutputTypeSelect | null } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountAddressesArgs = { where?: AddressWhereInput } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountBankCardsArgs = { where?: BankCardWhereInput } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountIdentityDocumentsArgs = { where?: IdentityDocumentWhereInput } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountMetersArgs = { where?: MeterWhereInput } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountStressfreiEmailsArgs = { where?: StressfreiEmailWhereInput } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountRepresentingForArgs = { where?: CustomerRepresentativeWhereInput } /** * CustomerCountOutputType without action */ export type CustomerCountOutputTypeCountRepresentedByArgs = { where?: CustomerRepresentativeWhereInput } /** * Count Type AddressCountOutputType */ export type AddressCountOutputType = { contractsAsDelivery: number contractsAsBilling: number } export type AddressCountOutputTypeSelect = { contractsAsDelivery?: boolean | AddressCountOutputTypeCountContractsAsDeliveryArgs contractsAsBilling?: boolean | AddressCountOutputTypeCountContractsAsBillingArgs } // Custom InputTypes /** * AddressCountOutputType without action */ export type AddressCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AddressCountOutputType */ select?: AddressCountOutputTypeSelect | null } /** * AddressCountOutputType without action */ export type AddressCountOutputTypeCountContractsAsDeliveryArgs = { where?: ContractWhereInput } /** * AddressCountOutputType without action */ export type AddressCountOutputTypeCountContractsAsBillingArgs = { where?: ContractWhereInput } /** * Count Type BankCardCountOutputType */ export type BankCardCountOutputType = { contracts: number } export type BankCardCountOutputTypeSelect = { contracts?: boolean | BankCardCountOutputTypeCountContractsArgs } // Custom InputTypes /** * BankCardCountOutputType without action */ export type BankCardCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the BankCardCountOutputType */ select?: BankCardCountOutputTypeSelect | null } /** * BankCardCountOutputType without action */ export type BankCardCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * Count Type IdentityDocumentCountOutputType */ export type IdentityDocumentCountOutputType = { contracts: number } export type IdentityDocumentCountOutputTypeSelect = { contracts?: boolean | IdentityDocumentCountOutputTypeCountContractsArgs } // Custom InputTypes /** * IdentityDocumentCountOutputType without action */ export type IdentityDocumentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the IdentityDocumentCountOutputType */ select?: IdentityDocumentCountOutputTypeSelect | null } /** * IdentityDocumentCountOutputType without action */ export type IdentityDocumentCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * Count Type StressfreiEmailCountOutputType */ export type StressfreiEmailCountOutputType = { contracts: number cachedEmails: number } export type StressfreiEmailCountOutputTypeSelect = { contracts?: boolean | StressfreiEmailCountOutputTypeCountContractsArgs cachedEmails?: boolean | StressfreiEmailCountOutputTypeCountCachedEmailsArgs } // Custom InputTypes /** * StressfreiEmailCountOutputType without action */ export type StressfreiEmailCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the StressfreiEmailCountOutputType */ select?: StressfreiEmailCountOutputTypeSelect | null } /** * StressfreiEmailCountOutputType without action */ export type StressfreiEmailCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * StressfreiEmailCountOutputType without action */ export type StressfreiEmailCountOutputTypeCountCachedEmailsArgs = { where?: CachedEmailWhereInput } /** * Count Type MeterCountOutputType */ export type MeterCountOutputType = { readings: number energyDetails: number } export type MeterCountOutputTypeSelect = { readings?: boolean | MeterCountOutputTypeCountReadingsArgs energyDetails?: boolean | MeterCountOutputTypeCountEnergyDetailsArgs } // Custom InputTypes /** * MeterCountOutputType without action */ export type MeterCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the MeterCountOutputType */ select?: MeterCountOutputTypeSelect | null } /** * MeterCountOutputType without action */ export type MeterCountOutputTypeCountReadingsArgs = { where?: MeterReadingWhereInput } /** * MeterCountOutputType without action */ export type MeterCountOutputTypeCountEnergyDetailsArgs = { where?: EnergyContractDetailsWhereInput } /** * Count Type SalesPlatformCountOutputType */ export type SalesPlatformCountOutputType = { contracts: number } export type SalesPlatformCountOutputTypeSelect = { contracts?: boolean | SalesPlatformCountOutputTypeCountContractsArgs } // Custom InputTypes /** * SalesPlatformCountOutputType without action */ export type SalesPlatformCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SalesPlatformCountOutputType */ select?: SalesPlatformCountOutputTypeSelect | null } /** * SalesPlatformCountOutputType without action */ export type SalesPlatformCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * Count Type CancellationPeriodCountOutputType */ export type CancellationPeriodCountOutputType = { contracts: number } export type CancellationPeriodCountOutputTypeSelect = { contracts?: boolean | CancellationPeriodCountOutputTypeCountContractsArgs } // Custom InputTypes /** * CancellationPeriodCountOutputType without action */ export type CancellationPeriodCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CancellationPeriodCountOutputType */ select?: CancellationPeriodCountOutputTypeSelect | null } /** * CancellationPeriodCountOutputType without action */ export type CancellationPeriodCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * Count Type ContractDurationCountOutputType */ export type ContractDurationCountOutputType = { contracts: number } export type ContractDurationCountOutputTypeSelect = { contracts?: boolean | ContractDurationCountOutputTypeCountContractsArgs } // Custom InputTypes /** * ContractDurationCountOutputType without action */ export type ContractDurationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ContractDurationCountOutputType */ select?: ContractDurationCountOutputTypeSelect | null } /** * ContractDurationCountOutputType without action */ export type ContractDurationCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * Count Type ProviderCountOutputType */ export type ProviderCountOutputType = { tariffs: number contracts: number } export type ProviderCountOutputTypeSelect = { tariffs?: boolean | ProviderCountOutputTypeCountTariffsArgs contracts?: boolean | ProviderCountOutputTypeCountContractsArgs } // Custom InputTypes /** * ProviderCountOutputType without action */ export type ProviderCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ProviderCountOutputType */ select?: ProviderCountOutputTypeSelect | null } /** * ProviderCountOutputType without action */ export type ProviderCountOutputTypeCountTariffsArgs = { where?: TariffWhereInput } /** * ProviderCountOutputType without action */ export type ProviderCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * Count Type TariffCountOutputType */ export type TariffCountOutputType = { contracts: number } export type TariffCountOutputTypeSelect = { contracts?: boolean | TariffCountOutputTypeCountContractsArgs } // Custom InputTypes /** * TariffCountOutputType without action */ export type TariffCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TariffCountOutputType */ select?: TariffCountOutputTypeSelect | null } /** * TariffCountOutputType without action */ export type TariffCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * Count Type ContractCategoryCountOutputType */ export type ContractCategoryCountOutputType = { contracts: number } export type ContractCategoryCountOutputTypeSelect = { contracts?: boolean | ContractCategoryCountOutputTypeCountContractsArgs } // Custom InputTypes /** * ContractCategoryCountOutputType without action */ export type ContractCategoryCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ContractCategoryCountOutputType */ select?: ContractCategoryCountOutputTypeSelect | null } /** * ContractCategoryCountOutputType without action */ export type ContractCategoryCountOutputTypeCountContractsArgs = { where?: ContractWhereInput } /** * Count Type ContractCountOutputType */ export type ContractCountOutputType = { tasks: number assignedEmails: number } export type ContractCountOutputTypeSelect = { tasks?: boolean | ContractCountOutputTypeCountTasksArgs assignedEmails?: boolean | ContractCountOutputTypeCountAssignedEmailsArgs } // Custom InputTypes /** * ContractCountOutputType without action */ export type ContractCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ContractCountOutputType */ select?: ContractCountOutputTypeSelect | null } /** * ContractCountOutputType without action */ export type ContractCountOutputTypeCountTasksArgs = { where?: ContractTaskWhereInput } /** * ContractCountOutputType without action */ export type ContractCountOutputTypeCountAssignedEmailsArgs = { where?: CachedEmailWhereInput } /** * Count Type ContractTaskCountOutputType */ export type ContractTaskCountOutputType = { subtasks: number } export type ContractTaskCountOutputTypeSelect = { subtasks?: boolean | ContractTaskCountOutputTypeCountSubtasksArgs } // Custom InputTypes /** * ContractTaskCountOutputType without action */ export type ContractTaskCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ContractTaskCountOutputType */ select?: ContractTaskCountOutputTypeSelect | null } /** * ContractTaskCountOutputType without action */ export type ContractTaskCountOutputTypeCountSubtasksArgs = { where?: ContractTaskSubtaskWhereInput } /** * Count Type EnergyContractDetailsCountOutputType */ export type EnergyContractDetailsCountOutputType = { invoices: number } export type EnergyContractDetailsCountOutputTypeSelect = { invoices?: boolean | EnergyContractDetailsCountOutputTypeCountInvoicesArgs } // Custom InputTypes /** * EnergyContractDetailsCountOutputType without action */ export type EnergyContractDetailsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EnergyContractDetailsCountOutputType */ select?: EnergyContractDetailsCountOutputTypeSelect | null } /** * EnergyContractDetailsCountOutputType without action */ export type EnergyContractDetailsCountOutputTypeCountInvoicesArgs = { where?: InvoiceWhereInput } /** * Count Type InternetContractDetailsCountOutputType */ export type InternetContractDetailsCountOutputType = { phoneNumbers: number } export type InternetContractDetailsCountOutputTypeSelect = { phoneNumbers?: boolean | InternetContractDetailsCountOutputTypeCountPhoneNumbersArgs } // Custom InputTypes /** * InternetContractDetailsCountOutputType without action */ export type InternetContractDetailsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the InternetContractDetailsCountOutputType */ select?: InternetContractDetailsCountOutputTypeSelect | null } /** * InternetContractDetailsCountOutputType without action */ export type InternetContractDetailsCountOutputTypeCountPhoneNumbersArgs = { where?: PhoneNumberWhereInput } /** * Count Type MobileContractDetailsCountOutputType */ export type MobileContractDetailsCountOutputType = { simCards: number } export type MobileContractDetailsCountOutputTypeSelect = { simCards?: boolean | MobileContractDetailsCountOutputTypeCountSimCardsArgs } // Custom InputTypes /** * MobileContractDetailsCountOutputType without action */ export type MobileContractDetailsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the MobileContractDetailsCountOutputType */ select?: MobileContractDetailsCountOutputTypeSelect | null } /** * MobileContractDetailsCountOutputType without action */ export type MobileContractDetailsCountOutputTypeCountSimCardsArgs = { where?: SimCardWhereInput } /** * Models */ /** * Model AppSetting */ export type AggregateAppSetting = { _count: AppSettingCountAggregateOutputType | null _avg: AppSettingAvgAggregateOutputType | null _sum: AppSettingSumAggregateOutputType | null _min: AppSettingMinAggregateOutputType | null _max: AppSettingMaxAggregateOutputType | null } export type AppSettingAvgAggregateOutputType = { id: number | null } export type AppSettingSumAggregateOutputType = { id: number | null } export type AppSettingMinAggregateOutputType = { id: number | null key: string | null value: string | null createdAt: Date | null updatedAt: Date | null } export type AppSettingMaxAggregateOutputType = { id: number | null key: string | null value: string | null createdAt: Date | null updatedAt: Date | null } export type AppSettingCountAggregateOutputType = { id: number key: number value: number createdAt: number updatedAt: number _all: number } export type AppSettingAvgAggregateInputType = { id?: true } export type AppSettingSumAggregateInputType = { id?: true } export type AppSettingMinAggregateInputType = { id?: true key?: true value?: true createdAt?: true updatedAt?: true } export type AppSettingMaxAggregateInputType = { id?: true key?: true value?: true createdAt?: true updatedAt?: true } export type AppSettingCountAggregateInputType = { id?: true key?: true value?: true createdAt?: true updatedAt?: true _all?: true } export type AppSettingAggregateArgs = { /** * Filter which AppSetting to aggregate. */ where?: AppSettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppSettings to fetch. */ orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AppSettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppSettings 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` AppSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AppSettings **/ _count?: true | AppSettingCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AppSettingAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AppSettingSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppSettingMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppSettingMaxAggregateInputType } export type GetAppSettingAggregateType = { [P in keyof T & keyof AggregateAppSetting]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AppSettingGroupByArgs = { where?: AppSettingWhereInput orderBy?: AppSettingOrderByWithAggregationInput | AppSettingOrderByWithAggregationInput[] by: AppSettingScalarFieldEnum[] | AppSettingScalarFieldEnum having?: AppSettingScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppSettingCountAggregateInputType | true _avg?: AppSettingAvgAggregateInputType _sum?: AppSettingSumAggregateInputType _min?: AppSettingMinAggregateInputType _max?: AppSettingMaxAggregateInputType } export type AppSettingGroupByOutputType = { id: number key: string value: string createdAt: Date updatedAt: Date _count: AppSettingCountAggregateOutputType | null _avg: AppSettingAvgAggregateOutputType | null _sum: AppSettingSumAggregateOutputType | null _min: AppSettingMinAggregateOutputType | null _max: AppSettingMaxAggregateOutputType | null } type GetAppSettingGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AppSettingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AppSettingSelect = $Extensions.GetSelect<{ id?: boolean key?: boolean value?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["appSetting"]> export type AppSettingSelectScalar = { id?: boolean key?: boolean value?: boolean createdAt?: boolean updatedAt?: boolean } export type $AppSettingPayload = { name: "AppSetting" objects: {} scalars: $Extensions.GetPayloadResult<{ id: number key: string value: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["appSetting"]> composites: {} } type AppSettingGetPayload = $Result.GetResult type AppSettingCountArgs = Omit & { select?: AppSettingCountAggregateInputType | true } export interface AppSettingDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AppSetting'], meta: { name: 'AppSetting' } } /** * Find zero or one AppSetting that matches the filter. * @param {AppSettingFindUniqueArgs} args - Arguments to find a AppSetting * @example * // Get one AppSetting * const appSetting = await prisma.appSetting.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one AppSetting that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppSettingFindUniqueOrThrowArgs} args - Arguments to find a AppSetting * @example * // Get one AppSetting * const appSetting = await prisma.appSetting.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first AppSetting 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 {AppSettingFindFirstArgs} args - Arguments to find a AppSetting * @example * // Get one AppSetting * const appSetting = await prisma.appSetting.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first AppSetting 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 {AppSettingFindFirstOrThrowArgs} args - Arguments to find a AppSetting * @example * // Get one AppSetting * const appSetting = await prisma.appSetting.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more AppSettings 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 {AppSettingFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AppSettings * const appSettings = await prisma.appSetting.findMany() * * // Get first 10 AppSettings * const appSettings = await prisma.appSetting.findMany({ take: 10 }) * * // Only select the `id` * const appSettingWithIdOnly = await prisma.appSetting.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a AppSetting. * @param {AppSettingCreateArgs} args - Arguments to create a AppSetting. * @example * // Create one AppSetting * const AppSetting = await prisma.appSetting.create({ * data: { * // ... data to create a AppSetting * } * }) * */ create(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many AppSettings. * @param {AppSettingCreateManyArgs} args - Arguments to create many AppSettings. * @example * // Create many AppSettings * const appSetting = await prisma.appSetting.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a AppSetting. * @param {AppSettingDeleteArgs} args - Arguments to delete one AppSetting. * @example * // Delete one AppSetting * const AppSetting = await prisma.appSetting.delete({ * where: { * // ... filter to delete one AppSetting * } * }) * */ delete(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one AppSetting. * @param {AppSettingUpdateArgs} args - Arguments to update one AppSetting. * @example * // Update one AppSetting * const appSetting = await prisma.appSetting.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more AppSettings. * @param {AppSettingDeleteManyArgs} args - Arguments to filter AppSettings to delete. * @example * // Delete a few AppSettings * const { count } = await prisma.appSetting.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppSettingUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AppSettings * const appSetting = await prisma.appSetting.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one AppSetting. * @param {AppSettingUpsertArgs} args - Arguments to update or create a AppSetting. * @example * // Update or create a AppSetting * const appSetting = await prisma.appSetting.upsert({ * create: { * // ... data to create a AppSetting * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AppSetting we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of AppSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppSettingCountArgs} args - Arguments to filter AppSettings to count. * @example * // Count the number of AppSettings * const count = await prisma.appSetting.count({ * where: { * // ... the filter for the AppSettings we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a AppSetting. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppSettingAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by AppSetting. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppSettingGroupByArgs} 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 AppSettingGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AppSettingGroupByArgs['orderBy'] } : { orderBy?: AppSettingGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAppSettingGroupByPayload : Prisma.PrismaPromise /** * Fields of the AppSetting model */ readonly fields: AppSettingFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AppSetting. * 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__AppSettingClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the AppSetting model */ interface AppSettingFieldRefs { readonly id: FieldRef<"AppSetting", 'Int'> readonly key: FieldRef<"AppSetting", 'String'> readonly value: FieldRef<"AppSetting", 'String'> readonly createdAt: FieldRef<"AppSetting", 'DateTime'> readonly updatedAt: FieldRef<"AppSetting", 'DateTime'> } // Custom InputTypes /** * AppSetting findUnique */ export type AppSettingFindUniqueArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Filter, which AppSetting to fetch. */ where: AppSettingWhereUniqueInput } /** * AppSetting findUniqueOrThrow */ export type AppSettingFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Filter, which AppSetting to fetch. */ where: AppSettingWhereUniqueInput } /** * AppSetting findFirst */ export type AppSettingFindFirstArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Filter, which AppSetting to fetch. */ where?: AppSettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppSettings to fetch. */ orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppSettings. */ cursor?: AppSettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppSettings 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` AppSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppSettings. */ distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[] } /** * AppSetting findFirstOrThrow */ export type AppSettingFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Filter, which AppSetting to fetch. */ where?: AppSettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppSettings to fetch. */ orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppSettings. */ cursor?: AppSettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppSettings 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` AppSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppSettings. */ distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[] } /** * AppSetting findMany */ export type AppSettingFindManyArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Filter, which AppSettings to fetch. */ where?: AppSettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppSettings to fetch. */ orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AppSettings. */ cursor?: AppSettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppSettings 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` AppSettings. */ skip?: number distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[] } /** * AppSetting create */ export type AppSettingCreateArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * The data needed to create a AppSetting. */ data: XOR } /** * AppSetting createMany */ export type AppSettingCreateManyArgs = { /** * The data used to create many AppSettings. */ data: AppSettingCreateManyInput | AppSettingCreateManyInput[] skipDuplicates?: boolean } /** * AppSetting update */ export type AppSettingUpdateArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * The data needed to update a AppSetting. */ data: XOR /** * Choose, which AppSetting to update. */ where: AppSettingWhereUniqueInput } /** * AppSetting updateMany */ export type AppSettingUpdateManyArgs = { /** * The data used to update AppSettings. */ data: XOR /** * Filter which AppSettings to update */ where?: AppSettingWhereInput } /** * AppSetting upsert */ export type AppSettingUpsertArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * The filter to search for the AppSetting to update in case it exists. */ where: AppSettingWhereUniqueInput /** * In case the AppSetting found by the `where` argument doesn't exist, create a new AppSetting with this data. */ create: XOR /** * In case the AppSetting was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AppSetting delete */ export type AppSettingDeleteArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Filter which AppSetting to delete. */ where: AppSettingWhereUniqueInput } /** * AppSetting deleteMany */ export type AppSettingDeleteManyArgs = { /** * Filter which AppSettings to delete */ where?: AppSettingWhereInput } /** * AppSetting without action */ export type AppSettingDefaultArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null } /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserAvgAggregateOutputType = { id: number | null customerId: number | null } export type UserSumAggregateOutputType = { id: number | null customerId: number | null } export type UserMinAggregateOutputType = { id: number | null email: string | null password: string | null firstName: string | null lastName: string | null isActive: boolean | null tokenInvalidatedAt: Date | null customerId: number | null createdAt: Date | null updatedAt: Date | null } export type UserMaxAggregateOutputType = { id: number | null email: string | null password: string | null firstName: string | null lastName: string | null isActive: boolean | null tokenInvalidatedAt: Date | null customerId: number | null createdAt: Date | null updatedAt: Date | null } export type UserCountAggregateOutputType = { id: number email: number password: number firstName: number lastName: number isActive: number tokenInvalidatedAt: number customerId: number createdAt: number updatedAt: number _all: number } export type UserAvgAggregateInputType = { id?: true customerId?: true } export type UserSumAggregateInputType = { id?: true customerId?: true } export type UserMinAggregateInputType = { id?: true email?: true password?: true firstName?: true lastName?: true isActive?: true tokenInvalidatedAt?: true customerId?: true createdAt?: true updatedAt?: true } export type UserMaxAggregateInputType = { id?: true email?: true password?: true firstName?: true lastName?: true isActive?: true tokenInvalidatedAt?: true customerId?: true createdAt?: true updatedAt?: true } export type UserCountAggregateInputType = { id?: true email?: true password?: true firstName?: true lastName?: true isActive?: true tokenInvalidatedAt?: true customerId?: true createdAt?: true updatedAt?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: UserAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType } export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _avg?: UserAvgAggregateInputType _sum?: UserSumAggregateInputType _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: number email: string password: string firstName: string lastName: string isActive: boolean tokenInvalidatedAt: Date | null customerId: number | null createdAt: Date updatedAt: Date _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean email?: boolean password?: boolean firstName?: boolean lastName?: boolean isActive?: boolean tokenInvalidatedAt?: boolean customerId?: boolean createdAt?: boolean updatedAt?: boolean customer?: boolean | User$customerArgs roles?: boolean | User$rolesArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean email?: boolean password?: boolean firstName?: boolean lastName?: boolean isActive?: boolean tokenInvalidatedAt?: boolean customerId?: boolean createdAt?: boolean updatedAt?: boolean } export type UserInclude = { customer?: boolean | User$customerArgs roles?: boolean | User$rolesArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type $UserPayload = { name: "User" objects: { customer: Prisma.$CustomerPayload | null roles: Prisma.$UserRolePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number email: string password: string firstName: string lastName: string isActive: boolean tokenInvalidatedAt: Date | null customerId: number | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first User that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first User that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Users that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.user.findMany() * * // Get first 10 Users * const users = await prisma.user.findMany({ take: 10 }) * * // Only select the `id` * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.user.create({ * data: { * // ... data to create a User * } * }) * */ create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await prisma.user.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.user.count({ * where: { * // ... the filter for the Users we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends UserGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> roles = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'Int'> readonly email: FieldRef<"User", 'String'> readonly password: FieldRef<"User", 'String'> readonly firstName: FieldRef<"User", 'String'> readonly lastName: FieldRef<"User", 'String'> readonly isActive: FieldRef<"User", 'Boolean'> readonly tokenInvalidatedAt: FieldRef<"User", 'DateTime'> readonly customerId: FieldRef<"User", 'Int'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput } /** * User.customer */ export type User$customerArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null where?: CustomerWhereInput } /** * User.roles */ export type User$rolesArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null where?: UserRoleWhereInput orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[] cursor?: UserRoleWhereUniqueInput take?: number skip?: number distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model Role */ export type AggregateRole = { _count: RoleCountAggregateOutputType | null _avg: RoleAvgAggregateOutputType | null _sum: RoleSumAggregateOutputType | null _min: RoleMinAggregateOutputType | null _max: RoleMaxAggregateOutputType | null } export type RoleAvgAggregateOutputType = { id: number | null } export type RoleSumAggregateOutputType = { id: number | null } export type RoleMinAggregateOutputType = { id: number | null name: string | null description: string | null createdAt: Date | null updatedAt: Date | null } export type RoleMaxAggregateOutputType = { id: number | null name: string | null description: string | null createdAt: Date | null updatedAt: Date | null } export type RoleCountAggregateOutputType = { id: number name: number description: number createdAt: number updatedAt: number _all: number } export type RoleAvgAggregateInputType = { id?: true } export type RoleSumAggregateInputType = { id?: true } export type RoleMinAggregateInputType = { id?: true name?: true description?: true createdAt?: true updatedAt?: true } export type RoleMaxAggregateInputType = { id?: true name?: true description?: true createdAt?: true updatedAt?: true } export type RoleCountAggregateInputType = { id?: true name?: true description?: true createdAt?: true updatedAt?: true _all?: true } export type RoleAggregateArgs = { /** * Filter which Role to aggregate. */ where?: RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Roles **/ _count?: true | RoleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: RoleAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: RoleSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RoleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RoleMaxAggregateInputType } export type GetRoleAggregateType = { [P in keyof T & keyof AggregateRole]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type RoleGroupByArgs = { where?: RoleWhereInput orderBy?: RoleOrderByWithAggregationInput | RoleOrderByWithAggregationInput[] by: RoleScalarFieldEnum[] | RoleScalarFieldEnum having?: RoleScalarWhereWithAggregatesInput take?: number skip?: number _count?: RoleCountAggregateInputType | true _avg?: RoleAvgAggregateInputType _sum?: RoleSumAggregateInputType _min?: RoleMinAggregateInputType _max?: RoleMaxAggregateInputType } export type RoleGroupByOutputType = { id: number name: string description: string | null createdAt: Date updatedAt: Date _count: RoleCountAggregateOutputType | null _avg: RoleAvgAggregateOutputType | null _sum: RoleSumAggregateOutputType | null _min: RoleMinAggregateOutputType | null _max: RoleMaxAggregateOutputType | null } type GetRoleGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type RoleSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean createdAt?: boolean updatedAt?: boolean permissions?: boolean | Role$permissionsArgs users?: boolean | Role$usersArgs _count?: boolean | RoleCountOutputTypeDefaultArgs }, ExtArgs["result"]["role"]> export type RoleSelectScalar = { id?: boolean name?: boolean description?: boolean createdAt?: boolean updatedAt?: boolean } export type RoleInclude = { permissions?: boolean | Role$permissionsArgs users?: boolean | Role$usersArgs _count?: boolean | RoleCountOutputTypeDefaultArgs } export type $RolePayload = { name: "Role" objects: { permissions: Prisma.$RolePermissionPayload[] users: Prisma.$UserRolePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number name: string description: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["role"]> composites: {} } type RoleGetPayload = $Result.GetResult type RoleCountArgs = Omit & { select?: RoleCountAggregateInputType | true } export interface RoleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Role'], meta: { name: 'Role' } } /** * Find zero or one Role that matches the filter. * @param {RoleFindUniqueArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Role that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Role 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 {RoleFindFirstArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Role 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 {RoleFindFirstOrThrowArgs} args - Arguments to find a Role * @example * // Get one Role * const role = await prisma.role.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Roles 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 {RoleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Roles * const roles = await prisma.role.findMany() * * // Get first 10 Roles * const roles = await prisma.role.findMany({ take: 10 }) * * // Only select the `id` * const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Role. * @param {RoleCreateArgs} args - Arguments to create a Role. * @example * // Create one Role * const Role = await prisma.role.create({ * data: { * // ... data to create a Role * } * }) * */ create(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Roles. * @param {RoleCreateManyArgs} args - Arguments to create many Roles. * @example * // Create many Roles * const role = await prisma.role.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Role. * @param {RoleDeleteArgs} args - Arguments to delete one Role. * @example * // Delete one Role * const Role = await prisma.role.delete({ * where: { * // ... filter to delete one Role * } * }) * */ delete(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Role. * @param {RoleUpdateArgs} args - Arguments to update one Role. * @example * // Update one Role * const role = await prisma.role.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Roles. * @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete. * @example * // Delete a few Roles * const { count } = await prisma.role.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Roles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Roles * const role = await prisma.role.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Role. * @param {RoleUpsertArgs} args - Arguments to update or create a Role. * @example * // Update or create a Role * const role = await prisma.role.upsert({ * create: { * // ... data to create a Role * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Role we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__RoleClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Roles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleCountArgs} args - Arguments to filter Roles to count. * @example * // Count the number of Roles * const count = await prisma.role.count({ * where: { * // ... the filter for the Roles we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Role. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Role. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoleGroupByArgs} 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 RoleGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: RoleGroupByArgs['orderBy'] } : { orderBy?: RoleGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetRoleGroupByPayload : Prisma.PrismaPromise /** * Fields of the Role model */ readonly fields: RoleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Role. * 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__RoleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" permissions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> users = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Role model */ interface RoleFieldRefs { readonly id: FieldRef<"Role", 'Int'> readonly name: FieldRef<"Role", 'String'> readonly description: FieldRef<"Role", 'String'> readonly createdAt: FieldRef<"Role", 'DateTime'> readonly updatedAt: FieldRef<"Role", 'DateTime'> } // Custom InputTypes /** * Role findUnique */ export type RoleFindUniqueArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Role to fetch. */ where: RoleWhereUniqueInput } /** * Role findUniqueOrThrow */ export type RoleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Role to fetch. */ where: RoleWhereUniqueInput } /** * Role findFirst */ export type RoleFindFirstArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Role to fetch. */ where?: RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Roles. */ cursor?: RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Roles. */ distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[] } /** * Role findFirstOrThrow */ export type RoleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Role to fetch. */ where?: RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Roles. */ cursor?: RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Roles. */ distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[] } /** * Role findMany */ export type RoleFindManyArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter, which Roles to fetch. */ where?: RoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Roles to fetch. */ orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Roles. */ cursor?: RoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Roles 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` Roles. */ skip?: number distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[] } /** * Role create */ export type RoleCreateArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * The data needed to create a Role. */ data: XOR } /** * Role createMany */ export type RoleCreateManyArgs = { /** * The data used to create many Roles. */ data: RoleCreateManyInput | RoleCreateManyInput[] skipDuplicates?: boolean } /** * Role update */ export type RoleUpdateArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * The data needed to update a Role. */ data: XOR /** * Choose, which Role to update. */ where: RoleWhereUniqueInput } /** * Role updateMany */ export type RoleUpdateManyArgs = { /** * The data used to update Roles. */ data: XOR /** * Filter which Roles to update */ where?: RoleWhereInput } /** * Role upsert */ export type RoleUpsertArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * The filter to search for the Role to update in case it exists. */ where: RoleWhereUniqueInput /** * In case the Role found by the `where` argument doesn't exist, create a new Role with this data. */ create: XOR /** * In case the Role was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Role delete */ export type RoleDeleteArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null /** * Filter which Role to delete. */ where: RoleWhereUniqueInput } /** * Role deleteMany */ export type RoleDeleteManyArgs = { /** * Filter which Roles to delete */ where?: RoleWhereInput } /** * Role.permissions */ export type Role$permissionsArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null where?: RolePermissionWhereInput orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[] cursor?: RolePermissionWhereUniqueInput take?: number skip?: number distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[] } /** * Role.users */ export type Role$usersArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null where?: UserRoleWhereInput orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[] cursor?: UserRoleWhereUniqueInput take?: number skip?: number distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[] } /** * Role without action */ export type RoleDefaultArgs = { /** * Select specific fields to fetch from the Role */ select?: RoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: RoleInclude | null } /** * Model Permission */ export type AggregatePermission = { _count: PermissionCountAggregateOutputType | null _avg: PermissionAvgAggregateOutputType | null _sum: PermissionSumAggregateOutputType | null _min: PermissionMinAggregateOutputType | null _max: PermissionMaxAggregateOutputType | null } export type PermissionAvgAggregateOutputType = { id: number | null } export type PermissionSumAggregateOutputType = { id: number | null } export type PermissionMinAggregateOutputType = { id: number | null resource: string | null action: string | null } export type PermissionMaxAggregateOutputType = { id: number | null resource: string | null action: string | null } export type PermissionCountAggregateOutputType = { id: number resource: number action: number _all: number } export type PermissionAvgAggregateInputType = { id?: true } export type PermissionSumAggregateInputType = { id?: true } export type PermissionMinAggregateInputType = { id?: true resource?: true action?: true } export type PermissionMaxAggregateInputType = { id?: true resource?: true action?: true } export type PermissionCountAggregateInputType = { id?: true resource?: true action?: true _all?: true } export type PermissionAggregateArgs = { /** * Filter which Permission to aggregate. */ where?: PermissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Permissions to fetch. */ orderBy?: PermissionOrderByWithRelationInput | PermissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PermissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Permissions 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` Permissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Permissions **/ _count?: true | PermissionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PermissionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PermissionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PermissionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PermissionMaxAggregateInputType } export type GetPermissionAggregateType = { [P in keyof T & keyof AggregatePermission]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PermissionGroupByArgs = { where?: PermissionWhereInput orderBy?: PermissionOrderByWithAggregationInput | PermissionOrderByWithAggregationInput[] by: PermissionScalarFieldEnum[] | PermissionScalarFieldEnum having?: PermissionScalarWhereWithAggregatesInput take?: number skip?: number _count?: PermissionCountAggregateInputType | true _avg?: PermissionAvgAggregateInputType _sum?: PermissionSumAggregateInputType _min?: PermissionMinAggregateInputType _max?: PermissionMaxAggregateInputType } export type PermissionGroupByOutputType = { id: number resource: string action: string _count: PermissionCountAggregateOutputType | null _avg: PermissionAvgAggregateOutputType | null _sum: PermissionSumAggregateOutputType | null _min: PermissionMinAggregateOutputType | null _max: PermissionMaxAggregateOutputType | null } type GetPermissionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PermissionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PermissionSelect = $Extensions.GetSelect<{ id?: boolean resource?: boolean action?: boolean roles?: boolean | Permission$rolesArgs _count?: boolean | PermissionCountOutputTypeDefaultArgs }, ExtArgs["result"]["permission"]> export type PermissionSelectScalar = { id?: boolean resource?: boolean action?: boolean } export type PermissionInclude = { roles?: boolean | Permission$rolesArgs _count?: boolean | PermissionCountOutputTypeDefaultArgs } export type $PermissionPayload = { name: "Permission" objects: { roles: Prisma.$RolePermissionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number resource: string action: string }, ExtArgs["result"]["permission"]> composites: {} } type PermissionGetPayload = $Result.GetResult type PermissionCountArgs = Omit & { select?: PermissionCountAggregateInputType | true } export interface PermissionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Permission'], meta: { name: 'Permission' } } /** * Find zero or one Permission that matches the filter. * @param {PermissionFindUniqueArgs} args - Arguments to find a Permission * @example * // Get one Permission * const permission = await prisma.permission.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PermissionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Permission that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PermissionFindUniqueOrThrowArgs} args - Arguments to find a Permission * @example * // Get one Permission * const permission = await prisma.permission.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PermissionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Permission 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 {PermissionFindFirstArgs} args - Arguments to find a Permission * @example * // Get one Permission * const permission = await prisma.permission.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PermissionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Permission 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 {PermissionFindFirstOrThrowArgs} args - Arguments to find a Permission * @example * // Get one Permission * const permission = await prisma.permission.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PermissionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Permissions 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 {PermissionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Permissions * const permissions = await prisma.permission.findMany() * * // Get first 10 Permissions * const permissions = await prisma.permission.findMany({ take: 10 }) * * // Only select the `id` * const permissionWithIdOnly = await prisma.permission.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Permission. * @param {PermissionCreateArgs} args - Arguments to create a Permission. * @example * // Create one Permission * const Permission = await prisma.permission.create({ * data: { * // ... data to create a Permission * } * }) * */ create(args: SelectSubset>): Prisma__PermissionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Permissions. * @param {PermissionCreateManyArgs} args - Arguments to create many Permissions. * @example * // Create many Permissions * const permission = await prisma.permission.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Permission. * @param {PermissionDeleteArgs} args - Arguments to delete one Permission. * @example * // Delete one Permission * const Permission = await prisma.permission.delete({ * where: { * // ... filter to delete one Permission * } * }) * */ delete(args: SelectSubset>): Prisma__PermissionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Permission. * @param {PermissionUpdateArgs} args - Arguments to update one Permission. * @example * // Update one Permission * const permission = await prisma.permission.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PermissionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Permissions. * @param {PermissionDeleteManyArgs} args - Arguments to filter Permissions to delete. * @example * // Delete a few Permissions * const { count } = await prisma.permission.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Permissions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PermissionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Permissions * const permission = await prisma.permission.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Permission. * @param {PermissionUpsertArgs} args - Arguments to update or create a Permission. * @example * // Update or create a Permission * const permission = await prisma.permission.upsert({ * create: { * // ... data to create a Permission * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Permission we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PermissionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Permissions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PermissionCountArgs} args - Arguments to filter Permissions to count. * @example * // Count the number of Permissions * const count = await prisma.permission.count({ * where: { * // ... the filter for the Permissions we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Permission. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PermissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Permission. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PermissionGroupByArgs} 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 PermissionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PermissionGroupByArgs['orderBy'] } : { orderBy?: PermissionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetPermissionGroupByPayload : Prisma.PrismaPromise /** * Fields of the Permission model */ readonly fields: PermissionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Permission. * 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__PermissionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" roles = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Permission model */ interface PermissionFieldRefs { readonly id: FieldRef<"Permission", 'Int'> readonly resource: FieldRef<"Permission", 'String'> readonly action: FieldRef<"Permission", 'String'> } // Custom InputTypes /** * Permission findUnique */ export type PermissionFindUniqueArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * Filter, which Permission to fetch. */ where: PermissionWhereUniqueInput } /** * Permission findUniqueOrThrow */ export type PermissionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * Filter, which Permission to fetch. */ where: PermissionWhereUniqueInput } /** * Permission findFirst */ export type PermissionFindFirstArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * Filter, which Permission to fetch. */ where?: PermissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Permissions to fetch. */ orderBy?: PermissionOrderByWithRelationInput | PermissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Permissions. */ cursor?: PermissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Permissions 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` Permissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Permissions. */ distinct?: PermissionScalarFieldEnum | PermissionScalarFieldEnum[] } /** * Permission findFirstOrThrow */ export type PermissionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * Filter, which Permission to fetch. */ where?: PermissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Permissions to fetch. */ orderBy?: PermissionOrderByWithRelationInput | PermissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Permissions. */ cursor?: PermissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Permissions 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` Permissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Permissions. */ distinct?: PermissionScalarFieldEnum | PermissionScalarFieldEnum[] } /** * Permission findMany */ export type PermissionFindManyArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * Filter, which Permissions to fetch. */ where?: PermissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Permissions to fetch. */ orderBy?: PermissionOrderByWithRelationInput | PermissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Permissions. */ cursor?: PermissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Permissions 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` Permissions. */ skip?: number distinct?: PermissionScalarFieldEnum | PermissionScalarFieldEnum[] } /** * Permission create */ export type PermissionCreateArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * The data needed to create a Permission. */ data: XOR } /** * Permission createMany */ export type PermissionCreateManyArgs = { /** * The data used to create many Permissions. */ data: PermissionCreateManyInput | PermissionCreateManyInput[] skipDuplicates?: boolean } /** * Permission update */ export type PermissionUpdateArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * The data needed to update a Permission. */ data: XOR /** * Choose, which Permission to update. */ where: PermissionWhereUniqueInput } /** * Permission updateMany */ export type PermissionUpdateManyArgs = { /** * The data used to update Permissions. */ data: XOR /** * Filter which Permissions to update */ where?: PermissionWhereInput } /** * Permission upsert */ export type PermissionUpsertArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * The filter to search for the Permission to update in case it exists. */ where: PermissionWhereUniqueInput /** * In case the Permission found by the `where` argument doesn't exist, create a new Permission with this data. */ create: XOR /** * In case the Permission was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Permission delete */ export type PermissionDeleteArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null /** * Filter which Permission to delete. */ where: PermissionWhereUniqueInput } /** * Permission deleteMany */ export type PermissionDeleteManyArgs = { /** * Filter which Permissions to delete */ where?: PermissionWhereInput } /** * Permission.roles */ export type Permission$rolesArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null where?: RolePermissionWhereInput orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[] cursor?: RolePermissionWhereUniqueInput take?: number skip?: number distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[] } /** * Permission without action */ export type PermissionDefaultArgs = { /** * Select specific fields to fetch from the Permission */ select?: PermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: PermissionInclude | null } /** * Model RolePermission */ export type AggregateRolePermission = { _count: RolePermissionCountAggregateOutputType | null _avg: RolePermissionAvgAggregateOutputType | null _sum: RolePermissionSumAggregateOutputType | null _min: RolePermissionMinAggregateOutputType | null _max: RolePermissionMaxAggregateOutputType | null } export type RolePermissionAvgAggregateOutputType = { roleId: number | null permissionId: number | null } export type RolePermissionSumAggregateOutputType = { roleId: number | null permissionId: number | null } export type RolePermissionMinAggregateOutputType = { roleId: number | null permissionId: number | null } export type RolePermissionMaxAggregateOutputType = { roleId: number | null permissionId: number | null } export type RolePermissionCountAggregateOutputType = { roleId: number permissionId: number _all: number } export type RolePermissionAvgAggregateInputType = { roleId?: true permissionId?: true } export type RolePermissionSumAggregateInputType = { roleId?: true permissionId?: true } export type RolePermissionMinAggregateInputType = { roleId?: true permissionId?: true } export type RolePermissionMaxAggregateInputType = { roleId?: true permissionId?: true } export type RolePermissionCountAggregateInputType = { roleId?: true permissionId?: true _all?: true } export type RolePermissionAggregateArgs = { /** * Filter which RolePermission to aggregate. */ where?: RolePermissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RolePermissions to fetch. */ orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: RolePermissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RolePermissions 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` RolePermissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned RolePermissions **/ _count?: true | RolePermissionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: RolePermissionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: RolePermissionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RolePermissionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RolePermissionMaxAggregateInputType } export type GetRolePermissionAggregateType = { [P in keyof T & keyof AggregateRolePermission]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type RolePermissionGroupByArgs = { where?: RolePermissionWhereInput orderBy?: RolePermissionOrderByWithAggregationInput | RolePermissionOrderByWithAggregationInput[] by: RolePermissionScalarFieldEnum[] | RolePermissionScalarFieldEnum having?: RolePermissionScalarWhereWithAggregatesInput take?: number skip?: number _count?: RolePermissionCountAggregateInputType | true _avg?: RolePermissionAvgAggregateInputType _sum?: RolePermissionSumAggregateInputType _min?: RolePermissionMinAggregateInputType _max?: RolePermissionMaxAggregateInputType } export type RolePermissionGroupByOutputType = { roleId: number permissionId: number _count: RolePermissionCountAggregateOutputType | null _avg: RolePermissionAvgAggregateOutputType | null _sum: RolePermissionSumAggregateOutputType | null _min: RolePermissionMinAggregateOutputType | null _max: RolePermissionMaxAggregateOutputType | null } type GetRolePermissionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof RolePermissionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type RolePermissionSelect = $Extensions.GetSelect<{ roleId?: boolean permissionId?: boolean role?: boolean | RoleDefaultArgs permission?: boolean | PermissionDefaultArgs }, ExtArgs["result"]["rolePermission"]> export type RolePermissionSelectScalar = { roleId?: boolean permissionId?: boolean } export type RolePermissionInclude = { role?: boolean | RoleDefaultArgs permission?: boolean | PermissionDefaultArgs } export type $RolePermissionPayload = { name: "RolePermission" objects: { role: Prisma.$RolePayload permission: Prisma.$PermissionPayload } scalars: $Extensions.GetPayloadResult<{ roleId: number permissionId: number }, ExtArgs["result"]["rolePermission"]> composites: {} } type RolePermissionGetPayload = $Result.GetResult type RolePermissionCountArgs = Omit & { select?: RolePermissionCountAggregateInputType | true } export interface RolePermissionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['RolePermission'], meta: { name: 'RolePermission' } } /** * Find zero or one RolePermission that matches the filter. * @param {RolePermissionFindUniqueArgs} args - Arguments to find a RolePermission * @example * // Get one RolePermission * const rolePermission = await prisma.rolePermission.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__RolePermissionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one RolePermission that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RolePermissionFindUniqueOrThrowArgs} args - Arguments to find a RolePermission * @example * // Get one RolePermission * const rolePermission = await prisma.rolePermission.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__RolePermissionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first RolePermission 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 {RolePermissionFindFirstArgs} args - Arguments to find a RolePermission * @example * // Get one RolePermission * const rolePermission = await prisma.rolePermission.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__RolePermissionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first RolePermission 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 {RolePermissionFindFirstOrThrowArgs} args - Arguments to find a RolePermission * @example * // Get one RolePermission * const rolePermission = await prisma.rolePermission.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__RolePermissionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more RolePermissions 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 {RolePermissionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all RolePermissions * const rolePermissions = await prisma.rolePermission.findMany() * * // Get first 10 RolePermissions * const rolePermissions = await prisma.rolePermission.findMany({ take: 10 }) * * // Only select the `roleId` * const rolePermissionWithRoleIdOnly = await prisma.rolePermission.findMany({ select: { roleId: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a RolePermission. * @param {RolePermissionCreateArgs} args - Arguments to create a RolePermission. * @example * // Create one RolePermission * const RolePermission = await prisma.rolePermission.create({ * data: { * // ... data to create a RolePermission * } * }) * */ create(args: SelectSubset>): Prisma__RolePermissionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many RolePermissions. * @param {RolePermissionCreateManyArgs} args - Arguments to create many RolePermissions. * @example * // Create many RolePermissions * const rolePermission = await prisma.rolePermission.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a RolePermission. * @param {RolePermissionDeleteArgs} args - Arguments to delete one RolePermission. * @example * // Delete one RolePermission * const RolePermission = await prisma.rolePermission.delete({ * where: { * // ... filter to delete one RolePermission * } * }) * */ delete(args: SelectSubset>): Prisma__RolePermissionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one RolePermission. * @param {RolePermissionUpdateArgs} args - Arguments to update one RolePermission. * @example * // Update one RolePermission * const rolePermission = await prisma.rolePermission.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__RolePermissionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more RolePermissions. * @param {RolePermissionDeleteManyArgs} args - Arguments to filter RolePermissions to delete. * @example * // Delete a few RolePermissions * const { count } = await prisma.rolePermission.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more RolePermissions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RolePermissionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many RolePermissions * const rolePermission = await prisma.rolePermission.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one RolePermission. * @param {RolePermissionUpsertArgs} args - Arguments to update or create a RolePermission. * @example * // Update or create a RolePermission * const rolePermission = await prisma.rolePermission.upsert({ * create: { * // ... data to create a RolePermission * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the RolePermission we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__RolePermissionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of RolePermissions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RolePermissionCountArgs} args - Arguments to filter RolePermissions to count. * @example * // Count the number of RolePermissions * const count = await prisma.rolePermission.count({ * where: { * // ... the filter for the RolePermissions we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a RolePermission. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RolePermissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by RolePermission. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RolePermissionGroupByArgs} 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 RolePermissionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: RolePermissionGroupByArgs['orderBy'] } : { orderBy?: RolePermissionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetRolePermissionGroupByPayload : Prisma.PrismaPromise /** * Fields of the RolePermission model */ readonly fields: RolePermissionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for RolePermission. * 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__RolePermissionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" role = {}>(args?: Subset>): Prisma__RoleClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> permission = {}>(args?: Subset>): Prisma__PermissionClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the RolePermission model */ interface RolePermissionFieldRefs { readonly roleId: FieldRef<"RolePermission", 'Int'> readonly permissionId: FieldRef<"RolePermission", 'Int'> } // Custom InputTypes /** * RolePermission findUnique */ export type RolePermissionFindUniqueArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * Filter, which RolePermission to fetch. */ where: RolePermissionWhereUniqueInput } /** * RolePermission findUniqueOrThrow */ export type RolePermissionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * Filter, which RolePermission to fetch. */ where: RolePermissionWhereUniqueInput } /** * RolePermission findFirst */ export type RolePermissionFindFirstArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * Filter, which RolePermission to fetch. */ where?: RolePermissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RolePermissions to fetch. */ orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for RolePermissions. */ cursor?: RolePermissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RolePermissions 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` RolePermissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RolePermissions. */ distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[] } /** * RolePermission findFirstOrThrow */ export type RolePermissionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * Filter, which RolePermission to fetch. */ where?: RolePermissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RolePermissions to fetch. */ orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for RolePermissions. */ cursor?: RolePermissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RolePermissions 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` RolePermissions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RolePermissions. */ distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[] } /** * RolePermission findMany */ export type RolePermissionFindManyArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * Filter, which RolePermissions to fetch. */ where?: RolePermissionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RolePermissions to fetch. */ orderBy?: RolePermissionOrderByWithRelationInput | RolePermissionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing RolePermissions. */ cursor?: RolePermissionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RolePermissions 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` RolePermissions. */ skip?: number distinct?: RolePermissionScalarFieldEnum | RolePermissionScalarFieldEnum[] } /** * RolePermission create */ export type RolePermissionCreateArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * The data needed to create a RolePermission. */ data: XOR } /** * RolePermission createMany */ export type RolePermissionCreateManyArgs = { /** * The data used to create many RolePermissions. */ data: RolePermissionCreateManyInput | RolePermissionCreateManyInput[] skipDuplicates?: boolean } /** * RolePermission update */ export type RolePermissionUpdateArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * The data needed to update a RolePermission. */ data: XOR /** * Choose, which RolePermission to update. */ where: RolePermissionWhereUniqueInput } /** * RolePermission updateMany */ export type RolePermissionUpdateManyArgs = { /** * The data used to update RolePermissions. */ data: XOR /** * Filter which RolePermissions to update */ where?: RolePermissionWhereInput } /** * RolePermission upsert */ export type RolePermissionUpsertArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * The filter to search for the RolePermission to update in case it exists. */ where: RolePermissionWhereUniqueInput /** * In case the RolePermission found by the `where` argument doesn't exist, create a new RolePermission with this data. */ create: XOR /** * In case the RolePermission was found with the provided `where` argument, update it with this data. */ update: XOR } /** * RolePermission delete */ export type RolePermissionDeleteArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null /** * Filter which RolePermission to delete. */ where: RolePermissionWhereUniqueInput } /** * RolePermission deleteMany */ export type RolePermissionDeleteManyArgs = { /** * Filter which RolePermissions to delete */ where?: RolePermissionWhereInput } /** * RolePermission without action */ export type RolePermissionDefaultArgs = { /** * Select specific fields to fetch from the RolePermission */ select?: RolePermissionSelect | null /** * Choose, which related nodes to fetch as well */ include?: RolePermissionInclude | null } /** * Model UserRole */ export type AggregateUserRole = { _count: UserRoleCountAggregateOutputType | null _avg: UserRoleAvgAggregateOutputType | null _sum: UserRoleSumAggregateOutputType | null _min: UserRoleMinAggregateOutputType | null _max: UserRoleMaxAggregateOutputType | null } export type UserRoleAvgAggregateOutputType = { userId: number | null roleId: number | null } export type UserRoleSumAggregateOutputType = { userId: number | null roleId: number | null } export type UserRoleMinAggregateOutputType = { userId: number | null roleId: number | null } export type UserRoleMaxAggregateOutputType = { userId: number | null roleId: number | null } export type UserRoleCountAggregateOutputType = { userId: number roleId: number _all: number } export type UserRoleAvgAggregateInputType = { userId?: true roleId?: true } export type UserRoleSumAggregateInputType = { userId?: true roleId?: true } export type UserRoleMinAggregateInputType = { userId?: true roleId?: true } export type UserRoleMaxAggregateInputType = { userId?: true roleId?: true } export type UserRoleCountAggregateInputType = { userId?: true roleId?: true _all?: true } export type UserRoleAggregateArgs = { /** * Filter which UserRole to aggregate. */ where?: UserRoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserRoles to fetch. */ orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserRoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserRoles 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` UserRoles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserRoles **/ _count?: true | UserRoleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: UserRoleAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserRoleSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserRoleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserRoleMaxAggregateInputType } export type GetUserRoleAggregateType = { [P in keyof T & keyof AggregateUserRole]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserRoleGroupByArgs = { where?: UserRoleWhereInput orderBy?: UserRoleOrderByWithAggregationInput | UserRoleOrderByWithAggregationInput[] by: UserRoleScalarFieldEnum[] | UserRoleScalarFieldEnum having?: UserRoleScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserRoleCountAggregateInputType | true _avg?: UserRoleAvgAggregateInputType _sum?: UserRoleSumAggregateInputType _min?: UserRoleMinAggregateInputType _max?: UserRoleMaxAggregateInputType } export type UserRoleGroupByOutputType = { userId: number roleId: number _count: UserRoleCountAggregateOutputType | null _avg: UserRoleAvgAggregateOutputType | null _sum: UserRoleSumAggregateOutputType | null _min: UserRoleMinAggregateOutputType | null _max: UserRoleMaxAggregateOutputType | null } type GetUserRoleGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserRoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserRoleSelect = $Extensions.GetSelect<{ userId?: boolean roleId?: boolean user?: boolean | UserDefaultArgs role?: boolean | RoleDefaultArgs }, ExtArgs["result"]["userRole"]> export type UserRoleSelectScalar = { userId?: boolean roleId?: boolean } export type UserRoleInclude = { user?: boolean | UserDefaultArgs role?: boolean | RoleDefaultArgs } export type $UserRolePayload = { name: "UserRole" objects: { user: Prisma.$UserPayload role: Prisma.$RolePayload } scalars: $Extensions.GetPayloadResult<{ userId: number roleId: number }, ExtArgs["result"]["userRole"]> composites: {} } type UserRoleGetPayload = $Result.GetResult type UserRoleCountArgs = Omit & { select?: UserRoleCountAggregateInputType | true } export interface UserRoleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UserRole'], meta: { name: 'UserRole' } } /** * Find zero or one UserRole that matches the filter. * @param {UserRoleFindUniqueArgs} args - Arguments to find a UserRole * @example * // Get one UserRole * const userRole = await prisma.userRole.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserRoleClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one UserRole that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserRoleFindUniqueOrThrowArgs} args - Arguments to find a UserRole * @example * // Get one UserRole * const userRole = await prisma.userRole.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserRoleClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first UserRole 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 {UserRoleFindFirstArgs} args - Arguments to find a UserRole * @example * // Get one UserRole * const userRole = await prisma.userRole.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserRoleClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first UserRole 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 {UserRoleFindFirstOrThrowArgs} args - Arguments to find a UserRole * @example * // Get one UserRole * const userRole = await prisma.userRole.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserRoleClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more UserRoles 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 {UserRoleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserRoles * const userRoles = await prisma.userRole.findMany() * * // Get first 10 UserRoles * const userRoles = await prisma.userRole.findMany({ take: 10 }) * * // Only select the `userId` * const userRoleWithUserIdOnly = await prisma.userRole.findMany({ select: { userId: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a UserRole. * @param {UserRoleCreateArgs} args - Arguments to create a UserRole. * @example * // Create one UserRole * const UserRole = await prisma.userRole.create({ * data: { * // ... data to create a UserRole * } * }) * */ create(args: SelectSubset>): Prisma__UserRoleClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many UserRoles. * @param {UserRoleCreateManyArgs} args - Arguments to create many UserRoles. * @example * // Create many UserRoles * const userRole = await prisma.userRole.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a UserRole. * @param {UserRoleDeleteArgs} args - Arguments to delete one UserRole. * @example * // Delete one UserRole * const UserRole = await prisma.userRole.delete({ * where: { * // ... filter to delete one UserRole * } * }) * */ delete(args: SelectSubset>): Prisma__UserRoleClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one UserRole. * @param {UserRoleUpdateArgs} args - Arguments to update one UserRole. * @example * // Update one UserRole * const userRole = await prisma.userRole.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserRoleClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more UserRoles. * @param {UserRoleDeleteManyArgs} args - Arguments to filter UserRoles to delete. * @example * // Delete a few UserRoles * const { count } = await prisma.userRole.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserRoles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserRoleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserRoles * const userRole = await prisma.userRole.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one UserRole. * @param {UserRoleUpsertArgs} args - Arguments to update or create a UserRole. * @example * // Update or create a UserRole * const userRole = await prisma.userRole.upsert({ * create: { * // ... data to create a UserRole * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserRole we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserRoleClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of UserRoles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserRoleCountArgs} args - Arguments to filter UserRoles to count. * @example * // Count the number of UserRoles * const count = await prisma.userRole.count({ * where: { * // ... the filter for the UserRoles we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a UserRole. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserRoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by UserRole. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserRoleGroupByArgs} 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 UserRoleGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserRoleGroupByArgs['orderBy'] } : { orderBy?: UserRoleGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserRoleGroupByPayload : Prisma.PrismaPromise /** * Fields of the UserRole model */ readonly fields: UserRoleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserRole. * 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__UserRoleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> role = {}>(args?: Subset>): Prisma__RoleClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the UserRole model */ interface UserRoleFieldRefs { readonly userId: FieldRef<"UserRole", 'Int'> readonly roleId: FieldRef<"UserRole", 'Int'> } // Custom InputTypes /** * UserRole findUnique */ export type UserRoleFindUniqueArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * Filter, which UserRole to fetch. */ where: UserRoleWhereUniqueInput } /** * UserRole findUniqueOrThrow */ export type UserRoleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * Filter, which UserRole to fetch. */ where: UserRoleWhereUniqueInput } /** * UserRole findFirst */ export type UserRoleFindFirstArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * Filter, which UserRole to fetch. */ where?: UserRoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserRoles to fetch. */ orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserRoles. */ cursor?: UserRoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserRoles 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` UserRoles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserRoles. */ distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[] } /** * UserRole findFirstOrThrow */ export type UserRoleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * Filter, which UserRole to fetch. */ where?: UserRoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserRoles to fetch. */ orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserRoles. */ cursor?: UserRoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserRoles 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` UserRoles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserRoles. */ distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[] } /** * UserRole findMany */ export type UserRoleFindManyArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * Filter, which UserRoles to fetch. */ where?: UserRoleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserRoles to fetch. */ orderBy?: UserRoleOrderByWithRelationInput | UserRoleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserRoles. */ cursor?: UserRoleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserRoles 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` UserRoles. */ skip?: number distinct?: UserRoleScalarFieldEnum | UserRoleScalarFieldEnum[] } /** * UserRole create */ export type UserRoleCreateArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * The data needed to create a UserRole. */ data: XOR } /** * UserRole createMany */ export type UserRoleCreateManyArgs = { /** * The data used to create many UserRoles. */ data: UserRoleCreateManyInput | UserRoleCreateManyInput[] skipDuplicates?: boolean } /** * UserRole update */ export type UserRoleUpdateArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * The data needed to update a UserRole. */ data: XOR /** * Choose, which UserRole to update. */ where: UserRoleWhereUniqueInput } /** * UserRole updateMany */ export type UserRoleUpdateManyArgs = { /** * The data used to update UserRoles. */ data: XOR /** * Filter which UserRoles to update */ where?: UserRoleWhereInput } /** * UserRole upsert */ export type UserRoleUpsertArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * The filter to search for the UserRole to update in case it exists. */ where: UserRoleWhereUniqueInput /** * In case the UserRole found by the `where` argument doesn't exist, create a new UserRole with this data. */ create: XOR /** * In case the UserRole was found with the provided `where` argument, update it with this data. */ update: XOR } /** * UserRole delete */ export type UserRoleDeleteArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null /** * Filter which UserRole to delete. */ where: UserRoleWhereUniqueInput } /** * UserRole deleteMany */ export type UserRoleDeleteManyArgs = { /** * Filter which UserRoles to delete */ where?: UserRoleWhereInput } /** * UserRole without action */ export type UserRoleDefaultArgs = { /** * Select specific fields to fetch from the UserRole */ select?: UserRoleSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserRoleInclude | null } /** * Model Customer */ export type AggregateCustomer = { _count: CustomerCountAggregateOutputType | null _avg: CustomerAvgAggregateOutputType | null _sum: CustomerSumAggregateOutputType | null _min: CustomerMinAggregateOutputType | null _max: CustomerMaxAggregateOutputType | null } export type CustomerAvgAggregateOutputType = { id: number | null } export type CustomerSumAggregateOutputType = { id: number | null } export type CustomerMinAggregateOutputType = { id: number | null customerNumber: string | null type: $Enums.CustomerType | null salutation: string | null firstName: string | null lastName: string | null companyName: string | null foundingDate: Date | null birthDate: Date | null birthPlace: string | null email: string | null phone: string | null mobile: string | null taxNumber: string | null businessRegistrationPath: string | null commercialRegisterPath: string | null commercialRegisterNumber: string | null privacyPolicyPath: string | null notes: string | null portalEnabled: boolean | null portalEmail: string | null portalPasswordHash: string | null portalPasswordEncrypted: string | null portalLastLogin: Date | null createdAt: Date | null updatedAt: Date | null } export type CustomerMaxAggregateOutputType = { id: number | null customerNumber: string | null type: $Enums.CustomerType | null salutation: string | null firstName: string | null lastName: string | null companyName: string | null foundingDate: Date | null birthDate: Date | null birthPlace: string | null email: string | null phone: string | null mobile: string | null taxNumber: string | null businessRegistrationPath: string | null commercialRegisterPath: string | null commercialRegisterNumber: string | null privacyPolicyPath: string | null notes: string | null portalEnabled: boolean | null portalEmail: string | null portalPasswordHash: string | null portalPasswordEncrypted: string | null portalLastLogin: Date | null createdAt: Date | null updatedAt: Date | null } export type CustomerCountAggregateOutputType = { id: number customerNumber: number type: number salutation: number firstName: number lastName: number companyName: number foundingDate: number birthDate: number birthPlace: number email: number phone: number mobile: number taxNumber: number businessRegistrationPath: number commercialRegisterPath: number commercialRegisterNumber: number privacyPolicyPath: number notes: number portalEnabled: number portalEmail: number portalPasswordHash: number portalPasswordEncrypted: number portalLastLogin: number createdAt: number updatedAt: number _all: number } export type CustomerAvgAggregateInputType = { id?: true } export type CustomerSumAggregateInputType = { id?: true } export type CustomerMinAggregateInputType = { id?: true customerNumber?: true type?: true salutation?: true firstName?: true lastName?: true companyName?: true foundingDate?: true birthDate?: true birthPlace?: true email?: true phone?: true mobile?: true taxNumber?: true businessRegistrationPath?: true commercialRegisterPath?: true commercialRegisterNumber?: true privacyPolicyPath?: true notes?: true portalEnabled?: true portalEmail?: true portalPasswordHash?: true portalPasswordEncrypted?: true portalLastLogin?: true createdAt?: true updatedAt?: true } export type CustomerMaxAggregateInputType = { id?: true customerNumber?: true type?: true salutation?: true firstName?: true lastName?: true companyName?: true foundingDate?: true birthDate?: true birthPlace?: true email?: true phone?: true mobile?: true taxNumber?: true businessRegistrationPath?: true commercialRegisterPath?: true commercialRegisterNumber?: true privacyPolicyPath?: true notes?: true portalEnabled?: true portalEmail?: true portalPasswordHash?: true portalPasswordEncrypted?: true portalLastLogin?: true createdAt?: true updatedAt?: true } export type CustomerCountAggregateInputType = { id?: true customerNumber?: true type?: true salutation?: true firstName?: true lastName?: true companyName?: true foundingDate?: true birthDate?: true birthPlace?: true email?: true phone?: true mobile?: true taxNumber?: true businessRegistrationPath?: true commercialRegisterPath?: true commercialRegisterNumber?: true privacyPolicyPath?: true notes?: true portalEnabled?: true portalEmail?: true portalPasswordHash?: true portalPasswordEncrypted?: true portalLastLogin?: true createdAt?: true updatedAt?: true _all?: true } export type CustomerAggregateArgs = { /** * Filter which Customer to aggregate. */ where?: CustomerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Customers to fetch. */ orderBy?: CustomerOrderByWithRelationInput | CustomerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CustomerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Customers 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` Customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Customers **/ _count?: true | CustomerCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CustomerAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CustomerSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CustomerMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CustomerMaxAggregateInputType } export type GetCustomerAggregateType = { [P in keyof T & keyof AggregateCustomer]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CustomerGroupByArgs = { where?: CustomerWhereInput orderBy?: CustomerOrderByWithAggregationInput | CustomerOrderByWithAggregationInput[] by: CustomerScalarFieldEnum[] | CustomerScalarFieldEnum having?: CustomerScalarWhereWithAggregatesInput take?: number skip?: number _count?: CustomerCountAggregateInputType | true _avg?: CustomerAvgAggregateInputType _sum?: CustomerSumAggregateInputType _min?: CustomerMinAggregateInputType _max?: CustomerMaxAggregateInputType } export type CustomerGroupByOutputType = { id: number customerNumber: string type: $Enums.CustomerType salutation: string | null firstName: string lastName: string companyName: string | null foundingDate: Date | null birthDate: Date | null birthPlace: string | null email: string | null phone: string | null mobile: string | null taxNumber: string | null businessRegistrationPath: string | null commercialRegisterPath: string | null commercialRegisterNumber: string | null privacyPolicyPath: string | null notes: string | null portalEnabled: boolean portalEmail: string | null portalPasswordHash: string | null portalPasswordEncrypted: string | null portalLastLogin: Date | null createdAt: Date updatedAt: Date _count: CustomerCountAggregateOutputType | null _avg: CustomerAvgAggregateOutputType | null _sum: CustomerSumAggregateOutputType | null _min: CustomerMinAggregateOutputType | null _max: CustomerMaxAggregateOutputType | null } type GetCustomerGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CustomerGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CustomerSelect = $Extensions.GetSelect<{ id?: boolean customerNumber?: boolean type?: boolean salutation?: boolean firstName?: boolean lastName?: boolean companyName?: boolean foundingDate?: boolean birthDate?: boolean birthPlace?: boolean email?: boolean phone?: boolean mobile?: boolean taxNumber?: boolean businessRegistrationPath?: boolean commercialRegisterPath?: boolean commercialRegisterNumber?: boolean privacyPolicyPath?: boolean notes?: boolean portalEnabled?: boolean portalEmail?: boolean portalPasswordHash?: boolean portalPasswordEncrypted?: boolean portalLastLogin?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Customer$userArgs addresses?: boolean | Customer$addressesArgs bankCards?: boolean | Customer$bankCardsArgs identityDocuments?: boolean | Customer$identityDocumentsArgs meters?: boolean | Customer$metersArgs stressfreiEmails?: boolean | Customer$stressfreiEmailsArgs contracts?: boolean | Customer$contractsArgs representingFor?: boolean | Customer$representingForArgs representedBy?: boolean | Customer$representedByArgs _count?: boolean | CustomerCountOutputTypeDefaultArgs }, ExtArgs["result"]["customer"]> export type CustomerSelectScalar = { id?: boolean customerNumber?: boolean type?: boolean salutation?: boolean firstName?: boolean lastName?: boolean companyName?: boolean foundingDate?: boolean birthDate?: boolean birthPlace?: boolean email?: boolean phone?: boolean mobile?: boolean taxNumber?: boolean businessRegistrationPath?: boolean commercialRegisterPath?: boolean commercialRegisterNumber?: boolean privacyPolicyPath?: boolean notes?: boolean portalEnabled?: boolean portalEmail?: boolean portalPasswordHash?: boolean portalPasswordEncrypted?: boolean portalLastLogin?: boolean createdAt?: boolean updatedAt?: boolean } export type CustomerInclude = { user?: boolean | Customer$userArgs addresses?: boolean | Customer$addressesArgs bankCards?: boolean | Customer$bankCardsArgs identityDocuments?: boolean | Customer$identityDocumentsArgs meters?: boolean | Customer$metersArgs stressfreiEmails?: boolean | Customer$stressfreiEmailsArgs contracts?: boolean | Customer$contractsArgs representingFor?: boolean | Customer$representingForArgs representedBy?: boolean | Customer$representedByArgs _count?: boolean | CustomerCountOutputTypeDefaultArgs } export type $CustomerPayload = { name: "Customer" objects: { user: Prisma.$UserPayload | null addresses: Prisma.$AddressPayload[] bankCards: Prisma.$BankCardPayload[] identityDocuments: Prisma.$IdentityDocumentPayload[] meters: Prisma.$MeterPayload[] stressfreiEmails: Prisma.$StressfreiEmailPayload[] contracts: Prisma.$ContractPayload[] representingFor: Prisma.$CustomerRepresentativePayload[] representedBy: Prisma.$CustomerRepresentativePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number customerNumber: string type: $Enums.CustomerType salutation: string | null firstName: string lastName: string companyName: string | null foundingDate: Date | null birthDate: Date | null birthPlace: string | null email: string | null phone: string | null mobile: string | null taxNumber: string | null businessRegistrationPath: string | null commercialRegisterPath: string | null commercialRegisterNumber: string | null privacyPolicyPath: string | null notes: string | null portalEnabled: boolean portalEmail: string | null portalPasswordHash: string | null portalPasswordEncrypted: string | null portalLastLogin: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["customer"]> composites: {} } type CustomerGetPayload = $Result.GetResult type CustomerCountArgs = Omit & { select?: CustomerCountAggregateInputType | true } export interface CustomerDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Customer'], meta: { name: 'Customer' } } /** * Find zero or one Customer that matches the filter. * @param {CustomerFindUniqueArgs} args - Arguments to find a Customer * @example * // Get one Customer * const customer = await prisma.customer.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CustomerClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Customer that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CustomerFindUniqueOrThrowArgs} args - Arguments to find a Customer * @example * // Get one Customer * const customer = await prisma.customer.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Customer 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 {CustomerFindFirstArgs} args - Arguments to find a Customer * @example * // Get one Customer * const customer = await prisma.customer.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CustomerClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Customer 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 {CustomerFindFirstOrThrowArgs} args - Arguments to find a Customer * @example * // Get one Customer * const customer = await prisma.customer.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CustomerClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Customers 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 {CustomerFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Customers * const customers = await prisma.customer.findMany() * * // Get first 10 Customers * const customers = await prisma.customer.findMany({ take: 10 }) * * // Only select the `id` * const customerWithIdOnly = await prisma.customer.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Customer. * @param {CustomerCreateArgs} args - Arguments to create a Customer. * @example * // Create one Customer * const Customer = await prisma.customer.create({ * data: { * // ... data to create a Customer * } * }) * */ create(args: SelectSubset>): Prisma__CustomerClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Customers. * @param {CustomerCreateManyArgs} args - Arguments to create many Customers. * @example * // Create many Customers * const customer = await prisma.customer.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Customer. * @param {CustomerDeleteArgs} args - Arguments to delete one Customer. * @example * // Delete one Customer * const Customer = await prisma.customer.delete({ * where: { * // ... filter to delete one Customer * } * }) * */ delete(args: SelectSubset>): Prisma__CustomerClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Customer. * @param {CustomerUpdateArgs} args - Arguments to update one Customer. * @example * // Update one Customer * const customer = await prisma.customer.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CustomerClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Customers. * @param {CustomerDeleteManyArgs} args - Arguments to filter Customers to delete. * @example * // Delete a few Customers * const { count } = await prisma.customer.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Customers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Customers * const customer = await prisma.customer.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Customer. * @param {CustomerUpsertArgs} args - Arguments to update or create a Customer. * @example * // Update or create a Customer * const customer = await prisma.customer.upsert({ * create: { * // ... data to create a Customer * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Customer we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CustomerClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Customers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerCountArgs} args - Arguments to filter Customers to count. * @example * // Count the number of Customers * const count = await prisma.customer.count({ * where: { * // ... the filter for the Customers we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Customer. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Customer. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerGroupByArgs} 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 CustomerGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CustomerGroupByArgs['orderBy'] } : { orderBy?: CustomerGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCustomerGroupByPayload : Prisma.PrismaPromise /** * Fields of the Customer model */ readonly fields: CustomerFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Customer. * 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__CustomerClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> addresses = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> bankCards = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> identityDocuments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> meters = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> stressfreiEmails = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> representingFor = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> representedBy = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Customer model */ interface CustomerFieldRefs { readonly id: FieldRef<"Customer", 'Int'> readonly customerNumber: FieldRef<"Customer", 'String'> readonly type: FieldRef<"Customer", 'CustomerType'> readonly salutation: FieldRef<"Customer", 'String'> readonly firstName: FieldRef<"Customer", 'String'> readonly lastName: FieldRef<"Customer", 'String'> readonly companyName: FieldRef<"Customer", 'String'> readonly foundingDate: FieldRef<"Customer", 'DateTime'> readonly birthDate: FieldRef<"Customer", 'DateTime'> readonly birthPlace: FieldRef<"Customer", 'String'> readonly email: FieldRef<"Customer", 'String'> readonly phone: FieldRef<"Customer", 'String'> readonly mobile: FieldRef<"Customer", 'String'> readonly taxNumber: FieldRef<"Customer", 'String'> readonly businessRegistrationPath: FieldRef<"Customer", 'String'> readonly commercialRegisterPath: FieldRef<"Customer", 'String'> readonly commercialRegisterNumber: FieldRef<"Customer", 'String'> readonly privacyPolicyPath: FieldRef<"Customer", 'String'> readonly notes: FieldRef<"Customer", 'String'> readonly portalEnabled: FieldRef<"Customer", 'Boolean'> readonly portalEmail: FieldRef<"Customer", 'String'> readonly portalPasswordHash: FieldRef<"Customer", 'String'> readonly portalPasswordEncrypted: FieldRef<"Customer", 'String'> readonly portalLastLogin: FieldRef<"Customer", 'DateTime'> readonly createdAt: FieldRef<"Customer", 'DateTime'> readonly updatedAt: FieldRef<"Customer", 'DateTime'> } // Custom InputTypes /** * Customer findUnique */ export type CustomerFindUniqueArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * Filter, which Customer to fetch. */ where: CustomerWhereUniqueInput } /** * Customer findUniqueOrThrow */ export type CustomerFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * Filter, which Customer to fetch. */ where: CustomerWhereUniqueInput } /** * Customer findFirst */ export type CustomerFindFirstArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * Filter, which Customer to fetch. */ where?: CustomerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Customers to fetch. */ orderBy?: CustomerOrderByWithRelationInput | CustomerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Customers. */ cursor?: CustomerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Customers 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` Customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Customers. */ distinct?: CustomerScalarFieldEnum | CustomerScalarFieldEnum[] } /** * Customer findFirstOrThrow */ export type CustomerFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * Filter, which Customer to fetch. */ where?: CustomerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Customers to fetch. */ orderBy?: CustomerOrderByWithRelationInput | CustomerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Customers. */ cursor?: CustomerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Customers 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` Customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Customers. */ distinct?: CustomerScalarFieldEnum | CustomerScalarFieldEnum[] } /** * Customer findMany */ export type CustomerFindManyArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * Filter, which Customers to fetch. */ where?: CustomerWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Customers to fetch. */ orderBy?: CustomerOrderByWithRelationInput | CustomerOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Customers. */ cursor?: CustomerWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Customers 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` Customers. */ skip?: number distinct?: CustomerScalarFieldEnum | CustomerScalarFieldEnum[] } /** * Customer create */ export type CustomerCreateArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * The data needed to create a Customer. */ data: XOR } /** * Customer createMany */ export type CustomerCreateManyArgs = { /** * The data used to create many Customers. */ data: CustomerCreateManyInput | CustomerCreateManyInput[] skipDuplicates?: boolean } /** * Customer update */ export type CustomerUpdateArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * The data needed to update a Customer. */ data: XOR /** * Choose, which Customer to update. */ where: CustomerWhereUniqueInput } /** * Customer updateMany */ export type CustomerUpdateManyArgs = { /** * The data used to update Customers. */ data: XOR /** * Filter which Customers to update */ where?: CustomerWhereInput } /** * Customer upsert */ export type CustomerUpsertArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * The filter to search for the Customer to update in case it exists. */ where: CustomerWhereUniqueInput /** * In case the Customer found by the `where` argument doesn't exist, create a new Customer with this data. */ create: XOR /** * In case the Customer was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Customer delete */ export type CustomerDeleteArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null /** * Filter which Customer to delete. */ where: CustomerWhereUniqueInput } /** * Customer deleteMany */ export type CustomerDeleteManyArgs = { /** * Filter which Customers to delete */ where?: CustomerWhereInput } /** * Customer.user */ export type Customer$userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Customer.addresses */ export type Customer$addressesArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null where?: AddressWhereInput orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] cursor?: AddressWhereUniqueInput take?: number skip?: number distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[] } /** * Customer.bankCards */ export type Customer$bankCardsArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null where?: BankCardWhereInput orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[] cursor?: BankCardWhereUniqueInput take?: number skip?: number distinct?: BankCardScalarFieldEnum | BankCardScalarFieldEnum[] } /** * Customer.identityDocuments */ export type Customer$identityDocumentsArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null where?: IdentityDocumentWhereInput orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[] cursor?: IdentityDocumentWhereUniqueInput take?: number skip?: number distinct?: IdentityDocumentScalarFieldEnum | IdentityDocumentScalarFieldEnum[] } /** * Customer.meters */ export type Customer$metersArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null where?: MeterWhereInput orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[] cursor?: MeterWhereUniqueInput take?: number skip?: number distinct?: MeterScalarFieldEnum | MeterScalarFieldEnum[] } /** * Customer.stressfreiEmails */ export type Customer$stressfreiEmailsArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null where?: StressfreiEmailWhereInput orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[] cursor?: StressfreiEmailWhereUniqueInput take?: number skip?: number distinct?: StressfreiEmailScalarFieldEnum | StressfreiEmailScalarFieldEnum[] } /** * Customer.contracts */ export type Customer$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * Customer.representingFor */ export type Customer$representingForArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null where?: CustomerRepresentativeWhereInput orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[] cursor?: CustomerRepresentativeWhereUniqueInput take?: number skip?: number distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[] } /** * Customer.representedBy */ export type Customer$representedByArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null where?: CustomerRepresentativeWhereInput orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[] cursor?: CustomerRepresentativeWhereUniqueInput take?: number skip?: number distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[] } /** * Customer without action */ export type CustomerDefaultArgs = { /** * Select specific fields to fetch from the Customer */ select?: CustomerSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerInclude | null } /** * Model CustomerRepresentative */ export type AggregateCustomerRepresentative = { _count: CustomerRepresentativeCountAggregateOutputType | null _avg: CustomerRepresentativeAvgAggregateOutputType | null _sum: CustomerRepresentativeSumAggregateOutputType | null _min: CustomerRepresentativeMinAggregateOutputType | null _max: CustomerRepresentativeMaxAggregateOutputType | null } export type CustomerRepresentativeAvgAggregateOutputType = { id: number | null customerId: number | null representativeId: number | null } export type CustomerRepresentativeSumAggregateOutputType = { id: number | null customerId: number | null representativeId: number | null } export type CustomerRepresentativeMinAggregateOutputType = { id: number | null customerId: number | null representativeId: number | null notes: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type CustomerRepresentativeMaxAggregateOutputType = { id: number | null customerId: number | null representativeId: number | null notes: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type CustomerRepresentativeCountAggregateOutputType = { id: number customerId: number representativeId: number notes: number isActive: number createdAt: number updatedAt: number _all: number } export type CustomerRepresentativeAvgAggregateInputType = { id?: true customerId?: true representativeId?: true } export type CustomerRepresentativeSumAggregateInputType = { id?: true customerId?: true representativeId?: true } export type CustomerRepresentativeMinAggregateInputType = { id?: true customerId?: true representativeId?: true notes?: true isActive?: true createdAt?: true updatedAt?: true } export type CustomerRepresentativeMaxAggregateInputType = { id?: true customerId?: true representativeId?: true notes?: true isActive?: true createdAt?: true updatedAt?: true } export type CustomerRepresentativeCountAggregateInputType = { id?: true customerId?: true representativeId?: true notes?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type CustomerRepresentativeAggregateArgs = { /** * Filter which CustomerRepresentative to aggregate. */ where?: CustomerRepresentativeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CustomerRepresentatives to fetch. */ orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CustomerRepresentativeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CustomerRepresentatives 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` CustomerRepresentatives. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CustomerRepresentatives **/ _count?: true | CustomerRepresentativeCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CustomerRepresentativeAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CustomerRepresentativeSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CustomerRepresentativeMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CustomerRepresentativeMaxAggregateInputType } export type GetCustomerRepresentativeAggregateType = { [P in keyof T & keyof AggregateCustomerRepresentative]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CustomerRepresentativeGroupByArgs = { where?: CustomerRepresentativeWhereInput orderBy?: CustomerRepresentativeOrderByWithAggregationInput | CustomerRepresentativeOrderByWithAggregationInput[] by: CustomerRepresentativeScalarFieldEnum[] | CustomerRepresentativeScalarFieldEnum having?: CustomerRepresentativeScalarWhereWithAggregatesInput take?: number skip?: number _count?: CustomerRepresentativeCountAggregateInputType | true _avg?: CustomerRepresentativeAvgAggregateInputType _sum?: CustomerRepresentativeSumAggregateInputType _min?: CustomerRepresentativeMinAggregateInputType _max?: CustomerRepresentativeMaxAggregateInputType } export type CustomerRepresentativeGroupByOutputType = { id: number customerId: number representativeId: number notes: string | null isActive: boolean createdAt: Date updatedAt: Date _count: CustomerRepresentativeCountAggregateOutputType | null _avg: CustomerRepresentativeAvgAggregateOutputType | null _sum: CustomerRepresentativeSumAggregateOutputType | null _min: CustomerRepresentativeMinAggregateOutputType | null _max: CustomerRepresentativeMaxAggregateOutputType | null } type GetCustomerRepresentativeGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CustomerRepresentativeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CustomerRepresentativeSelect = $Extensions.GetSelect<{ id?: boolean customerId?: boolean representativeId?: boolean notes?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean customer?: boolean | CustomerDefaultArgs representative?: boolean | CustomerDefaultArgs }, ExtArgs["result"]["customerRepresentative"]> export type CustomerRepresentativeSelectScalar = { id?: boolean customerId?: boolean representativeId?: boolean notes?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type CustomerRepresentativeInclude = { customer?: boolean | CustomerDefaultArgs representative?: boolean | CustomerDefaultArgs } export type $CustomerRepresentativePayload = { name: "CustomerRepresentative" objects: { customer: Prisma.$CustomerPayload representative: Prisma.$CustomerPayload } scalars: $Extensions.GetPayloadResult<{ id: number customerId: number representativeId: number notes: string | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["customerRepresentative"]> composites: {} } type CustomerRepresentativeGetPayload = $Result.GetResult type CustomerRepresentativeCountArgs = Omit & { select?: CustomerRepresentativeCountAggregateInputType | true } export interface CustomerRepresentativeDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CustomerRepresentative'], meta: { name: 'CustomerRepresentative' } } /** * Find zero or one CustomerRepresentative that matches the filter. * @param {CustomerRepresentativeFindUniqueArgs} args - Arguments to find a CustomerRepresentative * @example * // Get one CustomerRepresentative * const customerRepresentative = await prisma.customerRepresentative.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CustomerRepresentativeClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one CustomerRepresentative that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CustomerRepresentativeFindUniqueOrThrowArgs} args - Arguments to find a CustomerRepresentative * @example * // Get one CustomerRepresentative * const customerRepresentative = await prisma.customerRepresentative.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CustomerRepresentativeClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first CustomerRepresentative 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 {CustomerRepresentativeFindFirstArgs} args - Arguments to find a CustomerRepresentative * @example * // Get one CustomerRepresentative * const customerRepresentative = await prisma.customerRepresentative.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CustomerRepresentativeClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first CustomerRepresentative 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 {CustomerRepresentativeFindFirstOrThrowArgs} args - Arguments to find a CustomerRepresentative * @example * // Get one CustomerRepresentative * const customerRepresentative = await prisma.customerRepresentative.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CustomerRepresentativeClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more CustomerRepresentatives 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 {CustomerRepresentativeFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CustomerRepresentatives * const customerRepresentatives = await prisma.customerRepresentative.findMany() * * // Get first 10 CustomerRepresentatives * const customerRepresentatives = await prisma.customerRepresentative.findMany({ take: 10 }) * * // Only select the `id` * const customerRepresentativeWithIdOnly = await prisma.customerRepresentative.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a CustomerRepresentative. * @param {CustomerRepresentativeCreateArgs} args - Arguments to create a CustomerRepresentative. * @example * // Create one CustomerRepresentative * const CustomerRepresentative = await prisma.customerRepresentative.create({ * data: { * // ... data to create a CustomerRepresentative * } * }) * */ create(args: SelectSubset>): Prisma__CustomerRepresentativeClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many CustomerRepresentatives. * @param {CustomerRepresentativeCreateManyArgs} args - Arguments to create many CustomerRepresentatives. * @example * // Create many CustomerRepresentatives * const customerRepresentative = await prisma.customerRepresentative.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a CustomerRepresentative. * @param {CustomerRepresentativeDeleteArgs} args - Arguments to delete one CustomerRepresentative. * @example * // Delete one CustomerRepresentative * const CustomerRepresentative = await prisma.customerRepresentative.delete({ * where: { * // ... filter to delete one CustomerRepresentative * } * }) * */ delete(args: SelectSubset>): Prisma__CustomerRepresentativeClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one CustomerRepresentative. * @param {CustomerRepresentativeUpdateArgs} args - Arguments to update one CustomerRepresentative. * @example * // Update one CustomerRepresentative * const customerRepresentative = await prisma.customerRepresentative.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CustomerRepresentativeClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more CustomerRepresentatives. * @param {CustomerRepresentativeDeleteManyArgs} args - Arguments to filter CustomerRepresentatives to delete. * @example * // Delete a few CustomerRepresentatives * const { count } = await prisma.customerRepresentative.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CustomerRepresentatives. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerRepresentativeUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CustomerRepresentatives * const customerRepresentative = await prisma.customerRepresentative.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one CustomerRepresentative. * @param {CustomerRepresentativeUpsertArgs} args - Arguments to update or create a CustomerRepresentative. * @example * // Update or create a CustomerRepresentative * const customerRepresentative = await prisma.customerRepresentative.upsert({ * create: { * // ... data to create a CustomerRepresentative * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CustomerRepresentative we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CustomerRepresentativeClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of CustomerRepresentatives. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerRepresentativeCountArgs} args - Arguments to filter CustomerRepresentatives to count. * @example * // Count the number of CustomerRepresentatives * const count = await prisma.customerRepresentative.count({ * where: { * // ... the filter for the CustomerRepresentatives we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a CustomerRepresentative. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerRepresentativeAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by CustomerRepresentative. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomerRepresentativeGroupByArgs} 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 CustomerRepresentativeGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CustomerRepresentativeGroupByArgs['orderBy'] } : { orderBy?: CustomerRepresentativeGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCustomerRepresentativeGroupByPayload : Prisma.PrismaPromise /** * Fields of the CustomerRepresentative model */ readonly fields: CustomerRepresentativeFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CustomerRepresentative. * 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__CustomerRepresentativeClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> representative = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the CustomerRepresentative model */ interface CustomerRepresentativeFieldRefs { readonly id: FieldRef<"CustomerRepresentative", 'Int'> readonly customerId: FieldRef<"CustomerRepresentative", 'Int'> readonly representativeId: FieldRef<"CustomerRepresentative", 'Int'> readonly notes: FieldRef<"CustomerRepresentative", 'String'> readonly isActive: FieldRef<"CustomerRepresentative", 'Boolean'> readonly createdAt: FieldRef<"CustomerRepresentative", 'DateTime'> readonly updatedAt: FieldRef<"CustomerRepresentative", 'DateTime'> } // Custom InputTypes /** * CustomerRepresentative findUnique */ export type CustomerRepresentativeFindUniqueArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * Filter, which CustomerRepresentative to fetch. */ where: CustomerRepresentativeWhereUniqueInput } /** * CustomerRepresentative findUniqueOrThrow */ export type CustomerRepresentativeFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * Filter, which CustomerRepresentative to fetch. */ where: CustomerRepresentativeWhereUniqueInput } /** * CustomerRepresentative findFirst */ export type CustomerRepresentativeFindFirstArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * Filter, which CustomerRepresentative to fetch. */ where?: CustomerRepresentativeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CustomerRepresentatives to fetch. */ orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CustomerRepresentatives. */ cursor?: CustomerRepresentativeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CustomerRepresentatives 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` CustomerRepresentatives. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CustomerRepresentatives. */ distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[] } /** * CustomerRepresentative findFirstOrThrow */ export type CustomerRepresentativeFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * Filter, which CustomerRepresentative to fetch. */ where?: CustomerRepresentativeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CustomerRepresentatives to fetch. */ orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CustomerRepresentatives. */ cursor?: CustomerRepresentativeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CustomerRepresentatives 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` CustomerRepresentatives. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CustomerRepresentatives. */ distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[] } /** * CustomerRepresentative findMany */ export type CustomerRepresentativeFindManyArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * Filter, which CustomerRepresentatives to fetch. */ where?: CustomerRepresentativeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CustomerRepresentatives to fetch. */ orderBy?: CustomerRepresentativeOrderByWithRelationInput | CustomerRepresentativeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CustomerRepresentatives. */ cursor?: CustomerRepresentativeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CustomerRepresentatives 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` CustomerRepresentatives. */ skip?: number distinct?: CustomerRepresentativeScalarFieldEnum | CustomerRepresentativeScalarFieldEnum[] } /** * CustomerRepresentative create */ export type CustomerRepresentativeCreateArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * The data needed to create a CustomerRepresentative. */ data: XOR } /** * CustomerRepresentative createMany */ export type CustomerRepresentativeCreateManyArgs = { /** * The data used to create many CustomerRepresentatives. */ data: CustomerRepresentativeCreateManyInput | CustomerRepresentativeCreateManyInput[] skipDuplicates?: boolean } /** * CustomerRepresentative update */ export type CustomerRepresentativeUpdateArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * The data needed to update a CustomerRepresentative. */ data: XOR /** * Choose, which CustomerRepresentative to update. */ where: CustomerRepresentativeWhereUniqueInput } /** * CustomerRepresentative updateMany */ export type CustomerRepresentativeUpdateManyArgs = { /** * The data used to update CustomerRepresentatives. */ data: XOR /** * Filter which CustomerRepresentatives to update */ where?: CustomerRepresentativeWhereInput } /** * CustomerRepresentative upsert */ export type CustomerRepresentativeUpsertArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * The filter to search for the CustomerRepresentative to update in case it exists. */ where: CustomerRepresentativeWhereUniqueInput /** * In case the CustomerRepresentative found by the `where` argument doesn't exist, create a new CustomerRepresentative with this data. */ create: XOR /** * In case the CustomerRepresentative was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CustomerRepresentative delete */ export type CustomerRepresentativeDeleteArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null /** * Filter which CustomerRepresentative to delete. */ where: CustomerRepresentativeWhereUniqueInput } /** * CustomerRepresentative deleteMany */ export type CustomerRepresentativeDeleteManyArgs = { /** * Filter which CustomerRepresentatives to delete */ where?: CustomerRepresentativeWhereInput } /** * CustomerRepresentative without action */ export type CustomerRepresentativeDefaultArgs = { /** * Select specific fields to fetch from the CustomerRepresentative */ select?: CustomerRepresentativeSelect | null /** * Choose, which related nodes to fetch as well */ include?: CustomerRepresentativeInclude | null } /** * Model Address */ export type AggregateAddress = { _count: AddressCountAggregateOutputType | null _avg: AddressAvgAggregateOutputType | null _sum: AddressSumAggregateOutputType | null _min: AddressMinAggregateOutputType | null _max: AddressMaxAggregateOutputType | null } export type AddressAvgAggregateOutputType = { id: number | null customerId: number | null } export type AddressSumAggregateOutputType = { id: number | null customerId: number | null } export type AddressMinAggregateOutputType = { id: number | null customerId: number | null type: $Enums.AddressType | null street: string | null houseNumber: string | null postalCode: string | null city: string | null country: string | null isDefault: boolean | null createdAt: Date | null updatedAt: Date | null } export type AddressMaxAggregateOutputType = { id: number | null customerId: number | null type: $Enums.AddressType | null street: string | null houseNumber: string | null postalCode: string | null city: string | null country: string | null isDefault: boolean | null createdAt: Date | null updatedAt: Date | null } export type AddressCountAggregateOutputType = { id: number customerId: number type: number street: number houseNumber: number postalCode: number city: number country: number isDefault: number createdAt: number updatedAt: number _all: number } export type AddressAvgAggregateInputType = { id?: true customerId?: true } export type AddressSumAggregateInputType = { id?: true customerId?: true } export type AddressMinAggregateInputType = { id?: true customerId?: true type?: true street?: true houseNumber?: true postalCode?: true city?: true country?: true isDefault?: true createdAt?: true updatedAt?: true } export type AddressMaxAggregateInputType = { id?: true customerId?: true type?: true street?: true houseNumber?: true postalCode?: true city?: true country?: true isDefault?: true createdAt?: true updatedAt?: true } export type AddressCountAggregateInputType = { id?: true customerId?: true type?: true street?: true houseNumber?: true postalCode?: true city?: true country?: true isDefault?: true createdAt?: true updatedAt?: true _all?: true } export type AddressAggregateArgs = { /** * Filter which Address to aggregate. */ where?: AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Addresses **/ _count?: true | AddressCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AddressAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AddressSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AddressMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AddressMaxAggregateInputType } export type GetAddressAggregateType = { [P in keyof T & keyof AggregateAddress]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AddressGroupByArgs = { where?: AddressWhereInput orderBy?: AddressOrderByWithAggregationInput | AddressOrderByWithAggregationInput[] by: AddressScalarFieldEnum[] | AddressScalarFieldEnum having?: AddressScalarWhereWithAggregatesInput take?: number skip?: number _count?: AddressCountAggregateInputType | true _avg?: AddressAvgAggregateInputType _sum?: AddressSumAggregateInputType _min?: AddressMinAggregateInputType _max?: AddressMaxAggregateInputType } export type AddressGroupByOutputType = { id: number customerId: number type: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country: string isDefault: boolean createdAt: Date updatedAt: Date _count: AddressCountAggregateOutputType | null _avg: AddressAvgAggregateOutputType | null _sum: AddressSumAggregateOutputType | null _min: AddressMinAggregateOutputType | null _max: AddressMaxAggregateOutputType | null } type GetAddressGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AddressGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AddressSelect = $Extensions.GetSelect<{ id?: boolean customerId?: boolean type?: boolean street?: boolean houseNumber?: boolean postalCode?: boolean city?: boolean country?: boolean isDefault?: boolean createdAt?: boolean updatedAt?: boolean customer?: boolean | CustomerDefaultArgs contractsAsDelivery?: boolean | Address$contractsAsDeliveryArgs contractsAsBilling?: boolean | Address$contractsAsBillingArgs _count?: boolean | AddressCountOutputTypeDefaultArgs }, ExtArgs["result"]["address"]> export type AddressSelectScalar = { id?: boolean customerId?: boolean type?: boolean street?: boolean houseNumber?: boolean postalCode?: boolean city?: boolean country?: boolean isDefault?: boolean createdAt?: boolean updatedAt?: boolean } export type AddressInclude = { customer?: boolean | CustomerDefaultArgs contractsAsDelivery?: boolean | Address$contractsAsDeliveryArgs contractsAsBilling?: boolean | Address$contractsAsBillingArgs _count?: boolean | AddressCountOutputTypeDefaultArgs } export type $AddressPayload = { name: "Address" objects: { customer: Prisma.$CustomerPayload contractsAsDelivery: Prisma.$ContractPayload[] contractsAsBilling: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number customerId: number type: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country: string isDefault: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["address"]> composites: {} } type AddressGetPayload = $Result.GetResult type AddressCountArgs = Omit & { select?: AddressCountAggregateInputType | true } export interface AddressDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Address'], meta: { name: 'Address' } } /** * Find zero or one Address that matches the filter. * @param {AddressFindUniqueArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Address that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AddressFindUniqueOrThrowArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Address 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 {AddressFindFirstArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Address 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 {AddressFindFirstOrThrowArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Addresses 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 {AddressFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Addresses * const addresses = await prisma.address.findMany() * * // Get first 10 Addresses * const addresses = await prisma.address.findMany({ take: 10 }) * * // Only select the `id` * const addressWithIdOnly = await prisma.address.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Address. * @param {AddressCreateArgs} args - Arguments to create a Address. * @example * // Create one Address * const Address = await prisma.address.create({ * data: { * // ... data to create a Address * } * }) * */ create(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Addresses. * @param {AddressCreateManyArgs} args - Arguments to create many Addresses. * @example * // Create many Addresses * const address = await prisma.address.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Address. * @param {AddressDeleteArgs} args - Arguments to delete one Address. * @example * // Delete one Address * const Address = await prisma.address.delete({ * where: { * // ... filter to delete one Address * } * }) * */ delete(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Address. * @param {AddressUpdateArgs} args - Arguments to update one Address. * @example * // Update one Address * const address = await prisma.address.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Addresses. * @param {AddressDeleteManyArgs} args - Arguments to filter Addresses to delete. * @example * // Delete a few Addresses * const { count } = await prisma.address.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Addresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Addresses * const address = await prisma.address.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Address. * @param {AddressUpsertArgs} args - Arguments to update or create a Address. * @example * // Update or create a Address * const address = await prisma.address.upsert({ * create: { * // ... data to create a Address * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Address we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AddressClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Addresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressCountArgs} args - Arguments to filter Addresses to count. * @example * // Count the number of Addresses * const count = await prisma.address.count({ * where: { * // ... the filter for the Addresses we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Address. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Address. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressGroupByArgs} 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 AddressGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AddressGroupByArgs['orderBy'] } : { orderBy?: AddressGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAddressGroupByPayload : Prisma.PrismaPromise /** * Fields of the Address model */ readonly fields: AddressFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Address. * 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__AddressClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> contractsAsDelivery = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> contractsAsBilling = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Address model */ interface AddressFieldRefs { readonly id: FieldRef<"Address", 'Int'> readonly customerId: FieldRef<"Address", 'Int'> readonly type: FieldRef<"Address", 'AddressType'> readonly street: FieldRef<"Address", 'String'> readonly houseNumber: FieldRef<"Address", 'String'> readonly postalCode: FieldRef<"Address", 'String'> readonly city: FieldRef<"Address", 'String'> readonly country: FieldRef<"Address", 'String'> readonly isDefault: FieldRef<"Address", 'Boolean'> readonly createdAt: FieldRef<"Address", 'DateTime'> readonly updatedAt: FieldRef<"Address", 'DateTime'> } // Custom InputTypes /** * Address findUnique */ export type AddressFindUniqueArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * Filter, which Address to fetch. */ where: AddressWhereUniqueInput } /** * Address findUniqueOrThrow */ export type AddressFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * Filter, which Address to fetch. */ where: AddressWhereUniqueInput } /** * Address findFirst */ export type AddressFindFirstArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * Filter, which Address to fetch. */ where?: AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Addresses. */ cursor?: AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Addresses. */ distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[] } /** * Address findFirstOrThrow */ export type AddressFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * Filter, which Address to fetch. */ where?: AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Addresses. */ cursor?: AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Addresses. */ distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[] } /** * Address findMany */ export type AddressFindManyArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * Filter, which Addresses to fetch. */ where?: AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: AddressOrderByWithRelationInput | AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Addresses. */ cursor?: AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number distinct?: AddressScalarFieldEnum | AddressScalarFieldEnum[] } /** * Address create */ export type AddressCreateArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * The data needed to create a Address. */ data: XOR } /** * Address createMany */ export type AddressCreateManyArgs = { /** * The data used to create many Addresses. */ data: AddressCreateManyInput | AddressCreateManyInput[] skipDuplicates?: boolean } /** * Address update */ export type AddressUpdateArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * The data needed to update a Address. */ data: XOR /** * Choose, which Address to update. */ where: AddressWhereUniqueInput } /** * Address updateMany */ export type AddressUpdateManyArgs = { /** * The data used to update Addresses. */ data: XOR /** * Filter which Addresses to update */ where?: AddressWhereInput } /** * Address upsert */ export type AddressUpsertArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * The filter to search for the Address to update in case it exists. */ where: AddressWhereUniqueInput /** * In case the Address found by the `where` argument doesn't exist, create a new Address with this data. */ create: XOR /** * In case the Address was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Address delete */ export type AddressDeleteArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null /** * Filter which Address to delete. */ where: AddressWhereUniqueInput } /** * Address deleteMany */ export type AddressDeleteManyArgs = { /** * Filter which Addresses to delete */ where?: AddressWhereInput } /** * Address.contractsAsDelivery */ export type Address$contractsAsDeliveryArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * Address.contractsAsBilling */ export type Address$contractsAsBillingArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * Address without action */ export type AddressDefaultArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null } /** * Model BankCard */ export type AggregateBankCard = { _count: BankCardCountAggregateOutputType | null _avg: BankCardAvgAggregateOutputType | null _sum: BankCardSumAggregateOutputType | null _min: BankCardMinAggregateOutputType | null _max: BankCardMaxAggregateOutputType | null } export type BankCardAvgAggregateOutputType = { id: number | null customerId: number | null } export type BankCardSumAggregateOutputType = { id: number | null customerId: number | null } export type BankCardMinAggregateOutputType = { id: number | null customerId: number | null accountHolder: string | null iban: string | null bic: string | null bankName: string | null expiryDate: Date | null documentPath: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type BankCardMaxAggregateOutputType = { id: number | null customerId: number | null accountHolder: string | null iban: string | null bic: string | null bankName: string | null expiryDate: Date | null documentPath: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type BankCardCountAggregateOutputType = { id: number customerId: number accountHolder: number iban: number bic: number bankName: number expiryDate: number documentPath: number isActive: number createdAt: number updatedAt: number _all: number } export type BankCardAvgAggregateInputType = { id?: true customerId?: true } export type BankCardSumAggregateInputType = { id?: true customerId?: true } export type BankCardMinAggregateInputType = { id?: true customerId?: true accountHolder?: true iban?: true bic?: true bankName?: true expiryDate?: true documentPath?: true isActive?: true createdAt?: true updatedAt?: true } export type BankCardMaxAggregateInputType = { id?: true customerId?: true accountHolder?: true iban?: true bic?: true bankName?: true expiryDate?: true documentPath?: true isActive?: true createdAt?: true updatedAt?: true } export type BankCardCountAggregateInputType = { id?: true customerId?: true accountHolder?: true iban?: true bic?: true bankName?: true expiryDate?: true documentPath?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type BankCardAggregateArgs = { /** * Filter which BankCard to aggregate. */ where?: BankCardWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BankCards to fetch. */ orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: BankCardWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BankCards 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` BankCards. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned BankCards **/ _count?: true | BankCardCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: BankCardAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: BankCardSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: BankCardMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: BankCardMaxAggregateInputType } export type GetBankCardAggregateType = { [P in keyof T & keyof AggregateBankCard]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type BankCardGroupByArgs = { where?: BankCardWhereInput orderBy?: BankCardOrderByWithAggregationInput | BankCardOrderByWithAggregationInput[] by: BankCardScalarFieldEnum[] | BankCardScalarFieldEnum having?: BankCardScalarWhereWithAggregatesInput take?: number skip?: number _count?: BankCardCountAggregateInputType | true _avg?: BankCardAvgAggregateInputType _sum?: BankCardSumAggregateInputType _min?: BankCardMinAggregateInputType _max?: BankCardMaxAggregateInputType } export type BankCardGroupByOutputType = { id: number customerId: number accountHolder: string iban: string bic: string | null bankName: string | null expiryDate: Date | null documentPath: string | null isActive: boolean createdAt: Date updatedAt: Date _count: BankCardCountAggregateOutputType | null _avg: BankCardAvgAggregateOutputType | null _sum: BankCardSumAggregateOutputType | null _min: BankCardMinAggregateOutputType | null _max: BankCardMaxAggregateOutputType | null } type GetBankCardGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof BankCardGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type BankCardSelect = $Extensions.GetSelect<{ id?: boolean customerId?: boolean accountHolder?: boolean iban?: boolean bic?: boolean bankName?: boolean expiryDate?: boolean documentPath?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean customer?: boolean | CustomerDefaultArgs contracts?: boolean | BankCard$contractsArgs _count?: boolean | BankCardCountOutputTypeDefaultArgs }, ExtArgs["result"]["bankCard"]> export type BankCardSelectScalar = { id?: boolean customerId?: boolean accountHolder?: boolean iban?: boolean bic?: boolean bankName?: boolean expiryDate?: boolean documentPath?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type BankCardInclude = { customer?: boolean | CustomerDefaultArgs contracts?: boolean | BankCard$contractsArgs _count?: boolean | BankCardCountOutputTypeDefaultArgs } export type $BankCardPayload = { name: "BankCard" objects: { customer: Prisma.$CustomerPayload contracts: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number customerId: number accountHolder: string iban: string bic: string | null bankName: string | null expiryDate: Date | null documentPath: string | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["bankCard"]> composites: {} } type BankCardGetPayload = $Result.GetResult type BankCardCountArgs = Omit & { select?: BankCardCountAggregateInputType | true } export interface BankCardDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['BankCard'], meta: { name: 'BankCard' } } /** * Find zero or one BankCard that matches the filter. * @param {BankCardFindUniqueArgs} args - Arguments to find a BankCard * @example * // Get one BankCard * const bankCard = await prisma.bankCard.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__BankCardClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one BankCard that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {BankCardFindUniqueOrThrowArgs} args - Arguments to find a BankCard * @example * // Get one BankCard * const bankCard = await prisma.bankCard.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__BankCardClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first BankCard 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 {BankCardFindFirstArgs} args - Arguments to find a BankCard * @example * // Get one BankCard * const bankCard = await prisma.bankCard.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__BankCardClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first BankCard 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 {BankCardFindFirstOrThrowArgs} args - Arguments to find a BankCard * @example * // Get one BankCard * const bankCard = await prisma.bankCard.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__BankCardClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more BankCards 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 {BankCardFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all BankCards * const bankCards = await prisma.bankCard.findMany() * * // Get first 10 BankCards * const bankCards = await prisma.bankCard.findMany({ take: 10 }) * * // Only select the `id` * const bankCardWithIdOnly = await prisma.bankCard.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a BankCard. * @param {BankCardCreateArgs} args - Arguments to create a BankCard. * @example * // Create one BankCard * const BankCard = await prisma.bankCard.create({ * data: { * // ... data to create a BankCard * } * }) * */ create(args: SelectSubset>): Prisma__BankCardClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many BankCards. * @param {BankCardCreateManyArgs} args - Arguments to create many BankCards. * @example * // Create many BankCards * const bankCard = await prisma.bankCard.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a BankCard. * @param {BankCardDeleteArgs} args - Arguments to delete one BankCard. * @example * // Delete one BankCard * const BankCard = await prisma.bankCard.delete({ * where: { * // ... filter to delete one BankCard * } * }) * */ delete(args: SelectSubset>): Prisma__BankCardClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one BankCard. * @param {BankCardUpdateArgs} args - Arguments to update one BankCard. * @example * // Update one BankCard * const bankCard = await prisma.bankCard.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__BankCardClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more BankCards. * @param {BankCardDeleteManyArgs} args - Arguments to filter BankCards to delete. * @example * // Delete a few BankCards * const { count } = await prisma.bankCard.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BankCards. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BankCardUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many BankCards * const bankCard = await prisma.bankCard.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one BankCard. * @param {BankCardUpsertArgs} args - Arguments to update or create a BankCard. * @example * // Update or create a BankCard * const bankCard = await prisma.bankCard.upsert({ * create: { * // ... data to create a BankCard * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the BankCard we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__BankCardClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of BankCards. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BankCardCountArgs} args - Arguments to filter BankCards to count. * @example * // Count the number of BankCards * const count = await prisma.bankCard.count({ * where: { * // ... the filter for the BankCards we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a BankCard. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BankCardAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by BankCard. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BankCardGroupByArgs} 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 BankCardGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: BankCardGroupByArgs['orderBy'] } : { orderBy?: BankCardGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetBankCardGroupByPayload : Prisma.PrismaPromise /** * Fields of the BankCard model */ readonly fields: BankCardFieldRefs; } /** * The delegate class that acts as a "Promise-like" for BankCard. * 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__BankCardClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the BankCard model */ interface BankCardFieldRefs { readonly id: FieldRef<"BankCard", 'Int'> readonly customerId: FieldRef<"BankCard", 'Int'> readonly accountHolder: FieldRef<"BankCard", 'String'> readonly iban: FieldRef<"BankCard", 'String'> readonly bic: FieldRef<"BankCard", 'String'> readonly bankName: FieldRef<"BankCard", 'String'> readonly expiryDate: FieldRef<"BankCard", 'DateTime'> readonly documentPath: FieldRef<"BankCard", 'String'> readonly isActive: FieldRef<"BankCard", 'Boolean'> readonly createdAt: FieldRef<"BankCard", 'DateTime'> readonly updatedAt: FieldRef<"BankCard", 'DateTime'> } // Custom InputTypes /** * BankCard findUnique */ export type BankCardFindUniqueArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * Filter, which BankCard to fetch. */ where: BankCardWhereUniqueInput } /** * BankCard findUniqueOrThrow */ export type BankCardFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * Filter, which BankCard to fetch. */ where: BankCardWhereUniqueInput } /** * BankCard findFirst */ export type BankCardFindFirstArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * Filter, which BankCard to fetch. */ where?: BankCardWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BankCards to fetch. */ orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BankCards. */ cursor?: BankCardWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BankCards 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` BankCards. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BankCards. */ distinct?: BankCardScalarFieldEnum | BankCardScalarFieldEnum[] } /** * BankCard findFirstOrThrow */ export type BankCardFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * Filter, which BankCard to fetch. */ where?: BankCardWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BankCards to fetch. */ orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BankCards. */ cursor?: BankCardWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BankCards 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` BankCards. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BankCards. */ distinct?: BankCardScalarFieldEnum | BankCardScalarFieldEnum[] } /** * BankCard findMany */ export type BankCardFindManyArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * Filter, which BankCards to fetch. */ where?: BankCardWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BankCards to fetch. */ orderBy?: BankCardOrderByWithRelationInput | BankCardOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing BankCards. */ cursor?: BankCardWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BankCards 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` BankCards. */ skip?: number distinct?: BankCardScalarFieldEnum | BankCardScalarFieldEnum[] } /** * BankCard create */ export type BankCardCreateArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * The data needed to create a BankCard. */ data: XOR } /** * BankCard createMany */ export type BankCardCreateManyArgs = { /** * The data used to create many BankCards. */ data: BankCardCreateManyInput | BankCardCreateManyInput[] skipDuplicates?: boolean } /** * BankCard update */ export type BankCardUpdateArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * The data needed to update a BankCard. */ data: XOR /** * Choose, which BankCard to update. */ where: BankCardWhereUniqueInput } /** * BankCard updateMany */ export type BankCardUpdateManyArgs = { /** * The data used to update BankCards. */ data: XOR /** * Filter which BankCards to update */ where?: BankCardWhereInput } /** * BankCard upsert */ export type BankCardUpsertArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * The filter to search for the BankCard to update in case it exists. */ where: BankCardWhereUniqueInput /** * In case the BankCard found by the `where` argument doesn't exist, create a new BankCard with this data. */ create: XOR /** * In case the BankCard was found with the provided `where` argument, update it with this data. */ update: XOR } /** * BankCard delete */ export type BankCardDeleteArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null /** * Filter which BankCard to delete. */ where: BankCardWhereUniqueInput } /** * BankCard deleteMany */ export type BankCardDeleteManyArgs = { /** * Filter which BankCards to delete */ where?: BankCardWhereInput } /** * BankCard.contracts */ export type BankCard$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * BankCard without action */ export type BankCardDefaultArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null } /** * Model IdentityDocument */ export type AggregateIdentityDocument = { _count: IdentityDocumentCountAggregateOutputType | null _avg: IdentityDocumentAvgAggregateOutputType | null _sum: IdentityDocumentSumAggregateOutputType | null _min: IdentityDocumentMinAggregateOutputType | null _max: IdentityDocumentMaxAggregateOutputType | null } export type IdentityDocumentAvgAggregateOutputType = { id: number | null customerId: number | null } export type IdentityDocumentSumAggregateOutputType = { id: number | null customerId: number | null } export type IdentityDocumentMinAggregateOutputType = { id: number | null customerId: number | null type: $Enums.DocumentType | null documentNumber: string | null issuingAuthority: string | null issueDate: Date | null expiryDate: Date | null documentPath: string | null isActive: boolean | null licenseClasses: string | null licenseIssueDate: Date | null createdAt: Date | null updatedAt: Date | null } export type IdentityDocumentMaxAggregateOutputType = { id: number | null customerId: number | null type: $Enums.DocumentType | null documentNumber: string | null issuingAuthority: string | null issueDate: Date | null expiryDate: Date | null documentPath: string | null isActive: boolean | null licenseClasses: string | null licenseIssueDate: Date | null createdAt: Date | null updatedAt: Date | null } export type IdentityDocumentCountAggregateOutputType = { id: number customerId: number type: number documentNumber: number issuingAuthority: number issueDate: number expiryDate: number documentPath: number isActive: number licenseClasses: number licenseIssueDate: number createdAt: number updatedAt: number _all: number } export type IdentityDocumentAvgAggregateInputType = { id?: true customerId?: true } export type IdentityDocumentSumAggregateInputType = { id?: true customerId?: true } export type IdentityDocumentMinAggregateInputType = { id?: true customerId?: true type?: true documentNumber?: true issuingAuthority?: true issueDate?: true expiryDate?: true documentPath?: true isActive?: true licenseClasses?: true licenseIssueDate?: true createdAt?: true updatedAt?: true } export type IdentityDocumentMaxAggregateInputType = { id?: true customerId?: true type?: true documentNumber?: true issuingAuthority?: true issueDate?: true expiryDate?: true documentPath?: true isActive?: true licenseClasses?: true licenseIssueDate?: true createdAt?: true updatedAt?: true } export type IdentityDocumentCountAggregateInputType = { id?: true customerId?: true type?: true documentNumber?: true issuingAuthority?: true issueDate?: true expiryDate?: true documentPath?: true isActive?: true licenseClasses?: true licenseIssueDate?: true createdAt?: true updatedAt?: true _all?: true } export type IdentityDocumentAggregateArgs = { /** * Filter which IdentityDocument to aggregate. */ where?: IdentityDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IdentityDocuments to fetch. */ orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: IdentityDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IdentityDocuments 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` IdentityDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned IdentityDocuments **/ _count?: true | IdentityDocumentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: IdentityDocumentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: IdentityDocumentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: IdentityDocumentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: IdentityDocumentMaxAggregateInputType } export type GetIdentityDocumentAggregateType = { [P in keyof T & keyof AggregateIdentityDocument]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type IdentityDocumentGroupByArgs = { where?: IdentityDocumentWhereInput orderBy?: IdentityDocumentOrderByWithAggregationInput | IdentityDocumentOrderByWithAggregationInput[] by: IdentityDocumentScalarFieldEnum[] | IdentityDocumentScalarFieldEnum having?: IdentityDocumentScalarWhereWithAggregatesInput take?: number skip?: number _count?: IdentityDocumentCountAggregateInputType | true _avg?: IdentityDocumentAvgAggregateInputType _sum?: IdentityDocumentSumAggregateInputType _min?: IdentityDocumentMinAggregateInputType _max?: IdentityDocumentMaxAggregateInputType } export type IdentityDocumentGroupByOutputType = { id: number customerId: number type: $Enums.DocumentType documentNumber: string issuingAuthority: string | null issueDate: Date | null expiryDate: Date | null documentPath: string | null isActive: boolean licenseClasses: string | null licenseIssueDate: Date | null createdAt: Date updatedAt: Date _count: IdentityDocumentCountAggregateOutputType | null _avg: IdentityDocumentAvgAggregateOutputType | null _sum: IdentityDocumentSumAggregateOutputType | null _min: IdentityDocumentMinAggregateOutputType | null _max: IdentityDocumentMaxAggregateOutputType | null } type GetIdentityDocumentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof IdentityDocumentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type IdentityDocumentSelect = $Extensions.GetSelect<{ id?: boolean customerId?: boolean type?: boolean documentNumber?: boolean issuingAuthority?: boolean issueDate?: boolean expiryDate?: boolean documentPath?: boolean isActive?: boolean licenseClasses?: boolean licenseIssueDate?: boolean createdAt?: boolean updatedAt?: boolean customer?: boolean | CustomerDefaultArgs contracts?: boolean | IdentityDocument$contractsArgs _count?: boolean | IdentityDocumentCountOutputTypeDefaultArgs }, ExtArgs["result"]["identityDocument"]> export type IdentityDocumentSelectScalar = { id?: boolean customerId?: boolean type?: boolean documentNumber?: boolean issuingAuthority?: boolean issueDate?: boolean expiryDate?: boolean documentPath?: boolean isActive?: boolean licenseClasses?: boolean licenseIssueDate?: boolean createdAt?: boolean updatedAt?: boolean } export type IdentityDocumentInclude = { customer?: boolean | CustomerDefaultArgs contracts?: boolean | IdentityDocument$contractsArgs _count?: boolean | IdentityDocumentCountOutputTypeDefaultArgs } export type $IdentityDocumentPayload = { name: "IdentityDocument" objects: { customer: Prisma.$CustomerPayload contracts: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number customerId: number type: $Enums.DocumentType documentNumber: string issuingAuthority: string | null issueDate: Date | null expiryDate: Date | null documentPath: string | null isActive: boolean licenseClasses: string | null licenseIssueDate: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["identityDocument"]> composites: {} } type IdentityDocumentGetPayload = $Result.GetResult type IdentityDocumentCountArgs = Omit & { select?: IdentityDocumentCountAggregateInputType | true } export interface IdentityDocumentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['IdentityDocument'], meta: { name: 'IdentityDocument' } } /** * Find zero or one IdentityDocument that matches the filter. * @param {IdentityDocumentFindUniqueArgs} args - Arguments to find a IdentityDocument * @example * // Get one IdentityDocument * const identityDocument = await prisma.identityDocument.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one IdentityDocument that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {IdentityDocumentFindUniqueOrThrowArgs} args - Arguments to find a IdentityDocument * @example * // Get one IdentityDocument * const identityDocument = await prisma.identityDocument.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first IdentityDocument 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 {IdentityDocumentFindFirstArgs} args - Arguments to find a IdentityDocument * @example * // Get one IdentityDocument * const identityDocument = await prisma.identityDocument.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first IdentityDocument 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 {IdentityDocumentFindFirstOrThrowArgs} args - Arguments to find a IdentityDocument * @example * // Get one IdentityDocument * const identityDocument = await prisma.identityDocument.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more IdentityDocuments 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 {IdentityDocumentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all IdentityDocuments * const identityDocuments = await prisma.identityDocument.findMany() * * // Get first 10 IdentityDocuments * const identityDocuments = await prisma.identityDocument.findMany({ take: 10 }) * * // Only select the `id` * const identityDocumentWithIdOnly = await prisma.identityDocument.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a IdentityDocument. * @param {IdentityDocumentCreateArgs} args - Arguments to create a IdentityDocument. * @example * // Create one IdentityDocument * const IdentityDocument = await prisma.identityDocument.create({ * data: { * // ... data to create a IdentityDocument * } * }) * */ create(args: SelectSubset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many IdentityDocuments. * @param {IdentityDocumentCreateManyArgs} args - Arguments to create many IdentityDocuments. * @example * // Create many IdentityDocuments * const identityDocument = await prisma.identityDocument.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a IdentityDocument. * @param {IdentityDocumentDeleteArgs} args - Arguments to delete one IdentityDocument. * @example * // Delete one IdentityDocument * const IdentityDocument = await prisma.identityDocument.delete({ * where: { * // ... filter to delete one IdentityDocument * } * }) * */ delete(args: SelectSubset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one IdentityDocument. * @param {IdentityDocumentUpdateArgs} args - Arguments to update one IdentityDocument. * @example * // Update one IdentityDocument * const identityDocument = await prisma.identityDocument.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more IdentityDocuments. * @param {IdentityDocumentDeleteManyArgs} args - Arguments to filter IdentityDocuments to delete. * @example * // Delete a few IdentityDocuments * const { count } = await prisma.identityDocument.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more IdentityDocuments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IdentityDocumentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many IdentityDocuments * const identityDocument = await prisma.identityDocument.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one IdentityDocument. * @param {IdentityDocumentUpsertArgs} args - Arguments to update or create a IdentityDocument. * @example * // Update or create a IdentityDocument * const identityDocument = await prisma.identityDocument.upsert({ * create: { * // ... data to create a IdentityDocument * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the IdentityDocument we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of IdentityDocuments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IdentityDocumentCountArgs} args - Arguments to filter IdentityDocuments to count. * @example * // Count the number of IdentityDocuments * const count = await prisma.identityDocument.count({ * where: { * // ... the filter for the IdentityDocuments we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a IdentityDocument. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IdentityDocumentAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by IdentityDocument. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IdentityDocumentGroupByArgs} 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 IdentityDocumentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: IdentityDocumentGroupByArgs['orderBy'] } : { orderBy?: IdentityDocumentGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetIdentityDocumentGroupByPayload : Prisma.PrismaPromise /** * Fields of the IdentityDocument model */ readonly fields: IdentityDocumentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for IdentityDocument. * 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__IdentityDocumentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the IdentityDocument model */ interface IdentityDocumentFieldRefs { readonly id: FieldRef<"IdentityDocument", 'Int'> readonly customerId: FieldRef<"IdentityDocument", 'Int'> readonly type: FieldRef<"IdentityDocument", 'DocumentType'> readonly documentNumber: FieldRef<"IdentityDocument", 'String'> readonly issuingAuthority: FieldRef<"IdentityDocument", 'String'> readonly issueDate: FieldRef<"IdentityDocument", 'DateTime'> readonly expiryDate: FieldRef<"IdentityDocument", 'DateTime'> readonly documentPath: FieldRef<"IdentityDocument", 'String'> readonly isActive: FieldRef<"IdentityDocument", 'Boolean'> readonly licenseClasses: FieldRef<"IdentityDocument", 'String'> readonly licenseIssueDate: FieldRef<"IdentityDocument", 'DateTime'> readonly createdAt: FieldRef<"IdentityDocument", 'DateTime'> readonly updatedAt: FieldRef<"IdentityDocument", 'DateTime'> } // Custom InputTypes /** * IdentityDocument findUnique */ export type IdentityDocumentFindUniqueArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * Filter, which IdentityDocument to fetch. */ where: IdentityDocumentWhereUniqueInput } /** * IdentityDocument findUniqueOrThrow */ export type IdentityDocumentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * Filter, which IdentityDocument to fetch. */ where: IdentityDocumentWhereUniqueInput } /** * IdentityDocument findFirst */ export type IdentityDocumentFindFirstArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * Filter, which IdentityDocument to fetch. */ where?: IdentityDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IdentityDocuments to fetch. */ orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for IdentityDocuments. */ cursor?: IdentityDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IdentityDocuments 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` IdentityDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IdentityDocuments. */ distinct?: IdentityDocumentScalarFieldEnum | IdentityDocumentScalarFieldEnum[] } /** * IdentityDocument findFirstOrThrow */ export type IdentityDocumentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * Filter, which IdentityDocument to fetch. */ where?: IdentityDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IdentityDocuments to fetch. */ orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for IdentityDocuments. */ cursor?: IdentityDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IdentityDocuments 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` IdentityDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IdentityDocuments. */ distinct?: IdentityDocumentScalarFieldEnum | IdentityDocumentScalarFieldEnum[] } /** * IdentityDocument findMany */ export type IdentityDocumentFindManyArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * Filter, which IdentityDocuments to fetch. */ where?: IdentityDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IdentityDocuments to fetch. */ orderBy?: IdentityDocumentOrderByWithRelationInput | IdentityDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing IdentityDocuments. */ cursor?: IdentityDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IdentityDocuments 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` IdentityDocuments. */ skip?: number distinct?: IdentityDocumentScalarFieldEnum | IdentityDocumentScalarFieldEnum[] } /** * IdentityDocument create */ export type IdentityDocumentCreateArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * The data needed to create a IdentityDocument. */ data: XOR } /** * IdentityDocument createMany */ export type IdentityDocumentCreateManyArgs = { /** * The data used to create many IdentityDocuments. */ data: IdentityDocumentCreateManyInput | IdentityDocumentCreateManyInput[] skipDuplicates?: boolean } /** * IdentityDocument update */ export type IdentityDocumentUpdateArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * The data needed to update a IdentityDocument. */ data: XOR /** * Choose, which IdentityDocument to update. */ where: IdentityDocumentWhereUniqueInput } /** * IdentityDocument updateMany */ export type IdentityDocumentUpdateManyArgs = { /** * The data used to update IdentityDocuments. */ data: XOR /** * Filter which IdentityDocuments to update */ where?: IdentityDocumentWhereInput } /** * IdentityDocument upsert */ export type IdentityDocumentUpsertArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * The filter to search for the IdentityDocument to update in case it exists. */ where: IdentityDocumentWhereUniqueInput /** * In case the IdentityDocument found by the `where` argument doesn't exist, create a new IdentityDocument with this data. */ create: XOR /** * In case the IdentityDocument was found with the provided `where` argument, update it with this data. */ update: XOR } /** * IdentityDocument delete */ export type IdentityDocumentDeleteArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null /** * Filter which IdentityDocument to delete. */ where: IdentityDocumentWhereUniqueInput } /** * IdentityDocument deleteMany */ export type IdentityDocumentDeleteManyArgs = { /** * Filter which IdentityDocuments to delete */ where?: IdentityDocumentWhereInput } /** * IdentityDocument.contracts */ export type IdentityDocument$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * IdentityDocument without action */ export type IdentityDocumentDefaultArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null } /** * Model EmailProviderConfig */ export type AggregateEmailProviderConfig = { _count: EmailProviderConfigCountAggregateOutputType | null _avg: EmailProviderConfigAvgAggregateOutputType | null _sum: EmailProviderConfigSumAggregateOutputType | null _min: EmailProviderConfigMinAggregateOutputType | null _max: EmailProviderConfigMaxAggregateOutputType | null } export type EmailProviderConfigAvgAggregateOutputType = { id: number | null imapPort: number | null smtpPort: number | null } export type EmailProviderConfigSumAggregateOutputType = { id: number | null imapPort: number | null smtpPort: number | null } export type EmailProviderConfigMinAggregateOutputType = { id: number | null name: string | null type: $Enums.EmailProviderType | null apiUrl: string | null apiKey: string | null username: string | null passwordEncrypted: string | null domain: string | null defaultForwardEmail: string | null imapServer: string | null imapPort: number | null smtpServer: string | null smtpPort: number | null imapEncryption: $Enums.MailEncryption | null smtpEncryption: $Enums.MailEncryption | null allowSelfSignedCerts: boolean | null isActive: boolean | null isDefault: boolean | null createdAt: Date | null updatedAt: Date | null } export type EmailProviderConfigMaxAggregateOutputType = { id: number | null name: string | null type: $Enums.EmailProviderType | null apiUrl: string | null apiKey: string | null username: string | null passwordEncrypted: string | null domain: string | null defaultForwardEmail: string | null imapServer: string | null imapPort: number | null smtpServer: string | null smtpPort: number | null imapEncryption: $Enums.MailEncryption | null smtpEncryption: $Enums.MailEncryption | null allowSelfSignedCerts: boolean | null isActive: boolean | null isDefault: boolean | null createdAt: Date | null updatedAt: Date | null } export type EmailProviderConfigCountAggregateOutputType = { id: number name: number type: number apiUrl: number apiKey: number username: number passwordEncrypted: number domain: number defaultForwardEmail: number imapServer: number imapPort: number smtpServer: number smtpPort: number imapEncryption: number smtpEncryption: number allowSelfSignedCerts: number isActive: number isDefault: number createdAt: number updatedAt: number _all: number } export type EmailProviderConfigAvgAggregateInputType = { id?: true imapPort?: true smtpPort?: true } export type EmailProviderConfigSumAggregateInputType = { id?: true imapPort?: true smtpPort?: true } export type EmailProviderConfigMinAggregateInputType = { id?: true name?: true type?: true apiUrl?: true apiKey?: true username?: true passwordEncrypted?: true domain?: true defaultForwardEmail?: true imapServer?: true imapPort?: true smtpServer?: true smtpPort?: true imapEncryption?: true smtpEncryption?: true allowSelfSignedCerts?: true isActive?: true isDefault?: true createdAt?: true updatedAt?: true } export type EmailProviderConfigMaxAggregateInputType = { id?: true name?: true type?: true apiUrl?: true apiKey?: true username?: true passwordEncrypted?: true domain?: true defaultForwardEmail?: true imapServer?: true imapPort?: true smtpServer?: true smtpPort?: true imapEncryption?: true smtpEncryption?: true allowSelfSignedCerts?: true isActive?: true isDefault?: true createdAt?: true updatedAt?: true } export type EmailProviderConfigCountAggregateInputType = { id?: true name?: true type?: true apiUrl?: true apiKey?: true username?: true passwordEncrypted?: true domain?: true defaultForwardEmail?: true imapServer?: true imapPort?: true smtpServer?: true smtpPort?: true imapEncryption?: true smtpEncryption?: true allowSelfSignedCerts?: true isActive?: true isDefault?: true createdAt?: true updatedAt?: true _all?: true } export type EmailProviderConfigAggregateArgs = { /** * Filter which EmailProviderConfig to aggregate. */ where?: EmailProviderConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailProviderConfigs to fetch. */ orderBy?: EmailProviderConfigOrderByWithRelationInput | EmailProviderConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EmailProviderConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailProviderConfigs 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` EmailProviderConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EmailProviderConfigs **/ _count?: true | EmailProviderConfigCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EmailProviderConfigAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EmailProviderConfigSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmailProviderConfigMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmailProviderConfigMaxAggregateInputType } export type GetEmailProviderConfigAggregateType = { [P in keyof T & keyof AggregateEmailProviderConfig]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EmailProviderConfigGroupByArgs = { where?: EmailProviderConfigWhereInput orderBy?: EmailProviderConfigOrderByWithAggregationInput | EmailProviderConfigOrderByWithAggregationInput[] by: EmailProviderConfigScalarFieldEnum[] | EmailProviderConfigScalarFieldEnum having?: EmailProviderConfigScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmailProviderConfigCountAggregateInputType | true _avg?: EmailProviderConfigAvgAggregateInputType _sum?: EmailProviderConfigSumAggregateInputType _min?: EmailProviderConfigMinAggregateInputType _max?: EmailProviderConfigMaxAggregateInputType } export type EmailProviderConfigGroupByOutputType = { id: number name: string type: $Enums.EmailProviderType apiUrl: string apiKey: string | null username: string | null passwordEncrypted: string | null domain: string defaultForwardEmail: string | null imapServer: string | null imapPort: number | null smtpServer: string | null smtpPort: number | null imapEncryption: $Enums.MailEncryption smtpEncryption: $Enums.MailEncryption allowSelfSignedCerts: boolean isActive: boolean isDefault: boolean createdAt: Date updatedAt: Date _count: EmailProviderConfigCountAggregateOutputType | null _avg: EmailProviderConfigAvgAggregateOutputType | null _sum: EmailProviderConfigSumAggregateOutputType | null _min: EmailProviderConfigMinAggregateOutputType | null _max: EmailProviderConfigMaxAggregateOutputType | null } type GetEmailProviderConfigGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EmailProviderConfigGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EmailProviderConfigSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean type?: boolean apiUrl?: boolean apiKey?: boolean username?: boolean passwordEncrypted?: boolean domain?: boolean defaultForwardEmail?: boolean imapServer?: boolean imapPort?: boolean smtpServer?: boolean smtpPort?: boolean imapEncryption?: boolean smtpEncryption?: boolean allowSelfSignedCerts?: boolean isActive?: boolean isDefault?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["emailProviderConfig"]> export type EmailProviderConfigSelectScalar = { id?: boolean name?: boolean type?: boolean apiUrl?: boolean apiKey?: boolean username?: boolean passwordEncrypted?: boolean domain?: boolean defaultForwardEmail?: boolean imapServer?: boolean imapPort?: boolean smtpServer?: boolean smtpPort?: boolean imapEncryption?: boolean smtpEncryption?: boolean allowSelfSignedCerts?: boolean isActive?: boolean isDefault?: boolean createdAt?: boolean updatedAt?: boolean } export type $EmailProviderConfigPayload = { name: "EmailProviderConfig" objects: {} scalars: $Extensions.GetPayloadResult<{ id: number name: string type: $Enums.EmailProviderType apiUrl: string apiKey: string | null username: string | null passwordEncrypted: string | null domain: string defaultForwardEmail: string | null imapServer: string | null imapPort: number | null smtpServer: string | null smtpPort: number | null imapEncryption: $Enums.MailEncryption smtpEncryption: $Enums.MailEncryption allowSelfSignedCerts: boolean isActive: boolean isDefault: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["emailProviderConfig"]> composites: {} } type EmailProviderConfigGetPayload = $Result.GetResult type EmailProviderConfigCountArgs = Omit & { select?: EmailProviderConfigCountAggregateInputType | true } export interface EmailProviderConfigDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EmailProviderConfig'], meta: { name: 'EmailProviderConfig' } } /** * Find zero or one EmailProviderConfig that matches the filter. * @param {EmailProviderConfigFindUniqueArgs} args - Arguments to find a EmailProviderConfig * @example * // Get one EmailProviderConfig * const emailProviderConfig = await prisma.emailProviderConfig.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EmailProviderConfigClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one EmailProviderConfig that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmailProviderConfigFindUniqueOrThrowArgs} args - Arguments to find a EmailProviderConfig * @example * // Get one EmailProviderConfig * const emailProviderConfig = await prisma.emailProviderConfig.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EmailProviderConfigClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first EmailProviderConfig 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 {EmailProviderConfigFindFirstArgs} args - Arguments to find a EmailProviderConfig * @example * // Get one EmailProviderConfig * const emailProviderConfig = await prisma.emailProviderConfig.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EmailProviderConfigClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first EmailProviderConfig 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 {EmailProviderConfigFindFirstOrThrowArgs} args - Arguments to find a EmailProviderConfig * @example * // Get one EmailProviderConfig * const emailProviderConfig = await prisma.emailProviderConfig.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EmailProviderConfigClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more EmailProviderConfigs 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 {EmailProviderConfigFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EmailProviderConfigs * const emailProviderConfigs = await prisma.emailProviderConfig.findMany() * * // Get first 10 EmailProviderConfigs * const emailProviderConfigs = await prisma.emailProviderConfig.findMany({ take: 10 }) * * // Only select the `id` * const emailProviderConfigWithIdOnly = await prisma.emailProviderConfig.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a EmailProviderConfig. * @param {EmailProviderConfigCreateArgs} args - Arguments to create a EmailProviderConfig. * @example * // Create one EmailProviderConfig * const EmailProviderConfig = await prisma.emailProviderConfig.create({ * data: { * // ... data to create a EmailProviderConfig * } * }) * */ create(args: SelectSubset>): Prisma__EmailProviderConfigClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many EmailProviderConfigs. * @param {EmailProviderConfigCreateManyArgs} args - Arguments to create many EmailProviderConfigs. * @example * // Create many EmailProviderConfigs * const emailProviderConfig = await prisma.emailProviderConfig.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a EmailProviderConfig. * @param {EmailProviderConfigDeleteArgs} args - Arguments to delete one EmailProviderConfig. * @example * // Delete one EmailProviderConfig * const EmailProviderConfig = await prisma.emailProviderConfig.delete({ * where: { * // ... filter to delete one EmailProviderConfig * } * }) * */ delete(args: SelectSubset>): Prisma__EmailProviderConfigClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one EmailProviderConfig. * @param {EmailProviderConfigUpdateArgs} args - Arguments to update one EmailProviderConfig. * @example * // Update one EmailProviderConfig * const emailProviderConfig = await prisma.emailProviderConfig.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EmailProviderConfigClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more EmailProviderConfigs. * @param {EmailProviderConfigDeleteManyArgs} args - Arguments to filter EmailProviderConfigs to delete. * @example * // Delete a few EmailProviderConfigs * const { count } = await prisma.emailProviderConfig.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailProviderConfigs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailProviderConfigUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EmailProviderConfigs * const emailProviderConfig = await prisma.emailProviderConfig.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one EmailProviderConfig. * @param {EmailProviderConfigUpsertArgs} args - Arguments to update or create a EmailProviderConfig. * @example * // Update or create a EmailProviderConfig * const emailProviderConfig = await prisma.emailProviderConfig.upsert({ * create: { * // ... data to create a EmailProviderConfig * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EmailProviderConfig we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EmailProviderConfigClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of EmailProviderConfigs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailProviderConfigCountArgs} args - Arguments to filter EmailProviderConfigs to count. * @example * // Count the number of EmailProviderConfigs * const count = await prisma.emailProviderConfig.count({ * where: { * // ... the filter for the EmailProviderConfigs we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a EmailProviderConfig. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailProviderConfigAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by EmailProviderConfig. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailProviderConfigGroupByArgs} 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 EmailProviderConfigGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EmailProviderConfigGroupByArgs['orderBy'] } : { orderBy?: EmailProviderConfigGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEmailProviderConfigGroupByPayload : Prisma.PrismaPromise /** * Fields of the EmailProviderConfig model */ readonly fields: EmailProviderConfigFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EmailProviderConfig. * 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__EmailProviderConfigClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EmailProviderConfig model */ interface EmailProviderConfigFieldRefs { readonly id: FieldRef<"EmailProviderConfig", 'Int'> readonly name: FieldRef<"EmailProviderConfig", 'String'> readonly type: FieldRef<"EmailProviderConfig", 'EmailProviderType'> readonly apiUrl: FieldRef<"EmailProviderConfig", 'String'> readonly apiKey: FieldRef<"EmailProviderConfig", 'String'> readonly username: FieldRef<"EmailProviderConfig", 'String'> readonly passwordEncrypted: FieldRef<"EmailProviderConfig", 'String'> readonly domain: FieldRef<"EmailProviderConfig", 'String'> readonly defaultForwardEmail: FieldRef<"EmailProviderConfig", 'String'> readonly imapServer: FieldRef<"EmailProviderConfig", 'String'> readonly imapPort: FieldRef<"EmailProviderConfig", 'Int'> readonly smtpServer: FieldRef<"EmailProviderConfig", 'String'> readonly smtpPort: FieldRef<"EmailProviderConfig", 'Int'> readonly imapEncryption: FieldRef<"EmailProviderConfig", 'MailEncryption'> readonly smtpEncryption: FieldRef<"EmailProviderConfig", 'MailEncryption'> readonly allowSelfSignedCerts: FieldRef<"EmailProviderConfig", 'Boolean'> readonly isActive: FieldRef<"EmailProviderConfig", 'Boolean'> readonly isDefault: FieldRef<"EmailProviderConfig", 'Boolean'> readonly createdAt: FieldRef<"EmailProviderConfig", 'DateTime'> readonly updatedAt: FieldRef<"EmailProviderConfig", 'DateTime'> } // Custom InputTypes /** * EmailProviderConfig findUnique */ export type EmailProviderConfigFindUniqueArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * Filter, which EmailProviderConfig to fetch. */ where: EmailProviderConfigWhereUniqueInput } /** * EmailProviderConfig findUniqueOrThrow */ export type EmailProviderConfigFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * Filter, which EmailProviderConfig to fetch. */ where: EmailProviderConfigWhereUniqueInput } /** * EmailProviderConfig findFirst */ export type EmailProviderConfigFindFirstArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * Filter, which EmailProviderConfig to fetch. */ where?: EmailProviderConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailProviderConfigs to fetch. */ orderBy?: EmailProviderConfigOrderByWithRelationInput | EmailProviderConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailProviderConfigs. */ cursor?: EmailProviderConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailProviderConfigs 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` EmailProviderConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailProviderConfigs. */ distinct?: EmailProviderConfigScalarFieldEnum | EmailProviderConfigScalarFieldEnum[] } /** * EmailProviderConfig findFirstOrThrow */ export type EmailProviderConfigFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * Filter, which EmailProviderConfig to fetch. */ where?: EmailProviderConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailProviderConfigs to fetch. */ orderBy?: EmailProviderConfigOrderByWithRelationInput | EmailProviderConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailProviderConfigs. */ cursor?: EmailProviderConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailProviderConfigs 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` EmailProviderConfigs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailProviderConfigs. */ distinct?: EmailProviderConfigScalarFieldEnum | EmailProviderConfigScalarFieldEnum[] } /** * EmailProviderConfig findMany */ export type EmailProviderConfigFindManyArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * Filter, which EmailProviderConfigs to fetch. */ where?: EmailProviderConfigWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailProviderConfigs to fetch. */ orderBy?: EmailProviderConfigOrderByWithRelationInput | EmailProviderConfigOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EmailProviderConfigs. */ cursor?: EmailProviderConfigWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailProviderConfigs 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` EmailProviderConfigs. */ skip?: number distinct?: EmailProviderConfigScalarFieldEnum | EmailProviderConfigScalarFieldEnum[] } /** * EmailProviderConfig create */ export type EmailProviderConfigCreateArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * The data needed to create a EmailProviderConfig. */ data: XOR } /** * EmailProviderConfig createMany */ export type EmailProviderConfigCreateManyArgs = { /** * The data used to create many EmailProviderConfigs. */ data: EmailProviderConfigCreateManyInput | EmailProviderConfigCreateManyInput[] skipDuplicates?: boolean } /** * EmailProviderConfig update */ export type EmailProviderConfigUpdateArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * The data needed to update a EmailProviderConfig. */ data: XOR /** * Choose, which EmailProviderConfig to update. */ where: EmailProviderConfigWhereUniqueInput } /** * EmailProviderConfig updateMany */ export type EmailProviderConfigUpdateManyArgs = { /** * The data used to update EmailProviderConfigs. */ data: XOR /** * Filter which EmailProviderConfigs to update */ where?: EmailProviderConfigWhereInput } /** * EmailProviderConfig upsert */ export type EmailProviderConfigUpsertArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * The filter to search for the EmailProviderConfig to update in case it exists. */ where: EmailProviderConfigWhereUniqueInput /** * In case the EmailProviderConfig found by the `where` argument doesn't exist, create a new EmailProviderConfig with this data. */ create: XOR /** * In case the EmailProviderConfig was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EmailProviderConfig delete */ export type EmailProviderConfigDeleteArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null /** * Filter which EmailProviderConfig to delete. */ where: EmailProviderConfigWhereUniqueInput } /** * EmailProviderConfig deleteMany */ export type EmailProviderConfigDeleteManyArgs = { /** * Filter which EmailProviderConfigs to delete */ where?: EmailProviderConfigWhereInput } /** * EmailProviderConfig without action */ export type EmailProviderConfigDefaultArgs = { /** * Select specific fields to fetch from the EmailProviderConfig */ select?: EmailProviderConfigSelect | null } /** * Model StressfreiEmail */ export type AggregateStressfreiEmail = { _count: StressfreiEmailCountAggregateOutputType | null _avg: StressfreiEmailAvgAggregateOutputType | null _sum: StressfreiEmailSumAggregateOutputType | null _min: StressfreiEmailMinAggregateOutputType | null _max: StressfreiEmailMaxAggregateOutputType | null } export type StressfreiEmailAvgAggregateOutputType = { id: number | null customerId: number | null } export type StressfreiEmailSumAggregateOutputType = { id: number | null customerId: number | null } export type StressfreiEmailMinAggregateOutputType = { id: number | null customerId: number | null email: string | null platform: string | null notes: string | null isActive: boolean | null isProvisioned: boolean | null provisionedAt: Date | null provisionError: string | null hasMailbox: boolean | null emailPasswordEncrypted: string | null createdAt: Date | null updatedAt: Date | null } export type StressfreiEmailMaxAggregateOutputType = { id: number | null customerId: number | null email: string | null platform: string | null notes: string | null isActive: boolean | null isProvisioned: boolean | null provisionedAt: Date | null provisionError: string | null hasMailbox: boolean | null emailPasswordEncrypted: string | null createdAt: Date | null updatedAt: Date | null } export type StressfreiEmailCountAggregateOutputType = { id: number customerId: number email: number platform: number notes: number isActive: number isProvisioned: number provisionedAt: number provisionError: number hasMailbox: number emailPasswordEncrypted: number createdAt: number updatedAt: number _all: number } export type StressfreiEmailAvgAggregateInputType = { id?: true customerId?: true } export type StressfreiEmailSumAggregateInputType = { id?: true customerId?: true } export type StressfreiEmailMinAggregateInputType = { id?: true customerId?: true email?: true platform?: true notes?: true isActive?: true isProvisioned?: true provisionedAt?: true provisionError?: true hasMailbox?: true emailPasswordEncrypted?: true createdAt?: true updatedAt?: true } export type StressfreiEmailMaxAggregateInputType = { id?: true customerId?: true email?: true platform?: true notes?: true isActive?: true isProvisioned?: true provisionedAt?: true provisionError?: true hasMailbox?: true emailPasswordEncrypted?: true createdAt?: true updatedAt?: true } export type StressfreiEmailCountAggregateInputType = { id?: true customerId?: true email?: true platform?: true notes?: true isActive?: true isProvisioned?: true provisionedAt?: true provisionError?: true hasMailbox?: true emailPasswordEncrypted?: true createdAt?: true updatedAt?: true _all?: true } export type StressfreiEmailAggregateArgs = { /** * Filter which StressfreiEmail to aggregate. */ where?: StressfreiEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StressfreiEmails to fetch. */ orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StressfreiEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StressfreiEmails 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` StressfreiEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned StressfreiEmails **/ _count?: true | StressfreiEmailCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StressfreiEmailAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StressfreiEmailSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StressfreiEmailMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StressfreiEmailMaxAggregateInputType } export type GetStressfreiEmailAggregateType = { [P in keyof T & keyof AggregateStressfreiEmail]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StressfreiEmailGroupByArgs = { where?: StressfreiEmailWhereInput orderBy?: StressfreiEmailOrderByWithAggregationInput | StressfreiEmailOrderByWithAggregationInput[] by: StressfreiEmailScalarFieldEnum[] | StressfreiEmailScalarFieldEnum having?: StressfreiEmailScalarWhereWithAggregatesInput take?: number skip?: number _count?: StressfreiEmailCountAggregateInputType | true _avg?: StressfreiEmailAvgAggregateInputType _sum?: StressfreiEmailSumAggregateInputType _min?: StressfreiEmailMinAggregateInputType _max?: StressfreiEmailMaxAggregateInputType } export type StressfreiEmailGroupByOutputType = { id: number customerId: number email: string platform: string | null notes: string | null isActive: boolean isProvisioned: boolean provisionedAt: Date | null provisionError: string | null hasMailbox: boolean emailPasswordEncrypted: string | null createdAt: Date updatedAt: Date _count: StressfreiEmailCountAggregateOutputType | null _avg: StressfreiEmailAvgAggregateOutputType | null _sum: StressfreiEmailSumAggregateOutputType | null _min: StressfreiEmailMinAggregateOutputType | null _max: StressfreiEmailMaxAggregateOutputType | null } type GetStressfreiEmailGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StressfreiEmailGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StressfreiEmailSelect = $Extensions.GetSelect<{ id?: boolean customerId?: boolean email?: boolean platform?: boolean notes?: boolean isActive?: boolean isProvisioned?: boolean provisionedAt?: boolean provisionError?: boolean hasMailbox?: boolean emailPasswordEncrypted?: boolean createdAt?: boolean updatedAt?: boolean customer?: boolean | CustomerDefaultArgs contracts?: boolean | StressfreiEmail$contractsArgs cachedEmails?: boolean | StressfreiEmail$cachedEmailsArgs _count?: boolean | StressfreiEmailCountOutputTypeDefaultArgs }, ExtArgs["result"]["stressfreiEmail"]> export type StressfreiEmailSelectScalar = { id?: boolean customerId?: boolean email?: boolean platform?: boolean notes?: boolean isActive?: boolean isProvisioned?: boolean provisionedAt?: boolean provisionError?: boolean hasMailbox?: boolean emailPasswordEncrypted?: boolean createdAt?: boolean updatedAt?: boolean } export type StressfreiEmailInclude = { customer?: boolean | CustomerDefaultArgs contracts?: boolean | StressfreiEmail$contractsArgs cachedEmails?: boolean | StressfreiEmail$cachedEmailsArgs _count?: boolean | StressfreiEmailCountOutputTypeDefaultArgs } export type $StressfreiEmailPayload = { name: "StressfreiEmail" objects: { customer: Prisma.$CustomerPayload contracts: Prisma.$ContractPayload[] cachedEmails: Prisma.$CachedEmailPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number customerId: number email: string platform: string | null notes: string | null isActive: boolean isProvisioned: boolean provisionedAt: Date | null provisionError: string | null hasMailbox: boolean emailPasswordEncrypted: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["stressfreiEmail"]> composites: {} } type StressfreiEmailGetPayload = $Result.GetResult type StressfreiEmailCountArgs = Omit & { select?: StressfreiEmailCountAggregateInputType | true } export interface StressfreiEmailDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['StressfreiEmail'], meta: { name: 'StressfreiEmail' } } /** * Find zero or one StressfreiEmail that matches the filter. * @param {StressfreiEmailFindUniqueArgs} args - Arguments to find a StressfreiEmail * @example * // Get one StressfreiEmail * const stressfreiEmail = await prisma.stressfreiEmail.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one StressfreiEmail that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StressfreiEmailFindUniqueOrThrowArgs} args - Arguments to find a StressfreiEmail * @example * // Get one StressfreiEmail * const stressfreiEmail = await prisma.stressfreiEmail.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first StressfreiEmail 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 {StressfreiEmailFindFirstArgs} args - Arguments to find a StressfreiEmail * @example * // Get one StressfreiEmail * const stressfreiEmail = await prisma.stressfreiEmail.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first StressfreiEmail 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 {StressfreiEmailFindFirstOrThrowArgs} args - Arguments to find a StressfreiEmail * @example * // Get one StressfreiEmail * const stressfreiEmail = await prisma.stressfreiEmail.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more StressfreiEmails 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 {StressfreiEmailFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all StressfreiEmails * const stressfreiEmails = await prisma.stressfreiEmail.findMany() * * // Get first 10 StressfreiEmails * const stressfreiEmails = await prisma.stressfreiEmail.findMany({ take: 10 }) * * // Only select the `id` * const stressfreiEmailWithIdOnly = await prisma.stressfreiEmail.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a StressfreiEmail. * @param {StressfreiEmailCreateArgs} args - Arguments to create a StressfreiEmail. * @example * // Create one StressfreiEmail * const StressfreiEmail = await prisma.stressfreiEmail.create({ * data: { * // ... data to create a StressfreiEmail * } * }) * */ create(args: SelectSubset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many StressfreiEmails. * @param {StressfreiEmailCreateManyArgs} args - Arguments to create many StressfreiEmails. * @example * // Create many StressfreiEmails * const stressfreiEmail = await prisma.stressfreiEmail.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a StressfreiEmail. * @param {StressfreiEmailDeleteArgs} args - Arguments to delete one StressfreiEmail. * @example * // Delete one StressfreiEmail * const StressfreiEmail = await prisma.stressfreiEmail.delete({ * where: { * // ... filter to delete one StressfreiEmail * } * }) * */ delete(args: SelectSubset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one StressfreiEmail. * @param {StressfreiEmailUpdateArgs} args - Arguments to update one StressfreiEmail. * @example * // Update one StressfreiEmail * const stressfreiEmail = await prisma.stressfreiEmail.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more StressfreiEmails. * @param {StressfreiEmailDeleteManyArgs} args - Arguments to filter StressfreiEmails to delete. * @example * // Delete a few StressfreiEmails * const { count } = await prisma.stressfreiEmail.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StressfreiEmails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StressfreiEmailUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many StressfreiEmails * const stressfreiEmail = await prisma.stressfreiEmail.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one StressfreiEmail. * @param {StressfreiEmailUpsertArgs} args - Arguments to update or create a StressfreiEmail. * @example * // Update or create a StressfreiEmail * const stressfreiEmail = await prisma.stressfreiEmail.upsert({ * create: { * // ... data to create a StressfreiEmail * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the StressfreiEmail we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of StressfreiEmails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StressfreiEmailCountArgs} args - Arguments to filter StressfreiEmails to count. * @example * // Count the number of StressfreiEmails * const count = await prisma.stressfreiEmail.count({ * where: { * // ... the filter for the StressfreiEmails we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a StressfreiEmail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StressfreiEmailAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by StressfreiEmail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StressfreiEmailGroupByArgs} 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 StressfreiEmailGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StressfreiEmailGroupByArgs['orderBy'] } : { orderBy?: StressfreiEmailGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetStressfreiEmailGroupByPayload : Prisma.PrismaPromise /** * Fields of the StressfreiEmail model */ readonly fields: StressfreiEmailFieldRefs; } /** * The delegate class that acts as a "Promise-like" for StressfreiEmail. * 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__StressfreiEmailClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> cachedEmails = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the StressfreiEmail model */ interface StressfreiEmailFieldRefs { readonly id: FieldRef<"StressfreiEmail", 'Int'> readonly customerId: FieldRef<"StressfreiEmail", 'Int'> readonly email: FieldRef<"StressfreiEmail", 'String'> readonly platform: FieldRef<"StressfreiEmail", 'String'> readonly notes: FieldRef<"StressfreiEmail", 'String'> readonly isActive: FieldRef<"StressfreiEmail", 'Boolean'> readonly isProvisioned: FieldRef<"StressfreiEmail", 'Boolean'> readonly provisionedAt: FieldRef<"StressfreiEmail", 'DateTime'> readonly provisionError: FieldRef<"StressfreiEmail", 'String'> readonly hasMailbox: FieldRef<"StressfreiEmail", 'Boolean'> readonly emailPasswordEncrypted: FieldRef<"StressfreiEmail", 'String'> readonly createdAt: FieldRef<"StressfreiEmail", 'DateTime'> readonly updatedAt: FieldRef<"StressfreiEmail", 'DateTime'> } // Custom InputTypes /** * StressfreiEmail findUnique */ export type StressfreiEmailFindUniqueArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * Filter, which StressfreiEmail to fetch. */ where: StressfreiEmailWhereUniqueInput } /** * StressfreiEmail findUniqueOrThrow */ export type StressfreiEmailFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * Filter, which StressfreiEmail to fetch. */ where: StressfreiEmailWhereUniqueInput } /** * StressfreiEmail findFirst */ export type StressfreiEmailFindFirstArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * Filter, which StressfreiEmail to fetch. */ where?: StressfreiEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StressfreiEmails to fetch. */ orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StressfreiEmails. */ cursor?: StressfreiEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StressfreiEmails 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` StressfreiEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StressfreiEmails. */ distinct?: StressfreiEmailScalarFieldEnum | StressfreiEmailScalarFieldEnum[] } /** * StressfreiEmail findFirstOrThrow */ export type StressfreiEmailFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * Filter, which StressfreiEmail to fetch. */ where?: StressfreiEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StressfreiEmails to fetch. */ orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StressfreiEmails. */ cursor?: StressfreiEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StressfreiEmails 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` StressfreiEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StressfreiEmails. */ distinct?: StressfreiEmailScalarFieldEnum | StressfreiEmailScalarFieldEnum[] } /** * StressfreiEmail findMany */ export type StressfreiEmailFindManyArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * Filter, which StressfreiEmails to fetch. */ where?: StressfreiEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StressfreiEmails to fetch. */ orderBy?: StressfreiEmailOrderByWithRelationInput | StressfreiEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing StressfreiEmails. */ cursor?: StressfreiEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StressfreiEmails 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` StressfreiEmails. */ skip?: number distinct?: StressfreiEmailScalarFieldEnum | StressfreiEmailScalarFieldEnum[] } /** * StressfreiEmail create */ export type StressfreiEmailCreateArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * The data needed to create a StressfreiEmail. */ data: XOR } /** * StressfreiEmail createMany */ export type StressfreiEmailCreateManyArgs = { /** * The data used to create many StressfreiEmails. */ data: StressfreiEmailCreateManyInput | StressfreiEmailCreateManyInput[] skipDuplicates?: boolean } /** * StressfreiEmail update */ export type StressfreiEmailUpdateArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * The data needed to update a StressfreiEmail. */ data: XOR /** * Choose, which StressfreiEmail to update. */ where: StressfreiEmailWhereUniqueInput } /** * StressfreiEmail updateMany */ export type StressfreiEmailUpdateManyArgs = { /** * The data used to update StressfreiEmails. */ data: XOR /** * Filter which StressfreiEmails to update */ where?: StressfreiEmailWhereInput } /** * StressfreiEmail upsert */ export type StressfreiEmailUpsertArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * The filter to search for the StressfreiEmail to update in case it exists. */ where: StressfreiEmailWhereUniqueInput /** * In case the StressfreiEmail found by the `where` argument doesn't exist, create a new StressfreiEmail with this data. */ create: XOR /** * In case the StressfreiEmail was found with the provided `where` argument, update it with this data. */ update: XOR } /** * StressfreiEmail delete */ export type StressfreiEmailDeleteArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null /** * Filter which StressfreiEmail to delete. */ where: StressfreiEmailWhereUniqueInput } /** * StressfreiEmail deleteMany */ export type StressfreiEmailDeleteManyArgs = { /** * Filter which StressfreiEmails to delete */ where?: StressfreiEmailWhereInput } /** * StressfreiEmail.contracts */ export type StressfreiEmail$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * StressfreiEmail.cachedEmails */ export type StressfreiEmail$cachedEmailsArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null where?: CachedEmailWhereInput orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[] cursor?: CachedEmailWhereUniqueInput take?: number skip?: number distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[] } /** * StressfreiEmail without action */ export type StressfreiEmailDefaultArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null } /** * Model CachedEmail */ export type AggregateCachedEmail = { _count: CachedEmailCountAggregateOutputType | null _avg: CachedEmailAvgAggregateOutputType | null _sum: CachedEmailSumAggregateOutputType | null _min: CachedEmailMinAggregateOutputType | null _max: CachedEmailMaxAggregateOutputType | null } export type CachedEmailAvgAggregateOutputType = { id: number | null stressfreiEmailId: number | null uid: number | null contractId: number | null assignedBy: number | null } export type CachedEmailSumAggregateOutputType = { id: number | null stressfreiEmailId: number | null uid: number | null contractId: number | null assignedBy: number | null } export type CachedEmailMinAggregateOutputType = { id: number | null stressfreiEmailId: number | null folder: $Enums.EmailFolder | null messageId: string | null uid: number | null subject: string | null fromAddress: string | null fromName: string | null toAddresses: string | null ccAddresses: string | null receivedAt: Date | null textBody: string | null htmlBody: string | null hasAttachments: boolean | null attachmentNames: string | null contractId: number | null assignedAt: Date | null assignedBy: number | null isAutoAssigned: boolean | null isRead: boolean | null isStarred: boolean | null isDeleted: boolean | null deletedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type CachedEmailMaxAggregateOutputType = { id: number | null stressfreiEmailId: number | null folder: $Enums.EmailFolder | null messageId: string | null uid: number | null subject: string | null fromAddress: string | null fromName: string | null toAddresses: string | null ccAddresses: string | null receivedAt: Date | null textBody: string | null htmlBody: string | null hasAttachments: boolean | null attachmentNames: string | null contractId: number | null assignedAt: Date | null assignedBy: number | null isAutoAssigned: boolean | null isRead: boolean | null isStarred: boolean | null isDeleted: boolean | null deletedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type CachedEmailCountAggregateOutputType = { id: number stressfreiEmailId: number folder: number messageId: number uid: number subject: number fromAddress: number fromName: number toAddresses: number ccAddresses: number receivedAt: number textBody: number htmlBody: number hasAttachments: number attachmentNames: number contractId: number assignedAt: number assignedBy: number isAutoAssigned: number isRead: number isStarred: number isDeleted: number deletedAt: number createdAt: number updatedAt: number _all: number } export type CachedEmailAvgAggregateInputType = { id?: true stressfreiEmailId?: true uid?: true contractId?: true assignedBy?: true } export type CachedEmailSumAggregateInputType = { id?: true stressfreiEmailId?: true uid?: true contractId?: true assignedBy?: true } export type CachedEmailMinAggregateInputType = { id?: true stressfreiEmailId?: true folder?: true messageId?: true uid?: true subject?: true fromAddress?: true fromName?: true toAddresses?: true ccAddresses?: true receivedAt?: true textBody?: true htmlBody?: true hasAttachments?: true attachmentNames?: true contractId?: true assignedAt?: true assignedBy?: true isAutoAssigned?: true isRead?: true isStarred?: true isDeleted?: true deletedAt?: true createdAt?: true updatedAt?: true } export type CachedEmailMaxAggregateInputType = { id?: true stressfreiEmailId?: true folder?: true messageId?: true uid?: true subject?: true fromAddress?: true fromName?: true toAddresses?: true ccAddresses?: true receivedAt?: true textBody?: true htmlBody?: true hasAttachments?: true attachmentNames?: true contractId?: true assignedAt?: true assignedBy?: true isAutoAssigned?: true isRead?: true isStarred?: true isDeleted?: true deletedAt?: true createdAt?: true updatedAt?: true } export type CachedEmailCountAggregateInputType = { id?: true stressfreiEmailId?: true folder?: true messageId?: true uid?: true subject?: true fromAddress?: true fromName?: true toAddresses?: true ccAddresses?: true receivedAt?: true textBody?: true htmlBody?: true hasAttachments?: true attachmentNames?: true contractId?: true assignedAt?: true assignedBy?: true isAutoAssigned?: true isRead?: true isStarred?: true isDeleted?: true deletedAt?: true createdAt?: true updatedAt?: true _all?: true } export type CachedEmailAggregateArgs = { /** * Filter which CachedEmail to aggregate. */ where?: CachedEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CachedEmails to fetch. */ orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CachedEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CachedEmails 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` CachedEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CachedEmails **/ _count?: true | CachedEmailCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CachedEmailAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CachedEmailSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CachedEmailMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CachedEmailMaxAggregateInputType } export type GetCachedEmailAggregateType = { [P in keyof T & keyof AggregateCachedEmail]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CachedEmailGroupByArgs = { where?: CachedEmailWhereInput orderBy?: CachedEmailOrderByWithAggregationInput | CachedEmailOrderByWithAggregationInput[] by: CachedEmailScalarFieldEnum[] | CachedEmailScalarFieldEnum having?: CachedEmailScalarWhereWithAggregatesInput take?: number skip?: number _count?: CachedEmailCountAggregateInputType | true _avg?: CachedEmailAvgAggregateInputType _sum?: CachedEmailSumAggregateInputType _min?: CachedEmailMinAggregateInputType _max?: CachedEmailMaxAggregateInputType } export type CachedEmailGroupByOutputType = { id: number stressfreiEmailId: number folder: $Enums.EmailFolder messageId: string uid: number subject: string | null fromAddress: string fromName: string | null toAddresses: string ccAddresses: string | null receivedAt: Date textBody: string | null htmlBody: string | null hasAttachments: boolean attachmentNames: string | null contractId: number | null assignedAt: Date | null assignedBy: number | null isAutoAssigned: boolean isRead: boolean isStarred: boolean isDeleted: boolean deletedAt: Date | null createdAt: Date updatedAt: Date _count: CachedEmailCountAggregateOutputType | null _avg: CachedEmailAvgAggregateOutputType | null _sum: CachedEmailSumAggregateOutputType | null _min: CachedEmailMinAggregateOutputType | null _max: CachedEmailMaxAggregateOutputType | null } type GetCachedEmailGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CachedEmailGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CachedEmailSelect = $Extensions.GetSelect<{ id?: boolean stressfreiEmailId?: boolean folder?: boolean messageId?: boolean uid?: boolean subject?: boolean fromAddress?: boolean fromName?: boolean toAddresses?: boolean ccAddresses?: boolean receivedAt?: boolean textBody?: boolean htmlBody?: boolean hasAttachments?: boolean attachmentNames?: boolean contractId?: boolean assignedAt?: boolean assignedBy?: boolean isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: boolean createdAt?: boolean updatedAt?: boolean stressfreiEmail?: boolean | StressfreiEmailDefaultArgs contract?: boolean | CachedEmail$contractArgs }, ExtArgs["result"]["cachedEmail"]> export type CachedEmailSelectScalar = { id?: boolean stressfreiEmailId?: boolean folder?: boolean messageId?: boolean uid?: boolean subject?: boolean fromAddress?: boolean fromName?: boolean toAddresses?: boolean ccAddresses?: boolean receivedAt?: boolean textBody?: boolean htmlBody?: boolean hasAttachments?: boolean attachmentNames?: boolean contractId?: boolean assignedAt?: boolean assignedBy?: boolean isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type CachedEmailInclude = { stressfreiEmail?: boolean | StressfreiEmailDefaultArgs contract?: boolean | CachedEmail$contractArgs } export type $CachedEmailPayload = { name: "CachedEmail" objects: { stressfreiEmail: Prisma.$StressfreiEmailPayload contract: Prisma.$ContractPayload | null } scalars: $Extensions.GetPayloadResult<{ id: number stressfreiEmailId: number folder: $Enums.EmailFolder messageId: string uid: number subject: string | null fromAddress: string fromName: string | null toAddresses: string ccAddresses: string | null receivedAt: Date textBody: string | null htmlBody: string | null hasAttachments: boolean attachmentNames: string | null contractId: number | null assignedAt: Date | null assignedBy: number | null isAutoAssigned: boolean isRead: boolean isStarred: boolean isDeleted: boolean deletedAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["cachedEmail"]> composites: {} } type CachedEmailGetPayload = $Result.GetResult type CachedEmailCountArgs = Omit & { select?: CachedEmailCountAggregateInputType | true } export interface CachedEmailDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CachedEmail'], meta: { name: 'CachedEmail' } } /** * Find zero or one CachedEmail that matches the filter. * @param {CachedEmailFindUniqueArgs} args - Arguments to find a CachedEmail * @example * // Get one CachedEmail * const cachedEmail = await prisma.cachedEmail.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CachedEmailClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one CachedEmail that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CachedEmailFindUniqueOrThrowArgs} args - Arguments to find a CachedEmail * @example * // Get one CachedEmail * const cachedEmail = await prisma.cachedEmail.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CachedEmailClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first CachedEmail 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 {CachedEmailFindFirstArgs} args - Arguments to find a CachedEmail * @example * // Get one CachedEmail * const cachedEmail = await prisma.cachedEmail.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CachedEmailClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first CachedEmail 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 {CachedEmailFindFirstOrThrowArgs} args - Arguments to find a CachedEmail * @example * // Get one CachedEmail * const cachedEmail = await prisma.cachedEmail.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CachedEmailClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more CachedEmails 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 {CachedEmailFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CachedEmails * const cachedEmails = await prisma.cachedEmail.findMany() * * // Get first 10 CachedEmails * const cachedEmails = await prisma.cachedEmail.findMany({ take: 10 }) * * // Only select the `id` * const cachedEmailWithIdOnly = await prisma.cachedEmail.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a CachedEmail. * @param {CachedEmailCreateArgs} args - Arguments to create a CachedEmail. * @example * // Create one CachedEmail * const CachedEmail = await prisma.cachedEmail.create({ * data: { * // ... data to create a CachedEmail * } * }) * */ create(args: SelectSubset>): Prisma__CachedEmailClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many CachedEmails. * @param {CachedEmailCreateManyArgs} args - Arguments to create many CachedEmails. * @example * // Create many CachedEmails * const cachedEmail = await prisma.cachedEmail.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a CachedEmail. * @param {CachedEmailDeleteArgs} args - Arguments to delete one CachedEmail. * @example * // Delete one CachedEmail * const CachedEmail = await prisma.cachedEmail.delete({ * where: { * // ... filter to delete one CachedEmail * } * }) * */ delete(args: SelectSubset>): Prisma__CachedEmailClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one CachedEmail. * @param {CachedEmailUpdateArgs} args - Arguments to update one CachedEmail. * @example * // Update one CachedEmail * const cachedEmail = await prisma.cachedEmail.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CachedEmailClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more CachedEmails. * @param {CachedEmailDeleteManyArgs} args - Arguments to filter CachedEmails to delete. * @example * // Delete a few CachedEmails * const { count } = await prisma.cachedEmail.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CachedEmails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CachedEmailUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CachedEmails * const cachedEmail = await prisma.cachedEmail.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one CachedEmail. * @param {CachedEmailUpsertArgs} args - Arguments to update or create a CachedEmail. * @example * // Update or create a CachedEmail * const cachedEmail = await prisma.cachedEmail.upsert({ * create: { * // ... data to create a CachedEmail * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CachedEmail we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CachedEmailClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of CachedEmails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CachedEmailCountArgs} args - Arguments to filter CachedEmails to count. * @example * // Count the number of CachedEmails * const count = await prisma.cachedEmail.count({ * where: { * // ... the filter for the CachedEmails we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a CachedEmail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CachedEmailAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by CachedEmail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CachedEmailGroupByArgs} 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 CachedEmailGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CachedEmailGroupByArgs['orderBy'] } : { orderBy?: CachedEmailGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCachedEmailGroupByPayload : Prisma.PrismaPromise /** * Fields of the CachedEmail model */ readonly fields: CachedEmailFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CachedEmail. * 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__CachedEmailClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" stressfreiEmail = {}>(args?: Subset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> contract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the CachedEmail model */ interface CachedEmailFieldRefs { readonly id: FieldRef<"CachedEmail", 'Int'> readonly stressfreiEmailId: FieldRef<"CachedEmail", 'Int'> readonly folder: FieldRef<"CachedEmail", 'EmailFolder'> readonly messageId: FieldRef<"CachedEmail", 'String'> readonly uid: FieldRef<"CachedEmail", 'Int'> readonly subject: FieldRef<"CachedEmail", 'String'> readonly fromAddress: FieldRef<"CachedEmail", 'String'> readonly fromName: FieldRef<"CachedEmail", 'String'> readonly toAddresses: FieldRef<"CachedEmail", 'String'> readonly ccAddresses: FieldRef<"CachedEmail", 'String'> readonly receivedAt: FieldRef<"CachedEmail", 'DateTime'> readonly textBody: FieldRef<"CachedEmail", 'String'> readonly htmlBody: FieldRef<"CachedEmail", 'String'> readonly hasAttachments: FieldRef<"CachedEmail", 'Boolean'> readonly attachmentNames: FieldRef<"CachedEmail", 'String'> readonly contractId: FieldRef<"CachedEmail", 'Int'> readonly assignedAt: FieldRef<"CachedEmail", 'DateTime'> readonly assignedBy: FieldRef<"CachedEmail", 'Int'> readonly isAutoAssigned: FieldRef<"CachedEmail", 'Boolean'> readonly isRead: FieldRef<"CachedEmail", 'Boolean'> readonly isStarred: FieldRef<"CachedEmail", 'Boolean'> readonly isDeleted: FieldRef<"CachedEmail", 'Boolean'> readonly deletedAt: FieldRef<"CachedEmail", 'DateTime'> readonly createdAt: FieldRef<"CachedEmail", 'DateTime'> readonly updatedAt: FieldRef<"CachedEmail", 'DateTime'> } // Custom InputTypes /** * CachedEmail findUnique */ export type CachedEmailFindUniqueArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * Filter, which CachedEmail to fetch. */ where: CachedEmailWhereUniqueInput } /** * CachedEmail findUniqueOrThrow */ export type CachedEmailFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * Filter, which CachedEmail to fetch. */ where: CachedEmailWhereUniqueInput } /** * CachedEmail findFirst */ export type CachedEmailFindFirstArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * Filter, which CachedEmail to fetch. */ where?: CachedEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CachedEmails to fetch. */ orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CachedEmails. */ cursor?: CachedEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CachedEmails 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` CachedEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CachedEmails. */ distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[] } /** * CachedEmail findFirstOrThrow */ export type CachedEmailFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * Filter, which CachedEmail to fetch. */ where?: CachedEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CachedEmails to fetch. */ orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CachedEmails. */ cursor?: CachedEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CachedEmails 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` CachedEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CachedEmails. */ distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[] } /** * CachedEmail findMany */ export type CachedEmailFindManyArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * Filter, which CachedEmails to fetch. */ where?: CachedEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CachedEmails to fetch. */ orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CachedEmails. */ cursor?: CachedEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CachedEmails 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` CachedEmails. */ skip?: number distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[] } /** * CachedEmail create */ export type CachedEmailCreateArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * The data needed to create a CachedEmail. */ data: XOR } /** * CachedEmail createMany */ export type CachedEmailCreateManyArgs = { /** * The data used to create many CachedEmails. */ data: CachedEmailCreateManyInput | CachedEmailCreateManyInput[] skipDuplicates?: boolean } /** * CachedEmail update */ export type CachedEmailUpdateArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * The data needed to update a CachedEmail. */ data: XOR /** * Choose, which CachedEmail to update. */ where: CachedEmailWhereUniqueInput } /** * CachedEmail updateMany */ export type CachedEmailUpdateManyArgs = { /** * The data used to update CachedEmails. */ data: XOR /** * Filter which CachedEmails to update */ where?: CachedEmailWhereInput } /** * CachedEmail upsert */ export type CachedEmailUpsertArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * The filter to search for the CachedEmail to update in case it exists. */ where: CachedEmailWhereUniqueInput /** * In case the CachedEmail found by the `where` argument doesn't exist, create a new CachedEmail with this data. */ create: XOR /** * In case the CachedEmail was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CachedEmail delete */ export type CachedEmailDeleteArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null /** * Filter which CachedEmail to delete. */ where: CachedEmailWhereUniqueInput } /** * CachedEmail deleteMany */ export type CachedEmailDeleteManyArgs = { /** * Filter which CachedEmails to delete */ where?: CachedEmailWhereInput } /** * CachedEmail.contract */ export type CachedEmail$contractArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput } /** * CachedEmail without action */ export type CachedEmailDefaultArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null } /** * Model Meter */ export type AggregateMeter = { _count: MeterCountAggregateOutputType | null _avg: MeterAvgAggregateOutputType | null _sum: MeterSumAggregateOutputType | null _min: MeterMinAggregateOutputType | null _max: MeterMaxAggregateOutputType | null } export type MeterAvgAggregateOutputType = { id: number | null customerId: number | null } export type MeterSumAggregateOutputType = { id: number | null customerId: number | null } export type MeterMinAggregateOutputType = { id: number | null customerId: number | null meterNumber: string | null type: $Enums.MeterType | null location: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type MeterMaxAggregateOutputType = { id: number | null customerId: number | null meterNumber: string | null type: $Enums.MeterType | null location: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type MeterCountAggregateOutputType = { id: number customerId: number meterNumber: number type: number location: number isActive: number createdAt: number updatedAt: number _all: number } export type MeterAvgAggregateInputType = { id?: true customerId?: true } export type MeterSumAggregateInputType = { id?: true customerId?: true } export type MeterMinAggregateInputType = { id?: true customerId?: true meterNumber?: true type?: true location?: true isActive?: true createdAt?: true updatedAt?: true } export type MeterMaxAggregateInputType = { id?: true customerId?: true meterNumber?: true type?: true location?: true isActive?: true createdAt?: true updatedAt?: true } export type MeterCountAggregateInputType = { id?: true customerId?: true meterNumber?: true type?: true location?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type MeterAggregateArgs = { /** * Filter which Meter to aggregate. */ where?: MeterWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Meters to fetch. */ orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: MeterWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Meters 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` Meters. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Meters **/ _count?: true | MeterCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: MeterAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: MeterSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MeterMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MeterMaxAggregateInputType } export type GetMeterAggregateType = { [P in keyof T & keyof AggregateMeter]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type MeterGroupByArgs = { where?: MeterWhereInput orderBy?: MeterOrderByWithAggregationInput | MeterOrderByWithAggregationInput[] by: MeterScalarFieldEnum[] | MeterScalarFieldEnum having?: MeterScalarWhereWithAggregatesInput take?: number skip?: number _count?: MeterCountAggregateInputType | true _avg?: MeterAvgAggregateInputType _sum?: MeterSumAggregateInputType _min?: MeterMinAggregateInputType _max?: MeterMaxAggregateInputType } export type MeterGroupByOutputType = { id: number customerId: number meterNumber: string type: $Enums.MeterType location: string | null isActive: boolean createdAt: Date updatedAt: Date _count: MeterCountAggregateOutputType | null _avg: MeterAvgAggregateOutputType | null _sum: MeterSumAggregateOutputType | null _min: MeterMinAggregateOutputType | null _max: MeterMaxAggregateOutputType | null } type GetMeterGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof MeterGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type MeterSelect = $Extensions.GetSelect<{ id?: boolean customerId?: boolean meterNumber?: boolean type?: boolean location?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean customer?: boolean | CustomerDefaultArgs readings?: boolean | Meter$readingsArgs energyDetails?: boolean | Meter$energyDetailsArgs _count?: boolean | MeterCountOutputTypeDefaultArgs }, ExtArgs["result"]["meter"]> export type MeterSelectScalar = { id?: boolean customerId?: boolean meterNumber?: boolean type?: boolean location?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type MeterInclude = { customer?: boolean | CustomerDefaultArgs readings?: boolean | Meter$readingsArgs energyDetails?: boolean | Meter$energyDetailsArgs _count?: boolean | MeterCountOutputTypeDefaultArgs } export type $MeterPayload = { name: "Meter" objects: { customer: Prisma.$CustomerPayload readings: Prisma.$MeterReadingPayload[] energyDetails: Prisma.$EnergyContractDetailsPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number customerId: number meterNumber: string type: $Enums.MeterType location: string | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["meter"]> composites: {} } type MeterGetPayload = $Result.GetResult type MeterCountArgs = Omit & { select?: MeterCountAggregateInputType | true } export interface MeterDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Meter'], meta: { name: 'Meter' } } /** * Find zero or one Meter that matches the filter. * @param {MeterFindUniqueArgs} args - Arguments to find a Meter * @example * // Get one Meter * const meter = await prisma.meter.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__MeterClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Meter that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MeterFindUniqueOrThrowArgs} args - Arguments to find a Meter * @example * // Get one Meter * const meter = await prisma.meter.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__MeterClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Meter 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 {MeterFindFirstArgs} args - Arguments to find a Meter * @example * // Get one Meter * const meter = await prisma.meter.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__MeterClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Meter 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 {MeterFindFirstOrThrowArgs} args - Arguments to find a Meter * @example * // Get one Meter * const meter = await prisma.meter.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__MeterClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Meters 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 {MeterFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Meters * const meters = await prisma.meter.findMany() * * // Get first 10 Meters * const meters = await prisma.meter.findMany({ take: 10 }) * * // Only select the `id` * const meterWithIdOnly = await prisma.meter.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Meter. * @param {MeterCreateArgs} args - Arguments to create a Meter. * @example * // Create one Meter * const Meter = await prisma.meter.create({ * data: { * // ... data to create a Meter * } * }) * */ create(args: SelectSubset>): Prisma__MeterClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Meters. * @param {MeterCreateManyArgs} args - Arguments to create many Meters. * @example * // Create many Meters * const meter = await prisma.meter.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Meter. * @param {MeterDeleteArgs} args - Arguments to delete one Meter. * @example * // Delete one Meter * const Meter = await prisma.meter.delete({ * where: { * // ... filter to delete one Meter * } * }) * */ delete(args: SelectSubset>): Prisma__MeterClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Meter. * @param {MeterUpdateArgs} args - Arguments to update one Meter. * @example * // Update one Meter * const meter = await prisma.meter.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__MeterClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Meters. * @param {MeterDeleteManyArgs} args - Arguments to filter Meters to delete. * @example * // Delete a few Meters * const { count } = await prisma.meter.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Meters. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MeterUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Meters * const meter = await prisma.meter.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Meter. * @param {MeterUpsertArgs} args - Arguments to update or create a Meter. * @example * // Update or create a Meter * const meter = await prisma.meter.upsert({ * create: { * // ... data to create a Meter * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Meter we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__MeterClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Meters. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MeterCountArgs} args - Arguments to filter Meters to count. * @example * // Count the number of Meters * const count = await prisma.meter.count({ * where: { * // ... the filter for the Meters we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Meter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MeterAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Meter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MeterGroupByArgs} 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 MeterGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: MeterGroupByArgs['orderBy'] } : { orderBy?: MeterGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMeterGroupByPayload : Prisma.PrismaPromise /** * Fields of the Meter model */ readonly fields: MeterFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Meter. * 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__MeterClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> readings = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> energyDetails = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Meter model */ interface MeterFieldRefs { readonly id: FieldRef<"Meter", 'Int'> readonly customerId: FieldRef<"Meter", 'Int'> readonly meterNumber: FieldRef<"Meter", 'String'> readonly type: FieldRef<"Meter", 'MeterType'> readonly location: FieldRef<"Meter", 'String'> readonly isActive: FieldRef<"Meter", 'Boolean'> readonly createdAt: FieldRef<"Meter", 'DateTime'> readonly updatedAt: FieldRef<"Meter", 'DateTime'> } // Custom InputTypes /** * Meter findUnique */ export type MeterFindUniqueArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * Filter, which Meter to fetch. */ where: MeterWhereUniqueInput } /** * Meter findUniqueOrThrow */ export type MeterFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * Filter, which Meter to fetch. */ where: MeterWhereUniqueInput } /** * Meter findFirst */ export type MeterFindFirstArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * Filter, which Meter to fetch. */ where?: MeterWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Meters to fetch. */ orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Meters. */ cursor?: MeterWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Meters 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` Meters. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Meters. */ distinct?: MeterScalarFieldEnum | MeterScalarFieldEnum[] } /** * Meter findFirstOrThrow */ export type MeterFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * Filter, which Meter to fetch. */ where?: MeterWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Meters to fetch. */ orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Meters. */ cursor?: MeterWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Meters 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` Meters. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Meters. */ distinct?: MeterScalarFieldEnum | MeterScalarFieldEnum[] } /** * Meter findMany */ export type MeterFindManyArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * Filter, which Meters to fetch. */ where?: MeterWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Meters to fetch. */ orderBy?: MeterOrderByWithRelationInput | MeterOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Meters. */ cursor?: MeterWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Meters 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` Meters. */ skip?: number distinct?: MeterScalarFieldEnum | MeterScalarFieldEnum[] } /** * Meter create */ export type MeterCreateArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * The data needed to create a Meter. */ data: XOR } /** * Meter createMany */ export type MeterCreateManyArgs = { /** * The data used to create many Meters. */ data: MeterCreateManyInput | MeterCreateManyInput[] skipDuplicates?: boolean } /** * Meter update */ export type MeterUpdateArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * The data needed to update a Meter. */ data: XOR /** * Choose, which Meter to update. */ where: MeterWhereUniqueInput } /** * Meter updateMany */ export type MeterUpdateManyArgs = { /** * The data used to update Meters. */ data: XOR /** * Filter which Meters to update */ where?: MeterWhereInput } /** * Meter upsert */ export type MeterUpsertArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * The filter to search for the Meter to update in case it exists. */ where: MeterWhereUniqueInput /** * In case the Meter found by the `where` argument doesn't exist, create a new Meter with this data. */ create: XOR /** * In case the Meter was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Meter delete */ export type MeterDeleteArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null /** * Filter which Meter to delete. */ where: MeterWhereUniqueInput } /** * Meter deleteMany */ export type MeterDeleteManyArgs = { /** * Filter which Meters to delete */ where?: MeterWhereInput } /** * Meter.readings */ export type Meter$readingsArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null where?: MeterReadingWhereInput orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[] cursor?: MeterReadingWhereUniqueInput take?: number skip?: number distinct?: MeterReadingScalarFieldEnum | MeterReadingScalarFieldEnum[] } /** * Meter.energyDetails */ export type Meter$energyDetailsArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null where?: EnergyContractDetailsWhereInput orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[] cursor?: EnergyContractDetailsWhereUniqueInput take?: number skip?: number distinct?: EnergyContractDetailsScalarFieldEnum | EnergyContractDetailsScalarFieldEnum[] } /** * Meter without action */ export type MeterDefaultArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null } /** * Model MeterReading */ export type AggregateMeterReading = { _count: MeterReadingCountAggregateOutputType | null _avg: MeterReadingAvgAggregateOutputType | null _sum: MeterReadingSumAggregateOutputType | null _min: MeterReadingMinAggregateOutputType | null _max: MeterReadingMaxAggregateOutputType | null } export type MeterReadingAvgAggregateOutputType = { id: number | null meterId: number | null value: number | null } export type MeterReadingSumAggregateOutputType = { id: number | null meterId: number | null value: number | null } export type MeterReadingMinAggregateOutputType = { id: number | null meterId: number | null readingDate: Date | null value: number | null unit: string | null notes: string | null createdAt: Date | null } export type MeterReadingMaxAggregateOutputType = { id: number | null meterId: number | null readingDate: Date | null value: number | null unit: string | null notes: string | null createdAt: Date | null } export type MeterReadingCountAggregateOutputType = { id: number meterId: number readingDate: number value: number unit: number notes: number createdAt: number _all: number } export type MeterReadingAvgAggregateInputType = { id?: true meterId?: true value?: true } export type MeterReadingSumAggregateInputType = { id?: true meterId?: true value?: true } export type MeterReadingMinAggregateInputType = { id?: true meterId?: true readingDate?: true value?: true unit?: true notes?: true createdAt?: true } export type MeterReadingMaxAggregateInputType = { id?: true meterId?: true readingDate?: true value?: true unit?: true notes?: true createdAt?: true } export type MeterReadingCountAggregateInputType = { id?: true meterId?: true readingDate?: true value?: true unit?: true notes?: true createdAt?: true _all?: true } export type MeterReadingAggregateArgs = { /** * Filter which MeterReading to aggregate. */ where?: MeterReadingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MeterReadings to fetch. */ orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: MeterReadingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MeterReadings 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` MeterReadings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned MeterReadings **/ _count?: true | MeterReadingCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: MeterReadingAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: MeterReadingSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MeterReadingMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MeterReadingMaxAggregateInputType } export type GetMeterReadingAggregateType = { [P in keyof T & keyof AggregateMeterReading]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type MeterReadingGroupByArgs = { where?: MeterReadingWhereInput orderBy?: MeterReadingOrderByWithAggregationInput | MeterReadingOrderByWithAggregationInput[] by: MeterReadingScalarFieldEnum[] | MeterReadingScalarFieldEnum having?: MeterReadingScalarWhereWithAggregatesInput take?: number skip?: number _count?: MeterReadingCountAggregateInputType | true _avg?: MeterReadingAvgAggregateInputType _sum?: MeterReadingSumAggregateInputType _min?: MeterReadingMinAggregateInputType _max?: MeterReadingMaxAggregateInputType } export type MeterReadingGroupByOutputType = { id: number meterId: number readingDate: Date value: number unit: string notes: string | null createdAt: Date _count: MeterReadingCountAggregateOutputType | null _avg: MeterReadingAvgAggregateOutputType | null _sum: MeterReadingSumAggregateOutputType | null _min: MeterReadingMinAggregateOutputType | null _max: MeterReadingMaxAggregateOutputType | null } type GetMeterReadingGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof MeterReadingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type MeterReadingSelect = $Extensions.GetSelect<{ id?: boolean meterId?: boolean readingDate?: boolean value?: boolean unit?: boolean notes?: boolean createdAt?: boolean meter?: boolean | MeterDefaultArgs }, ExtArgs["result"]["meterReading"]> export type MeterReadingSelectScalar = { id?: boolean meterId?: boolean readingDate?: boolean value?: boolean unit?: boolean notes?: boolean createdAt?: boolean } export type MeterReadingInclude = { meter?: boolean | MeterDefaultArgs } export type $MeterReadingPayload = { name: "MeterReading" objects: { meter: Prisma.$MeterPayload } scalars: $Extensions.GetPayloadResult<{ id: number meterId: number readingDate: Date value: number unit: string notes: string | null createdAt: Date }, ExtArgs["result"]["meterReading"]> composites: {} } type MeterReadingGetPayload = $Result.GetResult type MeterReadingCountArgs = Omit & { select?: MeterReadingCountAggregateInputType | true } export interface MeterReadingDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['MeterReading'], meta: { name: 'MeterReading' } } /** * Find zero or one MeterReading that matches the filter. * @param {MeterReadingFindUniqueArgs} args - Arguments to find a MeterReading * @example * // Get one MeterReading * const meterReading = await prisma.meterReading.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__MeterReadingClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one MeterReading that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MeterReadingFindUniqueOrThrowArgs} args - Arguments to find a MeterReading * @example * // Get one MeterReading * const meterReading = await prisma.meterReading.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__MeterReadingClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first MeterReading 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 {MeterReadingFindFirstArgs} args - Arguments to find a MeterReading * @example * // Get one MeterReading * const meterReading = await prisma.meterReading.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__MeterReadingClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first MeterReading 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 {MeterReadingFindFirstOrThrowArgs} args - Arguments to find a MeterReading * @example * // Get one MeterReading * const meterReading = await prisma.meterReading.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__MeterReadingClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more MeterReadings 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 {MeterReadingFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all MeterReadings * const meterReadings = await prisma.meterReading.findMany() * * // Get first 10 MeterReadings * const meterReadings = await prisma.meterReading.findMany({ take: 10 }) * * // Only select the `id` * const meterReadingWithIdOnly = await prisma.meterReading.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a MeterReading. * @param {MeterReadingCreateArgs} args - Arguments to create a MeterReading. * @example * // Create one MeterReading * const MeterReading = await prisma.meterReading.create({ * data: { * // ... data to create a MeterReading * } * }) * */ create(args: SelectSubset>): Prisma__MeterReadingClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many MeterReadings. * @param {MeterReadingCreateManyArgs} args - Arguments to create many MeterReadings. * @example * // Create many MeterReadings * const meterReading = await prisma.meterReading.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a MeterReading. * @param {MeterReadingDeleteArgs} args - Arguments to delete one MeterReading. * @example * // Delete one MeterReading * const MeterReading = await prisma.meterReading.delete({ * where: { * // ... filter to delete one MeterReading * } * }) * */ delete(args: SelectSubset>): Prisma__MeterReadingClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one MeterReading. * @param {MeterReadingUpdateArgs} args - Arguments to update one MeterReading. * @example * // Update one MeterReading * const meterReading = await prisma.meterReading.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__MeterReadingClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more MeterReadings. * @param {MeterReadingDeleteManyArgs} args - Arguments to filter MeterReadings to delete. * @example * // Delete a few MeterReadings * const { count } = await prisma.meterReading.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MeterReadings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MeterReadingUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many MeterReadings * const meterReading = await prisma.meterReading.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one MeterReading. * @param {MeterReadingUpsertArgs} args - Arguments to update or create a MeterReading. * @example * // Update or create a MeterReading * const meterReading = await prisma.meterReading.upsert({ * create: { * // ... data to create a MeterReading * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the MeterReading we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__MeterReadingClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of MeterReadings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MeterReadingCountArgs} args - Arguments to filter MeterReadings to count. * @example * // Count the number of MeterReadings * const count = await prisma.meterReading.count({ * where: { * // ... the filter for the MeterReadings we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a MeterReading. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MeterReadingAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by MeterReading. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MeterReadingGroupByArgs} 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 MeterReadingGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: MeterReadingGroupByArgs['orderBy'] } : { orderBy?: MeterReadingGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMeterReadingGroupByPayload : Prisma.PrismaPromise /** * Fields of the MeterReading model */ readonly fields: MeterReadingFieldRefs; } /** * The delegate class that acts as a "Promise-like" for MeterReading. * 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__MeterReadingClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" meter = {}>(args?: Subset>): Prisma__MeterClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the MeterReading model */ interface MeterReadingFieldRefs { readonly id: FieldRef<"MeterReading", 'Int'> readonly meterId: FieldRef<"MeterReading", 'Int'> readonly readingDate: FieldRef<"MeterReading", 'DateTime'> readonly value: FieldRef<"MeterReading", 'Float'> readonly unit: FieldRef<"MeterReading", 'String'> readonly notes: FieldRef<"MeterReading", 'String'> readonly createdAt: FieldRef<"MeterReading", 'DateTime'> } // Custom InputTypes /** * MeterReading findUnique */ export type MeterReadingFindUniqueArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * Filter, which MeterReading to fetch. */ where: MeterReadingWhereUniqueInput } /** * MeterReading findUniqueOrThrow */ export type MeterReadingFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * Filter, which MeterReading to fetch. */ where: MeterReadingWhereUniqueInput } /** * MeterReading findFirst */ export type MeterReadingFindFirstArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * Filter, which MeterReading to fetch. */ where?: MeterReadingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MeterReadings to fetch. */ orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MeterReadings. */ cursor?: MeterReadingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MeterReadings 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` MeterReadings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MeterReadings. */ distinct?: MeterReadingScalarFieldEnum | MeterReadingScalarFieldEnum[] } /** * MeterReading findFirstOrThrow */ export type MeterReadingFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * Filter, which MeterReading to fetch. */ where?: MeterReadingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MeterReadings to fetch. */ orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MeterReadings. */ cursor?: MeterReadingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MeterReadings 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` MeterReadings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MeterReadings. */ distinct?: MeterReadingScalarFieldEnum | MeterReadingScalarFieldEnum[] } /** * MeterReading findMany */ export type MeterReadingFindManyArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * Filter, which MeterReadings to fetch. */ where?: MeterReadingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MeterReadings to fetch. */ orderBy?: MeterReadingOrderByWithRelationInput | MeterReadingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing MeterReadings. */ cursor?: MeterReadingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MeterReadings 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` MeterReadings. */ skip?: number distinct?: MeterReadingScalarFieldEnum | MeterReadingScalarFieldEnum[] } /** * MeterReading create */ export type MeterReadingCreateArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * The data needed to create a MeterReading. */ data: XOR } /** * MeterReading createMany */ export type MeterReadingCreateManyArgs = { /** * The data used to create many MeterReadings. */ data: MeterReadingCreateManyInput | MeterReadingCreateManyInput[] skipDuplicates?: boolean } /** * MeterReading update */ export type MeterReadingUpdateArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * The data needed to update a MeterReading. */ data: XOR /** * Choose, which MeterReading to update. */ where: MeterReadingWhereUniqueInput } /** * MeterReading updateMany */ export type MeterReadingUpdateManyArgs = { /** * The data used to update MeterReadings. */ data: XOR /** * Filter which MeterReadings to update */ where?: MeterReadingWhereInput } /** * MeterReading upsert */ export type MeterReadingUpsertArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * The filter to search for the MeterReading to update in case it exists. */ where: MeterReadingWhereUniqueInput /** * In case the MeterReading found by the `where` argument doesn't exist, create a new MeterReading with this data. */ create: XOR /** * In case the MeterReading was found with the provided `where` argument, update it with this data. */ update: XOR } /** * MeterReading delete */ export type MeterReadingDeleteArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null /** * Filter which MeterReading to delete. */ where: MeterReadingWhereUniqueInput } /** * MeterReading deleteMany */ export type MeterReadingDeleteManyArgs = { /** * Filter which MeterReadings to delete */ where?: MeterReadingWhereInput } /** * MeterReading without action */ export type MeterReadingDefaultArgs = { /** * Select specific fields to fetch from the MeterReading */ select?: MeterReadingSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterReadingInclude | null } /** * Model SalesPlatform */ export type AggregateSalesPlatform = { _count: SalesPlatformCountAggregateOutputType | null _avg: SalesPlatformAvgAggregateOutputType | null _sum: SalesPlatformSumAggregateOutputType | null _min: SalesPlatformMinAggregateOutputType | null _max: SalesPlatformMaxAggregateOutputType | null } export type SalesPlatformAvgAggregateOutputType = { id: number | null } export type SalesPlatformSumAggregateOutputType = { id: number | null } export type SalesPlatformMinAggregateOutputType = { id: number | null name: string | null contactInfo: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type SalesPlatformMaxAggregateOutputType = { id: number | null name: string | null contactInfo: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type SalesPlatformCountAggregateOutputType = { id: number name: number contactInfo: number isActive: number createdAt: number updatedAt: number _all: number } export type SalesPlatformAvgAggregateInputType = { id?: true } export type SalesPlatformSumAggregateInputType = { id?: true } export type SalesPlatformMinAggregateInputType = { id?: true name?: true contactInfo?: true isActive?: true createdAt?: true updatedAt?: true } export type SalesPlatformMaxAggregateInputType = { id?: true name?: true contactInfo?: true isActive?: true createdAt?: true updatedAt?: true } export type SalesPlatformCountAggregateInputType = { id?: true name?: true contactInfo?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type SalesPlatformAggregateArgs = { /** * Filter which SalesPlatform to aggregate. */ where?: SalesPlatformWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesPlatforms to fetch. */ orderBy?: SalesPlatformOrderByWithRelationInput | SalesPlatformOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SalesPlatformWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesPlatforms 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` SalesPlatforms. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SalesPlatforms **/ _count?: true | SalesPlatformCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SalesPlatformAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SalesPlatformSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SalesPlatformMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SalesPlatformMaxAggregateInputType } export type GetSalesPlatformAggregateType = { [P in keyof T & keyof AggregateSalesPlatform]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SalesPlatformGroupByArgs = { where?: SalesPlatformWhereInput orderBy?: SalesPlatformOrderByWithAggregationInput | SalesPlatformOrderByWithAggregationInput[] by: SalesPlatformScalarFieldEnum[] | SalesPlatformScalarFieldEnum having?: SalesPlatformScalarWhereWithAggregatesInput take?: number skip?: number _count?: SalesPlatformCountAggregateInputType | true _avg?: SalesPlatformAvgAggregateInputType _sum?: SalesPlatformSumAggregateInputType _min?: SalesPlatformMinAggregateInputType _max?: SalesPlatformMaxAggregateInputType } export type SalesPlatformGroupByOutputType = { id: number name: string contactInfo: string | null isActive: boolean createdAt: Date updatedAt: Date _count: SalesPlatformCountAggregateOutputType | null _avg: SalesPlatformAvgAggregateOutputType | null _sum: SalesPlatformSumAggregateOutputType | null _min: SalesPlatformMinAggregateOutputType | null _max: SalesPlatformMaxAggregateOutputType | null } type GetSalesPlatformGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SalesPlatformGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SalesPlatformSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean contactInfo?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean contracts?: boolean | SalesPlatform$contractsArgs _count?: boolean | SalesPlatformCountOutputTypeDefaultArgs }, ExtArgs["result"]["salesPlatform"]> export type SalesPlatformSelectScalar = { id?: boolean name?: boolean contactInfo?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type SalesPlatformInclude = { contracts?: boolean | SalesPlatform$contractsArgs _count?: boolean | SalesPlatformCountOutputTypeDefaultArgs } export type $SalesPlatformPayload = { name: "SalesPlatform" objects: { contracts: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number name: string contactInfo: string | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["salesPlatform"]> composites: {} } type SalesPlatformGetPayload = $Result.GetResult type SalesPlatformCountArgs = Omit & { select?: SalesPlatformCountAggregateInputType | true } export interface SalesPlatformDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SalesPlatform'], meta: { name: 'SalesPlatform' } } /** * Find zero or one SalesPlatform that matches the filter. * @param {SalesPlatformFindUniqueArgs} args - Arguments to find a SalesPlatform * @example * // Get one SalesPlatform * const salesPlatform = await prisma.salesPlatform.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one SalesPlatform that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SalesPlatformFindUniqueOrThrowArgs} args - Arguments to find a SalesPlatform * @example * // Get one SalesPlatform * const salesPlatform = await prisma.salesPlatform.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first SalesPlatform 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 {SalesPlatformFindFirstArgs} args - Arguments to find a SalesPlatform * @example * // Get one SalesPlatform * const salesPlatform = await prisma.salesPlatform.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first SalesPlatform 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 {SalesPlatformFindFirstOrThrowArgs} args - Arguments to find a SalesPlatform * @example * // Get one SalesPlatform * const salesPlatform = await prisma.salesPlatform.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more SalesPlatforms 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 {SalesPlatformFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SalesPlatforms * const salesPlatforms = await prisma.salesPlatform.findMany() * * // Get first 10 SalesPlatforms * const salesPlatforms = await prisma.salesPlatform.findMany({ take: 10 }) * * // Only select the `id` * const salesPlatformWithIdOnly = await prisma.salesPlatform.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a SalesPlatform. * @param {SalesPlatformCreateArgs} args - Arguments to create a SalesPlatform. * @example * // Create one SalesPlatform * const SalesPlatform = await prisma.salesPlatform.create({ * data: { * // ... data to create a SalesPlatform * } * }) * */ create(args: SelectSubset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many SalesPlatforms. * @param {SalesPlatformCreateManyArgs} args - Arguments to create many SalesPlatforms. * @example * // Create many SalesPlatforms * const salesPlatform = await prisma.salesPlatform.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a SalesPlatform. * @param {SalesPlatformDeleteArgs} args - Arguments to delete one SalesPlatform. * @example * // Delete one SalesPlatform * const SalesPlatform = await prisma.salesPlatform.delete({ * where: { * // ... filter to delete one SalesPlatform * } * }) * */ delete(args: SelectSubset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one SalesPlatform. * @param {SalesPlatformUpdateArgs} args - Arguments to update one SalesPlatform. * @example * // Update one SalesPlatform * const salesPlatform = await prisma.salesPlatform.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more SalesPlatforms. * @param {SalesPlatformDeleteManyArgs} args - Arguments to filter SalesPlatforms to delete. * @example * // Delete a few SalesPlatforms * const { count } = await prisma.salesPlatform.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SalesPlatforms. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesPlatformUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SalesPlatforms * const salesPlatform = await prisma.salesPlatform.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one SalesPlatform. * @param {SalesPlatformUpsertArgs} args - Arguments to update or create a SalesPlatform. * @example * // Update or create a SalesPlatform * const salesPlatform = await prisma.salesPlatform.upsert({ * create: { * // ... data to create a SalesPlatform * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SalesPlatform we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of SalesPlatforms. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesPlatformCountArgs} args - Arguments to filter SalesPlatforms to count. * @example * // Count the number of SalesPlatforms * const count = await prisma.salesPlatform.count({ * where: { * // ... the filter for the SalesPlatforms we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a SalesPlatform. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesPlatformAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by SalesPlatform. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SalesPlatformGroupByArgs} 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 SalesPlatformGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SalesPlatformGroupByArgs['orderBy'] } : { orderBy?: SalesPlatformGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSalesPlatformGroupByPayload : Prisma.PrismaPromise /** * Fields of the SalesPlatform model */ readonly fields: SalesPlatformFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SalesPlatform. * 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__SalesPlatformClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the SalesPlatform model */ interface SalesPlatformFieldRefs { readonly id: FieldRef<"SalesPlatform", 'Int'> readonly name: FieldRef<"SalesPlatform", 'String'> readonly contactInfo: FieldRef<"SalesPlatform", 'String'> readonly isActive: FieldRef<"SalesPlatform", 'Boolean'> readonly createdAt: FieldRef<"SalesPlatform", 'DateTime'> readonly updatedAt: FieldRef<"SalesPlatform", 'DateTime'> } // Custom InputTypes /** * SalesPlatform findUnique */ export type SalesPlatformFindUniqueArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * Filter, which SalesPlatform to fetch. */ where: SalesPlatformWhereUniqueInput } /** * SalesPlatform findUniqueOrThrow */ export type SalesPlatformFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * Filter, which SalesPlatform to fetch. */ where: SalesPlatformWhereUniqueInput } /** * SalesPlatform findFirst */ export type SalesPlatformFindFirstArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * Filter, which SalesPlatform to fetch. */ where?: SalesPlatformWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesPlatforms to fetch. */ orderBy?: SalesPlatformOrderByWithRelationInput | SalesPlatformOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SalesPlatforms. */ cursor?: SalesPlatformWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesPlatforms 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` SalesPlatforms. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SalesPlatforms. */ distinct?: SalesPlatformScalarFieldEnum | SalesPlatformScalarFieldEnum[] } /** * SalesPlatform findFirstOrThrow */ export type SalesPlatformFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * Filter, which SalesPlatform to fetch. */ where?: SalesPlatformWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesPlatforms to fetch. */ orderBy?: SalesPlatformOrderByWithRelationInput | SalesPlatformOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SalesPlatforms. */ cursor?: SalesPlatformWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesPlatforms 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` SalesPlatforms. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SalesPlatforms. */ distinct?: SalesPlatformScalarFieldEnum | SalesPlatformScalarFieldEnum[] } /** * SalesPlatform findMany */ export type SalesPlatformFindManyArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * Filter, which SalesPlatforms to fetch. */ where?: SalesPlatformWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SalesPlatforms to fetch. */ orderBy?: SalesPlatformOrderByWithRelationInput | SalesPlatformOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SalesPlatforms. */ cursor?: SalesPlatformWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SalesPlatforms 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` SalesPlatforms. */ skip?: number distinct?: SalesPlatformScalarFieldEnum | SalesPlatformScalarFieldEnum[] } /** * SalesPlatform create */ export type SalesPlatformCreateArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * The data needed to create a SalesPlatform. */ data: XOR } /** * SalesPlatform createMany */ export type SalesPlatformCreateManyArgs = { /** * The data used to create many SalesPlatforms. */ data: SalesPlatformCreateManyInput | SalesPlatformCreateManyInput[] skipDuplicates?: boolean } /** * SalesPlatform update */ export type SalesPlatformUpdateArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * The data needed to update a SalesPlatform. */ data: XOR /** * Choose, which SalesPlatform to update. */ where: SalesPlatformWhereUniqueInput } /** * SalesPlatform updateMany */ export type SalesPlatformUpdateManyArgs = { /** * The data used to update SalesPlatforms. */ data: XOR /** * Filter which SalesPlatforms to update */ where?: SalesPlatformWhereInput } /** * SalesPlatform upsert */ export type SalesPlatformUpsertArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * The filter to search for the SalesPlatform to update in case it exists. */ where: SalesPlatformWhereUniqueInput /** * In case the SalesPlatform found by the `where` argument doesn't exist, create a new SalesPlatform with this data. */ create: XOR /** * In case the SalesPlatform was found with the provided `where` argument, update it with this data. */ update: XOR } /** * SalesPlatform delete */ export type SalesPlatformDeleteArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null /** * Filter which SalesPlatform to delete. */ where: SalesPlatformWhereUniqueInput } /** * SalesPlatform deleteMany */ export type SalesPlatformDeleteManyArgs = { /** * Filter which SalesPlatforms to delete */ where?: SalesPlatformWhereInput } /** * SalesPlatform.contracts */ export type SalesPlatform$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * SalesPlatform without action */ export type SalesPlatformDefaultArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null } /** * Model CancellationPeriod */ export type AggregateCancellationPeriod = { _count: CancellationPeriodCountAggregateOutputType | null _avg: CancellationPeriodAvgAggregateOutputType | null _sum: CancellationPeriodSumAggregateOutputType | null _min: CancellationPeriodMinAggregateOutputType | null _max: CancellationPeriodMaxAggregateOutputType | null } export type CancellationPeriodAvgAggregateOutputType = { id: number | null } export type CancellationPeriodSumAggregateOutputType = { id: number | null } export type CancellationPeriodMinAggregateOutputType = { id: number | null code: string | null description: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type CancellationPeriodMaxAggregateOutputType = { id: number | null code: string | null description: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type CancellationPeriodCountAggregateOutputType = { id: number code: number description: number isActive: number createdAt: number updatedAt: number _all: number } export type CancellationPeriodAvgAggregateInputType = { id?: true } export type CancellationPeriodSumAggregateInputType = { id?: true } export type CancellationPeriodMinAggregateInputType = { id?: true code?: true description?: true isActive?: true createdAt?: true updatedAt?: true } export type CancellationPeriodMaxAggregateInputType = { id?: true code?: true description?: true isActive?: true createdAt?: true updatedAt?: true } export type CancellationPeriodCountAggregateInputType = { id?: true code?: true description?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type CancellationPeriodAggregateArgs = { /** * Filter which CancellationPeriod to aggregate. */ where?: CancellationPeriodWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CancellationPeriods to fetch. */ orderBy?: CancellationPeriodOrderByWithRelationInput | CancellationPeriodOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CancellationPeriodWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CancellationPeriods 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` CancellationPeriods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CancellationPeriods **/ _count?: true | CancellationPeriodCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CancellationPeriodAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CancellationPeriodSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CancellationPeriodMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CancellationPeriodMaxAggregateInputType } export type GetCancellationPeriodAggregateType = { [P in keyof T & keyof AggregateCancellationPeriod]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CancellationPeriodGroupByArgs = { where?: CancellationPeriodWhereInput orderBy?: CancellationPeriodOrderByWithAggregationInput | CancellationPeriodOrderByWithAggregationInput[] by: CancellationPeriodScalarFieldEnum[] | CancellationPeriodScalarFieldEnum having?: CancellationPeriodScalarWhereWithAggregatesInput take?: number skip?: number _count?: CancellationPeriodCountAggregateInputType | true _avg?: CancellationPeriodAvgAggregateInputType _sum?: CancellationPeriodSumAggregateInputType _min?: CancellationPeriodMinAggregateInputType _max?: CancellationPeriodMaxAggregateInputType } export type CancellationPeriodGroupByOutputType = { id: number code: string description: string isActive: boolean createdAt: Date updatedAt: Date _count: CancellationPeriodCountAggregateOutputType | null _avg: CancellationPeriodAvgAggregateOutputType | null _sum: CancellationPeriodSumAggregateOutputType | null _min: CancellationPeriodMinAggregateOutputType | null _max: CancellationPeriodMaxAggregateOutputType | null } type GetCancellationPeriodGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CancellationPeriodGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CancellationPeriodSelect = $Extensions.GetSelect<{ id?: boolean code?: boolean description?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean contracts?: boolean | CancellationPeriod$contractsArgs _count?: boolean | CancellationPeriodCountOutputTypeDefaultArgs }, ExtArgs["result"]["cancellationPeriod"]> export type CancellationPeriodSelectScalar = { id?: boolean code?: boolean description?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type CancellationPeriodInclude = { contracts?: boolean | CancellationPeriod$contractsArgs _count?: boolean | CancellationPeriodCountOutputTypeDefaultArgs } export type $CancellationPeriodPayload = { name: "CancellationPeriod" objects: { contracts: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number code: string description: string isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["cancellationPeriod"]> composites: {} } type CancellationPeriodGetPayload = $Result.GetResult type CancellationPeriodCountArgs = Omit & { select?: CancellationPeriodCountAggregateInputType | true } export interface CancellationPeriodDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CancellationPeriod'], meta: { name: 'CancellationPeriod' } } /** * Find zero or one CancellationPeriod that matches the filter. * @param {CancellationPeriodFindUniqueArgs} args - Arguments to find a CancellationPeriod * @example * // Get one CancellationPeriod * const cancellationPeriod = await prisma.cancellationPeriod.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one CancellationPeriod that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CancellationPeriodFindUniqueOrThrowArgs} args - Arguments to find a CancellationPeriod * @example * // Get one CancellationPeriod * const cancellationPeriod = await prisma.cancellationPeriod.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first CancellationPeriod 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 {CancellationPeriodFindFirstArgs} args - Arguments to find a CancellationPeriod * @example * // Get one CancellationPeriod * const cancellationPeriod = await prisma.cancellationPeriod.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first CancellationPeriod 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 {CancellationPeriodFindFirstOrThrowArgs} args - Arguments to find a CancellationPeriod * @example * // Get one CancellationPeriod * const cancellationPeriod = await prisma.cancellationPeriod.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more CancellationPeriods 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 {CancellationPeriodFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CancellationPeriods * const cancellationPeriods = await prisma.cancellationPeriod.findMany() * * // Get first 10 CancellationPeriods * const cancellationPeriods = await prisma.cancellationPeriod.findMany({ take: 10 }) * * // Only select the `id` * const cancellationPeriodWithIdOnly = await prisma.cancellationPeriod.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a CancellationPeriod. * @param {CancellationPeriodCreateArgs} args - Arguments to create a CancellationPeriod. * @example * // Create one CancellationPeriod * const CancellationPeriod = await prisma.cancellationPeriod.create({ * data: { * // ... data to create a CancellationPeriod * } * }) * */ create(args: SelectSubset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many CancellationPeriods. * @param {CancellationPeriodCreateManyArgs} args - Arguments to create many CancellationPeriods. * @example * // Create many CancellationPeriods * const cancellationPeriod = await prisma.cancellationPeriod.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a CancellationPeriod. * @param {CancellationPeriodDeleteArgs} args - Arguments to delete one CancellationPeriod. * @example * // Delete one CancellationPeriod * const CancellationPeriod = await prisma.cancellationPeriod.delete({ * where: { * // ... filter to delete one CancellationPeriod * } * }) * */ delete(args: SelectSubset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one CancellationPeriod. * @param {CancellationPeriodUpdateArgs} args - Arguments to update one CancellationPeriod. * @example * // Update one CancellationPeriod * const cancellationPeriod = await prisma.cancellationPeriod.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more CancellationPeriods. * @param {CancellationPeriodDeleteManyArgs} args - Arguments to filter CancellationPeriods to delete. * @example * // Delete a few CancellationPeriods * const { count } = await prisma.cancellationPeriod.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CancellationPeriods. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CancellationPeriodUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CancellationPeriods * const cancellationPeriod = await prisma.cancellationPeriod.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one CancellationPeriod. * @param {CancellationPeriodUpsertArgs} args - Arguments to update or create a CancellationPeriod. * @example * // Update or create a CancellationPeriod * const cancellationPeriod = await prisma.cancellationPeriod.upsert({ * create: { * // ... data to create a CancellationPeriod * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CancellationPeriod we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of CancellationPeriods. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CancellationPeriodCountArgs} args - Arguments to filter CancellationPeriods to count. * @example * // Count the number of CancellationPeriods * const count = await prisma.cancellationPeriod.count({ * where: { * // ... the filter for the CancellationPeriods we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a CancellationPeriod. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CancellationPeriodAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by CancellationPeriod. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CancellationPeriodGroupByArgs} 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 CancellationPeriodGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CancellationPeriodGroupByArgs['orderBy'] } : { orderBy?: CancellationPeriodGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCancellationPeriodGroupByPayload : Prisma.PrismaPromise /** * Fields of the CancellationPeriod model */ readonly fields: CancellationPeriodFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CancellationPeriod. * 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__CancellationPeriodClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the CancellationPeriod model */ interface CancellationPeriodFieldRefs { readonly id: FieldRef<"CancellationPeriod", 'Int'> readonly code: FieldRef<"CancellationPeriod", 'String'> readonly description: FieldRef<"CancellationPeriod", 'String'> readonly isActive: FieldRef<"CancellationPeriod", 'Boolean'> readonly createdAt: FieldRef<"CancellationPeriod", 'DateTime'> readonly updatedAt: FieldRef<"CancellationPeriod", 'DateTime'> } // Custom InputTypes /** * CancellationPeriod findUnique */ export type CancellationPeriodFindUniqueArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * Filter, which CancellationPeriod to fetch. */ where: CancellationPeriodWhereUniqueInput } /** * CancellationPeriod findUniqueOrThrow */ export type CancellationPeriodFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * Filter, which CancellationPeriod to fetch. */ where: CancellationPeriodWhereUniqueInput } /** * CancellationPeriod findFirst */ export type CancellationPeriodFindFirstArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * Filter, which CancellationPeriod to fetch. */ where?: CancellationPeriodWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CancellationPeriods to fetch. */ orderBy?: CancellationPeriodOrderByWithRelationInput | CancellationPeriodOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CancellationPeriods. */ cursor?: CancellationPeriodWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CancellationPeriods 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` CancellationPeriods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CancellationPeriods. */ distinct?: CancellationPeriodScalarFieldEnum | CancellationPeriodScalarFieldEnum[] } /** * CancellationPeriod findFirstOrThrow */ export type CancellationPeriodFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * Filter, which CancellationPeriod to fetch. */ where?: CancellationPeriodWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CancellationPeriods to fetch. */ orderBy?: CancellationPeriodOrderByWithRelationInput | CancellationPeriodOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CancellationPeriods. */ cursor?: CancellationPeriodWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CancellationPeriods 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` CancellationPeriods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CancellationPeriods. */ distinct?: CancellationPeriodScalarFieldEnum | CancellationPeriodScalarFieldEnum[] } /** * CancellationPeriod findMany */ export type CancellationPeriodFindManyArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * Filter, which CancellationPeriods to fetch. */ where?: CancellationPeriodWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CancellationPeriods to fetch. */ orderBy?: CancellationPeriodOrderByWithRelationInput | CancellationPeriodOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CancellationPeriods. */ cursor?: CancellationPeriodWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CancellationPeriods 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` CancellationPeriods. */ skip?: number distinct?: CancellationPeriodScalarFieldEnum | CancellationPeriodScalarFieldEnum[] } /** * CancellationPeriod create */ export type CancellationPeriodCreateArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * The data needed to create a CancellationPeriod. */ data: XOR } /** * CancellationPeriod createMany */ export type CancellationPeriodCreateManyArgs = { /** * The data used to create many CancellationPeriods. */ data: CancellationPeriodCreateManyInput | CancellationPeriodCreateManyInput[] skipDuplicates?: boolean } /** * CancellationPeriod update */ export type CancellationPeriodUpdateArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * The data needed to update a CancellationPeriod. */ data: XOR /** * Choose, which CancellationPeriod to update. */ where: CancellationPeriodWhereUniqueInput } /** * CancellationPeriod updateMany */ export type CancellationPeriodUpdateManyArgs = { /** * The data used to update CancellationPeriods. */ data: XOR /** * Filter which CancellationPeriods to update */ where?: CancellationPeriodWhereInput } /** * CancellationPeriod upsert */ export type CancellationPeriodUpsertArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * The filter to search for the CancellationPeriod to update in case it exists. */ where: CancellationPeriodWhereUniqueInput /** * In case the CancellationPeriod found by the `where` argument doesn't exist, create a new CancellationPeriod with this data. */ create: XOR /** * In case the CancellationPeriod was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CancellationPeriod delete */ export type CancellationPeriodDeleteArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null /** * Filter which CancellationPeriod to delete. */ where: CancellationPeriodWhereUniqueInput } /** * CancellationPeriod deleteMany */ export type CancellationPeriodDeleteManyArgs = { /** * Filter which CancellationPeriods to delete */ where?: CancellationPeriodWhereInput } /** * CancellationPeriod.contracts */ export type CancellationPeriod$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * CancellationPeriod without action */ export type CancellationPeriodDefaultArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null } /** * Model ContractDuration */ export type AggregateContractDuration = { _count: ContractDurationCountAggregateOutputType | null _avg: ContractDurationAvgAggregateOutputType | null _sum: ContractDurationSumAggregateOutputType | null _min: ContractDurationMinAggregateOutputType | null _max: ContractDurationMaxAggregateOutputType | null } export type ContractDurationAvgAggregateOutputType = { id: number | null } export type ContractDurationSumAggregateOutputType = { id: number | null } export type ContractDurationMinAggregateOutputType = { id: number | null code: string | null description: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type ContractDurationMaxAggregateOutputType = { id: number | null code: string | null description: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type ContractDurationCountAggregateOutputType = { id: number code: number description: number isActive: number createdAt: number updatedAt: number _all: number } export type ContractDurationAvgAggregateInputType = { id?: true } export type ContractDurationSumAggregateInputType = { id?: true } export type ContractDurationMinAggregateInputType = { id?: true code?: true description?: true isActive?: true createdAt?: true updatedAt?: true } export type ContractDurationMaxAggregateInputType = { id?: true code?: true description?: true isActive?: true createdAt?: true updatedAt?: true } export type ContractDurationCountAggregateInputType = { id?: true code?: true description?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type ContractDurationAggregateArgs = { /** * Filter which ContractDuration to aggregate. */ where?: ContractDurationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractDurations to fetch. */ orderBy?: ContractDurationOrderByWithRelationInput | ContractDurationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ContractDurationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractDurations 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` ContractDurations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ContractDurations **/ _count?: true | ContractDurationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ContractDurationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ContractDurationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ContractDurationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ContractDurationMaxAggregateInputType } export type GetContractDurationAggregateType = { [P in keyof T & keyof AggregateContractDuration]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ContractDurationGroupByArgs = { where?: ContractDurationWhereInput orderBy?: ContractDurationOrderByWithAggregationInput | ContractDurationOrderByWithAggregationInput[] by: ContractDurationScalarFieldEnum[] | ContractDurationScalarFieldEnum having?: ContractDurationScalarWhereWithAggregatesInput take?: number skip?: number _count?: ContractDurationCountAggregateInputType | true _avg?: ContractDurationAvgAggregateInputType _sum?: ContractDurationSumAggregateInputType _min?: ContractDurationMinAggregateInputType _max?: ContractDurationMaxAggregateInputType } export type ContractDurationGroupByOutputType = { id: number code: string description: string isActive: boolean createdAt: Date updatedAt: Date _count: ContractDurationCountAggregateOutputType | null _avg: ContractDurationAvgAggregateOutputType | null _sum: ContractDurationSumAggregateOutputType | null _min: ContractDurationMinAggregateOutputType | null _max: ContractDurationMaxAggregateOutputType | null } type GetContractDurationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ContractDurationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ContractDurationSelect = $Extensions.GetSelect<{ id?: boolean code?: boolean description?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean contracts?: boolean | ContractDuration$contractsArgs _count?: boolean | ContractDurationCountOutputTypeDefaultArgs }, ExtArgs["result"]["contractDuration"]> export type ContractDurationSelectScalar = { id?: boolean code?: boolean description?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type ContractDurationInclude = { contracts?: boolean | ContractDuration$contractsArgs _count?: boolean | ContractDurationCountOutputTypeDefaultArgs } export type $ContractDurationPayload = { name: "ContractDuration" objects: { contracts: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number code: string description: string isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["contractDuration"]> composites: {} } type ContractDurationGetPayload = $Result.GetResult type ContractDurationCountArgs = Omit & { select?: ContractDurationCountAggregateInputType | true } export interface ContractDurationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ContractDuration'], meta: { name: 'ContractDuration' } } /** * Find zero or one ContractDuration that matches the filter. * @param {ContractDurationFindUniqueArgs} args - Arguments to find a ContractDuration * @example * // Get one ContractDuration * const contractDuration = await prisma.contractDuration.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ContractDurationClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ContractDuration that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ContractDurationFindUniqueOrThrowArgs} args - Arguments to find a ContractDuration * @example * // Get one ContractDuration * const contractDuration = await prisma.contractDuration.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ContractDurationClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ContractDuration 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 {ContractDurationFindFirstArgs} args - Arguments to find a ContractDuration * @example * // Get one ContractDuration * const contractDuration = await prisma.contractDuration.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ContractDurationClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ContractDuration 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 {ContractDurationFindFirstOrThrowArgs} args - Arguments to find a ContractDuration * @example * // Get one ContractDuration * const contractDuration = await prisma.contractDuration.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ContractDurationClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ContractDurations 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 {ContractDurationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ContractDurations * const contractDurations = await prisma.contractDuration.findMany() * * // Get first 10 ContractDurations * const contractDurations = await prisma.contractDuration.findMany({ take: 10 }) * * // Only select the `id` * const contractDurationWithIdOnly = await prisma.contractDuration.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ContractDuration. * @param {ContractDurationCreateArgs} args - Arguments to create a ContractDuration. * @example * // Create one ContractDuration * const ContractDuration = await prisma.contractDuration.create({ * data: { * // ... data to create a ContractDuration * } * }) * */ create(args: SelectSubset>): Prisma__ContractDurationClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ContractDurations. * @param {ContractDurationCreateManyArgs} args - Arguments to create many ContractDurations. * @example * // Create many ContractDurations * const contractDuration = await prisma.contractDuration.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a ContractDuration. * @param {ContractDurationDeleteArgs} args - Arguments to delete one ContractDuration. * @example * // Delete one ContractDuration * const ContractDuration = await prisma.contractDuration.delete({ * where: { * // ... filter to delete one ContractDuration * } * }) * */ delete(args: SelectSubset>): Prisma__ContractDurationClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ContractDuration. * @param {ContractDurationUpdateArgs} args - Arguments to update one ContractDuration. * @example * // Update one ContractDuration * const contractDuration = await prisma.contractDuration.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ContractDurationClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ContractDurations. * @param {ContractDurationDeleteManyArgs} args - Arguments to filter ContractDurations to delete. * @example * // Delete a few ContractDurations * const { count } = await prisma.contractDuration.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ContractDurations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractDurationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ContractDurations * const contractDuration = await prisma.contractDuration.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ContractDuration. * @param {ContractDurationUpsertArgs} args - Arguments to update or create a ContractDuration. * @example * // Update or create a ContractDuration * const contractDuration = await prisma.contractDuration.upsert({ * create: { * // ... data to create a ContractDuration * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ContractDuration we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ContractDurationClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ContractDurations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractDurationCountArgs} args - Arguments to filter ContractDurations to count. * @example * // Count the number of ContractDurations * const count = await prisma.contractDuration.count({ * where: { * // ... the filter for the ContractDurations we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a ContractDuration. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractDurationAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by ContractDuration. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractDurationGroupByArgs} 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 ContractDurationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ContractDurationGroupByArgs['orderBy'] } : { orderBy?: ContractDurationGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetContractDurationGroupByPayload : Prisma.PrismaPromise /** * Fields of the ContractDuration model */ readonly fields: ContractDurationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ContractDuration. * 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__ContractDurationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the ContractDuration model */ interface ContractDurationFieldRefs { readonly id: FieldRef<"ContractDuration", 'Int'> readonly code: FieldRef<"ContractDuration", 'String'> readonly description: FieldRef<"ContractDuration", 'String'> readonly isActive: FieldRef<"ContractDuration", 'Boolean'> readonly createdAt: FieldRef<"ContractDuration", 'DateTime'> readonly updatedAt: FieldRef<"ContractDuration", 'DateTime'> } // Custom InputTypes /** * ContractDuration findUnique */ export type ContractDurationFindUniqueArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * Filter, which ContractDuration to fetch. */ where: ContractDurationWhereUniqueInput } /** * ContractDuration findUniqueOrThrow */ export type ContractDurationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * Filter, which ContractDuration to fetch. */ where: ContractDurationWhereUniqueInput } /** * ContractDuration findFirst */ export type ContractDurationFindFirstArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * Filter, which ContractDuration to fetch. */ where?: ContractDurationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractDurations to fetch. */ orderBy?: ContractDurationOrderByWithRelationInput | ContractDurationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ContractDurations. */ cursor?: ContractDurationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractDurations 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` ContractDurations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ContractDurations. */ distinct?: ContractDurationScalarFieldEnum | ContractDurationScalarFieldEnum[] } /** * ContractDuration findFirstOrThrow */ export type ContractDurationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * Filter, which ContractDuration to fetch. */ where?: ContractDurationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractDurations to fetch. */ orderBy?: ContractDurationOrderByWithRelationInput | ContractDurationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ContractDurations. */ cursor?: ContractDurationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractDurations 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` ContractDurations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ContractDurations. */ distinct?: ContractDurationScalarFieldEnum | ContractDurationScalarFieldEnum[] } /** * ContractDuration findMany */ export type ContractDurationFindManyArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * Filter, which ContractDurations to fetch. */ where?: ContractDurationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractDurations to fetch. */ orderBy?: ContractDurationOrderByWithRelationInput | ContractDurationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ContractDurations. */ cursor?: ContractDurationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractDurations 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` ContractDurations. */ skip?: number distinct?: ContractDurationScalarFieldEnum | ContractDurationScalarFieldEnum[] } /** * ContractDuration create */ export type ContractDurationCreateArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * The data needed to create a ContractDuration. */ data: XOR } /** * ContractDuration createMany */ export type ContractDurationCreateManyArgs = { /** * The data used to create many ContractDurations. */ data: ContractDurationCreateManyInput | ContractDurationCreateManyInput[] skipDuplicates?: boolean } /** * ContractDuration update */ export type ContractDurationUpdateArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * The data needed to update a ContractDuration. */ data: XOR /** * Choose, which ContractDuration to update. */ where: ContractDurationWhereUniqueInput } /** * ContractDuration updateMany */ export type ContractDurationUpdateManyArgs = { /** * The data used to update ContractDurations. */ data: XOR /** * Filter which ContractDurations to update */ where?: ContractDurationWhereInput } /** * ContractDuration upsert */ export type ContractDurationUpsertArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * The filter to search for the ContractDuration to update in case it exists. */ where: ContractDurationWhereUniqueInput /** * In case the ContractDuration found by the `where` argument doesn't exist, create a new ContractDuration with this data. */ create: XOR /** * In case the ContractDuration was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ContractDuration delete */ export type ContractDurationDeleteArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null /** * Filter which ContractDuration to delete. */ where: ContractDurationWhereUniqueInput } /** * ContractDuration deleteMany */ export type ContractDurationDeleteManyArgs = { /** * Filter which ContractDurations to delete */ where?: ContractDurationWhereInput } /** * ContractDuration.contracts */ export type ContractDuration$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * ContractDuration without action */ export type ContractDurationDefaultArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null } /** * Model Provider */ export type AggregateProvider = { _count: ProviderCountAggregateOutputType | null _avg: ProviderAvgAggregateOutputType | null _sum: ProviderSumAggregateOutputType | null _min: ProviderMinAggregateOutputType | null _max: ProviderMaxAggregateOutputType | null } export type ProviderAvgAggregateOutputType = { id: number | null } export type ProviderSumAggregateOutputType = { id: number | null } export type ProviderMinAggregateOutputType = { id: number | null name: string | null portalUrl: string | null usernameFieldName: string | null passwordFieldName: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type ProviderMaxAggregateOutputType = { id: number | null name: string | null portalUrl: string | null usernameFieldName: string | null passwordFieldName: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type ProviderCountAggregateOutputType = { id: number name: number portalUrl: number usernameFieldName: number passwordFieldName: number isActive: number createdAt: number updatedAt: number _all: number } export type ProviderAvgAggregateInputType = { id?: true } export type ProviderSumAggregateInputType = { id?: true } export type ProviderMinAggregateInputType = { id?: true name?: true portalUrl?: true usernameFieldName?: true passwordFieldName?: true isActive?: true createdAt?: true updatedAt?: true } export type ProviderMaxAggregateInputType = { id?: true name?: true portalUrl?: true usernameFieldName?: true passwordFieldName?: true isActive?: true createdAt?: true updatedAt?: true } export type ProviderCountAggregateInputType = { id?: true name?: true portalUrl?: true usernameFieldName?: true passwordFieldName?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type ProviderAggregateArgs = { /** * Filter which Provider to aggregate. */ where?: ProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Providers to fetch. */ orderBy?: ProviderOrderByWithRelationInput | ProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Providers 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` Providers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Providers **/ _count?: true | ProviderCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ProviderAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ProviderSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProviderMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProviderMaxAggregateInputType } export type GetProviderAggregateType = { [P in keyof T & keyof AggregateProvider]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ProviderGroupByArgs = { where?: ProviderWhereInput orderBy?: ProviderOrderByWithAggregationInput | ProviderOrderByWithAggregationInput[] by: ProviderScalarFieldEnum[] | ProviderScalarFieldEnum having?: ProviderScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProviderCountAggregateInputType | true _avg?: ProviderAvgAggregateInputType _sum?: ProviderSumAggregateInputType _min?: ProviderMinAggregateInputType _max?: ProviderMaxAggregateInputType } export type ProviderGroupByOutputType = { id: number name: string portalUrl: string | null usernameFieldName: string | null passwordFieldName: string | null isActive: boolean createdAt: Date updatedAt: Date _count: ProviderCountAggregateOutputType | null _avg: ProviderAvgAggregateOutputType | null _sum: ProviderSumAggregateOutputType | null _min: ProviderMinAggregateOutputType | null _max: ProviderMaxAggregateOutputType | null } type GetProviderGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ProviderGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ProviderSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean portalUrl?: boolean usernameFieldName?: boolean passwordFieldName?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean tariffs?: boolean | Provider$tariffsArgs contracts?: boolean | Provider$contractsArgs _count?: boolean | ProviderCountOutputTypeDefaultArgs }, ExtArgs["result"]["provider"]> export type ProviderSelectScalar = { id?: boolean name?: boolean portalUrl?: boolean usernameFieldName?: boolean passwordFieldName?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type ProviderInclude = { tariffs?: boolean | Provider$tariffsArgs contracts?: boolean | Provider$contractsArgs _count?: boolean | ProviderCountOutputTypeDefaultArgs } export type $ProviderPayload = { name: "Provider" objects: { tariffs: Prisma.$TariffPayload[] contracts: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number name: string portalUrl: string | null usernameFieldName: string | null passwordFieldName: string | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["provider"]> composites: {} } type ProviderGetPayload = $Result.GetResult type ProviderCountArgs = Omit & { select?: ProviderCountAggregateInputType | true } export interface ProviderDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Provider'], meta: { name: 'Provider' } } /** * Find zero or one Provider that matches the filter. * @param {ProviderFindUniqueArgs} args - Arguments to find a Provider * @example * // Get one Provider * const provider = await prisma.provider.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ProviderClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Provider that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProviderFindUniqueOrThrowArgs} args - Arguments to find a Provider * @example * // Get one Provider * const provider = await prisma.provider.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ProviderClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Provider 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 {ProviderFindFirstArgs} args - Arguments to find a Provider * @example * // Get one Provider * const provider = await prisma.provider.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ProviderClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Provider 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 {ProviderFindFirstOrThrowArgs} args - Arguments to find a Provider * @example * // Get one Provider * const provider = await prisma.provider.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ProviderClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Providers 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 {ProviderFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Providers * const providers = await prisma.provider.findMany() * * // Get first 10 Providers * const providers = await prisma.provider.findMany({ take: 10 }) * * // Only select the `id` * const providerWithIdOnly = await prisma.provider.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Provider. * @param {ProviderCreateArgs} args - Arguments to create a Provider. * @example * // Create one Provider * const Provider = await prisma.provider.create({ * data: { * // ... data to create a Provider * } * }) * */ create(args: SelectSubset>): Prisma__ProviderClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Providers. * @param {ProviderCreateManyArgs} args - Arguments to create many Providers. * @example * // Create many Providers * const provider = await prisma.provider.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Provider. * @param {ProviderDeleteArgs} args - Arguments to delete one Provider. * @example * // Delete one Provider * const Provider = await prisma.provider.delete({ * where: { * // ... filter to delete one Provider * } * }) * */ delete(args: SelectSubset>): Prisma__ProviderClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Provider. * @param {ProviderUpdateArgs} args - Arguments to update one Provider. * @example * // Update one Provider * const provider = await prisma.provider.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ProviderClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Providers. * @param {ProviderDeleteManyArgs} args - Arguments to filter Providers to delete. * @example * // Delete a few Providers * const { count } = await prisma.provider.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Providers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProviderUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Providers * const provider = await prisma.provider.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Provider. * @param {ProviderUpsertArgs} args - Arguments to update or create a Provider. * @example * // Update or create a Provider * const provider = await prisma.provider.upsert({ * create: { * // ... data to create a Provider * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Provider we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ProviderClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Providers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProviderCountArgs} args - Arguments to filter Providers to count. * @example * // Count the number of Providers * const count = await prisma.provider.count({ * where: { * // ... the filter for the Providers we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Provider. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProviderAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Provider. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProviderGroupByArgs} 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 ProviderGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ProviderGroupByArgs['orderBy'] } : { orderBy?: ProviderGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetProviderGroupByPayload : Prisma.PrismaPromise /** * Fields of the Provider model */ readonly fields: ProviderFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Provider. * 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__ProviderClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tariffs = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Provider model */ interface ProviderFieldRefs { readonly id: FieldRef<"Provider", 'Int'> readonly name: FieldRef<"Provider", 'String'> readonly portalUrl: FieldRef<"Provider", 'String'> readonly usernameFieldName: FieldRef<"Provider", 'String'> readonly passwordFieldName: FieldRef<"Provider", 'String'> readonly isActive: FieldRef<"Provider", 'Boolean'> readonly createdAt: FieldRef<"Provider", 'DateTime'> readonly updatedAt: FieldRef<"Provider", 'DateTime'> } // Custom InputTypes /** * Provider findUnique */ export type ProviderFindUniqueArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * Filter, which Provider to fetch. */ where: ProviderWhereUniqueInput } /** * Provider findUniqueOrThrow */ export type ProviderFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * Filter, which Provider to fetch. */ where: ProviderWhereUniqueInput } /** * Provider findFirst */ export type ProviderFindFirstArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * Filter, which Provider to fetch. */ where?: ProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Providers to fetch. */ orderBy?: ProviderOrderByWithRelationInput | ProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Providers. */ cursor?: ProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Providers 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` Providers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Providers. */ distinct?: ProviderScalarFieldEnum | ProviderScalarFieldEnum[] } /** * Provider findFirstOrThrow */ export type ProviderFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * Filter, which Provider to fetch. */ where?: ProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Providers to fetch. */ orderBy?: ProviderOrderByWithRelationInput | ProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Providers. */ cursor?: ProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Providers 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` Providers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Providers. */ distinct?: ProviderScalarFieldEnum | ProviderScalarFieldEnum[] } /** * Provider findMany */ export type ProviderFindManyArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * Filter, which Providers to fetch. */ where?: ProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Providers to fetch. */ orderBy?: ProviderOrderByWithRelationInput | ProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Providers. */ cursor?: ProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Providers 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` Providers. */ skip?: number distinct?: ProviderScalarFieldEnum | ProviderScalarFieldEnum[] } /** * Provider create */ export type ProviderCreateArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * The data needed to create a Provider. */ data: XOR } /** * Provider createMany */ export type ProviderCreateManyArgs = { /** * The data used to create many Providers. */ data: ProviderCreateManyInput | ProviderCreateManyInput[] skipDuplicates?: boolean } /** * Provider update */ export type ProviderUpdateArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * The data needed to update a Provider. */ data: XOR /** * Choose, which Provider to update. */ where: ProviderWhereUniqueInput } /** * Provider updateMany */ export type ProviderUpdateManyArgs = { /** * The data used to update Providers. */ data: XOR /** * Filter which Providers to update */ where?: ProviderWhereInput } /** * Provider upsert */ export type ProviderUpsertArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * The filter to search for the Provider to update in case it exists. */ where: ProviderWhereUniqueInput /** * In case the Provider found by the `where` argument doesn't exist, create a new Provider with this data. */ create: XOR /** * In case the Provider was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Provider delete */ export type ProviderDeleteArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null /** * Filter which Provider to delete. */ where: ProviderWhereUniqueInput } /** * Provider deleteMany */ export type ProviderDeleteManyArgs = { /** * Filter which Providers to delete */ where?: ProviderWhereInput } /** * Provider.tariffs */ export type Provider$tariffsArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null where?: TariffWhereInput orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[] cursor?: TariffWhereUniqueInput take?: number skip?: number distinct?: TariffScalarFieldEnum | TariffScalarFieldEnum[] } /** * Provider.contracts */ export type Provider$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * Provider without action */ export type ProviderDefaultArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null } /** * Model Tariff */ export type AggregateTariff = { _count: TariffCountAggregateOutputType | null _avg: TariffAvgAggregateOutputType | null _sum: TariffSumAggregateOutputType | null _min: TariffMinAggregateOutputType | null _max: TariffMaxAggregateOutputType | null } export type TariffAvgAggregateOutputType = { id: number | null providerId: number | null } export type TariffSumAggregateOutputType = { id: number | null providerId: number | null } export type TariffMinAggregateOutputType = { id: number | null providerId: number | null name: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type TariffMaxAggregateOutputType = { id: number | null providerId: number | null name: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type TariffCountAggregateOutputType = { id: number providerId: number name: number isActive: number createdAt: number updatedAt: number _all: number } export type TariffAvgAggregateInputType = { id?: true providerId?: true } export type TariffSumAggregateInputType = { id?: true providerId?: true } export type TariffMinAggregateInputType = { id?: true providerId?: true name?: true isActive?: true createdAt?: true updatedAt?: true } export type TariffMaxAggregateInputType = { id?: true providerId?: true name?: true isActive?: true createdAt?: true updatedAt?: true } export type TariffCountAggregateInputType = { id?: true providerId?: true name?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type TariffAggregateArgs = { /** * Filter which Tariff to aggregate. */ where?: TariffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tariffs to fetch. */ orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TariffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tariffs 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` Tariffs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Tariffs **/ _count?: true | TariffCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TariffAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TariffSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TariffMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TariffMaxAggregateInputType } export type GetTariffAggregateType = { [P in keyof T & keyof AggregateTariff]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TariffGroupByArgs = { where?: TariffWhereInput orderBy?: TariffOrderByWithAggregationInput | TariffOrderByWithAggregationInput[] by: TariffScalarFieldEnum[] | TariffScalarFieldEnum having?: TariffScalarWhereWithAggregatesInput take?: number skip?: number _count?: TariffCountAggregateInputType | true _avg?: TariffAvgAggregateInputType _sum?: TariffSumAggregateInputType _min?: TariffMinAggregateInputType _max?: TariffMaxAggregateInputType } export type TariffGroupByOutputType = { id: number providerId: number name: string isActive: boolean createdAt: Date updatedAt: Date _count: TariffCountAggregateOutputType | null _avg: TariffAvgAggregateOutputType | null _sum: TariffSumAggregateOutputType | null _min: TariffMinAggregateOutputType | null _max: TariffMaxAggregateOutputType | null } type GetTariffGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TariffGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TariffSelect = $Extensions.GetSelect<{ id?: boolean providerId?: boolean name?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean provider?: boolean | ProviderDefaultArgs contracts?: boolean | Tariff$contractsArgs _count?: boolean | TariffCountOutputTypeDefaultArgs }, ExtArgs["result"]["tariff"]> export type TariffSelectScalar = { id?: boolean providerId?: boolean name?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type TariffInclude = { provider?: boolean | ProviderDefaultArgs contracts?: boolean | Tariff$contractsArgs _count?: boolean | TariffCountOutputTypeDefaultArgs } export type $TariffPayload = { name: "Tariff" objects: { provider: Prisma.$ProviderPayload contracts: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number providerId: number name: string isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["tariff"]> composites: {} } type TariffGetPayload = $Result.GetResult type TariffCountArgs = Omit & { select?: TariffCountAggregateInputType | true } export interface TariffDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Tariff'], meta: { name: 'Tariff' } } /** * Find zero or one Tariff that matches the filter. * @param {TariffFindUniqueArgs} args - Arguments to find a Tariff * @example * // Get one Tariff * const tariff = await prisma.tariff.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TariffClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Tariff that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TariffFindUniqueOrThrowArgs} args - Arguments to find a Tariff * @example * // Get one Tariff * const tariff = await prisma.tariff.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TariffClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Tariff 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 {TariffFindFirstArgs} args - Arguments to find a Tariff * @example * // Get one Tariff * const tariff = await prisma.tariff.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TariffClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Tariff 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 {TariffFindFirstOrThrowArgs} args - Arguments to find a Tariff * @example * // Get one Tariff * const tariff = await prisma.tariff.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TariffClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Tariffs 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 {TariffFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Tariffs * const tariffs = await prisma.tariff.findMany() * * // Get first 10 Tariffs * const tariffs = await prisma.tariff.findMany({ take: 10 }) * * // Only select the `id` * const tariffWithIdOnly = await prisma.tariff.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Tariff. * @param {TariffCreateArgs} args - Arguments to create a Tariff. * @example * // Create one Tariff * const Tariff = await prisma.tariff.create({ * data: { * // ... data to create a Tariff * } * }) * */ create(args: SelectSubset>): Prisma__TariffClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Tariffs. * @param {TariffCreateManyArgs} args - Arguments to create many Tariffs. * @example * // Create many Tariffs * const tariff = await prisma.tariff.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Tariff. * @param {TariffDeleteArgs} args - Arguments to delete one Tariff. * @example * // Delete one Tariff * const Tariff = await prisma.tariff.delete({ * where: { * // ... filter to delete one Tariff * } * }) * */ delete(args: SelectSubset>): Prisma__TariffClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Tariff. * @param {TariffUpdateArgs} args - Arguments to update one Tariff. * @example * // Update one Tariff * const tariff = await prisma.tariff.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TariffClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Tariffs. * @param {TariffDeleteManyArgs} args - Arguments to filter Tariffs to delete. * @example * // Delete a few Tariffs * const { count } = await prisma.tariff.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Tariffs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TariffUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Tariffs * const tariff = await prisma.tariff.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Tariff. * @param {TariffUpsertArgs} args - Arguments to update or create a Tariff. * @example * // Update or create a Tariff * const tariff = await prisma.tariff.upsert({ * create: { * // ... data to create a Tariff * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Tariff we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TariffClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Tariffs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TariffCountArgs} args - Arguments to filter Tariffs to count. * @example * // Count the number of Tariffs * const count = await prisma.tariff.count({ * where: { * // ... the filter for the Tariffs we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Tariff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TariffAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Tariff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TariffGroupByArgs} 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 TariffGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TariffGroupByArgs['orderBy'] } : { orderBy?: TariffGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetTariffGroupByPayload : Prisma.PrismaPromise /** * Fields of the Tariff model */ readonly fields: TariffFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Tariff. * 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__TariffClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" provider = {}>(args?: Subset>): Prisma__ProviderClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Tariff model */ interface TariffFieldRefs { readonly id: FieldRef<"Tariff", 'Int'> readonly providerId: FieldRef<"Tariff", 'Int'> readonly name: FieldRef<"Tariff", 'String'> readonly isActive: FieldRef<"Tariff", 'Boolean'> readonly createdAt: FieldRef<"Tariff", 'DateTime'> readonly updatedAt: FieldRef<"Tariff", 'DateTime'> } // Custom InputTypes /** * Tariff findUnique */ export type TariffFindUniqueArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * Filter, which Tariff to fetch. */ where: TariffWhereUniqueInput } /** * Tariff findUniqueOrThrow */ export type TariffFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * Filter, which Tariff to fetch. */ where: TariffWhereUniqueInput } /** * Tariff findFirst */ export type TariffFindFirstArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * Filter, which Tariff to fetch. */ where?: TariffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tariffs to fetch. */ orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tariffs. */ cursor?: TariffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tariffs 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` Tariffs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tariffs. */ distinct?: TariffScalarFieldEnum | TariffScalarFieldEnum[] } /** * Tariff findFirstOrThrow */ export type TariffFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * Filter, which Tariff to fetch. */ where?: TariffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tariffs to fetch. */ orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tariffs. */ cursor?: TariffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tariffs 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` Tariffs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tariffs. */ distinct?: TariffScalarFieldEnum | TariffScalarFieldEnum[] } /** * Tariff findMany */ export type TariffFindManyArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * Filter, which Tariffs to fetch. */ where?: TariffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tariffs to fetch. */ orderBy?: TariffOrderByWithRelationInput | TariffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Tariffs. */ cursor?: TariffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tariffs 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` Tariffs. */ skip?: number distinct?: TariffScalarFieldEnum | TariffScalarFieldEnum[] } /** * Tariff create */ export type TariffCreateArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * The data needed to create a Tariff. */ data: XOR } /** * Tariff createMany */ export type TariffCreateManyArgs = { /** * The data used to create many Tariffs. */ data: TariffCreateManyInput | TariffCreateManyInput[] skipDuplicates?: boolean } /** * Tariff update */ export type TariffUpdateArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * The data needed to update a Tariff. */ data: XOR /** * Choose, which Tariff to update. */ where: TariffWhereUniqueInput } /** * Tariff updateMany */ export type TariffUpdateManyArgs = { /** * The data used to update Tariffs. */ data: XOR /** * Filter which Tariffs to update */ where?: TariffWhereInput } /** * Tariff upsert */ export type TariffUpsertArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * The filter to search for the Tariff to update in case it exists. */ where: TariffWhereUniqueInput /** * In case the Tariff found by the `where` argument doesn't exist, create a new Tariff with this data. */ create: XOR /** * In case the Tariff was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Tariff delete */ export type TariffDeleteArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null /** * Filter which Tariff to delete. */ where: TariffWhereUniqueInput } /** * Tariff deleteMany */ export type TariffDeleteManyArgs = { /** * Filter which Tariffs to delete */ where?: TariffWhereInput } /** * Tariff.contracts */ export type Tariff$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * Tariff without action */ export type TariffDefaultArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null } /** * Model ContractCategory */ export type AggregateContractCategory = { _count: ContractCategoryCountAggregateOutputType | null _avg: ContractCategoryAvgAggregateOutputType | null _sum: ContractCategorySumAggregateOutputType | null _min: ContractCategoryMinAggregateOutputType | null _max: ContractCategoryMaxAggregateOutputType | null } export type ContractCategoryAvgAggregateOutputType = { id: number | null sortOrder: number | null } export type ContractCategorySumAggregateOutputType = { id: number | null sortOrder: number | null } export type ContractCategoryMinAggregateOutputType = { id: number | null code: string | null name: string | null icon: string | null color: string | null sortOrder: number | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type ContractCategoryMaxAggregateOutputType = { id: number | null code: string | null name: string | null icon: string | null color: string | null sortOrder: number | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type ContractCategoryCountAggregateOutputType = { id: number code: number name: number icon: number color: number sortOrder: number isActive: number createdAt: number updatedAt: number _all: number } export type ContractCategoryAvgAggregateInputType = { id?: true sortOrder?: true } export type ContractCategorySumAggregateInputType = { id?: true sortOrder?: true } export type ContractCategoryMinAggregateInputType = { id?: true code?: true name?: true icon?: true color?: true sortOrder?: true isActive?: true createdAt?: true updatedAt?: true } export type ContractCategoryMaxAggregateInputType = { id?: true code?: true name?: true icon?: true color?: true sortOrder?: true isActive?: true createdAt?: true updatedAt?: true } export type ContractCategoryCountAggregateInputType = { id?: true code?: true name?: true icon?: true color?: true sortOrder?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type ContractCategoryAggregateArgs = { /** * Filter which ContractCategory to aggregate. */ where?: ContractCategoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractCategories to fetch. */ orderBy?: ContractCategoryOrderByWithRelationInput | ContractCategoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ContractCategoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractCategories 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` ContractCategories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ContractCategories **/ _count?: true | ContractCategoryCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ContractCategoryAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ContractCategorySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ContractCategoryMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ContractCategoryMaxAggregateInputType } export type GetContractCategoryAggregateType = { [P in keyof T & keyof AggregateContractCategory]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ContractCategoryGroupByArgs = { where?: ContractCategoryWhereInput orderBy?: ContractCategoryOrderByWithAggregationInput | ContractCategoryOrderByWithAggregationInput[] by: ContractCategoryScalarFieldEnum[] | ContractCategoryScalarFieldEnum having?: ContractCategoryScalarWhereWithAggregatesInput take?: number skip?: number _count?: ContractCategoryCountAggregateInputType | true _avg?: ContractCategoryAvgAggregateInputType _sum?: ContractCategorySumAggregateInputType _min?: ContractCategoryMinAggregateInputType _max?: ContractCategoryMaxAggregateInputType } export type ContractCategoryGroupByOutputType = { id: number code: string name: string icon: string | null color: string | null sortOrder: number isActive: boolean createdAt: Date updatedAt: Date _count: ContractCategoryCountAggregateOutputType | null _avg: ContractCategoryAvgAggregateOutputType | null _sum: ContractCategorySumAggregateOutputType | null _min: ContractCategoryMinAggregateOutputType | null _max: ContractCategoryMaxAggregateOutputType | null } type GetContractCategoryGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ContractCategoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ContractCategorySelect = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean icon?: boolean color?: boolean sortOrder?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean contracts?: boolean | ContractCategory$contractsArgs _count?: boolean | ContractCategoryCountOutputTypeDefaultArgs }, ExtArgs["result"]["contractCategory"]> export type ContractCategorySelectScalar = { id?: boolean code?: boolean name?: boolean icon?: boolean color?: boolean sortOrder?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type ContractCategoryInclude = { contracts?: boolean | ContractCategory$contractsArgs _count?: boolean | ContractCategoryCountOutputTypeDefaultArgs } export type $ContractCategoryPayload = { name: "ContractCategory" objects: { contracts: Prisma.$ContractPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number code: string name: string icon: string | null color: string | null sortOrder: number isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["contractCategory"]> composites: {} } type ContractCategoryGetPayload = $Result.GetResult type ContractCategoryCountArgs = Omit & { select?: ContractCategoryCountAggregateInputType | true } export interface ContractCategoryDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ContractCategory'], meta: { name: 'ContractCategory' } } /** * Find zero or one ContractCategory that matches the filter. * @param {ContractCategoryFindUniqueArgs} args - Arguments to find a ContractCategory * @example * // Get one ContractCategory * const contractCategory = await prisma.contractCategory.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ContractCategory that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ContractCategoryFindUniqueOrThrowArgs} args - Arguments to find a ContractCategory * @example * // Get one ContractCategory * const contractCategory = await prisma.contractCategory.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ContractCategory 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 {ContractCategoryFindFirstArgs} args - Arguments to find a ContractCategory * @example * // Get one ContractCategory * const contractCategory = await prisma.contractCategory.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ContractCategory 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 {ContractCategoryFindFirstOrThrowArgs} args - Arguments to find a ContractCategory * @example * // Get one ContractCategory * const contractCategory = await prisma.contractCategory.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ContractCategories 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 {ContractCategoryFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ContractCategories * const contractCategories = await prisma.contractCategory.findMany() * * // Get first 10 ContractCategories * const contractCategories = await prisma.contractCategory.findMany({ take: 10 }) * * // Only select the `id` * const contractCategoryWithIdOnly = await prisma.contractCategory.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ContractCategory. * @param {ContractCategoryCreateArgs} args - Arguments to create a ContractCategory. * @example * // Create one ContractCategory * const ContractCategory = await prisma.contractCategory.create({ * data: { * // ... data to create a ContractCategory * } * }) * */ create(args: SelectSubset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ContractCategories. * @param {ContractCategoryCreateManyArgs} args - Arguments to create many ContractCategories. * @example * // Create many ContractCategories * const contractCategory = await prisma.contractCategory.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a ContractCategory. * @param {ContractCategoryDeleteArgs} args - Arguments to delete one ContractCategory. * @example * // Delete one ContractCategory * const ContractCategory = await prisma.contractCategory.delete({ * where: { * // ... filter to delete one ContractCategory * } * }) * */ delete(args: SelectSubset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ContractCategory. * @param {ContractCategoryUpdateArgs} args - Arguments to update one ContractCategory. * @example * // Update one ContractCategory * const contractCategory = await prisma.contractCategory.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ContractCategories. * @param {ContractCategoryDeleteManyArgs} args - Arguments to filter ContractCategories to delete. * @example * // Delete a few ContractCategories * const { count } = await prisma.contractCategory.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ContractCategories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractCategoryUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ContractCategories * const contractCategory = await prisma.contractCategory.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ContractCategory. * @param {ContractCategoryUpsertArgs} args - Arguments to update or create a ContractCategory. * @example * // Update or create a ContractCategory * const contractCategory = await prisma.contractCategory.upsert({ * create: { * // ... data to create a ContractCategory * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ContractCategory we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ContractCategories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractCategoryCountArgs} args - Arguments to filter ContractCategories to count. * @example * // Count the number of ContractCategories * const count = await prisma.contractCategory.count({ * where: { * // ... the filter for the ContractCategories we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a ContractCategory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractCategoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by ContractCategory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractCategoryGroupByArgs} 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 ContractCategoryGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ContractCategoryGroupByArgs['orderBy'] } : { orderBy?: ContractCategoryGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetContractCategoryGroupByPayload : Prisma.PrismaPromise /** * Fields of the ContractCategory model */ readonly fields: ContractCategoryFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ContractCategory. * 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__ContractCategoryClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contracts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the ContractCategory model */ interface ContractCategoryFieldRefs { readonly id: FieldRef<"ContractCategory", 'Int'> readonly code: FieldRef<"ContractCategory", 'String'> readonly name: FieldRef<"ContractCategory", 'String'> readonly icon: FieldRef<"ContractCategory", 'String'> readonly color: FieldRef<"ContractCategory", 'String'> readonly sortOrder: FieldRef<"ContractCategory", 'Int'> readonly isActive: FieldRef<"ContractCategory", 'Boolean'> readonly createdAt: FieldRef<"ContractCategory", 'DateTime'> readonly updatedAt: FieldRef<"ContractCategory", 'DateTime'> } // Custom InputTypes /** * ContractCategory findUnique */ export type ContractCategoryFindUniqueArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * Filter, which ContractCategory to fetch. */ where: ContractCategoryWhereUniqueInput } /** * ContractCategory findUniqueOrThrow */ export type ContractCategoryFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * Filter, which ContractCategory to fetch. */ where: ContractCategoryWhereUniqueInput } /** * ContractCategory findFirst */ export type ContractCategoryFindFirstArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * Filter, which ContractCategory to fetch. */ where?: ContractCategoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractCategories to fetch. */ orderBy?: ContractCategoryOrderByWithRelationInput | ContractCategoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ContractCategories. */ cursor?: ContractCategoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractCategories 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` ContractCategories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ContractCategories. */ distinct?: ContractCategoryScalarFieldEnum | ContractCategoryScalarFieldEnum[] } /** * ContractCategory findFirstOrThrow */ export type ContractCategoryFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * Filter, which ContractCategory to fetch. */ where?: ContractCategoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractCategories to fetch. */ orderBy?: ContractCategoryOrderByWithRelationInput | ContractCategoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ContractCategories. */ cursor?: ContractCategoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractCategories 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` ContractCategories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ContractCategories. */ distinct?: ContractCategoryScalarFieldEnum | ContractCategoryScalarFieldEnum[] } /** * ContractCategory findMany */ export type ContractCategoryFindManyArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * Filter, which ContractCategories to fetch. */ where?: ContractCategoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractCategories to fetch. */ orderBy?: ContractCategoryOrderByWithRelationInput | ContractCategoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ContractCategories. */ cursor?: ContractCategoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractCategories 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` ContractCategories. */ skip?: number distinct?: ContractCategoryScalarFieldEnum | ContractCategoryScalarFieldEnum[] } /** * ContractCategory create */ export type ContractCategoryCreateArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * The data needed to create a ContractCategory. */ data: XOR } /** * ContractCategory createMany */ export type ContractCategoryCreateManyArgs = { /** * The data used to create many ContractCategories. */ data: ContractCategoryCreateManyInput | ContractCategoryCreateManyInput[] skipDuplicates?: boolean } /** * ContractCategory update */ export type ContractCategoryUpdateArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * The data needed to update a ContractCategory. */ data: XOR /** * Choose, which ContractCategory to update. */ where: ContractCategoryWhereUniqueInput } /** * ContractCategory updateMany */ export type ContractCategoryUpdateManyArgs = { /** * The data used to update ContractCategories. */ data: XOR /** * Filter which ContractCategories to update */ where?: ContractCategoryWhereInput } /** * ContractCategory upsert */ export type ContractCategoryUpsertArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * The filter to search for the ContractCategory to update in case it exists. */ where: ContractCategoryWhereUniqueInput /** * In case the ContractCategory found by the `where` argument doesn't exist, create a new ContractCategory with this data. */ create: XOR /** * In case the ContractCategory was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ContractCategory delete */ export type ContractCategoryDeleteArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null /** * Filter which ContractCategory to delete. */ where: ContractCategoryWhereUniqueInput } /** * ContractCategory deleteMany */ export type ContractCategoryDeleteManyArgs = { /** * Filter which ContractCategories to delete */ where?: ContractCategoryWhereInput } /** * ContractCategory.contracts */ export type ContractCategory$contractsArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] cursor?: ContractWhereUniqueInput take?: number skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * ContractCategory without action */ export type ContractCategoryDefaultArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null } /** * Model Contract */ export type AggregateContract = { _count: ContractCountAggregateOutputType | null _avg: ContractAvgAggregateOutputType | null _sum: ContractSumAggregateOutputType | null _min: ContractMinAggregateOutputType | null _max: ContractMaxAggregateOutputType | null } export type ContractAvgAggregateOutputType = { id: number | null customerId: number | null contractCategoryId: number | null addressId: number | null billingAddressId: number | null bankCardId: number | null identityDocumentId: number | null salesPlatformId: number | null cancellationPeriodId: number | null contractDurationId: number | null previousContractId: number | null providerId: number | null tariffId: number | null commission: number | null stressfreiEmailId: number | null } export type ContractSumAggregateOutputType = { id: number | null customerId: number | null contractCategoryId: number | null addressId: number | null billingAddressId: number | null bankCardId: number | null identityDocumentId: number | null salesPlatformId: number | null cancellationPeriodId: number | null contractDurationId: number | null previousContractId: number | null providerId: number | null tariffId: number | null commission: number | null stressfreiEmailId: number | null } export type ContractMinAggregateOutputType = { id: number | null contractNumber: string | null customerId: number | null type: $Enums.ContractType | null status: $Enums.ContractStatus | null contractCategoryId: number | null addressId: number | null billingAddressId: number | null bankCardId: number | null identityDocumentId: number | null salesPlatformId: number | null cancellationPeriodId: number | null contractDurationId: number | null previousContractId: number | null providerId: number | null tariffId: number | null providerName: string | null tariffName: string | null customerNumberAtProvider: string | null priceFirst12Months: string | null priceFrom13Months: string | null priceAfter24Months: string | null startDate: Date | null endDate: Date | null commission: number | null cancellationLetterPath: string | null cancellationConfirmationPath: string | null cancellationLetterOptionsPath: string | null cancellationConfirmationOptionsPath: string | null cancellationConfirmationDate: Date | null cancellationConfirmationOptionsDate: Date | null wasSpecialCancellation: boolean | null portalUsername: string | null portalPasswordEncrypted: string | null stressfreiEmailId: number | null notes: string | null createdAt: Date | null updatedAt: Date | null } export type ContractMaxAggregateOutputType = { id: number | null contractNumber: string | null customerId: number | null type: $Enums.ContractType | null status: $Enums.ContractStatus | null contractCategoryId: number | null addressId: number | null billingAddressId: number | null bankCardId: number | null identityDocumentId: number | null salesPlatformId: number | null cancellationPeriodId: number | null contractDurationId: number | null previousContractId: number | null providerId: number | null tariffId: number | null providerName: string | null tariffName: string | null customerNumberAtProvider: string | null priceFirst12Months: string | null priceFrom13Months: string | null priceAfter24Months: string | null startDate: Date | null endDate: Date | null commission: number | null cancellationLetterPath: string | null cancellationConfirmationPath: string | null cancellationLetterOptionsPath: string | null cancellationConfirmationOptionsPath: string | null cancellationConfirmationDate: Date | null cancellationConfirmationOptionsDate: Date | null wasSpecialCancellation: boolean | null portalUsername: string | null portalPasswordEncrypted: string | null stressfreiEmailId: number | null notes: string | null createdAt: Date | null updatedAt: Date | null } export type ContractCountAggregateOutputType = { id: number contractNumber: number customerId: number type: number status: number contractCategoryId: number addressId: number billingAddressId: number bankCardId: number identityDocumentId: number salesPlatformId: number cancellationPeriodId: number contractDurationId: number previousContractId: number providerId: number tariffId: number providerName: number tariffName: number customerNumberAtProvider: number priceFirst12Months: number priceFrom13Months: number priceAfter24Months: number startDate: number endDate: number commission: number cancellationLetterPath: number cancellationConfirmationPath: number cancellationLetterOptionsPath: number cancellationConfirmationOptionsPath: number cancellationConfirmationDate: number cancellationConfirmationOptionsDate: number wasSpecialCancellation: number portalUsername: number portalPasswordEncrypted: number stressfreiEmailId: number notes: number createdAt: number updatedAt: number _all: number } export type ContractAvgAggregateInputType = { id?: true customerId?: true contractCategoryId?: true addressId?: true billingAddressId?: true bankCardId?: true identityDocumentId?: true salesPlatformId?: true cancellationPeriodId?: true contractDurationId?: true previousContractId?: true providerId?: true tariffId?: true commission?: true stressfreiEmailId?: true } export type ContractSumAggregateInputType = { id?: true customerId?: true contractCategoryId?: true addressId?: true billingAddressId?: true bankCardId?: true identityDocumentId?: true salesPlatformId?: true cancellationPeriodId?: true contractDurationId?: true previousContractId?: true providerId?: true tariffId?: true commission?: true stressfreiEmailId?: true } export type ContractMinAggregateInputType = { id?: true contractNumber?: true customerId?: true type?: true status?: true contractCategoryId?: true addressId?: true billingAddressId?: true bankCardId?: true identityDocumentId?: true salesPlatformId?: true cancellationPeriodId?: true contractDurationId?: true previousContractId?: true providerId?: true tariffId?: true providerName?: true tariffName?: true customerNumberAtProvider?: true priceFirst12Months?: true priceFrom13Months?: true priceAfter24Months?: true startDate?: true endDate?: true commission?: true cancellationLetterPath?: true cancellationConfirmationPath?: true cancellationLetterOptionsPath?: true cancellationConfirmationOptionsPath?: true cancellationConfirmationDate?: true cancellationConfirmationOptionsDate?: true wasSpecialCancellation?: true portalUsername?: true portalPasswordEncrypted?: true stressfreiEmailId?: true notes?: true createdAt?: true updatedAt?: true } export type ContractMaxAggregateInputType = { id?: true contractNumber?: true customerId?: true type?: true status?: true contractCategoryId?: true addressId?: true billingAddressId?: true bankCardId?: true identityDocumentId?: true salesPlatformId?: true cancellationPeriodId?: true contractDurationId?: true previousContractId?: true providerId?: true tariffId?: true providerName?: true tariffName?: true customerNumberAtProvider?: true priceFirst12Months?: true priceFrom13Months?: true priceAfter24Months?: true startDate?: true endDate?: true commission?: true cancellationLetterPath?: true cancellationConfirmationPath?: true cancellationLetterOptionsPath?: true cancellationConfirmationOptionsPath?: true cancellationConfirmationDate?: true cancellationConfirmationOptionsDate?: true wasSpecialCancellation?: true portalUsername?: true portalPasswordEncrypted?: true stressfreiEmailId?: true notes?: true createdAt?: true updatedAt?: true } export type ContractCountAggregateInputType = { id?: true contractNumber?: true customerId?: true type?: true status?: true contractCategoryId?: true addressId?: true billingAddressId?: true bankCardId?: true identityDocumentId?: true salesPlatformId?: true cancellationPeriodId?: true contractDurationId?: true previousContractId?: true providerId?: true tariffId?: true providerName?: true tariffName?: true customerNumberAtProvider?: true priceFirst12Months?: true priceFrom13Months?: true priceAfter24Months?: true startDate?: true endDate?: true commission?: true cancellationLetterPath?: true cancellationConfirmationPath?: true cancellationLetterOptionsPath?: true cancellationConfirmationOptionsPath?: true cancellationConfirmationDate?: true cancellationConfirmationOptionsDate?: true wasSpecialCancellation?: true portalUsername?: true portalPasswordEncrypted?: true stressfreiEmailId?: true notes?: true createdAt?: true updatedAt?: true _all?: true } export type ContractAggregateArgs = { /** * Filter which Contract to aggregate. */ where?: ContractWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Contracts to fetch. */ orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ContractWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Contracts 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` Contracts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Contracts **/ _count?: true | ContractCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ContractAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ContractSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ContractMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ContractMaxAggregateInputType } export type GetContractAggregateType = { [P in keyof T & keyof AggregateContract]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ContractGroupByArgs = { where?: ContractWhereInput orderBy?: ContractOrderByWithAggregationInput | ContractOrderByWithAggregationInput[] by: ContractScalarFieldEnum[] | ContractScalarFieldEnum having?: ContractScalarWhereWithAggregatesInput take?: number skip?: number _count?: ContractCountAggregateInputType | true _avg?: ContractAvgAggregateInputType _sum?: ContractSumAggregateInputType _min?: ContractMinAggregateInputType _max?: ContractMaxAggregateInputType } export type ContractGroupByOutputType = { id: number contractNumber: string customerId: number type: $Enums.ContractType status: $Enums.ContractStatus contractCategoryId: number | null addressId: number | null billingAddressId: number | null bankCardId: number | null identityDocumentId: number | null salesPlatformId: number | null cancellationPeriodId: number | null contractDurationId: number | null previousContractId: number | null providerId: number | null tariffId: number | null providerName: string | null tariffName: string | null customerNumberAtProvider: string | null priceFirst12Months: string | null priceFrom13Months: string | null priceAfter24Months: string | null startDate: Date | null endDate: Date | null commission: number | null cancellationLetterPath: string | null cancellationConfirmationPath: string | null cancellationLetterOptionsPath: string | null cancellationConfirmationOptionsPath: string | null cancellationConfirmationDate: Date | null cancellationConfirmationOptionsDate: Date | null wasSpecialCancellation: boolean portalUsername: string | null portalPasswordEncrypted: string | null stressfreiEmailId: number | null notes: string | null createdAt: Date updatedAt: Date _count: ContractCountAggregateOutputType | null _avg: ContractAvgAggregateOutputType | null _sum: ContractSumAggregateOutputType | null _min: ContractMinAggregateOutputType | null _max: ContractMaxAggregateOutputType | null } type GetContractGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ContractGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ContractSelect = $Extensions.GetSelect<{ id?: boolean contractNumber?: boolean customerId?: boolean type?: boolean status?: boolean contractCategoryId?: boolean addressId?: boolean billingAddressId?: boolean bankCardId?: boolean identityDocumentId?: boolean salesPlatformId?: boolean cancellationPeriodId?: boolean contractDurationId?: boolean previousContractId?: boolean providerId?: boolean tariffId?: boolean providerName?: boolean tariffName?: boolean customerNumberAtProvider?: boolean priceFirst12Months?: boolean priceFrom13Months?: boolean priceAfter24Months?: boolean startDate?: boolean endDate?: boolean commission?: boolean cancellationLetterPath?: boolean cancellationConfirmationPath?: boolean cancellationLetterOptionsPath?: boolean cancellationConfirmationOptionsPath?: boolean cancellationConfirmationDate?: boolean cancellationConfirmationOptionsDate?: boolean wasSpecialCancellation?: boolean portalUsername?: boolean portalPasswordEncrypted?: boolean stressfreiEmailId?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean customer?: boolean | CustomerDefaultArgs contractCategory?: boolean | Contract$contractCategoryArgs address?: boolean | Contract$addressArgs billingAddress?: boolean | Contract$billingAddressArgs bankCard?: boolean | Contract$bankCardArgs identityDocument?: boolean | Contract$identityDocumentArgs salesPlatform?: boolean | Contract$salesPlatformArgs cancellationPeriod?: boolean | Contract$cancellationPeriodArgs contractDuration?: boolean | Contract$contractDurationArgs previousContract?: boolean | Contract$previousContractArgs followUpContract?: boolean | Contract$followUpContractArgs provider?: boolean | Contract$providerArgs tariff?: boolean | Contract$tariffArgs stressfreiEmail?: boolean | Contract$stressfreiEmailArgs energyDetails?: boolean | Contract$energyDetailsArgs internetDetails?: boolean | Contract$internetDetailsArgs mobileDetails?: boolean | Contract$mobileDetailsArgs tvDetails?: boolean | Contract$tvDetailsArgs carInsuranceDetails?: boolean | Contract$carInsuranceDetailsArgs tasks?: boolean | Contract$tasksArgs assignedEmails?: boolean | Contract$assignedEmailsArgs _count?: boolean | ContractCountOutputTypeDefaultArgs }, ExtArgs["result"]["contract"]> export type ContractSelectScalar = { id?: boolean contractNumber?: boolean customerId?: boolean type?: boolean status?: boolean contractCategoryId?: boolean addressId?: boolean billingAddressId?: boolean bankCardId?: boolean identityDocumentId?: boolean salesPlatformId?: boolean cancellationPeriodId?: boolean contractDurationId?: boolean previousContractId?: boolean providerId?: boolean tariffId?: boolean providerName?: boolean tariffName?: boolean customerNumberAtProvider?: boolean priceFirst12Months?: boolean priceFrom13Months?: boolean priceAfter24Months?: boolean startDate?: boolean endDate?: boolean commission?: boolean cancellationLetterPath?: boolean cancellationConfirmationPath?: boolean cancellationLetterOptionsPath?: boolean cancellationConfirmationOptionsPath?: boolean cancellationConfirmationDate?: boolean cancellationConfirmationOptionsDate?: boolean wasSpecialCancellation?: boolean portalUsername?: boolean portalPasswordEncrypted?: boolean stressfreiEmailId?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean } export type ContractInclude = { customer?: boolean | CustomerDefaultArgs contractCategory?: boolean | Contract$contractCategoryArgs address?: boolean | Contract$addressArgs billingAddress?: boolean | Contract$billingAddressArgs bankCard?: boolean | Contract$bankCardArgs identityDocument?: boolean | Contract$identityDocumentArgs salesPlatform?: boolean | Contract$salesPlatformArgs cancellationPeriod?: boolean | Contract$cancellationPeriodArgs contractDuration?: boolean | Contract$contractDurationArgs previousContract?: boolean | Contract$previousContractArgs followUpContract?: boolean | Contract$followUpContractArgs provider?: boolean | Contract$providerArgs tariff?: boolean | Contract$tariffArgs stressfreiEmail?: boolean | Contract$stressfreiEmailArgs energyDetails?: boolean | Contract$energyDetailsArgs internetDetails?: boolean | Contract$internetDetailsArgs mobileDetails?: boolean | Contract$mobileDetailsArgs tvDetails?: boolean | Contract$tvDetailsArgs carInsuranceDetails?: boolean | Contract$carInsuranceDetailsArgs tasks?: boolean | Contract$tasksArgs assignedEmails?: boolean | Contract$assignedEmailsArgs _count?: boolean | ContractCountOutputTypeDefaultArgs } export type $ContractPayload = { name: "Contract" objects: { customer: Prisma.$CustomerPayload contractCategory: Prisma.$ContractCategoryPayload | null address: Prisma.$AddressPayload | null billingAddress: Prisma.$AddressPayload | null bankCard: Prisma.$BankCardPayload | null identityDocument: Prisma.$IdentityDocumentPayload | null salesPlatform: Prisma.$SalesPlatformPayload | null cancellationPeriod: Prisma.$CancellationPeriodPayload | null contractDuration: Prisma.$ContractDurationPayload | null previousContract: Prisma.$ContractPayload | null followUpContract: Prisma.$ContractPayload | null provider: Prisma.$ProviderPayload | null tariff: Prisma.$TariffPayload | null stressfreiEmail: Prisma.$StressfreiEmailPayload | null energyDetails: Prisma.$EnergyContractDetailsPayload | null internetDetails: Prisma.$InternetContractDetailsPayload | null mobileDetails: Prisma.$MobileContractDetailsPayload | null tvDetails: Prisma.$TvContractDetailsPayload | null carInsuranceDetails: Prisma.$CarInsuranceDetailsPayload | null tasks: Prisma.$ContractTaskPayload[] assignedEmails: Prisma.$CachedEmailPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number contractNumber: string customerId: number type: $Enums.ContractType status: $Enums.ContractStatus contractCategoryId: number | null addressId: number | null billingAddressId: number | null bankCardId: number | null identityDocumentId: number | null salesPlatformId: number | null cancellationPeriodId: number | null contractDurationId: number | null previousContractId: number | null providerId: number | null tariffId: number | null providerName: string | null tariffName: string | null customerNumberAtProvider: string | null priceFirst12Months: string | null priceFrom13Months: string | null priceAfter24Months: string | null startDate: Date | null endDate: Date | null commission: number | null cancellationLetterPath: string | null cancellationConfirmationPath: string | null cancellationLetterOptionsPath: string | null cancellationConfirmationOptionsPath: string | null cancellationConfirmationDate: Date | null cancellationConfirmationOptionsDate: Date | null wasSpecialCancellation: boolean portalUsername: string | null portalPasswordEncrypted: string | null stressfreiEmailId: number | null notes: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["contract"]> composites: {} } type ContractGetPayload = $Result.GetResult type ContractCountArgs = Omit & { select?: ContractCountAggregateInputType | true } export interface ContractDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Contract'], meta: { name: 'Contract' } } /** * Find zero or one Contract that matches the filter. * @param {ContractFindUniqueArgs} args - Arguments to find a Contract * @example * // Get one Contract * const contract = await prisma.contract.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ContractClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Contract that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ContractFindUniqueOrThrowArgs} args - Arguments to find a Contract * @example * // Get one Contract * const contract = await prisma.contract.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Contract 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 {ContractFindFirstArgs} args - Arguments to find a Contract * @example * // Get one Contract * const contract = await prisma.contract.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ContractClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Contract 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 {ContractFindFirstOrThrowArgs} args - Arguments to find a Contract * @example * // Get one Contract * const contract = await prisma.contract.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ContractClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Contracts 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 {ContractFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Contracts * const contracts = await prisma.contract.findMany() * * // Get first 10 Contracts * const contracts = await prisma.contract.findMany({ take: 10 }) * * // Only select the `id` * const contractWithIdOnly = await prisma.contract.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Contract. * @param {ContractCreateArgs} args - Arguments to create a Contract. * @example * // Create one Contract * const Contract = await prisma.contract.create({ * data: { * // ... data to create a Contract * } * }) * */ create(args: SelectSubset>): Prisma__ContractClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Contracts. * @param {ContractCreateManyArgs} args - Arguments to create many Contracts. * @example * // Create many Contracts * const contract = await prisma.contract.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Contract. * @param {ContractDeleteArgs} args - Arguments to delete one Contract. * @example * // Delete one Contract * const Contract = await prisma.contract.delete({ * where: { * // ... filter to delete one Contract * } * }) * */ delete(args: SelectSubset>): Prisma__ContractClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Contract. * @param {ContractUpdateArgs} args - Arguments to update one Contract. * @example * // Update one Contract * const contract = await prisma.contract.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ContractClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Contracts. * @param {ContractDeleteManyArgs} args - Arguments to filter Contracts to delete. * @example * // Delete a few Contracts * const { count } = await prisma.contract.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Contracts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Contracts * const contract = await prisma.contract.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Contract. * @param {ContractUpsertArgs} args - Arguments to update or create a Contract. * @example * // Update or create a Contract * const contract = await prisma.contract.upsert({ * create: { * // ... data to create a Contract * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Contract we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ContractClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Contracts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractCountArgs} args - Arguments to filter Contracts to count. * @example * // Count the number of Contracts * const count = await prisma.contract.count({ * where: { * // ... the filter for the Contracts we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Contract. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Contract. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractGroupByArgs} 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 ContractGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ContractGroupByArgs['orderBy'] } : { orderBy?: ContractGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetContractGroupByPayload : Prisma.PrismaPromise /** * Fields of the Contract model */ readonly fields: ContractFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Contract. * 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__ContractClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" customer = {}>(args?: Subset>): Prisma__CustomerClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> contractCategory = {}>(args?: Subset>): Prisma__ContractCategoryClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> address = {}>(args?: Subset>): Prisma__AddressClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> billingAddress = {}>(args?: Subset>): Prisma__AddressClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> bankCard = {}>(args?: Subset>): Prisma__BankCardClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> identityDocument = {}>(args?: Subset>): Prisma__IdentityDocumentClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> salesPlatform = {}>(args?: Subset>): Prisma__SalesPlatformClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> cancellationPeriod = {}>(args?: Subset>): Prisma__CancellationPeriodClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> contractDuration = {}>(args?: Subset>): Prisma__ContractDurationClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> previousContract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> followUpContract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> provider = {}>(args?: Subset>): Prisma__ProviderClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> tariff = {}>(args?: Subset>): Prisma__TariffClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> stressfreiEmail = {}>(args?: Subset>): Prisma__StressfreiEmailClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> energyDetails = {}>(args?: Subset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> internetDetails = {}>(args?: Subset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> mobileDetails = {}>(args?: Subset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> tvDetails = {}>(args?: Subset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> carInsuranceDetails = {}>(args?: Subset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> tasks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> assignedEmails = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Contract model */ interface ContractFieldRefs { readonly id: FieldRef<"Contract", 'Int'> readonly contractNumber: FieldRef<"Contract", 'String'> readonly customerId: FieldRef<"Contract", 'Int'> readonly type: FieldRef<"Contract", 'ContractType'> readonly status: FieldRef<"Contract", 'ContractStatus'> readonly contractCategoryId: FieldRef<"Contract", 'Int'> readonly addressId: FieldRef<"Contract", 'Int'> readonly billingAddressId: FieldRef<"Contract", 'Int'> readonly bankCardId: FieldRef<"Contract", 'Int'> readonly identityDocumentId: FieldRef<"Contract", 'Int'> readonly salesPlatformId: FieldRef<"Contract", 'Int'> readonly cancellationPeriodId: FieldRef<"Contract", 'Int'> readonly contractDurationId: FieldRef<"Contract", 'Int'> readonly previousContractId: FieldRef<"Contract", 'Int'> readonly providerId: FieldRef<"Contract", 'Int'> readonly tariffId: FieldRef<"Contract", 'Int'> readonly providerName: FieldRef<"Contract", 'String'> readonly tariffName: FieldRef<"Contract", 'String'> readonly customerNumberAtProvider: FieldRef<"Contract", 'String'> readonly priceFirst12Months: FieldRef<"Contract", 'String'> readonly priceFrom13Months: FieldRef<"Contract", 'String'> readonly priceAfter24Months: FieldRef<"Contract", 'String'> readonly startDate: FieldRef<"Contract", 'DateTime'> readonly endDate: FieldRef<"Contract", 'DateTime'> readonly commission: FieldRef<"Contract", 'Float'> readonly cancellationLetterPath: FieldRef<"Contract", 'String'> readonly cancellationConfirmationPath: FieldRef<"Contract", 'String'> readonly cancellationLetterOptionsPath: FieldRef<"Contract", 'String'> readonly cancellationConfirmationOptionsPath: FieldRef<"Contract", 'String'> readonly cancellationConfirmationDate: FieldRef<"Contract", 'DateTime'> readonly cancellationConfirmationOptionsDate: FieldRef<"Contract", 'DateTime'> readonly wasSpecialCancellation: FieldRef<"Contract", 'Boolean'> readonly portalUsername: FieldRef<"Contract", 'String'> readonly portalPasswordEncrypted: FieldRef<"Contract", 'String'> readonly stressfreiEmailId: FieldRef<"Contract", 'Int'> readonly notes: FieldRef<"Contract", 'String'> readonly createdAt: FieldRef<"Contract", 'DateTime'> readonly updatedAt: FieldRef<"Contract", 'DateTime'> } // Custom InputTypes /** * Contract findUnique */ export type ContractFindUniqueArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * Filter, which Contract to fetch. */ where: ContractWhereUniqueInput } /** * Contract findUniqueOrThrow */ export type ContractFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * Filter, which Contract to fetch. */ where: ContractWhereUniqueInput } /** * Contract findFirst */ export type ContractFindFirstArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * Filter, which Contract to fetch. */ where?: ContractWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Contracts to fetch. */ orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Contracts. */ cursor?: ContractWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Contracts 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` Contracts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Contracts. */ distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * Contract findFirstOrThrow */ export type ContractFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * Filter, which Contract to fetch. */ where?: ContractWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Contracts to fetch. */ orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Contracts. */ cursor?: ContractWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Contracts 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` Contracts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Contracts. */ distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * Contract findMany */ export type ContractFindManyArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * Filter, which Contracts to fetch. */ where?: ContractWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Contracts to fetch. */ orderBy?: ContractOrderByWithRelationInput | ContractOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Contracts. */ cursor?: ContractWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Contracts 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` Contracts. */ skip?: number distinct?: ContractScalarFieldEnum | ContractScalarFieldEnum[] } /** * Contract create */ export type ContractCreateArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * The data needed to create a Contract. */ data: XOR } /** * Contract createMany */ export type ContractCreateManyArgs = { /** * The data used to create many Contracts. */ data: ContractCreateManyInput | ContractCreateManyInput[] skipDuplicates?: boolean } /** * Contract update */ export type ContractUpdateArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * The data needed to update a Contract. */ data: XOR /** * Choose, which Contract to update. */ where: ContractWhereUniqueInput } /** * Contract updateMany */ export type ContractUpdateManyArgs = { /** * The data used to update Contracts. */ data: XOR /** * Filter which Contracts to update */ where?: ContractWhereInput } /** * Contract upsert */ export type ContractUpsertArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * The filter to search for the Contract to update in case it exists. */ where: ContractWhereUniqueInput /** * In case the Contract found by the `where` argument doesn't exist, create a new Contract with this data. */ create: XOR /** * In case the Contract was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Contract delete */ export type ContractDeleteArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null /** * Filter which Contract to delete. */ where: ContractWhereUniqueInput } /** * Contract deleteMany */ export type ContractDeleteManyArgs = { /** * Filter which Contracts to delete */ where?: ContractWhereInput } /** * Contract.contractCategory */ export type Contract$contractCategoryArgs = { /** * Select specific fields to fetch from the ContractCategory */ select?: ContractCategorySelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractCategoryInclude | null where?: ContractCategoryWhereInput } /** * Contract.address */ export type Contract$addressArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null where?: AddressWhereInput } /** * Contract.billingAddress */ export type Contract$billingAddressArgs = { /** * Select specific fields to fetch from the Address */ select?: AddressSelect | null /** * Choose, which related nodes to fetch as well */ include?: AddressInclude | null where?: AddressWhereInput } /** * Contract.bankCard */ export type Contract$bankCardArgs = { /** * Select specific fields to fetch from the BankCard */ select?: BankCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: BankCardInclude | null where?: BankCardWhereInput } /** * Contract.identityDocument */ export type Contract$identityDocumentArgs = { /** * Select specific fields to fetch from the IdentityDocument */ select?: IdentityDocumentSelect | null /** * Choose, which related nodes to fetch as well */ include?: IdentityDocumentInclude | null where?: IdentityDocumentWhereInput } /** * Contract.salesPlatform */ export type Contract$salesPlatformArgs = { /** * Select specific fields to fetch from the SalesPlatform */ select?: SalesPlatformSelect | null /** * Choose, which related nodes to fetch as well */ include?: SalesPlatformInclude | null where?: SalesPlatformWhereInput } /** * Contract.cancellationPeriod */ export type Contract$cancellationPeriodArgs = { /** * Select specific fields to fetch from the CancellationPeriod */ select?: CancellationPeriodSelect | null /** * Choose, which related nodes to fetch as well */ include?: CancellationPeriodInclude | null where?: CancellationPeriodWhereInput } /** * Contract.contractDuration */ export type Contract$contractDurationArgs = { /** * Select specific fields to fetch from the ContractDuration */ select?: ContractDurationSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractDurationInclude | null where?: ContractDurationWhereInput } /** * Contract.previousContract */ export type Contract$previousContractArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput } /** * Contract.followUpContract */ export type Contract$followUpContractArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null where?: ContractWhereInput } /** * Contract.provider */ export type Contract$providerArgs = { /** * Select specific fields to fetch from the Provider */ select?: ProviderSelect | null /** * Choose, which related nodes to fetch as well */ include?: ProviderInclude | null where?: ProviderWhereInput } /** * Contract.tariff */ export type Contract$tariffArgs = { /** * Select specific fields to fetch from the Tariff */ select?: TariffSelect | null /** * Choose, which related nodes to fetch as well */ include?: TariffInclude | null where?: TariffWhereInput } /** * Contract.stressfreiEmail */ export type Contract$stressfreiEmailArgs = { /** * Select specific fields to fetch from the StressfreiEmail */ select?: StressfreiEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: StressfreiEmailInclude | null where?: StressfreiEmailWhereInput } /** * Contract.energyDetails */ export type Contract$energyDetailsArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null where?: EnergyContractDetailsWhereInput } /** * Contract.internetDetails */ export type Contract$internetDetailsArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null where?: InternetContractDetailsWhereInput } /** * Contract.mobileDetails */ export type Contract$mobileDetailsArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null where?: MobileContractDetailsWhereInput } /** * Contract.tvDetails */ export type Contract$tvDetailsArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null where?: TvContractDetailsWhereInput } /** * Contract.carInsuranceDetails */ export type Contract$carInsuranceDetailsArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null where?: CarInsuranceDetailsWhereInput } /** * Contract.tasks */ export type Contract$tasksArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null where?: ContractTaskWhereInput orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[] cursor?: ContractTaskWhereUniqueInput take?: number skip?: number distinct?: ContractTaskScalarFieldEnum | ContractTaskScalarFieldEnum[] } /** * Contract.assignedEmails */ export type Contract$assignedEmailsArgs = { /** * Select specific fields to fetch from the CachedEmail */ select?: CachedEmailSelect | null /** * Choose, which related nodes to fetch as well */ include?: CachedEmailInclude | null where?: CachedEmailWhereInput orderBy?: CachedEmailOrderByWithRelationInput | CachedEmailOrderByWithRelationInput[] cursor?: CachedEmailWhereUniqueInput take?: number skip?: number distinct?: CachedEmailScalarFieldEnum | CachedEmailScalarFieldEnum[] } /** * Contract without action */ export type ContractDefaultArgs = { /** * Select specific fields to fetch from the Contract */ select?: ContractSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractInclude | null } /** * Model ContractTask */ export type AggregateContractTask = { _count: ContractTaskCountAggregateOutputType | null _avg: ContractTaskAvgAggregateOutputType | null _sum: ContractTaskSumAggregateOutputType | null _min: ContractTaskMinAggregateOutputType | null _max: ContractTaskMaxAggregateOutputType | null } export type ContractTaskAvgAggregateOutputType = { id: number | null contractId: number | null } export type ContractTaskSumAggregateOutputType = { id: number | null contractId: number | null } export type ContractTaskMinAggregateOutputType = { id: number | null contractId: number | null title: string | null description: string | null status: $Enums.ContractTaskStatus | null visibleInPortal: boolean | null createdBy: string | null completedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ContractTaskMaxAggregateOutputType = { id: number | null contractId: number | null title: string | null description: string | null status: $Enums.ContractTaskStatus | null visibleInPortal: boolean | null createdBy: string | null completedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ContractTaskCountAggregateOutputType = { id: number contractId: number title: number description: number status: number visibleInPortal: number createdBy: number completedAt: number createdAt: number updatedAt: number _all: number } export type ContractTaskAvgAggregateInputType = { id?: true contractId?: true } export type ContractTaskSumAggregateInputType = { id?: true contractId?: true } export type ContractTaskMinAggregateInputType = { id?: true contractId?: true title?: true description?: true status?: true visibleInPortal?: true createdBy?: true completedAt?: true createdAt?: true updatedAt?: true } export type ContractTaskMaxAggregateInputType = { id?: true contractId?: true title?: true description?: true status?: true visibleInPortal?: true createdBy?: true completedAt?: true createdAt?: true updatedAt?: true } export type ContractTaskCountAggregateInputType = { id?: true contractId?: true title?: true description?: true status?: true visibleInPortal?: true createdBy?: true completedAt?: true createdAt?: true updatedAt?: true _all?: true } export type ContractTaskAggregateArgs = { /** * Filter which ContractTask to aggregate. */ where?: ContractTaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractTasks to fetch. */ orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ContractTaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractTasks 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` ContractTasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ContractTasks **/ _count?: true | ContractTaskCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ContractTaskAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ContractTaskSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ContractTaskMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ContractTaskMaxAggregateInputType } export type GetContractTaskAggregateType = { [P in keyof T & keyof AggregateContractTask]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ContractTaskGroupByArgs = { where?: ContractTaskWhereInput orderBy?: ContractTaskOrderByWithAggregationInput | ContractTaskOrderByWithAggregationInput[] by: ContractTaskScalarFieldEnum[] | ContractTaskScalarFieldEnum having?: ContractTaskScalarWhereWithAggregatesInput take?: number skip?: number _count?: ContractTaskCountAggregateInputType | true _avg?: ContractTaskAvgAggregateInputType _sum?: ContractTaskSumAggregateInputType _min?: ContractTaskMinAggregateInputType _max?: ContractTaskMaxAggregateInputType } export type ContractTaskGroupByOutputType = { id: number contractId: number title: string description: string | null status: $Enums.ContractTaskStatus visibleInPortal: boolean createdBy: string | null completedAt: Date | null createdAt: Date updatedAt: Date _count: ContractTaskCountAggregateOutputType | null _avg: ContractTaskAvgAggregateOutputType | null _sum: ContractTaskSumAggregateOutputType | null _min: ContractTaskMinAggregateOutputType | null _max: ContractTaskMaxAggregateOutputType | null } type GetContractTaskGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ContractTaskGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ContractTaskSelect = $Extensions.GetSelect<{ id?: boolean contractId?: boolean title?: boolean description?: boolean status?: boolean visibleInPortal?: boolean createdBy?: boolean completedAt?: boolean createdAt?: boolean updatedAt?: boolean contract?: boolean | ContractDefaultArgs subtasks?: boolean | ContractTask$subtasksArgs _count?: boolean | ContractTaskCountOutputTypeDefaultArgs }, ExtArgs["result"]["contractTask"]> export type ContractTaskSelectScalar = { id?: boolean contractId?: boolean title?: boolean description?: boolean status?: boolean visibleInPortal?: boolean createdBy?: boolean completedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type ContractTaskInclude = { contract?: boolean | ContractDefaultArgs subtasks?: boolean | ContractTask$subtasksArgs _count?: boolean | ContractTaskCountOutputTypeDefaultArgs } export type $ContractTaskPayload = { name: "ContractTask" objects: { contract: Prisma.$ContractPayload subtasks: Prisma.$ContractTaskSubtaskPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number contractId: number title: string description: string | null status: $Enums.ContractTaskStatus visibleInPortal: boolean createdBy: string | null completedAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["contractTask"]> composites: {} } type ContractTaskGetPayload = $Result.GetResult type ContractTaskCountArgs = Omit & { select?: ContractTaskCountAggregateInputType | true } export interface ContractTaskDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ContractTask'], meta: { name: 'ContractTask' } } /** * Find zero or one ContractTask that matches the filter. * @param {ContractTaskFindUniqueArgs} args - Arguments to find a ContractTask * @example * // Get one ContractTask * const contractTask = await prisma.contractTask.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ContractTaskClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ContractTask that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ContractTaskFindUniqueOrThrowArgs} args - Arguments to find a ContractTask * @example * // Get one ContractTask * const contractTask = await prisma.contractTask.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ContractTaskClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ContractTask 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 {ContractTaskFindFirstArgs} args - Arguments to find a ContractTask * @example * // Get one ContractTask * const contractTask = await prisma.contractTask.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ContractTaskClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ContractTask 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 {ContractTaskFindFirstOrThrowArgs} args - Arguments to find a ContractTask * @example * // Get one ContractTask * const contractTask = await prisma.contractTask.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ContractTaskClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ContractTasks 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 {ContractTaskFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ContractTasks * const contractTasks = await prisma.contractTask.findMany() * * // Get first 10 ContractTasks * const contractTasks = await prisma.contractTask.findMany({ take: 10 }) * * // Only select the `id` * const contractTaskWithIdOnly = await prisma.contractTask.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ContractTask. * @param {ContractTaskCreateArgs} args - Arguments to create a ContractTask. * @example * // Create one ContractTask * const ContractTask = await prisma.contractTask.create({ * data: { * // ... data to create a ContractTask * } * }) * */ create(args: SelectSubset>): Prisma__ContractTaskClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ContractTasks. * @param {ContractTaskCreateManyArgs} args - Arguments to create many ContractTasks. * @example * // Create many ContractTasks * const contractTask = await prisma.contractTask.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a ContractTask. * @param {ContractTaskDeleteArgs} args - Arguments to delete one ContractTask. * @example * // Delete one ContractTask * const ContractTask = await prisma.contractTask.delete({ * where: { * // ... filter to delete one ContractTask * } * }) * */ delete(args: SelectSubset>): Prisma__ContractTaskClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ContractTask. * @param {ContractTaskUpdateArgs} args - Arguments to update one ContractTask. * @example * // Update one ContractTask * const contractTask = await prisma.contractTask.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ContractTaskClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ContractTasks. * @param {ContractTaskDeleteManyArgs} args - Arguments to filter ContractTasks to delete. * @example * // Delete a few ContractTasks * const { count } = await prisma.contractTask.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ContractTasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractTaskUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ContractTasks * const contractTask = await prisma.contractTask.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ContractTask. * @param {ContractTaskUpsertArgs} args - Arguments to update or create a ContractTask. * @example * // Update or create a ContractTask * const contractTask = await prisma.contractTask.upsert({ * create: { * // ... data to create a ContractTask * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ContractTask we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ContractTaskClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ContractTasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractTaskCountArgs} args - Arguments to filter ContractTasks to count. * @example * // Count the number of ContractTasks * const count = await prisma.contractTask.count({ * where: { * // ... the filter for the ContractTasks we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a ContractTask. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractTaskAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by ContractTask. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractTaskGroupByArgs} 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 ContractTaskGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ContractTaskGroupByArgs['orderBy'] } : { orderBy?: ContractTaskGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetContractTaskGroupByPayload : Prisma.PrismaPromise /** * Fields of the ContractTask model */ readonly fields: ContractTaskFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ContractTask. * 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__ContractTaskClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> subtasks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the ContractTask model */ interface ContractTaskFieldRefs { readonly id: FieldRef<"ContractTask", 'Int'> readonly contractId: FieldRef<"ContractTask", 'Int'> readonly title: FieldRef<"ContractTask", 'String'> readonly description: FieldRef<"ContractTask", 'String'> readonly status: FieldRef<"ContractTask", 'ContractTaskStatus'> readonly visibleInPortal: FieldRef<"ContractTask", 'Boolean'> readonly createdBy: FieldRef<"ContractTask", 'String'> readonly completedAt: FieldRef<"ContractTask", 'DateTime'> readonly createdAt: FieldRef<"ContractTask", 'DateTime'> readonly updatedAt: FieldRef<"ContractTask", 'DateTime'> } // Custom InputTypes /** * ContractTask findUnique */ export type ContractTaskFindUniqueArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * Filter, which ContractTask to fetch. */ where: ContractTaskWhereUniqueInput } /** * ContractTask findUniqueOrThrow */ export type ContractTaskFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * Filter, which ContractTask to fetch. */ where: ContractTaskWhereUniqueInput } /** * ContractTask findFirst */ export type ContractTaskFindFirstArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * Filter, which ContractTask to fetch. */ where?: ContractTaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractTasks to fetch. */ orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ContractTasks. */ cursor?: ContractTaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractTasks 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` ContractTasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ContractTasks. */ distinct?: ContractTaskScalarFieldEnum | ContractTaskScalarFieldEnum[] } /** * ContractTask findFirstOrThrow */ export type ContractTaskFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * Filter, which ContractTask to fetch. */ where?: ContractTaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractTasks to fetch. */ orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ContractTasks. */ cursor?: ContractTaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractTasks 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` ContractTasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ContractTasks. */ distinct?: ContractTaskScalarFieldEnum | ContractTaskScalarFieldEnum[] } /** * ContractTask findMany */ export type ContractTaskFindManyArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * Filter, which ContractTasks to fetch. */ where?: ContractTaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractTasks to fetch. */ orderBy?: ContractTaskOrderByWithRelationInput | ContractTaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ContractTasks. */ cursor?: ContractTaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractTasks 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` ContractTasks. */ skip?: number distinct?: ContractTaskScalarFieldEnum | ContractTaskScalarFieldEnum[] } /** * ContractTask create */ export type ContractTaskCreateArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * The data needed to create a ContractTask. */ data: XOR } /** * ContractTask createMany */ export type ContractTaskCreateManyArgs = { /** * The data used to create many ContractTasks. */ data: ContractTaskCreateManyInput | ContractTaskCreateManyInput[] skipDuplicates?: boolean } /** * ContractTask update */ export type ContractTaskUpdateArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * The data needed to update a ContractTask. */ data: XOR /** * Choose, which ContractTask to update. */ where: ContractTaskWhereUniqueInput } /** * ContractTask updateMany */ export type ContractTaskUpdateManyArgs = { /** * The data used to update ContractTasks. */ data: XOR /** * Filter which ContractTasks to update */ where?: ContractTaskWhereInput } /** * ContractTask upsert */ export type ContractTaskUpsertArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * The filter to search for the ContractTask to update in case it exists. */ where: ContractTaskWhereUniqueInput /** * In case the ContractTask found by the `where` argument doesn't exist, create a new ContractTask with this data. */ create: XOR /** * In case the ContractTask was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ContractTask delete */ export type ContractTaskDeleteArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null /** * Filter which ContractTask to delete. */ where: ContractTaskWhereUniqueInput } /** * ContractTask deleteMany */ export type ContractTaskDeleteManyArgs = { /** * Filter which ContractTasks to delete */ where?: ContractTaskWhereInput } /** * ContractTask.subtasks */ export type ContractTask$subtasksArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null where?: ContractTaskSubtaskWhereInput orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[] cursor?: ContractTaskSubtaskWhereUniqueInput take?: number skip?: number distinct?: ContractTaskSubtaskScalarFieldEnum | ContractTaskSubtaskScalarFieldEnum[] } /** * ContractTask without action */ export type ContractTaskDefaultArgs = { /** * Select specific fields to fetch from the ContractTask */ select?: ContractTaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskInclude | null } /** * Model ContractTaskSubtask */ export type AggregateContractTaskSubtask = { _count: ContractTaskSubtaskCountAggregateOutputType | null _avg: ContractTaskSubtaskAvgAggregateOutputType | null _sum: ContractTaskSubtaskSumAggregateOutputType | null _min: ContractTaskSubtaskMinAggregateOutputType | null _max: ContractTaskSubtaskMaxAggregateOutputType | null } export type ContractTaskSubtaskAvgAggregateOutputType = { id: number | null taskId: number | null } export type ContractTaskSubtaskSumAggregateOutputType = { id: number | null taskId: number | null } export type ContractTaskSubtaskMinAggregateOutputType = { id: number | null taskId: number | null title: string | null status: $Enums.ContractTaskStatus | null createdBy: string | null completedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ContractTaskSubtaskMaxAggregateOutputType = { id: number | null taskId: number | null title: string | null status: $Enums.ContractTaskStatus | null createdBy: string | null completedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ContractTaskSubtaskCountAggregateOutputType = { id: number taskId: number title: number status: number createdBy: number completedAt: number createdAt: number updatedAt: number _all: number } export type ContractTaskSubtaskAvgAggregateInputType = { id?: true taskId?: true } export type ContractTaskSubtaskSumAggregateInputType = { id?: true taskId?: true } export type ContractTaskSubtaskMinAggregateInputType = { id?: true taskId?: true title?: true status?: true createdBy?: true completedAt?: true createdAt?: true updatedAt?: true } export type ContractTaskSubtaskMaxAggregateInputType = { id?: true taskId?: true title?: true status?: true createdBy?: true completedAt?: true createdAt?: true updatedAt?: true } export type ContractTaskSubtaskCountAggregateInputType = { id?: true taskId?: true title?: true status?: true createdBy?: true completedAt?: true createdAt?: true updatedAt?: true _all?: true } export type ContractTaskSubtaskAggregateArgs = { /** * Filter which ContractTaskSubtask to aggregate. */ where?: ContractTaskSubtaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractTaskSubtasks to fetch. */ orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ContractTaskSubtaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractTaskSubtasks 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` ContractTaskSubtasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ContractTaskSubtasks **/ _count?: true | ContractTaskSubtaskCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ContractTaskSubtaskAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ContractTaskSubtaskSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ContractTaskSubtaskMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ContractTaskSubtaskMaxAggregateInputType } export type GetContractTaskSubtaskAggregateType = { [P in keyof T & keyof AggregateContractTaskSubtask]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ContractTaskSubtaskGroupByArgs = { where?: ContractTaskSubtaskWhereInput orderBy?: ContractTaskSubtaskOrderByWithAggregationInput | ContractTaskSubtaskOrderByWithAggregationInput[] by: ContractTaskSubtaskScalarFieldEnum[] | ContractTaskSubtaskScalarFieldEnum having?: ContractTaskSubtaskScalarWhereWithAggregatesInput take?: number skip?: number _count?: ContractTaskSubtaskCountAggregateInputType | true _avg?: ContractTaskSubtaskAvgAggregateInputType _sum?: ContractTaskSubtaskSumAggregateInputType _min?: ContractTaskSubtaskMinAggregateInputType _max?: ContractTaskSubtaskMaxAggregateInputType } export type ContractTaskSubtaskGroupByOutputType = { id: number taskId: number title: string status: $Enums.ContractTaskStatus createdBy: string | null completedAt: Date | null createdAt: Date updatedAt: Date _count: ContractTaskSubtaskCountAggregateOutputType | null _avg: ContractTaskSubtaskAvgAggregateOutputType | null _sum: ContractTaskSubtaskSumAggregateOutputType | null _min: ContractTaskSubtaskMinAggregateOutputType | null _max: ContractTaskSubtaskMaxAggregateOutputType | null } type GetContractTaskSubtaskGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ContractTaskSubtaskGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ContractTaskSubtaskSelect = $Extensions.GetSelect<{ id?: boolean taskId?: boolean title?: boolean status?: boolean createdBy?: boolean completedAt?: boolean createdAt?: boolean updatedAt?: boolean task?: boolean | ContractTaskDefaultArgs }, ExtArgs["result"]["contractTaskSubtask"]> export type ContractTaskSubtaskSelectScalar = { id?: boolean taskId?: boolean title?: boolean status?: boolean createdBy?: boolean completedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type ContractTaskSubtaskInclude = { task?: boolean | ContractTaskDefaultArgs } export type $ContractTaskSubtaskPayload = { name: "ContractTaskSubtask" objects: { task: Prisma.$ContractTaskPayload } scalars: $Extensions.GetPayloadResult<{ id: number taskId: number title: string status: $Enums.ContractTaskStatus createdBy: string | null completedAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["contractTaskSubtask"]> composites: {} } type ContractTaskSubtaskGetPayload = $Result.GetResult type ContractTaskSubtaskCountArgs = Omit & { select?: ContractTaskSubtaskCountAggregateInputType | true } export interface ContractTaskSubtaskDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ContractTaskSubtask'], meta: { name: 'ContractTaskSubtask' } } /** * Find zero or one ContractTaskSubtask that matches the filter. * @param {ContractTaskSubtaskFindUniqueArgs} args - Arguments to find a ContractTaskSubtask * @example * // Get one ContractTaskSubtask * const contractTaskSubtask = await prisma.contractTaskSubtask.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ContractTaskSubtaskClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ContractTaskSubtask that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ContractTaskSubtaskFindUniqueOrThrowArgs} args - Arguments to find a ContractTaskSubtask * @example * // Get one ContractTaskSubtask * const contractTaskSubtask = await prisma.contractTaskSubtask.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ContractTaskSubtaskClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ContractTaskSubtask 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 {ContractTaskSubtaskFindFirstArgs} args - Arguments to find a ContractTaskSubtask * @example * // Get one ContractTaskSubtask * const contractTaskSubtask = await prisma.contractTaskSubtask.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ContractTaskSubtaskClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ContractTaskSubtask 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 {ContractTaskSubtaskFindFirstOrThrowArgs} args - Arguments to find a ContractTaskSubtask * @example * // Get one ContractTaskSubtask * const contractTaskSubtask = await prisma.contractTaskSubtask.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ContractTaskSubtaskClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ContractTaskSubtasks 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 {ContractTaskSubtaskFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ContractTaskSubtasks * const contractTaskSubtasks = await prisma.contractTaskSubtask.findMany() * * // Get first 10 ContractTaskSubtasks * const contractTaskSubtasks = await prisma.contractTaskSubtask.findMany({ take: 10 }) * * // Only select the `id` * const contractTaskSubtaskWithIdOnly = await prisma.contractTaskSubtask.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ContractTaskSubtask. * @param {ContractTaskSubtaskCreateArgs} args - Arguments to create a ContractTaskSubtask. * @example * // Create one ContractTaskSubtask * const ContractTaskSubtask = await prisma.contractTaskSubtask.create({ * data: { * // ... data to create a ContractTaskSubtask * } * }) * */ create(args: SelectSubset>): Prisma__ContractTaskSubtaskClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ContractTaskSubtasks. * @param {ContractTaskSubtaskCreateManyArgs} args - Arguments to create many ContractTaskSubtasks. * @example * // Create many ContractTaskSubtasks * const contractTaskSubtask = await prisma.contractTaskSubtask.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a ContractTaskSubtask. * @param {ContractTaskSubtaskDeleteArgs} args - Arguments to delete one ContractTaskSubtask. * @example * // Delete one ContractTaskSubtask * const ContractTaskSubtask = await prisma.contractTaskSubtask.delete({ * where: { * // ... filter to delete one ContractTaskSubtask * } * }) * */ delete(args: SelectSubset>): Prisma__ContractTaskSubtaskClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ContractTaskSubtask. * @param {ContractTaskSubtaskUpdateArgs} args - Arguments to update one ContractTaskSubtask. * @example * // Update one ContractTaskSubtask * const contractTaskSubtask = await prisma.contractTaskSubtask.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ContractTaskSubtaskClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ContractTaskSubtasks. * @param {ContractTaskSubtaskDeleteManyArgs} args - Arguments to filter ContractTaskSubtasks to delete. * @example * // Delete a few ContractTaskSubtasks * const { count } = await prisma.contractTaskSubtask.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ContractTaskSubtasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractTaskSubtaskUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ContractTaskSubtasks * const contractTaskSubtask = await prisma.contractTaskSubtask.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ContractTaskSubtask. * @param {ContractTaskSubtaskUpsertArgs} args - Arguments to update or create a ContractTaskSubtask. * @example * // Update or create a ContractTaskSubtask * const contractTaskSubtask = await prisma.contractTaskSubtask.upsert({ * create: { * // ... data to create a ContractTaskSubtask * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ContractTaskSubtask we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ContractTaskSubtaskClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ContractTaskSubtasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractTaskSubtaskCountArgs} args - Arguments to filter ContractTaskSubtasks to count. * @example * // Count the number of ContractTaskSubtasks * const count = await prisma.contractTaskSubtask.count({ * where: { * // ... the filter for the ContractTaskSubtasks we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a ContractTaskSubtask. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractTaskSubtaskAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by ContractTaskSubtask. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ContractTaskSubtaskGroupByArgs} 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 ContractTaskSubtaskGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ContractTaskSubtaskGroupByArgs['orderBy'] } : { orderBy?: ContractTaskSubtaskGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetContractTaskSubtaskGroupByPayload : Prisma.PrismaPromise /** * Fields of the ContractTaskSubtask model */ readonly fields: ContractTaskSubtaskFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ContractTaskSubtask. * 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__ContractTaskSubtaskClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" task = {}>(args?: Subset>): Prisma__ContractTaskClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the ContractTaskSubtask model */ interface ContractTaskSubtaskFieldRefs { readonly id: FieldRef<"ContractTaskSubtask", 'Int'> readonly taskId: FieldRef<"ContractTaskSubtask", 'Int'> readonly title: FieldRef<"ContractTaskSubtask", 'String'> readonly status: FieldRef<"ContractTaskSubtask", 'ContractTaskStatus'> readonly createdBy: FieldRef<"ContractTaskSubtask", 'String'> readonly completedAt: FieldRef<"ContractTaskSubtask", 'DateTime'> readonly createdAt: FieldRef<"ContractTaskSubtask", 'DateTime'> readonly updatedAt: FieldRef<"ContractTaskSubtask", 'DateTime'> } // Custom InputTypes /** * ContractTaskSubtask findUnique */ export type ContractTaskSubtaskFindUniqueArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * Filter, which ContractTaskSubtask to fetch. */ where: ContractTaskSubtaskWhereUniqueInput } /** * ContractTaskSubtask findUniqueOrThrow */ export type ContractTaskSubtaskFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * Filter, which ContractTaskSubtask to fetch. */ where: ContractTaskSubtaskWhereUniqueInput } /** * ContractTaskSubtask findFirst */ export type ContractTaskSubtaskFindFirstArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * Filter, which ContractTaskSubtask to fetch. */ where?: ContractTaskSubtaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractTaskSubtasks to fetch. */ orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ContractTaskSubtasks. */ cursor?: ContractTaskSubtaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractTaskSubtasks 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` ContractTaskSubtasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ContractTaskSubtasks. */ distinct?: ContractTaskSubtaskScalarFieldEnum | ContractTaskSubtaskScalarFieldEnum[] } /** * ContractTaskSubtask findFirstOrThrow */ export type ContractTaskSubtaskFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * Filter, which ContractTaskSubtask to fetch. */ where?: ContractTaskSubtaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractTaskSubtasks to fetch. */ orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ContractTaskSubtasks. */ cursor?: ContractTaskSubtaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractTaskSubtasks 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` ContractTaskSubtasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ContractTaskSubtasks. */ distinct?: ContractTaskSubtaskScalarFieldEnum | ContractTaskSubtaskScalarFieldEnum[] } /** * ContractTaskSubtask findMany */ export type ContractTaskSubtaskFindManyArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * Filter, which ContractTaskSubtasks to fetch. */ where?: ContractTaskSubtaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ContractTaskSubtasks to fetch. */ orderBy?: ContractTaskSubtaskOrderByWithRelationInput | ContractTaskSubtaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ContractTaskSubtasks. */ cursor?: ContractTaskSubtaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ContractTaskSubtasks 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` ContractTaskSubtasks. */ skip?: number distinct?: ContractTaskSubtaskScalarFieldEnum | ContractTaskSubtaskScalarFieldEnum[] } /** * ContractTaskSubtask create */ export type ContractTaskSubtaskCreateArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * The data needed to create a ContractTaskSubtask. */ data: XOR } /** * ContractTaskSubtask createMany */ export type ContractTaskSubtaskCreateManyArgs = { /** * The data used to create many ContractTaskSubtasks. */ data: ContractTaskSubtaskCreateManyInput | ContractTaskSubtaskCreateManyInput[] skipDuplicates?: boolean } /** * ContractTaskSubtask update */ export type ContractTaskSubtaskUpdateArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * The data needed to update a ContractTaskSubtask. */ data: XOR /** * Choose, which ContractTaskSubtask to update. */ where: ContractTaskSubtaskWhereUniqueInput } /** * ContractTaskSubtask updateMany */ export type ContractTaskSubtaskUpdateManyArgs = { /** * The data used to update ContractTaskSubtasks. */ data: XOR /** * Filter which ContractTaskSubtasks to update */ where?: ContractTaskSubtaskWhereInput } /** * ContractTaskSubtask upsert */ export type ContractTaskSubtaskUpsertArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * The filter to search for the ContractTaskSubtask to update in case it exists. */ where: ContractTaskSubtaskWhereUniqueInput /** * In case the ContractTaskSubtask found by the `where` argument doesn't exist, create a new ContractTaskSubtask with this data. */ create: XOR /** * In case the ContractTaskSubtask was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ContractTaskSubtask delete */ export type ContractTaskSubtaskDeleteArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null /** * Filter which ContractTaskSubtask to delete. */ where: ContractTaskSubtaskWhereUniqueInput } /** * ContractTaskSubtask deleteMany */ export type ContractTaskSubtaskDeleteManyArgs = { /** * Filter which ContractTaskSubtasks to delete */ where?: ContractTaskSubtaskWhereInput } /** * ContractTaskSubtask without action */ export type ContractTaskSubtaskDefaultArgs = { /** * Select specific fields to fetch from the ContractTaskSubtask */ select?: ContractTaskSubtaskSelect | null /** * Choose, which related nodes to fetch as well */ include?: ContractTaskSubtaskInclude | null } /** * Model EnergyContractDetails */ export type AggregateEnergyContractDetails = { _count: EnergyContractDetailsCountAggregateOutputType | null _avg: EnergyContractDetailsAvgAggregateOutputType | null _sum: EnergyContractDetailsSumAggregateOutputType | null _min: EnergyContractDetailsMinAggregateOutputType | null _max: EnergyContractDetailsMaxAggregateOutputType | null } export type EnergyContractDetailsAvgAggregateOutputType = { id: number | null contractId: number | null meterId: number | null annualConsumption: number | null annualConsumptionKwh: number | null basePrice: number | null unitPrice: number | null bonus: number | null } export type EnergyContractDetailsSumAggregateOutputType = { id: number | null contractId: number | null meterId: number | null annualConsumption: number | null annualConsumptionKwh: number | null basePrice: number | null unitPrice: number | null bonus: number | null } export type EnergyContractDetailsMinAggregateOutputType = { id: number | null contractId: number | null meterId: number | null maloId: string | null annualConsumption: number | null annualConsumptionKwh: number | null basePrice: number | null unitPrice: number | null bonus: number | null previousProviderName: string | null previousCustomerNumber: string | null } export type EnergyContractDetailsMaxAggregateOutputType = { id: number | null contractId: number | null meterId: number | null maloId: string | null annualConsumption: number | null annualConsumptionKwh: number | null basePrice: number | null unitPrice: number | null bonus: number | null previousProviderName: string | null previousCustomerNumber: string | null } export type EnergyContractDetailsCountAggregateOutputType = { id: number contractId: number meterId: number maloId: number annualConsumption: number annualConsumptionKwh: number basePrice: number unitPrice: number bonus: number previousProviderName: number previousCustomerNumber: number _all: number } export type EnergyContractDetailsAvgAggregateInputType = { id?: true contractId?: true meterId?: true annualConsumption?: true annualConsumptionKwh?: true basePrice?: true unitPrice?: true bonus?: true } export type EnergyContractDetailsSumAggregateInputType = { id?: true contractId?: true meterId?: true annualConsumption?: true annualConsumptionKwh?: true basePrice?: true unitPrice?: true bonus?: true } export type EnergyContractDetailsMinAggregateInputType = { id?: true contractId?: true meterId?: true maloId?: true annualConsumption?: true annualConsumptionKwh?: true basePrice?: true unitPrice?: true bonus?: true previousProviderName?: true previousCustomerNumber?: true } export type EnergyContractDetailsMaxAggregateInputType = { id?: true contractId?: true meterId?: true maloId?: true annualConsumption?: true annualConsumptionKwh?: true basePrice?: true unitPrice?: true bonus?: true previousProviderName?: true previousCustomerNumber?: true } export type EnergyContractDetailsCountAggregateInputType = { id?: true contractId?: true meterId?: true maloId?: true annualConsumption?: true annualConsumptionKwh?: true basePrice?: true unitPrice?: true bonus?: true previousProviderName?: true previousCustomerNumber?: true _all?: true } export type EnergyContractDetailsAggregateArgs = { /** * Filter which EnergyContractDetails to aggregate. */ where?: EnergyContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EnergyContractDetails to fetch. */ orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EnergyContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EnergyContractDetails 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` EnergyContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EnergyContractDetails **/ _count?: true | EnergyContractDetailsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EnergyContractDetailsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EnergyContractDetailsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EnergyContractDetailsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EnergyContractDetailsMaxAggregateInputType } export type GetEnergyContractDetailsAggregateType = { [P in keyof T & keyof AggregateEnergyContractDetails]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EnergyContractDetailsGroupByArgs = { where?: EnergyContractDetailsWhereInput orderBy?: EnergyContractDetailsOrderByWithAggregationInput | EnergyContractDetailsOrderByWithAggregationInput[] by: EnergyContractDetailsScalarFieldEnum[] | EnergyContractDetailsScalarFieldEnum having?: EnergyContractDetailsScalarWhereWithAggregatesInput take?: number skip?: number _count?: EnergyContractDetailsCountAggregateInputType | true _avg?: EnergyContractDetailsAvgAggregateInputType _sum?: EnergyContractDetailsSumAggregateInputType _min?: EnergyContractDetailsMinAggregateInputType _max?: EnergyContractDetailsMaxAggregateInputType } export type EnergyContractDetailsGroupByOutputType = { id: number contractId: number meterId: number | null maloId: string | null annualConsumption: number | null annualConsumptionKwh: number | null basePrice: number | null unitPrice: number | null bonus: number | null previousProviderName: string | null previousCustomerNumber: string | null _count: EnergyContractDetailsCountAggregateOutputType | null _avg: EnergyContractDetailsAvgAggregateOutputType | null _sum: EnergyContractDetailsSumAggregateOutputType | null _min: EnergyContractDetailsMinAggregateOutputType | null _max: EnergyContractDetailsMaxAggregateOutputType | null } type GetEnergyContractDetailsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EnergyContractDetailsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EnergyContractDetailsSelect = $Extensions.GetSelect<{ id?: boolean contractId?: boolean meterId?: boolean maloId?: boolean annualConsumption?: boolean annualConsumptionKwh?: boolean basePrice?: boolean unitPrice?: boolean bonus?: boolean previousProviderName?: boolean previousCustomerNumber?: boolean contract?: boolean | ContractDefaultArgs meter?: boolean | EnergyContractDetails$meterArgs invoices?: boolean | EnergyContractDetails$invoicesArgs _count?: boolean | EnergyContractDetailsCountOutputTypeDefaultArgs }, ExtArgs["result"]["energyContractDetails"]> export type EnergyContractDetailsSelectScalar = { id?: boolean contractId?: boolean meterId?: boolean maloId?: boolean annualConsumption?: boolean annualConsumptionKwh?: boolean basePrice?: boolean unitPrice?: boolean bonus?: boolean previousProviderName?: boolean previousCustomerNumber?: boolean } export type EnergyContractDetailsInclude = { contract?: boolean | ContractDefaultArgs meter?: boolean | EnergyContractDetails$meterArgs invoices?: boolean | EnergyContractDetails$invoicesArgs _count?: boolean | EnergyContractDetailsCountOutputTypeDefaultArgs } export type $EnergyContractDetailsPayload = { name: "EnergyContractDetails" objects: { contract: Prisma.$ContractPayload meter: Prisma.$MeterPayload | null invoices: Prisma.$InvoicePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number contractId: number meterId: number | null maloId: string | null annualConsumption: number | null annualConsumptionKwh: number | null basePrice: number | null unitPrice: number | null bonus: number | null previousProviderName: string | null previousCustomerNumber: string | null }, ExtArgs["result"]["energyContractDetails"]> composites: {} } type EnergyContractDetailsGetPayload = $Result.GetResult type EnergyContractDetailsCountArgs = Omit & { select?: EnergyContractDetailsCountAggregateInputType | true } export interface EnergyContractDetailsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EnergyContractDetails'], meta: { name: 'EnergyContractDetails' } } /** * Find zero or one EnergyContractDetails that matches the filter. * @param {EnergyContractDetailsFindUniqueArgs} args - Arguments to find a EnergyContractDetails * @example * // Get one EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one EnergyContractDetails that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EnergyContractDetailsFindUniqueOrThrowArgs} args - Arguments to find a EnergyContractDetails * @example * // Get one EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first EnergyContractDetails 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 {EnergyContractDetailsFindFirstArgs} args - Arguments to find a EnergyContractDetails * @example * // Get one EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first EnergyContractDetails 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 {EnergyContractDetailsFindFirstOrThrowArgs} args - Arguments to find a EnergyContractDetails * @example * // Get one EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more EnergyContractDetails 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 {EnergyContractDetailsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.findMany() * * // Get first 10 EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.findMany({ take: 10 }) * * // Only select the `id` * const energyContractDetailsWithIdOnly = await prisma.energyContractDetails.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a EnergyContractDetails. * @param {EnergyContractDetailsCreateArgs} args - Arguments to create a EnergyContractDetails. * @example * // Create one EnergyContractDetails * const EnergyContractDetails = await prisma.energyContractDetails.create({ * data: { * // ... data to create a EnergyContractDetails * } * }) * */ create(args: SelectSubset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many EnergyContractDetails. * @param {EnergyContractDetailsCreateManyArgs} args - Arguments to create many EnergyContractDetails. * @example * // Create many EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a EnergyContractDetails. * @param {EnergyContractDetailsDeleteArgs} args - Arguments to delete one EnergyContractDetails. * @example * // Delete one EnergyContractDetails * const EnergyContractDetails = await prisma.energyContractDetails.delete({ * where: { * // ... filter to delete one EnergyContractDetails * } * }) * */ delete(args: SelectSubset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one EnergyContractDetails. * @param {EnergyContractDetailsUpdateArgs} args - Arguments to update one EnergyContractDetails. * @example * // Update one EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more EnergyContractDetails. * @param {EnergyContractDetailsDeleteManyArgs} args - Arguments to filter EnergyContractDetails to delete. * @example * // Delete a few EnergyContractDetails * const { count } = await prisma.energyContractDetails.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EnergyContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EnergyContractDetailsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one EnergyContractDetails. * @param {EnergyContractDetailsUpsertArgs} args - Arguments to update or create a EnergyContractDetails. * @example * // Update or create a EnergyContractDetails * const energyContractDetails = await prisma.energyContractDetails.upsert({ * create: { * // ... data to create a EnergyContractDetails * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EnergyContractDetails we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of EnergyContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EnergyContractDetailsCountArgs} args - Arguments to filter EnergyContractDetails to count. * @example * // Count the number of EnergyContractDetails * const count = await prisma.energyContractDetails.count({ * where: { * // ... the filter for the EnergyContractDetails we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a EnergyContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EnergyContractDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by EnergyContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EnergyContractDetailsGroupByArgs} 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 EnergyContractDetailsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EnergyContractDetailsGroupByArgs['orderBy'] } : { orderBy?: EnergyContractDetailsGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEnergyContractDetailsGroupByPayload : Prisma.PrismaPromise /** * Fields of the EnergyContractDetails model */ readonly fields: EnergyContractDetailsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EnergyContractDetails. * 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__EnergyContractDetailsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> meter = {}>(args?: Subset>): Prisma__MeterClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> invoices = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EnergyContractDetails model */ interface EnergyContractDetailsFieldRefs { readonly id: FieldRef<"EnergyContractDetails", 'Int'> readonly contractId: FieldRef<"EnergyContractDetails", 'Int'> readonly meterId: FieldRef<"EnergyContractDetails", 'Int'> readonly maloId: FieldRef<"EnergyContractDetails", 'String'> readonly annualConsumption: FieldRef<"EnergyContractDetails", 'Float'> readonly annualConsumptionKwh: FieldRef<"EnergyContractDetails", 'Float'> readonly basePrice: FieldRef<"EnergyContractDetails", 'Float'> readonly unitPrice: FieldRef<"EnergyContractDetails", 'Float'> readonly bonus: FieldRef<"EnergyContractDetails", 'Float'> readonly previousProviderName: FieldRef<"EnergyContractDetails", 'String'> readonly previousCustomerNumber: FieldRef<"EnergyContractDetails", 'String'> } // Custom InputTypes /** * EnergyContractDetails findUnique */ export type EnergyContractDetailsFindUniqueArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * Filter, which EnergyContractDetails to fetch. */ where: EnergyContractDetailsWhereUniqueInput } /** * EnergyContractDetails findUniqueOrThrow */ export type EnergyContractDetailsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * Filter, which EnergyContractDetails to fetch. */ where: EnergyContractDetailsWhereUniqueInput } /** * EnergyContractDetails findFirst */ export type EnergyContractDetailsFindFirstArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * Filter, which EnergyContractDetails to fetch. */ where?: EnergyContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EnergyContractDetails to fetch. */ orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EnergyContractDetails. */ cursor?: EnergyContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EnergyContractDetails 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` EnergyContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EnergyContractDetails. */ distinct?: EnergyContractDetailsScalarFieldEnum | EnergyContractDetailsScalarFieldEnum[] } /** * EnergyContractDetails findFirstOrThrow */ export type EnergyContractDetailsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * Filter, which EnergyContractDetails to fetch. */ where?: EnergyContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EnergyContractDetails to fetch. */ orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EnergyContractDetails. */ cursor?: EnergyContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EnergyContractDetails 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` EnergyContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EnergyContractDetails. */ distinct?: EnergyContractDetailsScalarFieldEnum | EnergyContractDetailsScalarFieldEnum[] } /** * EnergyContractDetails findMany */ export type EnergyContractDetailsFindManyArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * Filter, which EnergyContractDetails to fetch. */ where?: EnergyContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EnergyContractDetails to fetch. */ orderBy?: EnergyContractDetailsOrderByWithRelationInput | EnergyContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EnergyContractDetails. */ cursor?: EnergyContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EnergyContractDetails 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` EnergyContractDetails. */ skip?: number distinct?: EnergyContractDetailsScalarFieldEnum | EnergyContractDetailsScalarFieldEnum[] } /** * EnergyContractDetails create */ export type EnergyContractDetailsCreateArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * The data needed to create a EnergyContractDetails. */ data: XOR } /** * EnergyContractDetails createMany */ export type EnergyContractDetailsCreateManyArgs = { /** * The data used to create many EnergyContractDetails. */ data: EnergyContractDetailsCreateManyInput | EnergyContractDetailsCreateManyInput[] skipDuplicates?: boolean } /** * EnergyContractDetails update */ export type EnergyContractDetailsUpdateArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * The data needed to update a EnergyContractDetails. */ data: XOR /** * Choose, which EnergyContractDetails to update. */ where: EnergyContractDetailsWhereUniqueInput } /** * EnergyContractDetails updateMany */ export type EnergyContractDetailsUpdateManyArgs = { /** * The data used to update EnergyContractDetails. */ data: XOR /** * Filter which EnergyContractDetails to update */ where?: EnergyContractDetailsWhereInput } /** * EnergyContractDetails upsert */ export type EnergyContractDetailsUpsertArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * The filter to search for the EnergyContractDetails to update in case it exists. */ where: EnergyContractDetailsWhereUniqueInput /** * In case the EnergyContractDetails found by the `where` argument doesn't exist, create a new EnergyContractDetails with this data. */ create: XOR /** * In case the EnergyContractDetails was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EnergyContractDetails delete */ export type EnergyContractDetailsDeleteArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null /** * Filter which EnergyContractDetails to delete. */ where: EnergyContractDetailsWhereUniqueInput } /** * EnergyContractDetails deleteMany */ export type EnergyContractDetailsDeleteManyArgs = { /** * Filter which EnergyContractDetails to delete */ where?: EnergyContractDetailsWhereInput } /** * EnergyContractDetails.meter */ export type EnergyContractDetails$meterArgs = { /** * Select specific fields to fetch from the Meter */ select?: MeterSelect | null /** * Choose, which related nodes to fetch as well */ include?: MeterInclude | null where?: MeterWhereInput } /** * EnergyContractDetails.invoices */ export type EnergyContractDetails$invoicesArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null where?: InvoiceWhereInput orderBy?: InvoiceOrderByWithRelationInput | InvoiceOrderByWithRelationInput[] cursor?: InvoiceWhereUniqueInput take?: number skip?: number distinct?: InvoiceScalarFieldEnum | InvoiceScalarFieldEnum[] } /** * EnergyContractDetails without action */ export type EnergyContractDetailsDefaultArgs = { /** * Select specific fields to fetch from the EnergyContractDetails */ select?: EnergyContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: EnergyContractDetailsInclude | null } /** * Model Invoice */ export type AggregateInvoice = { _count: InvoiceCountAggregateOutputType | null _avg: InvoiceAvgAggregateOutputType | null _sum: InvoiceSumAggregateOutputType | null _min: InvoiceMinAggregateOutputType | null _max: InvoiceMaxAggregateOutputType | null } export type InvoiceAvgAggregateOutputType = { id: number | null energyContractDetailsId: number | null } export type InvoiceSumAggregateOutputType = { id: number | null energyContractDetailsId: number | null } export type InvoiceMinAggregateOutputType = { id: number | null energyContractDetailsId: number | null invoiceDate: Date | null invoiceType: $Enums.InvoiceType | null documentPath: string | null notes: string | null createdAt: Date | null updatedAt: Date | null } export type InvoiceMaxAggregateOutputType = { id: number | null energyContractDetailsId: number | null invoiceDate: Date | null invoiceType: $Enums.InvoiceType | null documentPath: string | null notes: string | null createdAt: Date | null updatedAt: Date | null } export type InvoiceCountAggregateOutputType = { id: number energyContractDetailsId: number invoiceDate: number invoiceType: number documentPath: number notes: number createdAt: number updatedAt: number _all: number } export type InvoiceAvgAggregateInputType = { id?: true energyContractDetailsId?: true } export type InvoiceSumAggregateInputType = { id?: true energyContractDetailsId?: true } export type InvoiceMinAggregateInputType = { id?: true energyContractDetailsId?: true invoiceDate?: true invoiceType?: true documentPath?: true notes?: true createdAt?: true updatedAt?: true } export type InvoiceMaxAggregateInputType = { id?: true energyContractDetailsId?: true invoiceDate?: true invoiceType?: true documentPath?: true notes?: true createdAt?: true updatedAt?: true } export type InvoiceCountAggregateInputType = { id?: true energyContractDetailsId?: true invoiceDate?: true invoiceType?: true documentPath?: true notes?: true createdAt?: true updatedAt?: true _all?: true } export type InvoiceAggregateArgs = { /** * Filter which Invoice to aggregate. */ where?: InvoiceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invoices to fetch. */ orderBy?: InvoiceOrderByWithRelationInput | InvoiceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: InvoiceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invoices 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` Invoices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Invoices **/ _count?: true | InvoiceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: InvoiceAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: InvoiceSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InvoiceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InvoiceMaxAggregateInputType } export type GetInvoiceAggregateType = { [P in keyof T & keyof AggregateInvoice]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type InvoiceGroupByArgs = { where?: InvoiceWhereInput orderBy?: InvoiceOrderByWithAggregationInput | InvoiceOrderByWithAggregationInput[] by: InvoiceScalarFieldEnum[] | InvoiceScalarFieldEnum having?: InvoiceScalarWhereWithAggregatesInput take?: number skip?: number _count?: InvoiceCountAggregateInputType | true _avg?: InvoiceAvgAggregateInputType _sum?: InvoiceSumAggregateInputType _min?: InvoiceMinAggregateInputType _max?: InvoiceMaxAggregateInputType } export type InvoiceGroupByOutputType = { id: number energyContractDetailsId: number invoiceDate: Date invoiceType: $Enums.InvoiceType documentPath: string | null notes: string | null createdAt: Date updatedAt: Date _count: InvoiceCountAggregateOutputType | null _avg: InvoiceAvgAggregateOutputType | null _sum: InvoiceSumAggregateOutputType | null _min: InvoiceMinAggregateOutputType | null _max: InvoiceMaxAggregateOutputType | null } type GetInvoiceGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof InvoiceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type InvoiceSelect = $Extensions.GetSelect<{ id?: boolean energyContractDetailsId?: boolean invoiceDate?: boolean invoiceType?: boolean documentPath?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean energyContractDetails?: boolean | EnergyContractDetailsDefaultArgs }, ExtArgs["result"]["invoice"]> export type InvoiceSelectScalar = { id?: boolean energyContractDetailsId?: boolean invoiceDate?: boolean invoiceType?: boolean documentPath?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean } export type InvoiceInclude = { energyContractDetails?: boolean | EnergyContractDetailsDefaultArgs } export type $InvoicePayload = { name: "Invoice" objects: { energyContractDetails: Prisma.$EnergyContractDetailsPayload } scalars: $Extensions.GetPayloadResult<{ id: number energyContractDetailsId: number invoiceDate: Date invoiceType: $Enums.InvoiceType documentPath: string | null notes: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["invoice"]> composites: {} } type InvoiceGetPayload = $Result.GetResult type InvoiceCountArgs = Omit & { select?: InvoiceCountAggregateInputType | true } export interface InvoiceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Invoice'], meta: { name: 'Invoice' } } /** * Find zero or one Invoice that matches the filter. * @param {InvoiceFindUniqueArgs} args - Arguments to find a Invoice * @example * // Get one Invoice * const invoice = await prisma.invoice.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__InvoiceClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Invoice that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InvoiceFindUniqueOrThrowArgs} args - Arguments to find a Invoice * @example * // Get one Invoice * const invoice = await prisma.invoice.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__InvoiceClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Invoice 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 {InvoiceFindFirstArgs} args - Arguments to find a Invoice * @example * // Get one Invoice * const invoice = await prisma.invoice.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__InvoiceClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Invoice 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 {InvoiceFindFirstOrThrowArgs} args - Arguments to find a Invoice * @example * // Get one Invoice * const invoice = await prisma.invoice.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__InvoiceClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Invoices 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 {InvoiceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Invoices * const invoices = await prisma.invoice.findMany() * * // Get first 10 Invoices * const invoices = await prisma.invoice.findMany({ take: 10 }) * * // Only select the `id` * const invoiceWithIdOnly = await prisma.invoice.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Invoice. * @param {InvoiceCreateArgs} args - Arguments to create a Invoice. * @example * // Create one Invoice * const Invoice = await prisma.invoice.create({ * data: { * // ... data to create a Invoice * } * }) * */ create(args: SelectSubset>): Prisma__InvoiceClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Invoices. * @param {InvoiceCreateManyArgs} args - Arguments to create many Invoices. * @example * // Create many Invoices * const invoice = await prisma.invoice.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Invoice. * @param {InvoiceDeleteArgs} args - Arguments to delete one Invoice. * @example * // Delete one Invoice * const Invoice = await prisma.invoice.delete({ * where: { * // ... filter to delete one Invoice * } * }) * */ delete(args: SelectSubset>): Prisma__InvoiceClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Invoice. * @param {InvoiceUpdateArgs} args - Arguments to update one Invoice. * @example * // Update one Invoice * const invoice = await prisma.invoice.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__InvoiceClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Invoices. * @param {InvoiceDeleteManyArgs} args - Arguments to filter Invoices to delete. * @example * // Delete a few Invoices * const { count } = await prisma.invoice.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Invoices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InvoiceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Invoices * const invoice = await prisma.invoice.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Invoice. * @param {InvoiceUpsertArgs} args - Arguments to update or create a Invoice. * @example * // Update or create a Invoice * const invoice = await prisma.invoice.upsert({ * create: { * // ... data to create a Invoice * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Invoice we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__InvoiceClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Invoices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InvoiceCountArgs} args - Arguments to filter Invoices to count. * @example * // Count the number of Invoices * const count = await prisma.invoice.count({ * where: { * // ... the filter for the Invoices we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Invoice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InvoiceAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Invoice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InvoiceGroupByArgs} 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 InvoiceGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: InvoiceGroupByArgs['orderBy'] } : { orderBy?: InvoiceGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetInvoiceGroupByPayload : Prisma.PrismaPromise /** * Fields of the Invoice model */ readonly fields: InvoiceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Invoice. * 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__InvoiceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" energyContractDetails = {}>(args?: Subset>): Prisma__EnergyContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Invoice model */ interface InvoiceFieldRefs { readonly id: FieldRef<"Invoice", 'Int'> readonly energyContractDetailsId: FieldRef<"Invoice", 'Int'> readonly invoiceDate: FieldRef<"Invoice", 'DateTime'> readonly invoiceType: FieldRef<"Invoice", 'InvoiceType'> readonly documentPath: FieldRef<"Invoice", 'String'> readonly notes: FieldRef<"Invoice", 'String'> readonly createdAt: FieldRef<"Invoice", 'DateTime'> readonly updatedAt: FieldRef<"Invoice", 'DateTime'> } // Custom InputTypes /** * Invoice findUnique */ export type InvoiceFindUniqueArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * Filter, which Invoice to fetch. */ where: InvoiceWhereUniqueInput } /** * Invoice findUniqueOrThrow */ export type InvoiceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * Filter, which Invoice to fetch. */ where: InvoiceWhereUniqueInput } /** * Invoice findFirst */ export type InvoiceFindFirstArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * Filter, which Invoice to fetch. */ where?: InvoiceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invoices to fetch. */ orderBy?: InvoiceOrderByWithRelationInput | InvoiceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Invoices. */ cursor?: InvoiceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invoices 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` Invoices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Invoices. */ distinct?: InvoiceScalarFieldEnum | InvoiceScalarFieldEnum[] } /** * Invoice findFirstOrThrow */ export type InvoiceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * Filter, which Invoice to fetch. */ where?: InvoiceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invoices to fetch. */ orderBy?: InvoiceOrderByWithRelationInput | InvoiceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Invoices. */ cursor?: InvoiceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invoices 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` Invoices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Invoices. */ distinct?: InvoiceScalarFieldEnum | InvoiceScalarFieldEnum[] } /** * Invoice findMany */ export type InvoiceFindManyArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * Filter, which Invoices to fetch. */ where?: InvoiceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invoices to fetch. */ orderBy?: InvoiceOrderByWithRelationInput | InvoiceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Invoices. */ cursor?: InvoiceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invoices 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` Invoices. */ skip?: number distinct?: InvoiceScalarFieldEnum | InvoiceScalarFieldEnum[] } /** * Invoice create */ export type InvoiceCreateArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * The data needed to create a Invoice. */ data: XOR } /** * Invoice createMany */ export type InvoiceCreateManyArgs = { /** * The data used to create many Invoices. */ data: InvoiceCreateManyInput | InvoiceCreateManyInput[] skipDuplicates?: boolean } /** * Invoice update */ export type InvoiceUpdateArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * The data needed to update a Invoice. */ data: XOR /** * Choose, which Invoice to update. */ where: InvoiceWhereUniqueInput } /** * Invoice updateMany */ export type InvoiceUpdateManyArgs = { /** * The data used to update Invoices. */ data: XOR /** * Filter which Invoices to update */ where?: InvoiceWhereInput } /** * Invoice upsert */ export type InvoiceUpsertArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * The filter to search for the Invoice to update in case it exists. */ where: InvoiceWhereUniqueInput /** * In case the Invoice found by the `where` argument doesn't exist, create a new Invoice with this data. */ create: XOR /** * In case the Invoice was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Invoice delete */ export type InvoiceDeleteArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null /** * Filter which Invoice to delete. */ where: InvoiceWhereUniqueInput } /** * Invoice deleteMany */ export type InvoiceDeleteManyArgs = { /** * Filter which Invoices to delete */ where?: InvoiceWhereInput } /** * Invoice without action */ export type InvoiceDefaultArgs = { /** * Select specific fields to fetch from the Invoice */ select?: InvoiceSelect | null /** * Choose, which related nodes to fetch as well */ include?: InvoiceInclude | null } /** * Model InternetContractDetails */ export type AggregateInternetContractDetails = { _count: InternetContractDetailsCountAggregateOutputType | null _avg: InternetContractDetailsAvgAggregateOutputType | null _sum: InternetContractDetailsSumAggregateOutputType | null _min: InternetContractDetailsMinAggregateOutputType | null _max: InternetContractDetailsMaxAggregateOutputType | null } export type InternetContractDetailsAvgAggregateOutputType = { id: number | null contractId: number | null downloadSpeed: number | null uploadSpeed: number | null } export type InternetContractDetailsSumAggregateOutputType = { id: number | null contractId: number | null downloadSpeed: number | null uploadSpeed: number | null } export type InternetContractDetailsMinAggregateOutputType = { id: number | null contractId: number | null downloadSpeed: number | null uploadSpeed: number | null routerModel: string | null routerSerialNumber: string | null installationDate: Date | null internetUsername: string | null internetPasswordEncrypted: string | null homeId: string | null activationCode: string | null } export type InternetContractDetailsMaxAggregateOutputType = { id: number | null contractId: number | null downloadSpeed: number | null uploadSpeed: number | null routerModel: string | null routerSerialNumber: string | null installationDate: Date | null internetUsername: string | null internetPasswordEncrypted: string | null homeId: string | null activationCode: string | null } export type InternetContractDetailsCountAggregateOutputType = { id: number contractId: number downloadSpeed: number uploadSpeed: number routerModel: number routerSerialNumber: number installationDate: number internetUsername: number internetPasswordEncrypted: number homeId: number activationCode: number _all: number } export type InternetContractDetailsAvgAggregateInputType = { id?: true contractId?: true downloadSpeed?: true uploadSpeed?: true } export type InternetContractDetailsSumAggregateInputType = { id?: true contractId?: true downloadSpeed?: true uploadSpeed?: true } export type InternetContractDetailsMinAggregateInputType = { id?: true contractId?: true downloadSpeed?: true uploadSpeed?: true routerModel?: true routerSerialNumber?: true installationDate?: true internetUsername?: true internetPasswordEncrypted?: true homeId?: true activationCode?: true } export type InternetContractDetailsMaxAggregateInputType = { id?: true contractId?: true downloadSpeed?: true uploadSpeed?: true routerModel?: true routerSerialNumber?: true installationDate?: true internetUsername?: true internetPasswordEncrypted?: true homeId?: true activationCode?: true } export type InternetContractDetailsCountAggregateInputType = { id?: true contractId?: true downloadSpeed?: true uploadSpeed?: true routerModel?: true routerSerialNumber?: true installationDate?: true internetUsername?: true internetPasswordEncrypted?: true homeId?: true activationCode?: true _all?: true } export type InternetContractDetailsAggregateArgs = { /** * Filter which InternetContractDetails to aggregate. */ where?: InternetContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InternetContractDetails to fetch. */ orderBy?: InternetContractDetailsOrderByWithRelationInput | InternetContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: InternetContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InternetContractDetails 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` InternetContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned InternetContractDetails **/ _count?: true | InternetContractDetailsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: InternetContractDetailsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: InternetContractDetailsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InternetContractDetailsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InternetContractDetailsMaxAggregateInputType } export type GetInternetContractDetailsAggregateType = { [P in keyof T & keyof AggregateInternetContractDetails]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type InternetContractDetailsGroupByArgs = { where?: InternetContractDetailsWhereInput orderBy?: InternetContractDetailsOrderByWithAggregationInput | InternetContractDetailsOrderByWithAggregationInput[] by: InternetContractDetailsScalarFieldEnum[] | InternetContractDetailsScalarFieldEnum having?: InternetContractDetailsScalarWhereWithAggregatesInput take?: number skip?: number _count?: InternetContractDetailsCountAggregateInputType | true _avg?: InternetContractDetailsAvgAggregateInputType _sum?: InternetContractDetailsSumAggregateInputType _min?: InternetContractDetailsMinAggregateInputType _max?: InternetContractDetailsMaxAggregateInputType } export type InternetContractDetailsGroupByOutputType = { id: number contractId: number downloadSpeed: number | null uploadSpeed: number | null routerModel: string | null routerSerialNumber: string | null installationDate: Date | null internetUsername: string | null internetPasswordEncrypted: string | null homeId: string | null activationCode: string | null _count: InternetContractDetailsCountAggregateOutputType | null _avg: InternetContractDetailsAvgAggregateOutputType | null _sum: InternetContractDetailsSumAggregateOutputType | null _min: InternetContractDetailsMinAggregateOutputType | null _max: InternetContractDetailsMaxAggregateOutputType | null } type GetInternetContractDetailsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof InternetContractDetailsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type InternetContractDetailsSelect = $Extensions.GetSelect<{ id?: boolean contractId?: boolean downloadSpeed?: boolean uploadSpeed?: boolean routerModel?: boolean routerSerialNumber?: boolean installationDate?: boolean internetUsername?: boolean internetPasswordEncrypted?: boolean homeId?: boolean activationCode?: boolean contract?: boolean | ContractDefaultArgs phoneNumbers?: boolean | InternetContractDetails$phoneNumbersArgs _count?: boolean | InternetContractDetailsCountOutputTypeDefaultArgs }, ExtArgs["result"]["internetContractDetails"]> export type InternetContractDetailsSelectScalar = { id?: boolean contractId?: boolean downloadSpeed?: boolean uploadSpeed?: boolean routerModel?: boolean routerSerialNumber?: boolean installationDate?: boolean internetUsername?: boolean internetPasswordEncrypted?: boolean homeId?: boolean activationCode?: boolean } export type InternetContractDetailsInclude = { contract?: boolean | ContractDefaultArgs phoneNumbers?: boolean | InternetContractDetails$phoneNumbersArgs _count?: boolean | InternetContractDetailsCountOutputTypeDefaultArgs } export type $InternetContractDetailsPayload = { name: "InternetContractDetails" objects: { contract: Prisma.$ContractPayload phoneNumbers: Prisma.$PhoneNumberPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number contractId: number downloadSpeed: number | null uploadSpeed: number | null routerModel: string | null routerSerialNumber: string | null installationDate: Date | null internetUsername: string | null internetPasswordEncrypted: string | null homeId: string | null activationCode: string | null }, ExtArgs["result"]["internetContractDetails"]> composites: {} } type InternetContractDetailsGetPayload = $Result.GetResult type InternetContractDetailsCountArgs = Omit & { select?: InternetContractDetailsCountAggregateInputType | true } export interface InternetContractDetailsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['InternetContractDetails'], meta: { name: 'InternetContractDetails' } } /** * Find zero or one InternetContractDetails that matches the filter. * @param {InternetContractDetailsFindUniqueArgs} args - Arguments to find a InternetContractDetails * @example * // Get one InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one InternetContractDetails that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InternetContractDetailsFindUniqueOrThrowArgs} args - Arguments to find a InternetContractDetails * @example * // Get one InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first InternetContractDetails 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 {InternetContractDetailsFindFirstArgs} args - Arguments to find a InternetContractDetails * @example * // Get one InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first InternetContractDetails 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 {InternetContractDetailsFindFirstOrThrowArgs} args - Arguments to find a InternetContractDetails * @example * // Get one InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more InternetContractDetails 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 {InternetContractDetailsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.findMany() * * // Get first 10 InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.findMany({ take: 10 }) * * // Only select the `id` * const internetContractDetailsWithIdOnly = await prisma.internetContractDetails.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a InternetContractDetails. * @param {InternetContractDetailsCreateArgs} args - Arguments to create a InternetContractDetails. * @example * // Create one InternetContractDetails * const InternetContractDetails = await prisma.internetContractDetails.create({ * data: { * // ... data to create a InternetContractDetails * } * }) * */ create(args: SelectSubset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many InternetContractDetails. * @param {InternetContractDetailsCreateManyArgs} args - Arguments to create many InternetContractDetails. * @example * // Create many InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a InternetContractDetails. * @param {InternetContractDetailsDeleteArgs} args - Arguments to delete one InternetContractDetails. * @example * // Delete one InternetContractDetails * const InternetContractDetails = await prisma.internetContractDetails.delete({ * where: { * // ... filter to delete one InternetContractDetails * } * }) * */ delete(args: SelectSubset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one InternetContractDetails. * @param {InternetContractDetailsUpdateArgs} args - Arguments to update one InternetContractDetails. * @example * // Update one InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more InternetContractDetails. * @param {InternetContractDetailsDeleteManyArgs} args - Arguments to filter InternetContractDetails to delete. * @example * // Delete a few InternetContractDetails * const { count } = await prisma.internetContractDetails.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more InternetContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InternetContractDetailsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one InternetContractDetails. * @param {InternetContractDetailsUpsertArgs} args - Arguments to update or create a InternetContractDetails. * @example * // Update or create a InternetContractDetails * const internetContractDetails = await prisma.internetContractDetails.upsert({ * create: { * // ... data to create a InternetContractDetails * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the InternetContractDetails we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of InternetContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InternetContractDetailsCountArgs} args - Arguments to filter InternetContractDetails to count. * @example * // Count the number of InternetContractDetails * const count = await prisma.internetContractDetails.count({ * where: { * // ... the filter for the InternetContractDetails we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a InternetContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InternetContractDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by InternetContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InternetContractDetailsGroupByArgs} 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 InternetContractDetailsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: InternetContractDetailsGroupByArgs['orderBy'] } : { orderBy?: InternetContractDetailsGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetInternetContractDetailsGroupByPayload : Prisma.PrismaPromise /** * Fields of the InternetContractDetails model */ readonly fields: InternetContractDetailsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for InternetContractDetails. * 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__InternetContractDetailsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> phoneNumbers = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the InternetContractDetails model */ interface InternetContractDetailsFieldRefs { readonly id: FieldRef<"InternetContractDetails", 'Int'> readonly contractId: FieldRef<"InternetContractDetails", 'Int'> readonly downloadSpeed: FieldRef<"InternetContractDetails", 'Int'> readonly uploadSpeed: FieldRef<"InternetContractDetails", 'Int'> readonly routerModel: FieldRef<"InternetContractDetails", 'String'> readonly routerSerialNumber: FieldRef<"InternetContractDetails", 'String'> readonly installationDate: FieldRef<"InternetContractDetails", 'DateTime'> readonly internetUsername: FieldRef<"InternetContractDetails", 'String'> readonly internetPasswordEncrypted: FieldRef<"InternetContractDetails", 'String'> readonly homeId: FieldRef<"InternetContractDetails", 'String'> readonly activationCode: FieldRef<"InternetContractDetails", 'String'> } // Custom InputTypes /** * InternetContractDetails findUnique */ export type InternetContractDetailsFindUniqueArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * Filter, which InternetContractDetails to fetch. */ where: InternetContractDetailsWhereUniqueInput } /** * InternetContractDetails findUniqueOrThrow */ export type InternetContractDetailsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * Filter, which InternetContractDetails to fetch. */ where: InternetContractDetailsWhereUniqueInput } /** * InternetContractDetails findFirst */ export type InternetContractDetailsFindFirstArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * Filter, which InternetContractDetails to fetch. */ where?: InternetContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InternetContractDetails to fetch. */ orderBy?: InternetContractDetailsOrderByWithRelationInput | InternetContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InternetContractDetails. */ cursor?: InternetContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InternetContractDetails 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` InternetContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InternetContractDetails. */ distinct?: InternetContractDetailsScalarFieldEnum | InternetContractDetailsScalarFieldEnum[] } /** * InternetContractDetails findFirstOrThrow */ export type InternetContractDetailsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * Filter, which InternetContractDetails to fetch. */ where?: InternetContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InternetContractDetails to fetch. */ orderBy?: InternetContractDetailsOrderByWithRelationInput | InternetContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InternetContractDetails. */ cursor?: InternetContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InternetContractDetails 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` InternetContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InternetContractDetails. */ distinct?: InternetContractDetailsScalarFieldEnum | InternetContractDetailsScalarFieldEnum[] } /** * InternetContractDetails findMany */ export type InternetContractDetailsFindManyArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * Filter, which InternetContractDetails to fetch. */ where?: InternetContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InternetContractDetails to fetch. */ orderBy?: InternetContractDetailsOrderByWithRelationInput | InternetContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing InternetContractDetails. */ cursor?: InternetContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InternetContractDetails 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` InternetContractDetails. */ skip?: number distinct?: InternetContractDetailsScalarFieldEnum | InternetContractDetailsScalarFieldEnum[] } /** * InternetContractDetails create */ export type InternetContractDetailsCreateArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * The data needed to create a InternetContractDetails. */ data: XOR } /** * InternetContractDetails createMany */ export type InternetContractDetailsCreateManyArgs = { /** * The data used to create many InternetContractDetails. */ data: InternetContractDetailsCreateManyInput | InternetContractDetailsCreateManyInput[] skipDuplicates?: boolean } /** * InternetContractDetails update */ export type InternetContractDetailsUpdateArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * The data needed to update a InternetContractDetails. */ data: XOR /** * Choose, which InternetContractDetails to update. */ where: InternetContractDetailsWhereUniqueInput } /** * InternetContractDetails updateMany */ export type InternetContractDetailsUpdateManyArgs = { /** * The data used to update InternetContractDetails. */ data: XOR /** * Filter which InternetContractDetails to update */ where?: InternetContractDetailsWhereInput } /** * InternetContractDetails upsert */ export type InternetContractDetailsUpsertArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * The filter to search for the InternetContractDetails to update in case it exists. */ where: InternetContractDetailsWhereUniqueInput /** * In case the InternetContractDetails found by the `where` argument doesn't exist, create a new InternetContractDetails with this data. */ create: XOR /** * In case the InternetContractDetails was found with the provided `where` argument, update it with this data. */ update: XOR } /** * InternetContractDetails delete */ export type InternetContractDetailsDeleteArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null /** * Filter which InternetContractDetails to delete. */ where: InternetContractDetailsWhereUniqueInput } /** * InternetContractDetails deleteMany */ export type InternetContractDetailsDeleteManyArgs = { /** * Filter which InternetContractDetails to delete */ where?: InternetContractDetailsWhereInput } /** * InternetContractDetails.phoneNumbers */ export type InternetContractDetails$phoneNumbersArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null where?: PhoneNumberWhereInput orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[] cursor?: PhoneNumberWhereUniqueInput take?: number skip?: number distinct?: PhoneNumberScalarFieldEnum | PhoneNumberScalarFieldEnum[] } /** * InternetContractDetails without action */ export type InternetContractDetailsDefaultArgs = { /** * Select specific fields to fetch from the InternetContractDetails */ select?: InternetContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: InternetContractDetailsInclude | null } /** * Model PhoneNumber */ export type AggregatePhoneNumber = { _count: PhoneNumberCountAggregateOutputType | null _avg: PhoneNumberAvgAggregateOutputType | null _sum: PhoneNumberSumAggregateOutputType | null _min: PhoneNumberMinAggregateOutputType | null _max: PhoneNumberMaxAggregateOutputType | null } export type PhoneNumberAvgAggregateOutputType = { id: number | null internetContractDetailsId: number | null } export type PhoneNumberSumAggregateOutputType = { id: number | null internetContractDetailsId: number | null } export type PhoneNumberMinAggregateOutputType = { id: number | null internetContractDetailsId: number | null phoneNumber: string | null isMain: boolean | null sipUsername: string | null sipPasswordEncrypted: string | null sipServer: string | null } export type PhoneNumberMaxAggregateOutputType = { id: number | null internetContractDetailsId: number | null phoneNumber: string | null isMain: boolean | null sipUsername: string | null sipPasswordEncrypted: string | null sipServer: string | null } export type PhoneNumberCountAggregateOutputType = { id: number internetContractDetailsId: number phoneNumber: number isMain: number sipUsername: number sipPasswordEncrypted: number sipServer: number _all: number } export type PhoneNumberAvgAggregateInputType = { id?: true internetContractDetailsId?: true } export type PhoneNumberSumAggregateInputType = { id?: true internetContractDetailsId?: true } export type PhoneNumberMinAggregateInputType = { id?: true internetContractDetailsId?: true phoneNumber?: true isMain?: true sipUsername?: true sipPasswordEncrypted?: true sipServer?: true } export type PhoneNumberMaxAggregateInputType = { id?: true internetContractDetailsId?: true phoneNumber?: true isMain?: true sipUsername?: true sipPasswordEncrypted?: true sipServer?: true } export type PhoneNumberCountAggregateInputType = { id?: true internetContractDetailsId?: true phoneNumber?: true isMain?: true sipUsername?: true sipPasswordEncrypted?: true sipServer?: true _all?: true } export type PhoneNumberAggregateArgs = { /** * Filter which PhoneNumber to aggregate. */ where?: PhoneNumberWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PhoneNumbers to fetch. */ orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PhoneNumberWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PhoneNumbers 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` PhoneNumbers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PhoneNumbers **/ _count?: true | PhoneNumberCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PhoneNumberAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PhoneNumberSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PhoneNumberMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PhoneNumberMaxAggregateInputType } export type GetPhoneNumberAggregateType = { [P in keyof T & keyof AggregatePhoneNumber]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PhoneNumberGroupByArgs = { where?: PhoneNumberWhereInput orderBy?: PhoneNumberOrderByWithAggregationInput | PhoneNumberOrderByWithAggregationInput[] by: PhoneNumberScalarFieldEnum[] | PhoneNumberScalarFieldEnum having?: PhoneNumberScalarWhereWithAggregatesInput take?: number skip?: number _count?: PhoneNumberCountAggregateInputType | true _avg?: PhoneNumberAvgAggregateInputType _sum?: PhoneNumberSumAggregateInputType _min?: PhoneNumberMinAggregateInputType _max?: PhoneNumberMaxAggregateInputType } export type PhoneNumberGroupByOutputType = { id: number internetContractDetailsId: number phoneNumber: string isMain: boolean sipUsername: string | null sipPasswordEncrypted: string | null sipServer: string | null _count: PhoneNumberCountAggregateOutputType | null _avg: PhoneNumberAvgAggregateOutputType | null _sum: PhoneNumberSumAggregateOutputType | null _min: PhoneNumberMinAggregateOutputType | null _max: PhoneNumberMaxAggregateOutputType | null } type GetPhoneNumberGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PhoneNumberGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PhoneNumberSelect = $Extensions.GetSelect<{ id?: boolean internetContractDetailsId?: boolean phoneNumber?: boolean isMain?: boolean sipUsername?: boolean sipPasswordEncrypted?: boolean sipServer?: boolean internetDetails?: boolean | InternetContractDetailsDefaultArgs }, ExtArgs["result"]["phoneNumber"]> export type PhoneNumberSelectScalar = { id?: boolean internetContractDetailsId?: boolean phoneNumber?: boolean isMain?: boolean sipUsername?: boolean sipPasswordEncrypted?: boolean sipServer?: boolean } export type PhoneNumberInclude = { internetDetails?: boolean | InternetContractDetailsDefaultArgs } export type $PhoneNumberPayload = { name: "PhoneNumber" objects: { internetDetails: Prisma.$InternetContractDetailsPayload } scalars: $Extensions.GetPayloadResult<{ id: number internetContractDetailsId: number phoneNumber: string isMain: boolean sipUsername: string | null sipPasswordEncrypted: string | null sipServer: string | null }, ExtArgs["result"]["phoneNumber"]> composites: {} } type PhoneNumberGetPayload = $Result.GetResult type PhoneNumberCountArgs = Omit & { select?: PhoneNumberCountAggregateInputType | true } export interface PhoneNumberDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PhoneNumber'], meta: { name: 'PhoneNumber' } } /** * Find zero or one PhoneNumber that matches the filter. * @param {PhoneNumberFindUniqueArgs} args - Arguments to find a PhoneNumber * @example * // Get one PhoneNumber * const phoneNumber = await prisma.phoneNumber.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PhoneNumberClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one PhoneNumber that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PhoneNumberFindUniqueOrThrowArgs} args - Arguments to find a PhoneNumber * @example * // Get one PhoneNumber * const phoneNumber = await prisma.phoneNumber.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PhoneNumberClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first PhoneNumber 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 {PhoneNumberFindFirstArgs} args - Arguments to find a PhoneNumber * @example * // Get one PhoneNumber * const phoneNumber = await prisma.phoneNumber.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PhoneNumberClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first PhoneNumber 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 {PhoneNumberFindFirstOrThrowArgs} args - Arguments to find a PhoneNumber * @example * // Get one PhoneNumber * const phoneNumber = await prisma.phoneNumber.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PhoneNumberClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more PhoneNumbers 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 {PhoneNumberFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PhoneNumbers * const phoneNumbers = await prisma.phoneNumber.findMany() * * // Get first 10 PhoneNumbers * const phoneNumbers = await prisma.phoneNumber.findMany({ take: 10 }) * * // Only select the `id` * const phoneNumberWithIdOnly = await prisma.phoneNumber.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a PhoneNumber. * @param {PhoneNumberCreateArgs} args - Arguments to create a PhoneNumber. * @example * // Create one PhoneNumber * const PhoneNumber = await prisma.phoneNumber.create({ * data: { * // ... data to create a PhoneNumber * } * }) * */ create(args: SelectSubset>): Prisma__PhoneNumberClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many PhoneNumbers. * @param {PhoneNumberCreateManyArgs} args - Arguments to create many PhoneNumbers. * @example * // Create many PhoneNumbers * const phoneNumber = await prisma.phoneNumber.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a PhoneNumber. * @param {PhoneNumberDeleteArgs} args - Arguments to delete one PhoneNumber. * @example * // Delete one PhoneNumber * const PhoneNumber = await prisma.phoneNumber.delete({ * where: { * // ... filter to delete one PhoneNumber * } * }) * */ delete(args: SelectSubset>): Prisma__PhoneNumberClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one PhoneNumber. * @param {PhoneNumberUpdateArgs} args - Arguments to update one PhoneNumber. * @example * // Update one PhoneNumber * const phoneNumber = await prisma.phoneNumber.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PhoneNumberClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more PhoneNumbers. * @param {PhoneNumberDeleteManyArgs} args - Arguments to filter PhoneNumbers to delete. * @example * // Delete a few PhoneNumbers * const { count } = await prisma.phoneNumber.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PhoneNumbers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhoneNumberUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PhoneNumbers * const phoneNumber = await prisma.phoneNumber.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one PhoneNumber. * @param {PhoneNumberUpsertArgs} args - Arguments to update or create a PhoneNumber. * @example * // Update or create a PhoneNumber * const phoneNumber = await prisma.phoneNumber.upsert({ * create: { * // ... data to create a PhoneNumber * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PhoneNumber we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PhoneNumberClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of PhoneNumbers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhoneNumberCountArgs} args - Arguments to filter PhoneNumbers to count. * @example * // Count the number of PhoneNumbers * const count = await prisma.phoneNumber.count({ * where: { * // ... the filter for the PhoneNumbers we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a PhoneNumber. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhoneNumberAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by PhoneNumber. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhoneNumberGroupByArgs} 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 PhoneNumberGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PhoneNumberGroupByArgs['orderBy'] } : { orderBy?: PhoneNumberGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetPhoneNumberGroupByPayload : Prisma.PrismaPromise /** * Fields of the PhoneNumber model */ readonly fields: PhoneNumberFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PhoneNumber. * 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__PhoneNumberClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" internetDetails = {}>(args?: Subset>): Prisma__InternetContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the PhoneNumber model */ interface PhoneNumberFieldRefs { readonly id: FieldRef<"PhoneNumber", 'Int'> readonly internetContractDetailsId: FieldRef<"PhoneNumber", 'Int'> readonly phoneNumber: FieldRef<"PhoneNumber", 'String'> readonly isMain: FieldRef<"PhoneNumber", 'Boolean'> readonly sipUsername: FieldRef<"PhoneNumber", 'String'> readonly sipPasswordEncrypted: FieldRef<"PhoneNumber", 'String'> readonly sipServer: FieldRef<"PhoneNumber", 'String'> } // Custom InputTypes /** * PhoneNumber findUnique */ export type PhoneNumberFindUniqueArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * Filter, which PhoneNumber to fetch. */ where: PhoneNumberWhereUniqueInput } /** * PhoneNumber findUniqueOrThrow */ export type PhoneNumberFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * Filter, which PhoneNumber to fetch. */ where: PhoneNumberWhereUniqueInput } /** * PhoneNumber findFirst */ export type PhoneNumberFindFirstArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * Filter, which PhoneNumber to fetch. */ where?: PhoneNumberWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PhoneNumbers to fetch. */ orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PhoneNumbers. */ cursor?: PhoneNumberWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PhoneNumbers 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` PhoneNumbers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PhoneNumbers. */ distinct?: PhoneNumberScalarFieldEnum | PhoneNumberScalarFieldEnum[] } /** * PhoneNumber findFirstOrThrow */ export type PhoneNumberFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * Filter, which PhoneNumber to fetch. */ where?: PhoneNumberWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PhoneNumbers to fetch. */ orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PhoneNumbers. */ cursor?: PhoneNumberWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PhoneNumbers 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` PhoneNumbers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PhoneNumbers. */ distinct?: PhoneNumberScalarFieldEnum | PhoneNumberScalarFieldEnum[] } /** * PhoneNumber findMany */ export type PhoneNumberFindManyArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * Filter, which PhoneNumbers to fetch. */ where?: PhoneNumberWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PhoneNumbers to fetch. */ orderBy?: PhoneNumberOrderByWithRelationInput | PhoneNumberOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PhoneNumbers. */ cursor?: PhoneNumberWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PhoneNumbers 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` PhoneNumbers. */ skip?: number distinct?: PhoneNumberScalarFieldEnum | PhoneNumberScalarFieldEnum[] } /** * PhoneNumber create */ export type PhoneNumberCreateArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * The data needed to create a PhoneNumber. */ data: XOR } /** * PhoneNumber createMany */ export type PhoneNumberCreateManyArgs = { /** * The data used to create many PhoneNumbers. */ data: PhoneNumberCreateManyInput | PhoneNumberCreateManyInput[] skipDuplicates?: boolean } /** * PhoneNumber update */ export type PhoneNumberUpdateArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * The data needed to update a PhoneNumber. */ data: XOR /** * Choose, which PhoneNumber to update. */ where: PhoneNumberWhereUniqueInput } /** * PhoneNumber updateMany */ export type PhoneNumberUpdateManyArgs = { /** * The data used to update PhoneNumbers. */ data: XOR /** * Filter which PhoneNumbers to update */ where?: PhoneNumberWhereInput } /** * PhoneNumber upsert */ export type PhoneNumberUpsertArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * The filter to search for the PhoneNumber to update in case it exists. */ where: PhoneNumberWhereUniqueInput /** * In case the PhoneNumber found by the `where` argument doesn't exist, create a new PhoneNumber with this data. */ create: XOR /** * In case the PhoneNumber was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PhoneNumber delete */ export type PhoneNumberDeleteArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null /** * Filter which PhoneNumber to delete. */ where: PhoneNumberWhereUniqueInput } /** * PhoneNumber deleteMany */ export type PhoneNumberDeleteManyArgs = { /** * Filter which PhoneNumbers to delete */ where?: PhoneNumberWhereInput } /** * PhoneNumber without action */ export type PhoneNumberDefaultArgs = { /** * Select specific fields to fetch from the PhoneNumber */ select?: PhoneNumberSelect | null /** * Choose, which related nodes to fetch as well */ include?: PhoneNumberInclude | null } /** * Model MobileContractDetails */ export type AggregateMobileContractDetails = { _count: MobileContractDetailsCountAggregateOutputType | null _avg: MobileContractDetailsAvgAggregateOutputType | null _sum: MobileContractDetailsSumAggregateOutputType | null _min: MobileContractDetailsMinAggregateOutputType | null _max: MobileContractDetailsMaxAggregateOutputType | null } export type MobileContractDetailsAvgAggregateOutputType = { id: number | null contractId: number | null dataVolume: number | null includedMinutes: number | null includedSMS: number | null } export type MobileContractDetailsSumAggregateOutputType = { id: number | null contractId: number | null dataVolume: number | null includedMinutes: number | null includedSMS: number | null } export type MobileContractDetailsMinAggregateOutputType = { id: number | null contractId: number | null requiresMultisim: boolean | null dataVolume: number | null includedMinutes: number | null includedSMS: number | null deviceModel: string | null deviceImei: string | null phoneNumber: string | null simCardNumber: string | null } export type MobileContractDetailsMaxAggregateOutputType = { id: number | null contractId: number | null requiresMultisim: boolean | null dataVolume: number | null includedMinutes: number | null includedSMS: number | null deviceModel: string | null deviceImei: string | null phoneNumber: string | null simCardNumber: string | null } export type MobileContractDetailsCountAggregateOutputType = { id: number contractId: number requiresMultisim: number dataVolume: number includedMinutes: number includedSMS: number deviceModel: number deviceImei: number phoneNumber: number simCardNumber: number _all: number } export type MobileContractDetailsAvgAggregateInputType = { id?: true contractId?: true dataVolume?: true includedMinutes?: true includedSMS?: true } export type MobileContractDetailsSumAggregateInputType = { id?: true contractId?: true dataVolume?: true includedMinutes?: true includedSMS?: true } export type MobileContractDetailsMinAggregateInputType = { id?: true contractId?: true requiresMultisim?: true dataVolume?: true includedMinutes?: true includedSMS?: true deviceModel?: true deviceImei?: true phoneNumber?: true simCardNumber?: true } export type MobileContractDetailsMaxAggregateInputType = { id?: true contractId?: true requiresMultisim?: true dataVolume?: true includedMinutes?: true includedSMS?: true deviceModel?: true deviceImei?: true phoneNumber?: true simCardNumber?: true } export type MobileContractDetailsCountAggregateInputType = { id?: true contractId?: true requiresMultisim?: true dataVolume?: true includedMinutes?: true includedSMS?: true deviceModel?: true deviceImei?: true phoneNumber?: true simCardNumber?: true _all?: true } export type MobileContractDetailsAggregateArgs = { /** * Filter which MobileContractDetails to aggregate. */ where?: MobileContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MobileContractDetails to fetch. */ orderBy?: MobileContractDetailsOrderByWithRelationInput | MobileContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: MobileContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MobileContractDetails 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` MobileContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned MobileContractDetails **/ _count?: true | MobileContractDetailsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: MobileContractDetailsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: MobileContractDetailsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MobileContractDetailsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MobileContractDetailsMaxAggregateInputType } export type GetMobileContractDetailsAggregateType = { [P in keyof T & keyof AggregateMobileContractDetails]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type MobileContractDetailsGroupByArgs = { where?: MobileContractDetailsWhereInput orderBy?: MobileContractDetailsOrderByWithAggregationInput | MobileContractDetailsOrderByWithAggregationInput[] by: MobileContractDetailsScalarFieldEnum[] | MobileContractDetailsScalarFieldEnum having?: MobileContractDetailsScalarWhereWithAggregatesInput take?: number skip?: number _count?: MobileContractDetailsCountAggregateInputType | true _avg?: MobileContractDetailsAvgAggregateInputType _sum?: MobileContractDetailsSumAggregateInputType _min?: MobileContractDetailsMinAggregateInputType _max?: MobileContractDetailsMaxAggregateInputType } export type MobileContractDetailsGroupByOutputType = { id: number contractId: number requiresMultisim: boolean dataVolume: number | null includedMinutes: number | null includedSMS: number | null deviceModel: string | null deviceImei: string | null phoneNumber: string | null simCardNumber: string | null _count: MobileContractDetailsCountAggregateOutputType | null _avg: MobileContractDetailsAvgAggregateOutputType | null _sum: MobileContractDetailsSumAggregateOutputType | null _min: MobileContractDetailsMinAggregateOutputType | null _max: MobileContractDetailsMaxAggregateOutputType | null } type GetMobileContractDetailsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof MobileContractDetailsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type MobileContractDetailsSelect = $Extensions.GetSelect<{ id?: boolean contractId?: boolean requiresMultisim?: boolean dataVolume?: boolean includedMinutes?: boolean includedSMS?: boolean deviceModel?: boolean deviceImei?: boolean phoneNumber?: boolean simCardNumber?: boolean contract?: boolean | ContractDefaultArgs simCards?: boolean | MobileContractDetails$simCardsArgs _count?: boolean | MobileContractDetailsCountOutputTypeDefaultArgs }, ExtArgs["result"]["mobileContractDetails"]> export type MobileContractDetailsSelectScalar = { id?: boolean contractId?: boolean requiresMultisim?: boolean dataVolume?: boolean includedMinutes?: boolean includedSMS?: boolean deviceModel?: boolean deviceImei?: boolean phoneNumber?: boolean simCardNumber?: boolean } export type MobileContractDetailsInclude = { contract?: boolean | ContractDefaultArgs simCards?: boolean | MobileContractDetails$simCardsArgs _count?: boolean | MobileContractDetailsCountOutputTypeDefaultArgs } export type $MobileContractDetailsPayload = { name: "MobileContractDetails" objects: { contract: Prisma.$ContractPayload simCards: Prisma.$SimCardPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number contractId: number requiresMultisim: boolean dataVolume: number | null includedMinutes: number | null includedSMS: number | null deviceModel: string | null deviceImei: string | null phoneNumber: string | null simCardNumber: string | null }, ExtArgs["result"]["mobileContractDetails"]> composites: {} } type MobileContractDetailsGetPayload = $Result.GetResult type MobileContractDetailsCountArgs = Omit & { select?: MobileContractDetailsCountAggregateInputType | true } export interface MobileContractDetailsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['MobileContractDetails'], meta: { name: 'MobileContractDetails' } } /** * Find zero or one MobileContractDetails that matches the filter. * @param {MobileContractDetailsFindUniqueArgs} args - Arguments to find a MobileContractDetails * @example * // Get one MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one MobileContractDetails that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MobileContractDetailsFindUniqueOrThrowArgs} args - Arguments to find a MobileContractDetails * @example * // Get one MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first MobileContractDetails 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 {MobileContractDetailsFindFirstArgs} args - Arguments to find a MobileContractDetails * @example * // Get one MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first MobileContractDetails 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 {MobileContractDetailsFindFirstOrThrowArgs} args - Arguments to find a MobileContractDetails * @example * // Get one MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more MobileContractDetails 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 {MobileContractDetailsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.findMany() * * // Get first 10 MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.findMany({ take: 10 }) * * // Only select the `id` * const mobileContractDetailsWithIdOnly = await prisma.mobileContractDetails.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a MobileContractDetails. * @param {MobileContractDetailsCreateArgs} args - Arguments to create a MobileContractDetails. * @example * // Create one MobileContractDetails * const MobileContractDetails = await prisma.mobileContractDetails.create({ * data: { * // ... data to create a MobileContractDetails * } * }) * */ create(args: SelectSubset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many MobileContractDetails. * @param {MobileContractDetailsCreateManyArgs} args - Arguments to create many MobileContractDetails. * @example * // Create many MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a MobileContractDetails. * @param {MobileContractDetailsDeleteArgs} args - Arguments to delete one MobileContractDetails. * @example * // Delete one MobileContractDetails * const MobileContractDetails = await prisma.mobileContractDetails.delete({ * where: { * // ... filter to delete one MobileContractDetails * } * }) * */ delete(args: SelectSubset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one MobileContractDetails. * @param {MobileContractDetailsUpdateArgs} args - Arguments to update one MobileContractDetails. * @example * // Update one MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more MobileContractDetails. * @param {MobileContractDetailsDeleteManyArgs} args - Arguments to filter MobileContractDetails to delete. * @example * // Delete a few MobileContractDetails * const { count } = await prisma.mobileContractDetails.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MobileContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MobileContractDetailsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one MobileContractDetails. * @param {MobileContractDetailsUpsertArgs} args - Arguments to update or create a MobileContractDetails. * @example * // Update or create a MobileContractDetails * const mobileContractDetails = await prisma.mobileContractDetails.upsert({ * create: { * // ... data to create a MobileContractDetails * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the MobileContractDetails we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of MobileContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MobileContractDetailsCountArgs} args - Arguments to filter MobileContractDetails to count. * @example * // Count the number of MobileContractDetails * const count = await prisma.mobileContractDetails.count({ * where: { * // ... the filter for the MobileContractDetails we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a MobileContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MobileContractDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by MobileContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MobileContractDetailsGroupByArgs} 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 MobileContractDetailsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: MobileContractDetailsGroupByArgs['orderBy'] } : { orderBy?: MobileContractDetailsGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMobileContractDetailsGroupByPayload : Prisma.PrismaPromise /** * Fields of the MobileContractDetails model */ readonly fields: MobileContractDetailsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for MobileContractDetails. * 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__MobileContractDetailsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> simCards = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the MobileContractDetails model */ interface MobileContractDetailsFieldRefs { readonly id: FieldRef<"MobileContractDetails", 'Int'> readonly contractId: FieldRef<"MobileContractDetails", 'Int'> readonly requiresMultisim: FieldRef<"MobileContractDetails", 'Boolean'> readonly dataVolume: FieldRef<"MobileContractDetails", 'Float'> readonly includedMinutes: FieldRef<"MobileContractDetails", 'Int'> readonly includedSMS: FieldRef<"MobileContractDetails", 'Int'> readonly deviceModel: FieldRef<"MobileContractDetails", 'String'> readonly deviceImei: FieldRef<"MobileContractDetails", 'String'> readonly phoneNumber: FieldRef<"MobileContractDetails", 'String'> readonly simCardNumber: FieldRef<"MobileContractDetails", 'String'> } // Custom InputTypes /** * MobileContractDetails findUnique */ export type MobileContractDetailsFindUniqueArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * Filter, which MobileContractDetails to fetch. */ where: MobileContractDetailsWhereUniqueInput } /** * MobileContractDetails findUniqueOrThrow */ export type MobileContractDetailsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * Filter, which MobileContractDetails to fetch. */ where: MobileContractDetailsWhereUniqueInput } /** * MobileContractDetails findFirst */ export type MobileContractDetailsFindFirstArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * Filter, which MobileContractDetails to fetch. */ where?: MobileContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MobileContractDetails to fetch. */ orderBy?: MobileContractDetailsOrderByWithRelationInput | MobileContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MobileContractDetails. */ cursor?: MobileContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MobileContractDetails 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` MobileContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MobileContractDetails. */ distinct?: MobileContractDetailsScalarFieldEnum | MobileContractDetailsScalarFieldEnum[] } /** * MobileContractDetails findFirstOrThrow */ export type MobileContractDetailsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * Filter, which MobileContractDetails to fetch. */ where?: MobileContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MobileContractDetails to fetch. */ orderBy?: MobileContractDetailsOrderByWithRelationInput | MobileContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MobileContractDetails. */ cursor?: MobileContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MobileContractDetails 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` MobileContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MobileContractDetails. */ distinct?: MobileContractDetailsScalarFieldEnum | MobileContractDetailsScalarFieldEnum[] } /** * MobileContractDetails findMany */ export type MobileContractDetailsFindManyArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * Filter, which MobileContractDetails to fetch. */ where?: MobileContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MobileContractDetails to fetch. */ orderBy?: MobileContractDetailsOrderByWithRelationInput | MobileContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing MobileContractDetails. */ cursor?: MobileContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MobileContractDetails 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` MobileContractDetails. */ skip?: number distinct?: MobileContractDetailsScalarFieldEnum | MobileContractDetailsScalarFieldEnum[] } /** * MobileContractDetails create */ export type MobileContractDetailsCreateArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * The data needed to create a MobileContractDetails. */ data: XOR } /** * MobileContractDetails createMany */ export type MobileContractDetailsCreateManyArgs = { /** * The data used to create many MobileContractDetails. */ data: MobileContractDetailsCreateManyInput | MobileContractDetailsCreateManyInput[] skipDuplicates?: boolean } /** * MobileContractDetails update */ export type MobileContractDetailsUpdateArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * The data needed to update a MobileContractDetails. */ data: XOR /** * Choose, which MobileContractDetails to update. */ where: MobileContractDetailsWhereUniqueInput } /** * MobileContractDetails updateMany */ export type MobileContractDetailsUpdateManyArgs = { /** * The data used to update MobileContractDetails. */ data: XOR /** * Filter which MobileContractDetails to update */ where?: MobileContractDetailsWhereInput } /** * MobileContractDetails upsert */ export type MobileContractDetailsUpsertArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * The filter to search for the MobileContractDetails to update in case it exists. */ where: MobileContractDetailsWhereUniqueInput /** * In case the MobileContractDetails found by the `where` argument doesn't exist, create a new MobileContractDetails with this data. */ create: XOR /** * In case the MobileContractDetails was found with the provided `where` argument, update it with this data. */ update: XOR } /** * MobileContractDetails delete */ export type MobileContractDetailsDeleteArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null /** * Filter which MobileContractDetails to delete. */ where: MobileContractDetailsWhereUniqueInput } /** * MobileContractDetails deleteMany */ export type MobileContractDetailsDeleteManyArgs = { /** * Filter which MobileContractDetails to delete */ where?: MobileContractDetailsWhereInput } /** * MobileContractDetails.simCards */ export type MobileContractDetails$simCardsArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null where?: SimCardWhereInput orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[] cursor?: SimCardWhereUniqueInput take?: number skip?: number distinct?: SimCardScalarFieldEnum | SimCardScalarFieldEnum[] } /** * MobileContractDetails without action */ export type MobileContractDetailsDefaultArgs = { /** * Select specific fields to fetch from the MobileContractDetails */ select?: MobileContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: MobileContractDetailsInclude | null } /** * Model SimCard */ export type AggregateSimCard = { _count: SimCardCountAggregateOutputType | null _avg: SimCardAvgAggregateOutputType | null _sum: SimCardSumAggregateOutputType | null _min: SimCardMinAggregateOutputType | null _max: SimCardMaxAggregateOutputType | null } export type SimCardAvgAggregateOutputType = { id: number | null mobileDetailsId: number | null } export type SimCardSumAggregateOutputType = { id: number | null mobileDetailsId: number | null } export type SimCardMinAggregateOutputType = { id: number | null mobileDetailsId: number | null phoneNumber: string | null simCardNumber: string | null pin: string | null puk: string | null isMultisim: boolean | null isMain: boolean | null createdAt: Date | null updatedAt: Date | null } export type SimCardMaxAggregateOutputType = { id: number | null mobileDetailsId: number | null phoneNumber: string | null simCardNumber: string | null pin: string | null puk: string | null isMultisim: boolean | null isMain: boolean | null createdAt: Date | null updatedAt: Date | null } export type SimCardCountAggregateOutputType = { id: number mobileDetailsId: number phoneNumber: number simCardNumber: number pin: number puk: number isMultisim: number isMain: number createdAt: number updatedAt: number _all: number } export type SimCardAvgAggregateInputType = { id?: true mobileDetailsId?: true } export type SimCardSumAggregateInputType = { id?: true mobileDetailsId?: true } export type SimCardMinAggregateInputType = { id?: true mobileDetailsId?: true phoneNumber?: true simCardNumber?: true pin?: true puk?: true isMultisim?: true isMain?: true createdAt?: true updatedAt?: true } export type SimCardMaxAggregateInputType = { id?: true mobileDetailsId?: true phoneNumber?: true simCardNumber?: true pin?: true puk?: true isMultisim?: true isMain?: true createdAt?: true updatedAt?: true } export type SimCardCountAggregateInputType = { id?: true mobileDetailsId?: true phoneNumber?: true simCardNumber?: true pin?: true puk?: true isMultisim?: true isMain?: true createdAt?: true updatedAt?: true _all?: true } export type SimCardAggregateArgs = { /** * Filter which SimCard to aggregate. */ where?: SimCardWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SimCards to fetch. */ orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SimCardWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SimCards 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` SimCards. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SimCards **/ _count?: true | SimCardCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SimCardAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SimCardSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SimCardMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SimCardMaxAggregateInputType } export type GetSimCardAggregateType = { [P in keyof T & keyof AggregateSimCard]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SimCardGroupByArgs = { where?: SimCardWhereInput orderBy?: SimCardOrderByWithAggregationInput | SimCardOrderByWithAggregationInput[] by: SimCardScalarFieldEnum[] | SimCardScalarFieldEnum having?: SimCardScalarWhereWithAggregatesInput take?: number skip?: number _count?: SimCardCountAggregateInputType | true _avg?: SimCardAvgAggregateInputType _sum?: SimCardSumAggregateInputType _min?: SimCardMinAggregateInputType _max?: SimCardMaxAggregateInputType } export type SimCardGroupByOutputType = { id: number mobileDetailsId: number phoneNumber: string | null simCardNumber: string | null pin: string | null puk: string | null isMultisim: boolean isMain: boolean createdAt: Date updatedAt: Date _count: SimCardCountAggregateOutputType | null _avg: SimCardAvgAggregateOutputType | null _sum: SimCardSumAggregateOutputType | null _min: SimCardMinAggregateOutputType | null _max: SimCardMaxAggregateOutputType | null } type GetSimCardGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SimCardGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SimCardSelect = $Extensions.GetSelect<{ id?: boolean mobileDetailsId?: boolean phoneNumber?: boolean simCardNumber?: boolean pin?: boolean puk?: boolean isMultisim?: boolean isMain?: boolean createdAt?: boolean updatedAt?: boolean mobileDetails?: boolean | MobileContractDetailsDefaultArgs }, ExtArgs["result"]["simCard"]> export type SimCardSelectScalar = { id?: boolean mobileDetailsId?: boolean phoneNumber?: boolean simCardNumber?: boolean pin?: boolean puk?: boolean isMultisim?: boolean isMain?: boolean createdAt?: boolean updatedAt?: boolean } export type SimCardInclude = { mobileDetails?: boolean | MobileContractDetailsDefaultArgs } export type $SimCardPayload = { name: "SimCard" objects: { mobileDetails: Prisma.$MobileContractDetailsPayload } scalars: $Extensions.GetPayloadResult<{ id: number mobileDetailsId: number phoneNumber: string | null simCardNumber: string | null pin: string | null puk: string | null isMultisim: boolean isMain: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["simCard"]> composites: {} } type SimCardGetPayload = $Result.GetResult type SimCardCountArgs = Omit & { select?: SimCardCountAggregateInputType | true } export interface SimCardDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SimCard'], meta: { name: 'SimCard' } } /** * Find zero or one SimCard that matches the filter. * @param {SimCardFindUniqueArgs} args - Arguments to find a SimCard * @example * // Get one SimCard * const simCard = await prisma.simCard.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SimCardClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one SimCard that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SimCardFindUniqueOrThrowArgs} args - Arguments to find a SimCard * @example * // Get one SimCard * const simCard = await prisma.simCard.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SimCardClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first SimCard 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 {SimCardFindFirstArgs} args - Arguments to find a SimCard * @example * // Get one SimCard * const simCard = await prisma.simCard.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SimCardClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first SimCard 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 {SimCardFindFirstOrThrowArgs} args - Arguments to find a SimCard * @example * // Get one SimCard * const simCard = await prisma.simCard.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SimCardClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more SimCards 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 {SimCardFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SimCards * const simCards = await prisma.simCard.findMany() * * // Get first 10 SimCards * const simCards = await prisma.simCard.findMany({ take: 10 }) * * // Only select the `id` * const simCardWithIdOnly = await prisma.simCard.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a SimCard. * @param {SimCardCreateArgs} args - Arguments to create a SimCard. * @example * // Create one SimCard * const SimCard = await prisma.simCard.create({ * data: { * // ... data to create a SimCard * } * }) * */ create(args: SelectSubset>): Prisma__SimCardClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many SimCards. * @param {SimCardCreateManyArgs} args - Arguments to create many SimCards. * @example * // Create many SimCards * const simCard = await prisma.simCard.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a SimCard. * @param {SimCardDeleteArgs} args - Arguments to delete one SimCard. * @example * // Delete one SimCard * const SimCard = await prisma.simCard.delete({ * where: { * // ... filter to delete one SimCard * } * }) * */ delete(args: SelectSubset>): Prisma__SimCardClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one SimCard. * @param {SimCardUpdateArgs} args - Arguments to update one SimCard. * @example * // Update one SimCard * const simCard = await prisma.simCard.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SimCardClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more SimCards. * @param {SimCardDeleteManyArgs} args - Arguments to filter SimCards to delete. * @example * // Delete a few SimCards * const { count } = await prisma.simCard.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SimCards. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SimCardUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SimCards * const simCard = await prisma.simCard.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one SimCard. * @param {SimCardUpsertArgs} args - Arguments to update or create a SimCard. * @example * // Update or create a SimCard * const simCard = await prisma.simCard.upsert({ * create: { * // ... data to create a SimCard * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SimCard we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SimCardClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of SimCards. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SimCardCountArgs} args - Arguments to filter SimCards to count. * @example * // Count the number of SimCards * const count = await prisma.simCard.count({ * where: { * // ... the filter for the SimCards we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a SimCard. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SimCardAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by SimCard. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SimCardGroupByArgs} 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 SimCardGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SimCardGroupByArgs['orderBy'] } : { orderBy?: SimCardGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSimCardGroupByPayload : Prisma.PrismaPromise /** * Fields of the SimCard model */ readonly fields: SimCardFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SimCard. * 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__SimCardClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" mobileDetails = {}>(args?: Subset>): Prisma__MobileContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the SimCard model */ interface SimCardFieldRefs { readonly id: FieldRef<"SimCard", 'Int'> readonly mobileDetailsId: FieldRef<"SimCard", 'Int'> readonly phoneNumber: FieldRef<"SimCard", 'String'> readonly simCardNumber: FieldRef<"SimCard", 'String'> readonly pin: FieldRef<"SimCard", 'String'> readonly puk: FieldRef<"SimCard", 'String'> readonly isMultisim: FieldRef<"SimCard", 'Boolean'> readonly isMain: FieldRef<"SimCard", 'Boolean'> readonly createdAt: FieldRef<"SimCard", 'DateTime'> readonly updatedAt: FieldRef<"SimCard", 'DateTime'> } // Custom InputTypes /** * SimCard findUnique */ export type SimCardFindUniqueArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * Filter, which SimCard to fetch. */ where: SimCardWhereUniqueInput } /** * SimCard findUniqueOrThrow */ export type SimCardFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * Filter, which SimCard to fetch. */ where: SimCardWhereUniqueInput } /** * SimCard findFirst */ export type SimCardFindFirstArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * Filter, which SimCard to fetch. */ where?: SimCardWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SimCards to fetch. */ orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SimCards. */ cursor?: SimCardWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SimCards 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` SimCards. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SimCards. */ distinct?: SimCardScalarFieldEnum | SimCardScalarFieldEnum[] } /** * SimCard findFirstOrThrow */ export type SimCardFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * Filter, which SimCard to fetch. */ where?: SimCardWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SimCards to fetch. */ orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SimCards. */ cursor?: SimCardWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SimCards 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` SimCards. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SimCards. */ distinct?: SimCardScalarFieldEnum | SimCardScalarFieldEnum[] } /** * SimCard findMany */ export type SimCardFindManyArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * Filter, which SimCards to fetch. */ where?: SimCardWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SimCards to fetch. */ orderBy?: SimCardOrderByWithRelationInput | SimCardOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SimCards. */ cursor?: SimCardWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SimCards 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` SimCards. */ skip?: number distinct?: SimCardScalarFieldEnum | SimCardScalarFieldEnum[] } /** * SimCard create */ export type SimCardCreateArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * The data needed to create a SimCard. */ data: XOR } /** * SimCard createMany */ export type SimCardCreateManyArgs = { /** * The data used to create many SimCards. */ data: SimCardCreateManyInput | SimCardCreateManyInput[] skipDuplicates?: boolean } /** * SimCard update */ export type SimCardUpdateArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * The data needed to update a SimCard. */ data: XOR /** * Choose, which SimCard to update. */ where: SimCardWhereUniqueInput } /** * SimCard updateMany */ export type SimCardUpdateManyArgs = { /** * The data used to update SimCards. */ data: XOR /** * Filter which SimCards to update */ where?: SimCardWhereInput } /** * SimCard upsert */ export type SimCardUpsertArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * The filter to search for the SimCard to update in case it exists. */ where: SimCardWhereUniqueInput /** * In case the SimCard found by the `where` argument doesn't exist, create a new SimCard with this data. */ create: XOR /** * In case the SimCard was found with the provided `where` argument, update it with this data. */ update: XOR } /** * SimCard delete */ export type SimCardDeleteArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null /** * Filter which SimCard to delete. */ where: SimCardWhereUniqueInput } /** * SimCard deleteMany */ export type SimCardDeleteManyArgs = { /** * Filter which SimCards to delete */ where?: SimCardWhereInput } /** * SimCard without action */ export type SimCardDefaultArgs = { /** * Select specific fields to fetch from the SimCard */ select?: SimCardSelect | null /** * Choose, which related nodes to fetch as well */ include?: SimCardInclude | null } /** * Model TvContractDetails */ export type AggregateTvContractDetails = { _count: TvContractDetailsCountAggregateOutputType | null _avg: TvContractDetailsAvgAggregateOutputType | null _sum: TvContractDetailsSumAggregateOutputType | null _min: TvContractDetailsMinAggregateOutputType | null _max: TvContractDetailsMaxAggregateOutputType | null } export type TvContractDetailsAvgAggregateOutputType = { id: number | null contractId: number | null } export type TvContractDetailsSumAggregateOutputType = { id: number | null contractId: number | null } export type TvContractDetailsMinAggregateOutputType = { id: number | null contractId: number | null receiverModel: string | null smartcardNumber: string | null package: string | null } export type TvContractDetailsMaxAggregateOutputType = { id: number | null contractId: number | null receiverModel: string | null smartcardNumber: string | null package: string | null } export type TvContractDetailsCountAggregateOutputType = { id: number contractId: number receiverModel: number smartcardNumber: number package: number _all: number } export type TvContractDetailsAvgAggregateInputType = { id?: true contractId?: true } export type TvContractDetailsSumAggregateInputType = { id?: true contractId?: true } export type TvContractDetailsMinAggregateInputType = { id?: true contractId?: true receiverModel?: true smartcardNumber?: true package?: true } export type TvContractDetailsMaxAggregateInputType = { id?: true contractId?: true receiverModel?: true smartcardNumber?: true package?: true } export type TvContractDetailsCountAggregateInputType = { id?: true contractId?: true receiverModel?: true smartcardNumber?: true package?: true _all?: true } export type TvContractDetailsAggregateArgs = { /** * Filter which TvContractDetails to aggregate. */ where?: TvContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TvContractDetails to fetch. */ orderBy?: TvContractDetailsOrderByWithRelationInput | TvContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TvContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TvContractDetails 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` TvContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TvContractDetails **/ _count?: true | TvContractDetailsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TvContractDetailsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TvContractDetailsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TvContractDetailsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TvContractDetailsMaxAggregateInputType } export type GetTvContractDetailsAggregateType = { [P in keyof T & keyof AggregateTvContractDetails]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TvContractDetailsGroupByArgs = { where?: TvContractDetailsWhereInput orderBy?: TvContractDetailsOrderByWithAggregationInput | TvContractDetailsOrderByWithAggregationInput[] by: TvContractDetailsScalarFieldEnum[] | TvContractDetailsScalarFieldEnum having?: TvContractDetailsScalarWhereWithAggregatesInput take?: number skip?: number _count?: TvContractDetailsCountAggregateInputType | true _avg?: TvContractDetailsAvgAggregateInputType _sum?: TvContractDetailsSumAggregateInputType _min?: TvContractDetailsMinAggregateInputType _max?: TvContractDetailsMaxAggregateInputType } export type TvContractDetailsGroupByOutputType = { id: number contractId: number receiverModel: string | null smartcardNumber: string | null package: string | null _count: TvContractDetailsCountAggregateOutputType | null _avg: TvContractDetailsAvgAggregateOutputType | null _sum: TvContractDetailsSumAggregateOutputType | null _min: TvContractDetailsMinAggregateOutputType | null _max: TvContractDetailsMaxAggregateOutputType | null } type GetTvContractDetailsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TvContractDetailsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TvContractDetailsSelect = $Extensions.GetSelect<{ id?: boolean contractId?: boolean receiverModel?: boolean smartcardNumber?: boolean package?: boolean contract?: boolean | ContractDefaultArgs }, ExtArgs["result"]["tvContractDetails"]> export type TvContractDetailsSelectScalar = { id?: boolean contractId?: boolean receiverModel?: boolean smartcardNumber?: boolean package?: boolean } export type TvContractDetailsInclude = { contract?: boolean | ContractDefaultArgs } export type $TvContractDetailsPayload = { name: "TvContractDetails" objects: { contract: Prisma.$ContractPayload } scalars: $Extensions.GetPayloadResult<{ id: number contractId: number receiverModel: string | null smartcardNumber: string | null package: string | null }, ExtArgs["result"]["tvContractDetails"]> composites: {} } type TvContractDetailsGetPayload = $Result.GetResult type TvContractDetailsCountArgs = Omit & { select?: TvContractDetailsCountAggregateInputType | true } export interface TvContractDetailsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TvContractDetails'], meta: { name: 'TvContractDetails' } } /** * Find zero or one TvContractDetails that matches the filter. * @param {TvContractDetailsFindUniqueArgs} args - Arguments to find a TvContractDetails * @example * // Get one TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one TvContractDetails that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TvContractDetailsFindUniqueOrThrowArgs} args - Arguments to find a TvContractDetails * @example * // Get one TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first TvContractDetails 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 {TvContractDetailsFindFirstArgs} args - Arguments to find a TvContractDetails * @example * // Get one TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first TvContractDetails 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 {TvContractDetailsFindFirstOrThrowArgs} args - Arguments to find a TvContractDetails * @example * // Get one TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more TvContractDetails 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 {TvContractDetailsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.findMany() * * // Get first 10 TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.findMany({ take: 10 }) * * // Only select the `id` * const tvContractDetailsWithIdOnly = await prisma.tvContractDetails.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a TvContractDetails. * @param {TvContractDetailsCreateArgs} args - Arguments to create a TvContractDetails. * @example * // Create one TvContractDetails * const TvContractDetails = await prisma.tvContractDetails.create({ * data: { * // ... data to create a TvContractDetails * } * }) * */ create(args: SelectSubset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many TvContractDetails. * @param {TvContractDetailsCreateManyArgs} args - Arguments to create many TvContractDetails. * @example * // Create many TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a TvContractDetails. * @param {TvContractDetailsDeleteArgs} args - Arguments to delete one TvContractDetails. * @example * // Delete one TvContractDetails * const TvContractDetails = await prisma.tvContractDetails.delete({ * where: { * // ... filter to delete one TvContractDetails * } * }) * */ delete(args: SelectSubset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one TvContractDetails. * @param {TvContractDetailsUpdateArgs} args - Arguments to update one TvContractDetails. * @example * // Update one TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more TvContractDetails. * @param {TvContractDetailsDeleteManyArgs} args - Arguments to filter TvContractDetails to delete. * @example * // Delete a few TvContractDetails * const { count } = await prisma.tvContractDetails.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TvContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TvContractDetailsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one TvContractDetails. * @param {TvContractDetailsUpsertArgs} args - Arguments to update or create a TvContractDetails. * @example * // Update or create a TvContractDetails * const tvContractDetails = await prisma.tvContractDetails.upsert({ * create: { * // ... data to create a TvContractDetails * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TvContractDetails we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TvContractDetailsClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of TvContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TvContractDetailsCountArgs} args - Arguments to filter TvContractDetails to count. * @example * // Count the number of TvContractDetails * const count = await prisma.tvContractDetails.count({ * where: { * // ... the filter for the TvContractDetails we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a TvContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TvContractDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by TvContractDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TvContractDetailsGroupByArgs} 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 TvContractDetailsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TvContractDetailsGroupByArgs['orderBy'] } : { orderBy?: TvContractDetailsGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetTvContractDetailsGroupByPayload : Prisma.PrismaPromise /** * Fields of the TvContractDetails model */ readonly fields: TvContractDetailsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TvContractDetails. * 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__TvContractDetailsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the TvContractDetails model */ interface TvContractDetailsFieldRefs { readonly id: FieldRef<"TvContractDetails", 'Int'> readonly contractId: FieldRef<"TvContractDetails", 'Int'> readonly receiverModel: FieldRef<"TvContractDetails", 'String'> readonly smartcardNumber: FieldRef<"TvContractDetails", 'String'> readonly package: FieldRef<"TvContractDetails", 'String'> } // Custom InputTypes /** * TvContractDetails findUnique */ export type TvContractDetailsFindUniqueArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * Filter, which TvContractDetails to fetch. */ where: TvContractDetailsWhereUniqueInput } /** * TvContractDetails findUniqueOrThrow */ export type TvContractDetailsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * Filter, which TvContractDetails to fetch. */ where: TvContractDetailsWhereUniqueInput } /** * TvContractDetails findFirst */ export type TvContractDetailsFindFirstArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * Filter, which TvContractDetails to fetch. */ where?: TvContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TvContractDetails to fetch. */ orderBy?: TvContractDetailsOrderByWithRelationInput | TvContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TvContractDetails. */ cursor?: TvContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TvContractDetails 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` TvContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TvContractDetails. */ distinct?: TvContractDetailsScalarFieldEnum | TvContractDetailsScalarFieldEnum[] } /** * TvContractDetails findFirstOrThrow */ export type TvContractDetailsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * Filter, which TvContractDetails to fetch. */ where?: TvContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TvContractDetails to fetch. */ orderBy?: TvContractDetailsOrderByWithRelationInput | TvContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TvContractDetails. */ cursor?: TvContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TvContractDetails 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` TvContractDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TvContractDetails. */ distinct?: TvContractDetailsScalarFieldEnum | TvContractDetailsScalarFieldEnum[] } /** * TvContractDetails findMany */ export type TvContractDetailsFindManyArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * Filter, which TvContractDetails to fetch. */ where?: TvContractDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TvContractDetails to fetch. */ orderBy?: TvContractDetailsOrderByWithRelationInput | TvContractDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TvContractDetails. */ cursor?: TvContractDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TvContractDetails 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` TvContractDetails. */ skip?: number distinct?: TvContractDetailsScalarFieldEnum | TvContractDetailsScalarFieldEnum[] } /** * TvContractDetails create */ export type TvContractDetailsCreateArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * The data needed to create a TvContractDetails. */ data: XOR } /** * TvContractDetails createMany */ export type TvContractDetailsCreateManyArgs = { /** * The data used to create many TvContractDetails. */ data: TvContractDetailsCreateManyInput | TvContractDetailsCreateManyInput[] skipDuplicates?: boolean } /** * TvContractDetails update */ export type TvContractDetailsUpdateArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * The data needed to update a TvContractDetails. */ data: XOR /** * Choose, which TvContractDetails to update. */ where: TvContractDetailsWhereUniqueInput } /** * TvContractDetails updateMany */ export type TvContractDetailsUpdateManyArgs = { /** * The data used to update TvContractDetails. */ data: XOR /** * Filter which TvContractDetails to update */ where?: TvContractDetailsWhereInput } /** * TvContractDetails upsert */ export type TvContractDetailsUpsertArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * The filter to search for the TvContractDetails to update in case it exists. */ where: TvContractDetailsWhereUniqueInput /** * In case the TvContractDetails found by the `where` argument doesn't exist, create a new TvContractDetails with this data. */ create: XOR /** * In case the TvContractDetails was found with the provided `where` argument, update it with this data. */ update: XOR } /** * TvContractDetails delete */ export type TvContractDetailsDeleteArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null /** * Filter which TvContractDetails to delete. */ where: TvContractDetailsWhereUniqueInput } /** * TvContractDetails deleteMany */ export type TvContractDetailsDeleteManyArgs = { /** * Filter which TvContractDetails to delete */ where?: TvContractDetailsWhereInput } /** * TvContractDetails without action */ export type TvContractDetailsDefaultArgs = { /** * Select specific fields to fetch from the TvContractDetails */ select?: TvContractDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: TvContractDetailsInclude | null } /** * Model CarInsuranceDetails */ export type AggregateCarInsuranceDetails = { _count: CarInsuranceDetailsCountAggregateOutputType | null _avg: CarInsuranceDetailsAvgAggregateOutputType | null _sum: CarInsuranceDetailsSumAggregateOutputType | null _min: CarInsuranceDetailsMinAggregateOutputType | null _max: CarInsuranceDetailsMaxAggregateOutputType | null } export type CarInsuranceDetailsAvgAggregateOutputType = { id: number | null contractId: number | null deductiblePartial: number | null deductibleFull: number | null } export type CarInsuranceDetailsSumAggregateOutputType = { id: number | null contractId: number | null deductiblePartial: number | null deductibleFull: number | null } export type CarInsuranceDetailsMinAggregateOutputType = { id: number | null contractId: number | null licensePlate: string | null hsn: string | null tsn: string | null vin: string | null vehicleType: string | null firstRegistration: Date | null noClaimsClass: string | null insuranceType: $Enums.InsuranceType | null deductiblePartial: number | null deductibleFull: number | null policyNumber: string | null previousInsurer: string | null } export type CarInsuranceDetailsMaxAggregateOutputType = { id: number | null contractId: number | null licensePlate: string | null hsn: string | null tsn: string | null vin: string | null vehicleType: string | null firstRegistration: Date | null noClaimsClass: string | null insuranceType: $Enums.InsuranceType | null deductiblePartial: number | null deductibleFull: number | null policyNumber: string | null previousInsurer: string | null } export type CarInsuranceDetailsCountAggregateOutputType = { id: number contractId: number licensePlate: number hsn: number tsn: number vin: number vehicleType: number firstRegistration: number noClaimsClass: number insuranceType: number deductiblePartial: number deductibleFull: number policyNumber: number previousInsurer: number _all: number } export type CarInsuranceDetailsAvgAggregateInputType = { id?: true contractId?: true deductiblePartial?: true deductibleFull?: true } export type CarInsuranceDetailsSumAggregateInputType = { id?: true contractId?: true deductiblePartial?: true deductibleFull?: true } export type CarInsuranceDetailsMinAggregateInputType = { id?: true contractId?: true licensePlate?: true hsn?: true tsn?: true vin?: true vehicleType?: true firstRegistration?: true noClaimsClass?: true insuranceType?: true deductiblePartial?: true deductibleFull?: true policyNumber?: true previousInsurer?: true } export type CarInsuranceDetailsMaxAggregateInputType = { id?: true contractId?: true licensePlate?: true hsn?: true tsn?: true vin?: true vehicleType?: true firstRegistration?: true noClaimsClass?: true insuranceType?: true deductiblePartial?: true deductibleFull?: true policyNumber?: true previousInsurer?: true } export type CarInsuranceDetailsCountAggregateInputType = { id?: true contractId?: true licensePlate?: true hsn?: true tsn?: true vin?: true vehicleType?: true firstRegistration?: true noClaimsClass?: true insuranceType?: true deductiblePartial?: true deductibleFull?: true policyNumber?: true previousInsurer?: true _all?: true } export type CarInsuranceDetailsAggregateArgs = { /** * Filter which CarInsuranceDetails to aggregate. */ where?: CarInsuranceDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CarInsuranceDetails to fetch. */ orderBy?: CarInsuranceDetailsOrderByWithRelationInput | CarInsuranceDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CarInsuranceDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CarInsuranceDetails 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` CarInsuranceDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CarInsuranceDetails **/ _count?: true | CarInsuranceDetailsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CarInsuranceDetailsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CarInsuranceDetailsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CarInsuranceDetailsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CarInsuranceDetailsMaxAggregateInputType } export type GetCarInsuranceDetailsAggregateType = { [P in keyof T & keyof AggregateCarInsuranceDetails]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CarInsuranceDetailsGroupByArgs = { where?: CarInsuranceDetailsWhereInput orderBy?: CarInsuranceDetailsOrderByWithAggregationInput | CarInsuranceDetailsOrderByWithAggregationInput[] by: CarInsuranceDetailsScalarFieldEnum[] | CarInsuranceDetailsScalarFieldEnum having?: CarInsuranceDetailsScalarWhereWithAggregatesInput take?: number skip?: number _count?: CarInsuranceDetailsCountAggregateInputType | true _avg?: CarInsuranceDetailsAvgAggregateInputType _sum?: CarInsuranceDetailsSumAggregateInputType _min?: CarInsuranceDetailsMinAggregateInputType _max?: CarInsuranceDetailsMaxAggregateInputType } export type CarInsuranceDetailsGroupByOutputType = { id: number contractId: number licensePlate: string | null hsn: string | null tsn: string | null vin: string | null vehicleType: string | null firstRegistration: Date | null noClaimsClass: string | null insuranceType: $Enums.InsuranceType deductiblePartial: number | null deductibleFull: number | null policyNumber: string | null previousInsurer: string | null _count: CarInsuranceDetailsCountAggregateOutputType | null _avg: CarInsuranceDetailsAvgAggregateOutputType | null _sum: CarInsuranceDetailsSumAggregateOutputType | null _min: CarInsuranceDetailsMinAggregateOutputType | null _max: CarInsuranceDetailsMaxAggregateOutputType | null } type GetCarInsuranceDetailsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CarInsuranceDetailsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CarInsuranceDetailsSelect = $Extensions.GetSelect<{ id?: boolean contractId?: boolean licensePlate?: boolean hsn?: boolean tsn?: boolean vin?: boolean vehicleType?: boolean firstRegistration?: boolean noClaimsClass?: boolean insuranceType?: boolean deductiblePartial?: boolean deductibleFull?: boolean policyNumber?: boolean previousInsurer?: boolean contract?: boolean | ContractDefaultArgs }, ExtArgs["result"]["carInsuranceDetails"]> export type CarInsuranceDetailsSelectScalar = { id?: boolean contractId?: boolean licensePlate?: boolean hsn?: boolean tsn?: boolean vin?: boolean vehicleType?: boolean firstRegistration?: boolean noClaimsClass?: boolean insuranceType?: boolean deductiblePartial?: boolean deductibleFull?: boolean policyNumber?: boolean previousInsurer?: boolean } export type CarInsuranceDetailsInclude = { contract?: boolean | ContractDefaultArgs } export type $CarInsuranceDetailsPayload = { name: "CarInsuranceDetails" objects: { contract: Prisma.$ContractPayload } scalars: $Extensions.GetPayloadResult<{ id: number contractId: number licensePlate: string | null hsn: string | null tsn: string | null vin: string | null vehicleType: string | null firstRegistration: Date | null noClaimsClass: string | null insuranceType: $Enums.InsuranceType deductiblePartial: number | null deductibleFull: number | null policyNumber: string | null previousInsurer: string | null }, ExtArgs["result"]["carInsuranceDetails"]> composites: {} } type CarInsuranceDetailsGetPayload = $Result.GetResult type CarInsuranceDetailsCountArgs = Omit & { select?: CarInsuranceDetailsCountAggregateInputType | true } export interface CarInsuranceDetailsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CarInsuranceDetails'], meta: { name: 'CarInsuranceDetails' } } /** * Find zero or one CarInsuranceDetails that matches the filter. * @param {CarInsuranceDetailsFindUniqueArgs} args - Arguments to find a CarInsuranceDetails * @example * // Get one CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one CarInsuranceDetails that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CarInsuranceDetailsFindUniqueOrThrowArgs} args - Arguments to find a CarInsuranceDetails * @example * // Get one CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first CarInsuranceDetails 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 {CarInsuranceDetailsFindFirstArgs} args - Arguments to find a CarInsuranceDetails * @example * // Get one CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first CarInsuranceDetails 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 {CarInsuranceDetailsFindFirstOrThrowArgs} args - Arguments to find a CarInsuranceDetails * @example * // Get one CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more CarInsuranceDetails 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 {CarInsuranceDetailsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.findMany() * * // Get first 10 CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.findMany({ take: 10 }) * * // Only select the `id` * const carInsuranceDetailsWithIdOnly = await prisma.carInsuranceDetails.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a CarInsuranceDetails. * @param {CarInsuranceDetailsCreateArgs} args - Arguments to create a CarInsuranceDetails. * @example * // Create one CarInsuranceDetails * const CarInsuranceDetails = await prisma.carInsuranceDetails.create({ * data: { * // ... data to create a CarInsuranceDetails * } * }) * */ create(args: SelectSubset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many CarInsuranceDetails. * @param {CarInsuranceDetailsCreateManyArgs} args - Arguments to create many CarInsuranceDetails. * @example * // Create many CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a CarInsuranceDetails. * @param {CarInsuranceDetailsDeleteArgs} args - Arguments to delete one CarInsuranceDetails. * @example * // Delete one CarInsuranceDetails * const CarInsuranceDetails = await prisma.carInsuranceDetails.delete({ * where: { * // ... filter to delete one CarInsuranceDetails * } * }) * */ delete(args: SelectSubset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one CarInsuranceDetails. * @param {CarInsuranceDetailsUpdateArgs} args - Arguments to update one CarInsuranceDetails. * @example * // Update one CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more CarInsuranceDetails. * @param {CarInsuranceDetailsDeleteManyArgs} args - Arguments to filter CarInsuranceDetails to delete. * @example * // Delete a few CarInsuranceDetails * const { count } = await prisma.carInsuranceDetails.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CarInsuranceDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CarInsuranceDetailsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one CarInsuranceDetails. * @param {CarInsuranceDetailsUpsertArgs} args - Arguments to update or create a CarInsuranceDetails. * @example * // Update or create a CarInsuranceDetails * const carInsuranceDetails = await prisma.carInsuranceDetails.upsert({ * create: { * // ... data to create a CarInsuranceDetails * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CarInsuranceDetails we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CarInsuranceDetailsClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of CarInsuranceDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CarInsuranceDetailsCountArgs} args - Arguments to filter CarInsuranceDetails to count. * @example * // Count the number of CarInsuranceDetails * const count = await prisma.carInsuranceDetails.count({ * where: { * // ... the filter for the CarInsuranceDetails we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a CarInsuranceDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CarInsuranceDetailsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by CarInsuranceDetails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CarInsuranceDetailsGroupByArgs} 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 CarInsuranceDetailsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CarInsuranceDetailsGroupByArgs['orderBy'] } : { orderBy?: CarInsuranceDetailsGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCarInsuranceDetailsGroupByPayload : Prisma.PrismaPromise /** * Fields of the CarInsuranceDetails model */ readonly fields: CarInsuranceDetailsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CarInsuranceDetails. * 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__CarInsuranceDetailsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" contract = {}>(args?: Subset>): Prisma__ContractClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the CarInsuranceDetails model */ interface CarInsuranceDetailsFieldRefs { readonly id: FieldRef<"CarInsuranceDetails", 'Int'> readonly contractId: FieldRef<"CarInsuranceDetails", 'Int'> readonly licensePlate: FieldRef<"CarInsuranceDetails", 'String'> readonly hsn: FieldRef<"CarInsuranceDetails", 'String'> readonly tsn: FieldRef<"CarInsuranceDetails", 'String'> readonly vin: FieldRef<"CarInsuranceDetails", 'String'> readonly vehicleType: FieldRef<"CarInsuranceDetails", 'String'> readonly firstRegistration: FieldRef<"CarInsuranceDetails", 'DateTime'> readonly noClaimsClass: FieldRef<"CarInsuranceDetails", 'String'> readonly insuranceType: FieldRef<"CarInsuranceDetails", 'InsuranceType'> readonly deductiblePartial: FieldRef<"CarInsuranceDetails", 'Float'> readonly deductibleFull: FieldRef<"CarInsuranceDetails", 'Float'> readonly policyNumber: FieldRef<"CarInsuranceDetails", 'String'> readonly previousInsurer: FieldRef<"CarInsuranceDetails", 'String'> } // Custom InputTypes /** * CarInsuranceDetails findUnique */ export type CarInsuranceDetailsFindUniqueArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * Filter, which CarInsuranceDetails to fetch. */ where: CarInsuranceDetailsWhereUniqueInput } /** * CarInsuranceDetails findUniqueOrThrow */ export type CarInsuranceDetailsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * Filter, which CarInsuranceDetails to fetch. */ where: CarInsuranceDetailsWhereUniqueInput } /** * CarInsuranceDetails findFirst */ export type CarInsuranceDetailsFindFirstArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * Filter, which CarInsuranceDetails to fetch. */ where?: CarInsuranceDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CarInsuranceDetails to fetch. */ orderBy?: CarInsuranceDetailsOrderByWithRelationInput | CarInsuranceDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CarInsuranceDetails. */ cursor?: CarInsuranceDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CarInsuranceDetails 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` CarInsuranceDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CarInsuranceDetails. */ distinct?: CarInsuranceDetailsScalarFieldEnum | CarInsuranceDetailsScalarFieldEnum[] } /** * CarInsuranceDetails findFirstOrThrow */ export type CarInsuranceDetailsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * Filter, which CarInsuranceDetails to fetch. */ where?: CarInsuranceDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CarInsuranceDetails to fetch. */ orderBy?: CarInsuranceDetailsOrderByWithRelationInput | CarInsuranceDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CarInsuranceDetails. */ cursor?: CarInsuranceDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CarInsuranceDetails 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` CarInsuranceDetails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CarInsuranceDetails. */ distinct?: CarInsuranceDetailsScalarFieldEnum | CarInsuranceDetailsScalarFieldEnum[] } /** * CarInsuranceDetails findMany */ export type CarInsuranceDetailsFindManyArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * Filter, which CarInsuranceDetails to fetch. */ where?: CarInsuranceDetailsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CarInsuranceDetails to fetch. */ orderBy?: CarInsuranceDetailsOrderByWithRelationInput | CarInsuranceDetailsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CarInsuranceDetails. */ cursor?: CarInsuranceDetailsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CarInsuranceDetails 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` CarInsuranceDetails. */ skip?: number distinct?: CarInsuranceDetailsScalarFieldEnum | CarInsuranceDetailsScalarFieldEnum[] } /** * CarInsuranceDetails create */ export type CarInsuranceDetailsCreateArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * The data needed to create a CarInsuranceDetails. */ data: XOR } /** * CarInsuranceDetails createMany */ export type CarInsuranceDetailsCreateManyArgs = { /** * The data used to create many CarInsuranceDetails. */ data: CarInsuranceDetailsCreateManyInput | CarInsuranceDetailsCreateManyInput[] skipDuplicates?: boolean } /** * CarInsuranceDetails update */ export type CarInsuranceDetailsUpdateArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * The data needed to update a CarInsuranceDetails. */ data: XOR /** * Choose, which CarInsuranceDetails to update. */ where: CarInsuranceDetailsWhereUniqueInput } /** * CarInsuranceDetails updateMany */ export type CarInsuranceDetailsUpdateManyArgs = { /** * The data used to update CarInsuranceDetails. */ data: XOR /** * Filter which CarInsuranceDetails to update */ where?: CarInsuranceDetailsWhereInput } /** * CarInsuranceDetails upsert */ export type CarInsuranceDetailsUpsertArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * The filter to search for the CarInsuranceDetails to update in case it exists. */ where: CarInsuranceDetailsWhereUniqueInput /** * In case the CarInsuranceDetails found by the `where` argument doesn't exist, create a new CarInsuranceDetails with this data. */ create: XOR /** * In case the CarInsuranceDetails was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CarInsuranceDetails delete */ export type CarInsuranceDetailsDeleteArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null /** * Filter which CarInsuranceDetails to delete. */ where: CarInsuranceDetailsWhereUniqueInput } /** * CarInsuranceDetails deleteMany */ export type CarInsuranceDetailsDeleteManyArgs = { /** * Filter which CarInsuranceDetails to delete */ where?: CarInsuranceDetailsWhereInput } /** * CarInsuranceDetails without action */ export type CarInsuranceDetailsDefaultArgs = { /** * Select specific fields to fetch from the CarInsuranceDetails */ select?: CarInsuranceDetailsSelect | null /** * Choose, which related nodes to fetch as well */ include?: CarInsuranceDetailsInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const AppSettingScalarFieldEnum: { id: 'id', key: 'key', value: 'value', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type AppSettingScalarFieldEnum = (typeof AppSettingScalarFieldEnum)[keyof typeof AppSettingScalarFieldEnum] export const UserScalarFieldEnum: { id: 'id', email: 'email', password: 'password', firstName: 'firstName', lastName: 'lastName', isActive: 'isActive', tokenInvalidatedAt: 'tokenInvalidatedAt', customerId: 'customerId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const RoleScalarFieldEnum: { id: 'id', name: 'name', description: 'description', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum] export const PermissionScalarFieldEnum: { id: 'id', resource: 'resource', action: 'action' }; export type PermissionScalarFieldEnum = (typeof PermissionScalarFieldEnum)[keyof typeof PermissionScalarFieldEnum] export const RolePermissionScalarFieldEnum: { roleId: 'roleId', permissionId: 'permissionId' }; export type RolePermissionScalarFieldEnum = (typeof RolePermissionScalarFieldEnum)[keyof typeof RolePermissionScalarFieldEnum] export const UserRoleScalarFieldEnum: { userId: 'userId', roleId: 'roleId' }; export type UserRoleScalarFieldEnum = (typeof UserRoleScalarFieldEnum)[keyof typeof UserRoleScalarFieldEnum] export const CustomerScalarFieldEnum: { id: 'id', customerNumber: 'customerNumber', type: 'type', salutation: 'salutation', firstName: 'firstName', lastName: 'lastName', companyName: 'companyName', foundingDate: 'foundingDate', birthDate: 'birthDate', birthPlace: 'birthPlace', email: 'email', phone: 'phone', mobile: 'mobile', taxNumber: 'taxNumber', businessRegistrationPath: 'businessRegistrationPath', commercialRegisterPath: 'commercialRegisterPath', commercialRegisterNumber: 'commercialRegisterNumber', privacyPolicyPath: 'privacyPolicyPath', notes: 'notes', portalEnabled: 'portalEnabled', portalEmail: 'portalEmail', portalPasswordHash: 'portalPasswordHash', portalPasswordEncrypted: 'portalPasswordEncrypted', portalLastLogin: 'portalLastLogin', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum] export const CustomerRepresentativeScalarFieldEnum: { id: 'id', customerId: 'customerId', representativeId: 'representativeId', notes: 'notes', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CustomerRepresentativeScalarFieldEnum = (typeof CustomerRepresentativeScalarFieldEnum)[keyof typeof CustomerRepresentativeScalarFieldEnum] export const AddressScalarFieldEnum: { id: 'id', customerId: 'customerId', type: 'type', street: 'street', houseNumber: 'houseNumber', postalCode: 'postalCode', city: 'city', country: 'country', isDefault: 'isDefault', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type AddressScalarFieldEnum = (typeof AddressScalarFieldEnum)[keyof typeof AddressScalarFieldEnum] export const BankCardScalarFieldEnum: { id: 'id', customerId: 'customerId', accountHolder: 'accountHolder', iban: 'iban', bic: 'bic', bankName: 'bankName', expiryDate: 'expiryDate', documentPath: 'documentPath', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type BankCardScalarFieldEnum = (typeof BankCardScalarFieldEnum)[keyof typeof BankCardScalarFieldEnum] export const IdentityDocumentScalarFieldEnum: { id: 'id', customerId: 'customerId', type: 'type', documentNumber: 'documentNumber', issuingAuthority: 'issuingAuthority', issueDate: 'issueDate', expiryDate: 'expiryDate', documentPath: 'documentPath', isActive: 'isActive', licenseClasses: 'licenseClasses', licenseIssueDate: 'licenseIssueDate', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type IdentityDocumentScalarFieldEnum = (typeof IdentityDocumentScalarFieldEnum)[keyof typeof IdentityDocumentScalarFieldEnum] export const EmailProviderConfigScalarFieldEnum: { id: 'id', name: 'name', type: 'type', apiUrl: 'apiUrl', apiKey: 'apiKey', username: 'username', passwordEncrypted: 'passwordEncrypted', domain: 'domain', defaultForwardEmail: 'defaultForwardEmail', imapServer: 'imapServer', imapPort: 'imapPort', smtpServer: 'smtpServer', smtpPort: 'smtpPort', imapEncryption: 'imapEncryption', smtpEncryption: 'smtpEncryption', allowSelfSignedCerts: 'allowSelfSignedCerts', isActive: 'isActive', isDefault: 'isDefault', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EmailProviderConfigScalarFieldEnum = (typeof EmailProviderConfigScalarFieldEnum)[keyof typeof EmailProviderConfigScalarFieldEnum] export const StressfreiEmailScalarFieldEnum: { id: 'id', customerId: 'customerId', email: 'email', platform: 'platform', notes: 'notes', isActive: 'isActive', isProvisioned: 'isProvisioned', provisionedAt: 'provisionedAt', provisionError: 'provisionError', hasMailbox: 'hasMailbox', emailPasswordEncrypted: 'emailPasswordEncrypted', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type StressfreiEmailScalarFieldEnum = (typeof StressfreiEmailScalarFieldEnum)[keyof typeof StressfreiEmailScalarFieldEnum] export const CachedEmailScalarFieldEnum: { id: 'id', stressfreiEmailId: 'stressfreiEmailId', folder: 'folder', messageId: 'messageId', uid: 'uid', subject: 'subject', fromAddress: 'fromAddress', fromName: 'fromName', toAddresses: 'toAddresses', ccAddresses: 'ccAddresses', receivedAt: 'receivedAt', textBody: 'textBody', htmlBody: 'htmlBody', hasAttachments: 'hasAttachments', attachmentNames: 'attachmentNames', contractId: 'contractId', assignedAt: 'assignedAt', assignedBy: 'assignedBy', isAutoAssigned: 'isAutoAssigned', isRead: 'isRead', isStarred: 'isStarred', isDeleted: 'isDeleted', deletedAt: 'deletedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CachedEmailScalarFieldEnum = (typeof CachedEmailScalarFieldEnum)[keyof typeof CachedEmailScalarFieldEnum] export const MeterScalarFieldEnum: { id: 'id', customerId: 'customerId', meterNumber: 'meterNumber', type: 'type', location: 'location', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type MeterScalarFieldEnum = (typeof MeterScalarFieldEnum)[keyof typeof MeterScalarFieldEnum] export const MeterReadingScalarFieldEnum: { id: 'id', meterId: 'meterId', readingDate: 'readingDate', value: 'value', unit: 'unit', notes: 'notes', createdAt: 'createdAt' }; export type MeterReadingScalarFieldEnum = (typeof MeterReadingScalarFieldEnum)[keyof typeof MeterReadingScalarFieldEnum] export const SalesPlatformScalarFieldEnum: { id: 'id', name: 'name', contactInfo: 'contactInfo', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type SalesPlatformScalarFieldEnum = (typeof SalesPlatformScalarFieldEnum)[keyof typeof SalesPlatformScalarFieldEnum] export const CancellationPeriodScalarFieldEnum: { id: 'id', code: 'code', description: 'description', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CancellationPeriodScalarFieldEnum = (typeof CancellationPeriodScalarFieldEnum)[keyof typeof CancellationPeriodScalarFieldEnum] export const ContractDurationScalarFieldEnum: { id: 'id', code: 'code', description: 'description', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ContractDurationScalarFieldEnum = (typeof ContractDurationScalarFieldEnum)[keyof typeof ContractDurationScalarFieldEnum] export const ProviderScalarFieldEnum: { id: 'id', name: 'name', portalUrl: 'portalUrl', usernameFieldName: 'usernameFieldName', passwordFieldName: 'passwordFieldName', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum] export const TariffScalarFieldEnum: { id: 'id', providerId: 'providerId', name: 'name', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type TariffScalarFieldEnum = (typeof TariffScalarFieldEnum)[keyof typeof TariffScalarFieldEnum] export const ContractCategoryScalarFieldEnum: { id: 'id', code: 'code', name: 'name', icon: 'icon', color: 'color', sortOrder: 'sortOrder', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ContractCategoryScalarFieldEnum = (typeof ContractCategoryScalarFieldEnum)[keyof typeof ContractCategoryScalarFieldEnum] export const ContractScalarFieldEnum: { id: 'id', contractNumber: 'contractNumber', customerId: 'customerId', type: 'type', status: 'status', contractCategoryId: 'contractCategoryId', addressId: 'addressId', billingAddressId: 'billingAddressId', bankCardId: 'bankCardId', identityDocumentId: 'identityDocumentId', salesPlatformId: 'salesPlatformId', cancellationPeriodId: 'cancellationPeriodId', contractDurationId: 'contractDurationId', previousContractId: 'previousContractId', providerId: 'providerId', tariffId: 'tariffId', providerName: 'providerName', tariffName: 'tariffName', customerNumberAtProvider: 'customerNumberAtProvider', priceFirst12Months: 'priceFirst12Months', priceFrom13Months: 'priceFrom13Months', priceAfter24Months: 'priceAfter24Months', startDate: 'startDate', endDate: 'endDate', commission: 'commission', cancellationLetterPath: 'cancellationLetterPath', cancellationConfirmationPath: 'cancellationConfirmationPath', cancellationLetterOptionsPath: 'cancellationLetterOptionsPath', cancellationConfirmationOptionsPath: 'cancellationConfirmationOptionsPath', cancellationConfirmationDate: 'cancellationConfirmationDate', cancellationConfirmationOptionsDate: 'cancellationConfirmationOptionsDate', wasSpecialCancellation: 'wasSpecialCancellation', portalUsername: 'portalUsername', portalPasswordEncrypted: 'portalPasswordEncrypted', stressfreiEmailId: 'stressfreiEmailId', notes: 'notes', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ContractScalarFieldEnum = (typeof ContractScalarFieldEnum)[keyof typeof ContractScalarFieldEnum] export const ContractTaskScalarFieldEnum: { id: 'id', contractId: 'contractId', title: 'title', description: 'description', status: 'status', visibleInPortal: 'visibleInPortal', createdBy: 'createdBy', completedAt: 'completedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ContractTaskScalarFieldEnum = (typeof ContractTaskScalarFieldEnum)[keyof typeof ContractTaskScalarFieldEnum] export const ContractTaskSubtaskScalarFieldEnum: { id: 'id', taskId: 'taskId', title: 'title', status: 'status', createdBy: 'createdBy', completedAt: 'completedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ContractTaskSubtaskScalarFieldEnum = (typeof ContractTaskSubtaskScalarFieldEnum)[keyof typeof ContractTaskSubtaskScalarFieldEnum] export const EnergyContractDetailsScalarFieldEnum: { id: 'id', contractId: 'contractId', meterId: 'meterId', maloId: 'maloId', annualConsumption: 'annualConsumption', annualConsumptionKwh: 'annualConsumptionKwh', basePrice: 'basePrice', unitPrice: 'unitPrice', bonus: 'bonus', previousProviderName: 'previousProviderName', previousCustomerNumber: 'previousCustomerNumber' }; export type EnergyContractDetailsScalarFieldEnum = (typeof EnergyContractDetailsScalarFieldEnum)[keyof typeof EnergyContractDetailsScalarFieldEnum] export const InvoiceScalarFieldEnum: { id: 'id', energyContractDetailsId: 'energyContractDetailsId', invoiceDate: 'invoiceDate', invoiceType: 'invoiceType', documentPath: 'documentPath', notes: 'notes', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type InvoiceScalarFieldEnum = (typeof InvoiceScalarFieldEnum)[keyof typeof InvoiceScalarFieldEnum] export const InternetContractDetailsScalarFieldEnum: { id: 'id', contractId: 'contractId', downloadSpeed: 'downloadSpeed', uploadSpeed: 'uploadSpeed', routerModel: 'routerModel', routerSerialNumber: 'routerSerialNumber', installationDate: 'installationDate', internetUsername: 'internetUsername', internetPasswordEncrypted: 'internetPasswordEncrypted', homeId: 'homeId', activationCode: 'activationCode' }; export type InternetContractDetailsScalarFieldEnum = (typeof InternetContractDetailsScalarFieldEnum)[keyof typeof InternetContractDetailsScalarFieldEnum] export const PhoneNumberScalarFieldEnum: { id: 'id', internetContractDetailsId: 'internetContractDetailsId', phoneNumber: 'phoneNumber', isMain: 'isMain', sipUsername: 'sipUsername', sipPasswordEncrypted: 'sipPasswordEncrypted', sipServer: 'sipServer' }; export type PhoneNumberScalarFieldEnum = (typeof PhoneNumberScalarFieldEnum)[keyof typeof PhoneNumberScalarFieldEnum] export const MobileContractDetailsScalarFieldEnum: { id: 'id', contractId: 'contractId', requiresMultisim: 'requiresMultisim', dataVolume: 'dataVolume', includedMinutes: 'includedMinutes', includedSMS: 'includedSMS', deviceModel: 'deviceModel', deviceImei: 'deviceImei', phoneNumber: 'phoneNumber', simCardNumber: 'simCardNumber' }; export type MobileContractDetailsScalarFieldEnum = (typeof MobileContractDetailsScalarFieldEnum)[keyof typeof MobileContractDetailsScalarFieldEnum] export const SimCardScalarFieldEnum: { id: 'id', mobileDetailsId: 'mobileDetailsId', phoneNumber: 'phoneNumber', simCardNumber: 'simCardNumber', pin: 'pin', puk: 'puk', isMultisim: 'isMultisim', isMain: 'isMain', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type SimCardScalarFieldEnum = (typeof SimCardScalarFieldEnum)[keyof typeof SimCardScalarFieldEnum] export const TvContractDetailsScalarFieldEnum: { id: 'id', contractId: 'contractId', receiverModel: 'receiverModel', smartcardNumber: 'smartcardNumber', package: 'package' }; export type TvContractDetailsScalarFieldEnum = (typeof TvContractDetailsScalarFieldEnum)[keyof typeof TvContractDetailsScalarFieldEnum] export const CarInsuranceDetailsScalarFieldEnum: { id: 'id', contractId: 'contractId', licensePlate: 'licensePlate', hsn: 'hsn', tsn: 'tsn', vin: 'vin', vehicleType: 'vehicleType', firstRegistration: 'firstRegistration', noClaimsClass: 'noClaimsClass', insuranceType: 'insuranceType', deductiblePartial: 'deductiblePartial', deductibleFull: 'deductibleFull', policyNumber: 'policyNumber', previousInsurer: 'previousInsurer' }; export type CarInsuranceDetailsScalarFieldEnum = (typeof CarInsuranceDetailsScalarFieldEnum)[keyof typeof CarInsuranceDetailsScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] /** * Field references */ /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'CustomerType' */ export type EnumCustomerTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CustomerType'> /** * Reference to a field of type 'AddressType' */ export type EnumAddressTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AddressType'> /** * Reference to a field of type 'DocumentType' */ export type EnumDocumentTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DocumentType'> /** * Reference to a field of type 'EmailProviderType' */ export type EnumEmailProviderTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EmailProviderType'> /** * Reference to a field of type 'MailEncryption' */ export type EnumMailEncryptionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MailEncryption'> /** * Reference to a field of type 'EmailFolder' */ export type EnumEmailFolderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EmailFolder'> /** * Reference to a field of type 'MeterType' */ export type EnumMeterTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MeterType'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'ContractType' */ export type EnumContractTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContractType'> /** * Reference to a field of type 'ContractStatus' */ export type EnumContractStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContractStatus'> /** * Reference to a field of type 'ContractTaskStatus' */ export type EnumContractTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContractTaskStatus'> /** * Reference to a field of type 'InvoiceType' */ export type EnumInvoiceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'InvoiceType'> /** * Reference to a field of type 'InsuranceType' */ export type EnumInsuranceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'InsuranceType'> /** * Deep Input Types */ export type AppSettingWhereInput = { AND?: AppSettingWhereInput | AppSettingWhereInput[] OR?: AppSettingWhereInput[] NOT?: AppSettingWhereInput | AppSettingWhereInput[] id?: IntFilter<"AppSetting"> | number key?: StringFilter<"AppSetting"> | string value?: StringFilter<"AppSetting"> | string createdAt?: DateTimeFilter<"AppSetting"> | Date | string updatedAt?: DateTimeFilter<"AppSetting"> | Date | string } export type AppSettingOrderByWithRelationInput = { id?: SortOrder key?: SortOrder value?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AppSettingWhereUniqueInput = Prisma.AtLeast<{ id?: number key?: string AND?: AppSettingWhereInput | AppSettingWhereInput[] OR?: AppSettingWhereInput[] NOT?: AppSettingWhereInput | AppSettingWhereInput[] value?: StringFilter<"AppSetting"> | string createdAt?: DateTimeFilter<"AppSetting"> | Date | string updatedAt?: DateTimeFilter<"AppSetting"> | Date | string }, "id" | "key"> export type AppSettingOrderByWithAggregationInput = { id?: SortOrder key?: SortOrder value?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: AppSettingCountOrderByAggregateInput _avg?: AppSettingAvgOrderByAggregateInput _max?: AppSettingMaxOrderByAggregateInput _min?: AppSettingMinOrderByAggregateInput _sum?: AppSettingSumOrderByAggregateInput } export type AppSettingScalarWhereWithAggregatesInput = { AND?: AppSettingScalarWhereWithAggregatesInput | AppSettingScalarWhereWithAggregatesInput[] OR?: AppSettingScalarWhereWithAggregatesInput[] NOT?: AppSettingScalarWhereWithAggregatesInput | AppSettingScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"AppSetting"> | number key?: StringWithAggregatesFilter<"AppSetting"> | string value?: StringWithAggregatesFilter<"AppSetting"> | string createdAt?: DateTimeWithAggregatesFilter<"AppSetting"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"AppSetting"> | Date | string } export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: IntFilter<"User"> | number email?: StringFilter<"User"> | string password?: StringFilter<"User"> | string firstName?: StringFilter<"User"> | string lastName?: StringFilter<"User"> | string isActive?: BoolFilter<"User"> | boolean tokenInvalidatedAt?: DateTimeNullableFilter<"User"> | Date | string | null customerId?: IntNullableFilter<"User"> | number | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string customer?: XOR | null roles?: UserRoleListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder email?: SortOrder password?: SortOrder firstName?: SortOrder lastName?: SortOrder isActive?: SortOrder tokenInvalidatedAt?: SortOrderInput | SortOrder customerId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder customer?: CustomerOrderByWithRelationInput roles?: UserRoleOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: number email?: string customerId?: number AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] password?: StringFilter<"User"> | string firstName?: StringFilter<"User"> | string lastName?: StringFilter<"User"> | string isActive?: BoolFilter<"User"> | boolean tokenInvalidatedAt?: DateTimeNullableFilter<"User"> | Date | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string customer?: XOR | null roles?: UserRoleListRelationFilter }, "id" | "email" | "customerId"> export type UserOrderByWithAggregationInput = { id?: SortOrder email?: SortOrder password?: SortOrder firstName?: SortOrder lastName?: SortOrder isActive?: SortOrder tokenInvalidatedAt?: SortOrderInput | SortOrder customerId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: UserCountOrderByAggregateInput _avg?: UserAvgOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput _sum?: UserSumOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"User"> | number email?: StringWithAggregatesFilter<"User"> | string password?: StringWithAggregatesFilter<"User"> | string firstName?: StringWithAggregatesFilter<"User"> | string lastName?: StringWithAggregatesFilter<"User"> | string isActive?: BoolWithAggregatesFilter<"User"> | boolean tokenInvalidatedAt?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null customerId?: IntNullableWithAggregatesFilter<"User"> | number | null createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string } export type RoleWhereInput = { AND?: RoleWhereInput | RoleWhereInput[] OR?: RoleWhereInput[] NOT?: RoleWhereInput | RoleWhereInput[] id?: IntFilter<"Role"> | number name?: StringFilter<"Role"> | string description?: StringNullableFilter<"Role"> | string | null createdAt?: DateTimeFilter<"Role"> | Date | string updatedAt?: DateTimeFilter<"Role"> | Date | string permissions?: RolePermissionListRelationFilter users?: UserRoleListRelationFilter } export type RoleOrderByWithRelationInput = { id?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder permissions?: RolePermissionOrderByRelationAggregateInput users?: UserRoleOrderByRelationAggregateInput } export type RoleWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: RoleWhereInput | RoleWhereInput[] OR?: RoleWhereInput[] NOT?: RoleWhereInput | RoleWhereInput[] description?: StringNullableFilter<"Role"> | string | null createdAt?: DateTimeFilter<"Role"> | Date | string updatedAt?: DateTimeFilter<"Role"> | Date | string permissions?: RolePermissionListRelationFilter users?: UserRoleListRelationFilter }, "id" | "name"> export type RoleOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder description?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: RoleCountOrderByAggregateInput _avg?: RoleAvgOrderByAggregateInput _max?: RoleMaxOrderByAggregateInput _min?: RoleMinOrderByAggregateInput _sum?: RoleSumOrderByAggregateInput } export type RoleScalarWhereWithAggregatesInput = { AND?: RoleScalarWhereWithAggregatesInput | RoleScalarWhereWithAggregatesInput[] OR?: RoleScalarWhereWithAggregatesInput[] NOT?: RoleScalarWhereWithAggregatesInput | RoleScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Role"> | number name?: StringWithAggregatesFilter<"Role"> | string description?: StringNullableWithAggregatesFilter<"Role"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Role"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Role"> | Date | string } export type PermissionWhereInput = { AND?: PermissionWhereInput | PermissionWhereInput[] OR?: PermissionWhereInput[] NOT?: PermissionWhereInput | PermissionWhereInput[] id?: IntFilter<"Permission"> | number resource?: StringFilter<"Permission"> | string action?: StringFilter<"Permission"> | string roles?: RolePermissionListRelationFilter } export type PermissionOrderByWithRelationInput = { id?: SortOrder resource?: SortOrder action?: SortOrder roles?: RolePermissionOrderByRelationAggregateInput } export type PermissionWhereUniqueInput = Prisma.AtLeast<{ id?: number resource_action?: PermissionResourceActionCompoundUniqueInput AND?: PermissionWhereInput | PermissionWhereInput[] OR?: PermissionWhereInput[] NOT?: PermissionWhereInput | PermissionWhereInput[] resource?: StringFilter<"Permission"> | string action?: StringFilter<"Permission"> | string roles?: RolePermissionListRelationFilter }, "id" | "resource_action"> export type PermissionOrderByWithAggregationInput = { id?: SortOrder resource?: SortOrder action?: SortOrder _count?: PermissionCountOrderByAggregateInput _avg?: PermissionAvgOrderByAggregateInput _max?: PermissionMaxOrderByAggregateInput _min?: PermissionMinOrderByAggregateInput _sum?: PermissionSumOrderByAggregateInput } export type PermissionScalarWhereWithAggregatesInput = { AND?: PermissionScalarWhereWithAggregatesInput | PermissionScalarWhereWithAggregatesInput[] OR?: PermissionScalarWhereWithAggregatesInput[] NOT?: PermissionScalarWhereWithAggregatesInput | PermissionScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Permission"> | number resource?: StringWithAggregatesFilter<"Permission"> | string action?: StringWithAggregatesFilter<"Permission"> | string } export type RolePermissionWhereInput = { AND?: RolePermissionWhereInput | RolePermissionWhereInput[] OR?: RolePermissionWhereInput[] NOT?: RolePermissionWhereInput | RolePermissionWhereInput[] roleId?: IntFilter<"RolePermission"> | number permissionId?: IntFilter<"RolePermission"> | number role?: XOR permission?: XOR } export type RolePermissionOrderByWithRelationInput = { roleId?: SortOrder permissionId?: SortOrder role?: RoleOrderByWithRelationInput permission?: PermissionOrderByWithRelationInput } export type RolePermissionWhereUniqueInput = Prisma.AtLeast<{ roleId_permissionId?: RolePermissionRoleIdPermissionIdCompoundUniqueInput AND?: RolePermissionWhereInput | RolePermissionWhereInput[] OR?: RolePermissionWhereInput[] NOT?: RolePermissionWhereInput | RolePermissionWhereInput[] roleId?: IntFilter<"RolePermission"> | number permissionId?: IntFilter<"RolePermission"> | number role?: XOR permission?: XOR }, "roleId_permissionId"> export type RolePermissionOrderByWithAggregationInput = { roleId?: SortOrder permissionId?: SortOrder _count?: RolePermissionCountOrderByAggregateInput _avg?: RolePermissionAvgOrderByAggregateInput _max?: RolePermissionMaxOrderByAggregateInput _min?: RolePermissionMinOrderByAggregateInput _sum?: RolePermissionSumOrderByAggregateInput } export type RolePermissionScalarWhereWithAggregatesInput = { AND?: RolePermissionScalarWhereWithAggregatesInput | RolePermissionScalarWhereWithAggregatesInput[] OR?: RolePermissionScalarWhereWithAggregatesInput[] NOT?: RolePermissionScalarWhereWithAggregatesInput | RolePermissionScalarWhereWithAggregatesInput[] roleId?: IntWithAggregatesFilter<"RolePermission"> | number permissionId?: IntWithAggregatesFilter<"RolePermission"> | number } export type UserRoleWhereInput = { AND?: UserRoleWhereInput | UserRoleWhereInput[] OR?: UserRoleWhereInput[] NOT?: UserRoleWhereInput | UserRoleWhereInput[] userId?: IntFilter<"UserRole"> | number roleId?: IntFilter<"UserRole"> | number user?: XOR role?: XOR } export type UserRoleOrderByWithRelationInput = { userId?: SortOrder roleId?: SortOrder user?: UserOrderByWithRelationInput role?: RoleOrderByWithRelationInput } export type UserRoleWhereUniqueInput = Prisma.AtLeast<{ userId_roleId?: UserRoleUserIdRoleIdCompoundUniqueInput AND?: UserRoleWhereInput | UserRoleWhereInput[] OR?: UserRoleWhereInput[] NOT?: UserRoleWhereInput | UserRoleWhereInput[] userId?: IntFilter<"UserRole"> | number roleId?: IntFilter<"UserRole"> | number user?: XOR role?: XOR }, "userId_roleId"> export type UserRoleOrderByWithAggregationInput = { userId?: SortOrder roleId?: SortOrder _count?: UserRoleCountOrderByAggregateInput _avg?: UserRoleAvgOrderByAggregateInput _max?: UserRoleMaxOrderByAggregateInput _min?: UserRoleMinOrderByAggregateInput _sum?: UserRoleSumOrderByAggregateInput } export type UserRoleScalarWhereWithAggregatesInput = { AND?: UserRoleScalarWhereWithAggregatesInput | UserRoleScalarWhereWithAggregatesInput[] OR?: UserRoleScalarWhereWithAggregatesInput[] NOT?: UserRoleScalarWhereWithAggregatesInput | UserRoleScalarWhereWithAggregatesInput[] userId?: IntWithAggregatesFilter<"UserRole"> | number roleId?: IntWithAggregatesFilter<"UserRole"> | number } export type CustomerWhereInput = { AND?: CustomerWhereInput | CustomerWhereInput[] OR?: CustomerWhereInput[] NOT?: CustomerWhereInput | CustomerWhereInput[] id?: IntFilter<"Customer"> | number customerNumber?: StringFilter<"Customer"> | string type?: EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType salutation?: StringNullableFilter<"Customer"> | string | null firstName?: StringFilter<"Customer"> | string lastName?: StringFilter<"Customer"> | string companyName?: StringNullableFilter<"Customer"> | string | null foundingDate?: DateTimeNullableFilter<"Customer"> | Date | string | null birthDate?: DateTimeNullableFilter<"Customer"> | Date | string | null birthPlace?: StringNullableFilter<"Customer"> | string | null email?: StringNullableFilter<"Customer"> | string | null phone?: StringNullableFilter<"Customer"> | string | null mobile?: StringNullableFilter<"Customer"> | string | null taxNumber?: StringNullableFilter<"Customer"> | string | null businessRegistrationPath?: StringNullableFilter<"Customer"> | string | null commercialRegisterPath?: StringNullableFilter<"Customer"> | string | null commercialRegisterNumber?: StringNullableFilter<"Customer"> | string | null privacyPolicyPath?: StringNullableFilter<"Customer"> | string | null notes?: StringNullableFilter<"Customer"> | string | null portalEnabled?: BoolFilter<"Customer"> | boolean portalEmail?: StringNullableFilter<"Customer"> | string | null portalPasswordHash?: StringNullableFilter<"Customer"> | string | null portalPasswordEncrypted?: StringNullableFilter<"Customer"> | string | null portalLastLogin?: DateTimeNullableFilter<"Customer"> | Date | string | null createdAt?: DateTimeFilter<"Customer"> | Date | string updatedAt?: DateTimeFilter<"Customer"> | Date | string user?: XOR | null addresses?: AddressListRelationFilter bankCards?: BankCardListRelationFilter identityDocuments?: IdentityDocumentListRelationFilter meters?: MeterListRelationFilter stressfreiEmails?: StressfreiEmailListRelationFilter contracts?: ContractListRelationFilter representingFor?: CustomerRepresentativeListRelationFilter representedBy?: CustomerRepresentativeListRelationFilter } export type CustomerOrderByWithRelationInput = { id?: SortOrder customerNumber?: SortOrder type?: SortOrder salutation?: SortOrderInput | SortOrder firstName?: SortOrder lastName?: SortOrder companyName?: SortOrderInput | SortOrder foundingDate?: SortOrderInput | SortOrder birthDate?: SortOrderInput | SortOrder birthPlace?: SortOrderInput | SortOrder email?: SortOrderInput | SortOrder phone?: SortOrderInput | SortOrder mobile?: SortOrderInput | SortOrder taxNumber?: SortOrderInput | SortOrder businessRegistrationPath?: SortOrderInput | SortOrder commercialRegisterPath?: SortOrderInput | SortOrder commercialRegisterNumber?: SortOrderInput | SortOrder privacyPolicyPath?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder portalEnabled?: SortOrder portalEmail?: SortOrderInput | SortOrder portalPasswordHash?: SortOrderInput | SortOrder portalPasswordEncrypted?: SortOrderInput | SortOrder portalLastLogin?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput addresses?: AddressOrderByRelationAggregateInput bankCards?: BankCardOrderByRelationAggregateInput identityDocuments?: IdentityDocumentOrderByRelationAggregateInput meters?: MeterOrderByRelationAggregateInput stressfreiEmails?: StressfreiEmailOrderByRelationAggregateInput contracts?: ContractOrderByRelationAggregateInput representingFor?: CustomerRepresentativeOrderByRelationAggregateInput representedBy?: CustomerRepresentativeOrderByRelationAggregateInput } export type CustomerWhereUniqueInput = Prisma.AtLeast<{ id?: number customerNumber?: string portalEmail?: string AND?: CustomerWhereInput | CustomerWhereInput[] OR?: CustomerWhereInput[] NOT?: CustomerWhereInput | CustomerWhereInput[] type?: EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType salutation?: StringNullableFilter<"Customer"> | string | null firstName?: StringFilter<"Customer"> | string lastName?: StringFilter<"Customer"> | string companyName?: StringNullableFilter<"Customer"> | string | null foundingDate?: DateTimeNullableFilter<"Customer"> | Date | string | null birthDate?: DateTimeNullableFilter<"Customer"> | Date | string | null birthPlace?: StringNullableFilter<"Customer"> | string | null email?: StringNullableFilter<"Customer"> | string | null phone?: StringNullableFilter<"Customer"> | string | null mobile?: StringNullableFilter<"Customer"> | string | null taxNumber?: StringNullableFilter<"Customer"> | string | null businessRegistrationPath?: StringNullableFilter<"Customer"> | string | null commercialRegisterPath?: StringNullableFilter<"Customer"> | string | null commercialRegisterNumber?: StringNullableFilter<"Customer"> | string | null privacyPolicyPath?: StringNullableFilter<"Customer"> | string | null notes?: StringNullableFilter<"Customer"> | string | null portalEnabled?: BoolFilter<"Customer"> | boolean portalPasswordHash?: StringNullableFilter<"Customer"> | string | null portalPasswordEncrypted?: StringNullableFilter<"Customer"> | string | null portalLastLogin?: DateTimeNullableFilter<"Customer"> | Date | string | null createdAt?: DateTimeFilter<"Customer"> | Date | string updatedAt?: DateTimeFilter<"Customer"> | Date | string user?: XOR | null addresses?: AddressListRelationFilter bankCards?: BankCardListRelationFilter identityDocuments?: IdentityDocumentListRelationFilter meters?: MeterListRelationFilter stressfreiEmails?: StressfreiEmailListRelationFilter contracts?: ContractListRelationFilter representingFor?: CustomerRepresentativeListRelationFilter representedBy?: CustomerRepresentativeListRelationFilter }, "id" | "customerNumber" | "portalEmail"> export type CustomerOrderByWithAggregationInput = { id?: SortOrder customerNumber?: SortOrder type?: SortOrder salutation?: SortOrderInput | SortOrder firstName?: SortOrder lastName?: SortOrder companyName?: SortOrderInput | SortOrder foundingDate?: SortOrderInput | SortOrder birthDate?: SortOrderInput | SortOrder birthPlace?: SortOrderInput | SortOrder email?: SortOrderInput | SortOrder phone?: SortOrderInput | SortOrder mobile?: SortOrderInput | SortOrder taxNumber?: SortOrderInput | SortOrder businessRegistrationPath?: SortOrderInput | SortOrder commercialRegisterPath?: SortOrderInput | SortOrder commercialRegisterNumber?: SortOrderInput | SortOrder privacyPolicyPath?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder portalEnabled?: SortOrder portalEmail?: SortOrderInput | SortOrder portalPasswordHash?: SortOrderInput | SortOrder portalPasswordEncrypted?: SortOrderInput | SortOrder portalLastLogin?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CustomerCountOrderByAggregateInput _avg?: CustomerAvgOrderByAggregateInput _max?: CustomerMaxOrderByAggregateInput _min?: CustomerMinOrderByAggregateInput _sum?: CustomerSumOrderByAggregateInput } export type CustomerScalarWhereWithAggregatesInput = { AND?: CustomerScalarWhereWithAggregatesInput | CustomerScalarWhereWithAggregatesInput[] OR?: CustomerScalarWhereWithAggregatesInput[] NOT?: CustomerScalarWhereWithAggregatesInput | CustomerScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Customer"> | number customerNumber?: StringWithAggregatesFilter<"Customer"> | string type?: EnumCustomerTypeWithAggregatesFilter<"Customer"> | $Enums.CustomerType salutation?: StringNullableWithAggregatesFilter<"Customer"> | string | null firstName?: StringWithAggregatesFilter<"Customer"> | string lastName?: StringWithAggregatesFilter<"Customer"> | string companyName?: StringNullableWithAggregatesFilter<"Customer"> | string | null foundingDate?: DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null birthDate?: DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null birthPlace?: StringNullableWithAggregatesFilter<"Customer"> | string | null email?: StringNullableWithAggregatesFilter<"Customer"> | string | null phone?: StringNullableWithAggregatesFilter<"Customer"> | string | null mobile?: StringNullableWithAggregatesFilter<"Customer"> | string | null taxNumber?: StringNullableWithAggregatesFilter<"Customer"> | string | null businessRegistrationPath?: StringNullableWithAggregatesFilter<"Customer"> | string | null commercialRegisterPath?: StringNullableWithAggregatesFilter<"Customer"> | string | null commercialRegisterNumber?: StringNullableWithAggregatesFilter<"Customer"> | string | null privacyPolicyPath?: StringNullableWithAggregatesFilter<"Customer"> | string | null notes?: StringNullableWithAggregatesFilter<"Customer"> | string | null portalEnabled?: BoolWithAggregatesFilter<"Customer"> | boolean portalEmail?: StringNullableWithAggregatesFilter<"Customer"> | string | null portalPasswordHash?: StringNullableWithAggregatesFilter<"Customer"> | string | null portalPasswordEncrypted?: StringNullableWithAggregatesFilter<"Customer"> | string | null portalLastLogin?: DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"Customer"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Customer"> | Date | string } export type CustomerRepresentativeWhereInput = { AND?: CustomerRepresentativeWhereInput | CustomerRepresentativeWhereInput[] OR?: CustomerRepresentativeWhereInput[] NOT?: CustomerRepresentativeWhereInput | CustomerRepresentativeWhereInput[] id?: IntFilter<"CustomerRepresentative"> | number customerId?: IntFilter<"CustomerRepresentative"> | number representativeId?: IntFilter<"CustomerRepresentative"> | number notes?: StringNullableFilter<"CustomerRepresentative"> | string | null isActive?: BoolFilter<"CustomerRepresentative"> | boolean createdAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string updatedAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string customer?: XOR representative?: XOR } export type CustomerRepresentativeOrderByWithRelationInput = { id?: SortOrder customerId?: SortOrder representativeId?: SortOrder notes?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder customer?: CustomerOrderByWithRelationInput representative?: CustomerOrderByWithRelationInput } export type CustomerRepresentativeWhereUniqueInput = Prisma.AtLeast<{ id?: number customerId_representativeId?: CustomerRepresentativeCustomerIdRepresentativeIdCompoundUniqueInput AND?: CustomerRepresentativeWhereInput | CustomerRepresentativeWhereInput[] OR?: CustomerRepresentativeWhereInput[] NOT?: CustomerRepresentativeWhereInput | CustomerRepresentativeWhereInput[] customerId?: IntFilter<"CustomerRepresentative"> | number representativeId?: IntFilter<"CustomerRepresentative"> | number notes?: StringNullableFilter<"CustomerRepresentative"> | string | null isActive?: BoolFilter<"CustomerRepresentative"> | boolean createdAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string updatedAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string customer?: XOR representative?: XOR }, "id" | "customerId_representativeId"> export type CustomerRepresentativeOrderByWithAggregationInput = { id?: SortOrder customerId?: SortOrder representativeId?: SortOrder notes?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CustomerRepresentativeCountOrderByAggregateInput _avg?: CustomerRepresentativeAvgOrderByAggregateInput _max?: CustomerRepresentativeMaxOrderByAggregateInput _min?: CustomerRepresentativeMinOrderByAggregateInput _sum?: CustomerRepresentativeSumOrderByAggregateInput } export type CustomerRepresentativeScalarWhereWithAggregatesInput = { AND?: CustomerRepresentativeScalarWhereWithAggregatesInput | CustomerRepresentativeScalarWhereWithAggregatesInput[] OR?: CustomerRepresentativeScalarWhereWithAggregatesInput[] NOT?: CustomerRepresentativeScalarWhereWithAggregatesInput | CustomerRepresentativeScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CustomerRepresentative"> | number customerId?: IntWithAggregatesFilter<"CustomerRepresentative"> | number representativeId?: IntWithAggregatesFilter<"CustomerRepresentative"> | number notes?: StringNullableWithAggregatesFilter<"CustomerRepresentative"> | string | null isActive?: BoolWithAggregatesFilter<"CustomerRepresentative"> | boolean createdAt?: DateTimeWithAggregatesFilter<"CustomerRepresentative"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"CustomerRepresentative"> | Date | string } export type AddressWhereInput = { AND?: AddressWhereInput | AddressWhereInput[] OR?: AddressWhereInput[] NOT?: AddressWhereInput | AddressWhereInput[] id?: IntFilter<"Address"> | number customerId?: IntFilter<"Address"> | number type?: EnumAddressTypeFilter<"Address"> | $Enums.AddressType street?: StringFilter<"Address"> | string houseNumber?: StringFilter<"Address"> | string postalCode?: StringFilter<"Address"> | string city?: StringFilter<"Address"> | string country?: StringFilter<"Address"> | string isDefault?: BoolFilter<"Address"> | boolean createdAt?: DateTimeFilter<"Address"> | Date | string updatedAt?: DateTimeFilter<"Address"> | Date | string customer?: XOR contractsAsDelivery?: ContractListRelationFilter contractsAsBilling?: ContractListRelationFilter } export type AddressOrderByWithRelationInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder street?: SortOrder houseNumber?: SortOrder postalCode?: SortOrder city?: SortOrder country?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder customer?: CustomerOrderByWithRelationInput contractsAsDelivery?: ContractOrderByRelationAggregateInput contractsAsBilling?: ContractOrderByRelationAggregateInput } export type AddressWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: AddressWhereInput | AddressWhereInput[] OR?: AddressWhereInput[] NOT?: AddressWhereInput | AddressWhereInput[] customerId?: IntFilter<"Address"> | number type?: EnumAddressTypeFilter<"Address"> | $Enums.AddressType street?: StringFilter<"Address"> | string houseNumber?: StringFilter<"Address"> | string postalCode?: StringFilter<"Address"> | string city?: StringFilter<"Address"> | string country?: StringFilter<"Address"> | string isDefault?: BoolFilter<"Address"> | boolean createdAt?: DateTimeFilter<"Address"> | Date | string updatedAt?: DateTimeFilter<"Address"> | Date | string customer?: XOR contractsAsDelivery?: ContractListRelationFilter contractsAsBilling?: ContractListRelationFilter }, "id"> export type AddressOrderByWithAggregationInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder street?: SortOrder houseNumber?: SortOrder postalCode?: SortOrder city?: SortOrder country?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: AddressCountOrderByAggregateInput _avg?: AddressAvgOrderByAggregateInput _max?: AddressMaxOrderByAggregateInput _min?: AddressMinOrderByAggregateInput _sum?: AddressSumOrderByAggregateInput } export type AddressScalarWhereWithAggregatesInput = { AND?: AddressScalarWhereWithAggregatesInput | AddressScalarWhereWithAggregatesInput[] OR?: AddressScalarWhereWithAggregatesInput[] NOT?: AddressScalarWhereWithAggregatesInput | AddressScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Address"> | number customerId?: IntWithAggregatesFilter<"Address"> | number type?: EnumAddressTypeWithAggregatesFilter<"Address"> | $Enums.AddressType street?: StringWithAggregatesFilter<"Address"> | string houseNumber?: StringWithAggregatesFilter<"Address"> | string postalCode?: StringWithAggregatesFilter<"Address"> | string city?: StringWithAggregatesFilter<"Address"> | string country?: StringWithAggregatesFilter<"Address"> | string isDefault?: BoolWithAggregatesFilter<"Address"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Address"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Address"> | Date | string } export type BankCardWhereInput = { AND?: BankCardWhereInput | BankCardWhereInput[] OR?: BankCardWhereInput[] NOT?: BankCardWhereInput | BankCardWhereInput[] id?: IntFilter<"BankCard"> | number customerId?: IntFilter<"BankCard"> | number accountHolder?: StringFilter<"BankCard"> | string iban?: StringFilter<"BankCard"> | string bic?: StringNullableFilter<"BankCard"> | string | null bankName?: StringNullableFilter<"BankCard"> | string | null expiryDate?: DateTimeNullableFilter<"BankCard"> | Date | string | null documentPath?: StringNullableFilter<"BankCard"> | string | null isActive?: BoolFilter<"BankCard"> | boolean createdAt?: DateTimeFilter<"BankCard"> | Date | string updatedAt?: DateTimeFilter<"BankCard"> | Date | string customer?: XOR contracts?: ContractListRelationFilter } export type BankCardOrderByWithRelationInput = { id?: SortOrder customerId?: SortOrder accountHolder?: SortOrder iban?: SortOrder bic?: SortOrderInput | SortOrder bankName?: SortOrderInput | SortOrder expiryDate?: SortOrderInput | SortOrder documentPath?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder customer?: CustomerOrderByWithRelationInput contracts?: ContractOrderByRelationAggregateInput } export type BankCardWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: BankCardWhereInput | BankCardWhereInput[] OR?: BankCardWhereInput[] NOT?: BankCardWhereInput | BankCardWhereInput[] customerId?: IntFilter<"BankCard"> | number accountHolder?: StringFilter<"BankCard"> | string iban?: StringFilter<"BankCard"> | string bic?: StringNullableFilter<"BankCard"> | string | null bankName?: StringNullableFilter<"BankCard"> | string | null expiryDate?: DateTimeNullableFilter<"BankCard"> | Date | string | null documentPath?: StringNullableFilter<"BankCard"> | string | null isActive?: BoolFilter<"BankCard"> | boolean createdAt?: DateTimeFilter<"BankCard"> | Date | string updatedAt?: DateTimeFilter<"BankCard"> | Date | string customer?: XOR contracts?: ContractListRelationFilter }, "id"> export type BankCardOrderByWithAggregationInput = { id?: SortOrder customerId?: SortOrder accountHolder?: SortOrder iban?: SortOrder bic?: SortOrderInput | SortOrder bankName?: SortOrderInput | SortOrder expiryDate?: SortOrderInput | SortOrder documentPath?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: BankCardCountOrderByAggregateInput _avg?: BankCardAvgOrderByAggregateInput _max?: BankCardMaxOrderByAggregateInput _min?: BankCardMinOrderByAggregateInput _sum?: BankCardSumOrderByAggregateInput } export type BankCardScalarWhereWithAggregatesInput = { AND?: BankCardScalarWhereWithAggregatesInput | BankCardScalarWhereWithAggregatesInput[] OR?: BankCardScalarWhereWithAggregatesInput[] NOT?: BankCardScalarWhereWithAggregatesInput | BankCardScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"BankCard"> | number customerId?: IntWithAggregatesFilter<"BankCard"> | number accountHolder?: StringWithAggregatesFilter<"BankCard"> | string iban?: StringWithAggregatesFilter<"BankCard"> | string bic?: StringNullableWithAggregatesFilter<"BankCard"> | string | null bankName?: StringNullableWithAggregatesFilter<"BankCard"> | string | null expiryDate?: DateTimeNullableWithAggregatesFilter<"BankCard"> | Date | string | null documentPath?: StringNullableWithAggregatesFilter<"BankCard"> | string | null isActive?: BoolWithAggregatesFilter<"BankCard"> | boolean createdAt?: DateTimeWithAggregatesFilter<"BankCard"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"BankCard"> | Date | string } export type IdentityDocumentWhereInput = { AND?: IdentityDocumentWhereInput | IdentityDocumentWhereInput[] OR?: IdentityDocumentWhereInput[] NOT?: IdentityDocumentWhereInput | IdentityDocumentWhereInput[] id?: IntFilter<"IdentityDocument"> | number customerId?: IntFilter<"IdentityDocument"> | number type?: EnumDocumentTypeFilter<"IdentityDocument"> | $Enums.DocumentType documentNumber?: StringFilter<"IdentityDocument"> | string issuingAuthority?: StringNullableFilter<"IdentityDocument"> | string | null issueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null expiryDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null documentPath?: StringNullableFilter<"IdentityDocument"> | string | null isActive?: BoolFilter<"IdentityDocument"> | boolean licenseClasses?: StringNullableFilter<"IdentityDocument"> | string | null licenseIssueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null createdAt?: DateTimeFilter<"IdentityDocument"> | Date | string updatedAt?: DateTimeFilter<"IdentityDocument"> | Date | string customer?: XOR contracts?: ContractListRelationFilter } export type IdentityDocumentOrderByWithRelationInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder documentNumber?: SortOrder issuingAuthority?: SortOrderInput | SortOrder issueDate?: SortOrderInput | SortOrder expiryDate?: SortOrderInput | SortOrder documentPath?: SortOrderInput | SortOrder isActive?: SortOrder licenseClasses?: SortOrderInput | SortOrder licenseIssueDate?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder customer?: CustomerOrderByWithRelationInput contracts?: ContractOrderByRelationAggregateInput } export type IdentityDocumentWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: IdentityDocumentWhereInput | IdentityDocumentWhereInput[] OR?: IdentityDocumentWhereInput[] NOT?: IdentityDocumentWhereInput | IdentityDocumentWhereInput[] customerId?: IntFilter<"IdentityDocument"> | number type?: EnumDocumentTypeFilter<"IdentityDocument"> | $Enums.DocumentType documentNumber?: StringFilter<"IdentityDocument"> | string issuingAuthority?: StringNullableFilter<"IdentityDocument"> | string | null issueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null expiryDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null documentPath?: StringNullableFilter<"IdentityDocument"> | string | null isActive?: BoolFilter<"IdentityDocument"> | boolean licenseClasses?: StringNullableFilter<"IdentityDocument"> | string | null licenseIssueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null createdAt?: DateTimeFilter<"IdentityDocument"> | Date | string updatedAt?: DateTimeFilter<"IdentityDocument"> | Date | string customer?: XOR contracts?: ContractListRelationFilter }, "id"> export type IdentityDocumentOrderByWithAggregationInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder documentNumber?: SortOrder issuingAuthority?: SortOrderInput | SortOrder issueDate?: SortOrderInput | SortOrder expiryDate?: SortOrderInput | SortOrder documentPath?: SortOrderInput | SortOrder isActive?: SortOrder licenseClasses?: SortOrderInput | SortOrder licenseIssueDate?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: IdentityDocumentCountOrderByAggregateInput _avg?: IdentityDocumentAvgOrderByAggregateInput _max?: IdentityDocumentMaxOrderByAggregateInput _min?: IdentityDocumentMinOrderByAggregateInput _sum?: IdentityDocumentSumOrderByAggregateInput } export type IdentityDocumentScalarWhereWithAggregatesInput = { AND?: IdentityDocumentScalarWhereWithAggregatesInput | IdentityDocumentScalarWhereWithAggregatesInput[] OR?: IdentityDocumentScalarWhereWithAggregatesInput[] NOT?: IdentityDocumentScalarWhereWithAggregatesInput | IdentityDocumentScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"IdentityDocument"> | number customerId?: IntWithAggregatesFilter<"IdentityDocument"> | number type?: EnumDocumentTypeWithAggregatesFilter<"IdentityDocument"> | $Enums.DocumentType documentNumber?: StringWithAggregatesFilter<"IdentityDocument"> | string issuingAuthority?: StringNullableWithAggregatesFilter<"IdentityDocument"> | string | null issueDate?: DateTimeNullableWithAggregatesFilter<"IdentityDocument"> | Date | string | null expiryDate?: DateTimeNullableWithAggregatesFilter<"IdentityDocument"> | Date | string | null documentPath?: StringNullableWithAggregatesFilter<"IdentityDocument"> | string | null isActive?: BoolWithAggregatesFilter<"IdentityDocument"> | boolean licenseClasses?: StringNullableWithAggregatesFilter<"IdentityDocument"> | string | null licenseIssueDate?: DateTimeNullableWithAggregatesFilter<"IdentityDocument"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"IdentityDocument"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"IdentityDocument"> | Date | string } export type EmailProviderConfigWhereInput = { AND?: EmailProviderConfigWhereInput | EmailProviderConfigWhereInput[] OR?: EmailProviderConfigWhereInput[] NOT?: EmailProviderConfigWhereInput | EmailProviderConfigWhereInput[] id?: IntFilter<"EmailProviderConfig"> | number name?: StringFilter<"EmailProviderConfig"> | string type?: EnumEmailProviderTypeFilter<"EmailProviderConfig"> | $Enums.EmailProviderType apiUrl?: StringFilter<"EmailProviderConfig"> | string apiKey?: StringNullableFilter<"EmailProviderConfig"> | string | null username?: StringNullableFilter<"EmailProviderConfig"> | string | null passwordEncrypted?: StringNullableFilter<"EmailProviderConfig"> | string | null domain?: StringFilter<"EmailProviderConfig"> | string defaultForwardEmail?: StringNullableFilter<"EmailProviderConfig"> | string | null imapServer?: StringNullableFilter<"EmailProviderConfig"> | string | null imapPort?: IntNullableFilter<"EmailProviderConfig"> | number | null smtpServer?: StringNullableFilter<"EmailProviderConfig"> | string | null smtpPort?: IntNullableFilter<"EmailProviderConfig"> | number | null imapEncryption?: EnumMailEncryptionFilter<"EmailProviderConfig"> | $Enums.MailEncryption smtpEncryption?: EnumMailEncryptionFilter<"EmailProviderConfig"> | $Enums.MailEncryption allowSelfSignedCerts?: BoolFilter<"EmailProviderConfig"> | boolean isActive?: BoolFilter<"EmailProviderConfig"> | boolean isDefault?: BoolFilter<"EmailProviderConfig"> | boolean createdAt?: DateTimeFilter<"EmailProviderConfig"> | Date | string updatedAt?: DateTimeFilter<"EmailProviderConfig"> | Date | string } export type EmailProviderConfigOrderByWithRelationInput = { id?: SortOrder name?: SortOrder type?: SortOrder apiUrl?: SortOrder apiKey?: SortOrderInput | SortOrder username?: SortOrderInput | SortOrder passwordEncrypted?: SortOrderInput | SortOrder domain?: SortOrder defaultForwardEmail?: SortOrderInput | SortOrder imapServer?: SortOrderInput | SortOrder imapPort?: SortOrderInput | SortOrder smtpServer?: SortOrderInput | SortOrder smtpPort?: SortOrderInput | SortOrder imapEncryption?: SortOrder smtpEncryption?: SortOrder allowSelfSignedCerts?: SortOrder isActive?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EmailProviderConfigWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: EmailProviderConfigWhereInput | EmailProviderConfigWhereInput[] OR?: EmailProviderConfigWhereInput[] NOT?: EmailProviderConfigWhereInput | EmailProviderConfigWhereInput[] type?: EnumEmailProviderTypeFilter<"EmailProviderConfig"> | $Enums.EmailProviderType apiUrl?: StringFilter<"EmailProviderConfig"> | string apiKey?: StringNullableFilter<"EmailProviderConfig"> | string | null username?: StringNullableFilter<"EmailProviderConfig"> | string | null passwordEncrypted?: StringNullableFilter<"EmailProviderConfig"> | string | null domain?: StringFilter<"EmailProviderConfig"> | string defaultForwardEmail?: StringNullableFilter<"EmailProviderConfig"> | string | null imapServer?: StringNullableFilter<"EmailProviderConfig"> | string | null imapPort?: IntNullableFilter<"EmailProviderConfig"> | number | null smtpServer?: StringNullableFilter<"EmailProviderConfig"> | string | null smtpPort?: IntNullableFilter<"EmailProviderConfig"> | number | null imapEncryption?: EnumMailEncryptionFilter<"EmailProviderConfig"> | $Enums.MailEncryption smtpEncryption?: EnumMailEncryptionFilter<"EmailProviderConfig"> | $Enums.MailEncryption allowSelfSignedCerts?: BoolFilter<"EmailProviderConfig"> | boolean isActive?: BoolFilter<"EmailProviderConfig"> | boolean isDefault?: BoolFilter<"EmailProviderConfig"> | boolean createdAt?: DateTimeFilter<"EmailProviderConfig"> | Date | string updatedAt?: DateTimeFilter<"EmailProviderConfig"> | Date | string }, "id" | "name"> export type EmailProviderConfigOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder type?: SortOrder apiUrl?: SortOrder apiKey?: SortOrderInput | SortOrder username?: SortOrderInput | SortOrder passwordEncrypted?: SortOrderInput | SortOrder domain?: SortOrder defaultForwardEmail?: SortOrderInput | SortOrder imapServer?: SortOrderInput | SortOrder imapPort?: SortOrderInput | SortOrder smtpServer?: SortOrderInput | SortOrder smtpPort?: SortOrderInput | SortOrder imapEncryption?: SortOrder smtpEncryption?: SortOrder allowSelfSignedCerts?: SortOrder isActive?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EmailProviderConfigCountOrderByAggregateInput _avg?: EmailProviderConfigAvgOrderByAggregateInput _max?: EmailProviderConfigMaxOrderByAggregateInput _min?: EmailProviderConfigMinOrderByAggregateInput _sum?: EmailProviderConfigSumOrderByAggregateInput } export type EmailProviderConfigScalarWhereWithAggregatesInput = { AND?: EmailProviderConfigScalarWhereWithAggregatesInput | EmailProviderConfigScalarWhereWithAggregatesInput[] OR?: EmailProviderConfigScalarWhereWithAggregatesInput[] NOT?: EmailProviderConfigScalarWhereWithAggregatesInput | EmailProviderConfigScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"EmailProviderConfig"> | number name?: StringWithAggregatesFilter<"EmailProviderConfig"> | string type?: EnumEmailProviderTypeWithAggregatesFilter<"EmailProviderConfig"> | $Enums.EmailProviderType apiUrl?: StringWithAggregatesFilter<"EmailProviderConfig"> | string apiKey?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null username?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null passwordEncrypted?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null domain?: StringWithAggregatesFilter<"EmailProviderConfig"> | string defaultForwardEmail?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null imapServer?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null imapPort?: IntNullableWithAggregatesFilter<"EmailProviderConfig"> | number | null smtpServer?: StringNullableWithAggregatesFilter<"EmailProviderConfig"> | string | null smtpPort?: IntNullableWithAggregatesFilter<"EmailProviderConfig"> | number | null imapEncryption?: EnumMailEncryptionWithAggregatesFilter<"EmailProviderConfig"> | $Enums.MailEncryption smtpEncryption?: EnumMailEncryptionWithAggregatesFilter<"EmailProviderConfig"> | $Enums.MailEncryption allowSelfSignedCerts?: BoolWithAggregatesFilter<"EmailProviderConfig"> | boolean isActive?: BoolWithAggregatesFilter<"EmailProviderConfig"> | boolean isDefault?: BoolWithAggregatesFilter<"EmailProviderConfig"> | boolean createdAt?: DateTimeWithAggregatesFilter<"EmailProviderConfig"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"EmailProviderConfig"> | Date | string } export type StressfreiEmailWhereInput = { AND?: StressfreiEmailWhereInput | StressfreiEmailWhereInput[] OR?: StressfreiEmailWhereInput[] NOT?: StressfreiEmailWhereInput | StressfreiEmailWhereInput[] id?: IntFilter<"StressfreiEmail"> | number customerId?: IntFilter<"StressfreiEmail"> | number email?: StringFilter<"StressfreiEmail"> | string platform?: StringNullableFilter<"StressfreiEmail"> | string | null notes?: StringNullableFilter<"StressfreiEmail"> | string | null isActive?: BoolFilter<"StressfreiEmail"> | boolean isProvisioned?: BoolFilter<"StressfreiEmail"> | boolean provisionedAt?: DateTimeNullableFilter<"StressfreiEmail"> | Date | string | null provisionError?: StringNullableFilter<"StressfreiEmail"> | string | null hasMailbox?: BoolFilter<"StressfreiEmail"> | boolean emailPasswordEncrypted?: StringNullableFilter<"StressfreiEmail"> | string | null createdAt?: DateTimeFilter<"StressfreiEmail"> | Date | string updatedAt?: DateTimeFilter<"StressfreiEmail"> | Date | string customer?: XOR contracts?: ContractListRelationFilter cachedEmails?: CachedEmailListRelationFilter } export type StressfreiEmailOrderByWithRelationInput = { id?: SortOrder customerId?: SortOrder email?: SortOrder platform?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder isActive?: SortOrder isProvisioned?: SortOrder provisionedAt?: SortOrderInput | SortOrder provisionError?: SortOrderInput | SortOrder hasMailbox?: SortOrder emailPasswordEncrypted?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder customer?: CustomerOrderByWithRelationInput contracts?: ContractOrderByRelationAggregateInput cachedEmails?: CachedEmailOrderByRelationAggregateInput } export type StressfreiEmailWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: StressfreiEmailWhereInput | StressfreiEmailWhereInput[] OR?: StressfreiEmailWhereInput[] NOT?: StressfreiEmailWhereInput | StressfreiEmailWhereInput[] customerId?: IntFilter<"StressfreiEmail"> | number email?: StringFilter<"StressfreiEmail"> | string platform?: StringNullableFilter<"StressfreiEmail"> | string | null notes?: StringNullableFilter<"StressfreiEmail"> | string | null isActive?: BoolFilter<"StressfreiEmail"> | boolean isProvisioned?: BoolFilter<"StressfreiEmail"> | boolean provisionedAt?: DateTimeNullableFilter<"StressfreiEmail"> | Date | string | null provisionError?: StringNullableFilter<"StressfreiEmail"> | string | null hasMailbox?: BoolFilter<"StressfreiEmail"> | boolean emailPasswordEncrypted?: StringNullableFilter<"StressfreiEmail"> | string | null createdAt?: DateTimeFilter<"StressfreiEmail"> | Date | string updatedAt?: DateTimeFilter<"StressfreiEmail"> | Date | string customer?: XOR contracts?: ContractListRelationFilter cachedEmails?: CachedEmailListRelationFilter }, "id"> export type StressfreiEmailOrderByWithAggregationInput = { id?: SortOrder customerId?: SortOrder email?: SortOrder platform?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder isActive?: SortOrder isProvisioned?: SortOrder provisionedAt?: SortOrderInput | SortOrder provisionError?: SortOrderInput | SortOrder hasMailbox?: SortOrder emailPasswordEncrypted?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: StressfreiEmailCountOrderByAggregateInput _avg?: StressfreiEmailAvgOrderByAggregateInput _max?: StressfreiEmailMaxOrderByAggregateInput _min?: StressfreiEmailMinOrderByAggregateInput _sum?: StressfreiEmailSumOrderByAggregateInput } export type StressfreiEmailScalarWhereWithAggregatesInput = { AND?: StressfreiEmailScalarWhereWithAggregatesInput | StressfreiEmailScalarWhereWithAggregatesInput[] OR?: StressfreiEmailScalarWhereWithAggregatesInput[] NOT?: StressfreiEmailScalarWhereWithAggregatesInput | StressfreiEmailScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"StressfreiEmail"> | number customerId?: IntWithAggregatesFilter<"StressfreiEmail"> | number email?: StringWithAggregatesFilter<"StressfreiEmail"> | string platform?: StringNullableWithAggregatesFilter<"StressfreiEmail"> | string | null notes?: StringNullableWithAggregatesFilter<"StressfreiEmail"> | string | null isActive?: BoolWithAggregatesFilter<"StressfreiEmail"> | boolean isProvisioned?: BoolWithAggregatesFilter<"StressfreiEmail"> | boolean provisionedAt?: DateTimeNullableWithAggregatesFilter<"StressfreiEmail"> | Date | string | null provisionError?: StringNullableWithAggregatesFilter<"StressfreiEmail"> | string | null hasMailbox?: BoolWithAggregatesFilter<"StressfreiEmail"> | boolean emailPasswordEncrypted?: StringNullableWithAggregatesFilter<"StressfreiEmail"> | string | null createdAt?: DateTimeWithAggregatesFilter<"StressfreiEmail"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"StressfreiEmail"> | Date | string } export type CachedEmailWhereInput = { AND?: CachedEmailWhereInput | CachedEmailWhereInput[] OR?: CachedEmailWhereInput[] NOT?: CachedEmailWhereInput | CachedEmailWhereInput[] id?: IntFilter<"CachedEmail"> | number stressfreiEmailId?: IntFilter<"CachedEmail"> | number folder?: EnumEmailFolderFilter<"CachedEmail"> | $Enums.EmailFolder messageId?: StringFilter<"CachedEmail"> | string uid?: IntFilter<"CachedEmail"> | number subject?: StringNullableFilter<"CachedEmail"> | string | null fromAddress?: StringFilter<"CachedEmail"> | string fromName?: StringNullableFilter<"CachedEmail"> | string | null toAddresses?: StringFilter<"CachedEmail"> | string ccAddresses?: StringNullableFilter<"CachedEmail"> | string | null receivedAt?: DateTimeFilter<"CachedEmail"> | Date | string textBody?: StringNullableFilter<"CachedEmail"> | string | null htmlBody?: StringNullableFilter<"CachedEmail"> | string | null hasAttachments?: BoolFilter<"CachedEmail"> | boolean attachmentNames?: StringNullableFilter<"CachedEmail"> | string | null contractId?: IntNullableFilter<"CachedEmail"> | number | null assignedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null assignedBy?: IntNullableFilter<"CachedEmail"> | number | null isAutoAssigned?: BoolFilter<"CachedEmail"> | boolean isRead?: BoolFilter<"CachedEmail"> | boolean isStarred?: BoolFilter<"CachedEmail"> | boolean isDeleted?: BoolFilter<"CachedEmail"> | boolean deletedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null createdAt?: DateTimeFilter<"CachedEmail"> | Date | string updatedAt?: DateTimeFilter<"CachedEmail"> | Date | string stressfreiEmail?: XOR contract?: XOR | null } export type CachedEmailOrderByWithRelationInput = { id?: SortOrder stressfreiEmailId?: SortOrder folder?: SortOrder messageId?: SortOrder uid?: SortOrder subject?: SortOrderInput | SortOrder fromAddress?: SortOrder fromName?: SortOrderInput | SortOrder toAddresses?: SortOrder ccAddresses?: SortOrderInput | SortOrder receivedAt?: SortOrder textBody?: SortOrderInput | SortOrder htmlBody?: SortOrderInput | SortOrder hasAttachments?: SortOrder attachmentNames?: SortOrderInput | SortOrder contractId?: SortOrderInput | SortOrder assignedAt?: SortOrderInput | SortOrder assignedBy?: SortOrderInput | SortOrder isAutoAssigned?: SortOrder isRead?: SortOrder isStarred?: SortOrder isDeleted?: SortOrder deletedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder stressfreiEmail?: StressfreiEmailOrderByWithRelationInput contract?: ContractOrderByWithRelationInput } export type CachedEmailWhereUniqueInput = Prisma.AtLeast<{ id?: number stressfreiEmailId_messageId_folder?: CachedEmailStressfreiEmailIdMessageIdFolderCompoundUniqueInput AND?: CachedEmailWhereInput | CachedEmailWhereInput[] OR?: CachedEmailWhereInput[] NOT?: CachedEmailWhereInput | CachedEmailWhereInput[] stressfreiEmailId?: IntFilter<"CachedEmail"> | number folder?: EnumEmailFolderFilter<"CachedEmail"> | $Enums.EmailFolder messageId?: StringFilter<"CachedEmail"> | string uid?: IntFilter<"CachedEmail"> | number subject?: StringNullableFilter<"CachedEmail"> | string | null fromAddress?: StringFilter<"CachedEmail"> | string fromName?: StringNullableFilter<"CachedEmail"> | string | null toAddresses?: StringFilter<"CachedEmail"> | string ccAddresses?: StringNullableFilter<"CachedEmail"> | string | null receivedAt?: DateTimeFilter<"CachedEmail"> | Date | string textBody?: StringNullableFilter<"CachedEmail"> | string | null htmlBody?: StringNullableFilter<"CachedEmail"> | string | null hasAttachments?: BoolFilter<"CachedEmail"> | boolean attachmentNames?: StringNullableFilter<"CachedEmail"> | string | null contractId?: IntNullableFilter<"CachedEmail"> | number | null assignedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null assignedBy?: IntNullableFilter<"CachedEmail"> | number | null isAutoAssigned?: BoolFilter<"CachedEmail"> | boolean isRead?: BoolFilter<"CachedEmail"> | boolean isStarred?: BoolFilter<"CachedEmail"> | boolean isDeleted?: BoolFilter<"CachedEmail"> | boolean deletedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null createdAt?: DateTimeFilter<"CachedEmail"> | Date | string updatedAt?: DateTimeFilter<"CachedEmail"> | Date | string stressfreiEmail?: XOR contract?: XOR | null }, "id" | "stressfreiEmailId_messageId_folder"> export type CachedEmailOrderByWithAggregationInput = { id?: SortOrder stressfreiEmailId?: SortOrder folder?: SortOrder messageId?: SortOrder uid?: SortOrder subject?: SortOrderInput | SortOrder fromAddress?: SortOrder fromName?: SortOrderInput | SortOrder toAddresses?: SortOrder ccAddresses?: SortOrderInput | SortOrder receivedAt?: SortOrder textBody?: SortOrderInput | SortOrder htmlBody?: SortOrderInput | SortOrder hasAttachments?: SortOrder attachmentNames?: SortOrderInput | SortOrder contractId?: SortOrderInput | SortOrder assignedAt?: SortOrderInput | SortOrder assignedBy?: SortOrderInput | SortOrder isAutoAssigned?: SortOrder isRead?: SortOrder isStarred?: SortOrder isDeleted?: SortOrder deletedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CachedEmailCountOrderByAggregateInput _avg?: CachedEmailAvgOrderByAggregateInput _max?: CachedEmailMaxOrderByAggregateInput _min?: CachedEmailMinOrderByAggregateInput _sum?: CachedEmailSumOrderByAggregateInput } export type CachedEmailScalarWhereWithAggregatesInput = { AND?: CachedEmailScalarWhereWithAggregatesInput | CachedEmailScalarWhereWithAggregatesInput[] OR?: CachedEmailScalarWhereWithAggregatesInput[] NOT?: CachedEmailScalarWhereWithAggregatesInput | CachedEmailScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CachedEmail"> | number stressfreiEmailId?: IntWithAggregatesFilter<"CachedEmail"> | number folder?: EnumEmailFolderWithAggregatesFilter<"CachedEmail"> | $Enums.EmailFolder messageId?: StringWithAggregatesFilter<"CachedEmail"> | string uid?: IntWithAggregatesFilter<"CachedEmail"> | number subject?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null fromAddress?: StringWithAggregatesFilter<"CachedEmail"> | string fromName?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null toAddresses?: StringWithAggregatesFilter<"CachedEmail"> | string ccAddresses?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null receivedAt?: DateTimeWithAggregatesFilter<"CachedEmail"> | Date | string textBody?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null htmlBody?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null hasAttachments?: BoolWithAggregatesFilter<"CachedEmail"> | boolean attachmentNames?: StringNullableWithAggregatesFilter<"CachedEmail"> | string | null contractId?: IntNullableWithAggregatesFilter<"CachedEmail"> | number | null assignedAt?: DateTimeNullableWithAggregatesFilter<"CachedEmail"> | Date | string | null assignedBy?: IntNullableWithAggregatesFilter<"CachedEmail"> | number | null isAutoAssigned?: BoolWithAggregatesFilter<"CachedEmail"> | boolean isRead?: BoolWithAggregatesFilter<"CachedEmail"> | boolean isStarred?: BoolWithAggregatesFilter<"CachedEmail"> | boolean isDeleted?: BoolWithAggregatesFilter<"CachedEmail"> | boolean deletedAt?: DateTimeNullableWithAggregatesFilter<"CachedEmail"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"CachedEmail"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"CachedEmail"> | Date | string } export type MeterWhereInput = { AND?: MeterWhereInput | MeterWhereInput[] OR?: MeterWhereInput[] NOT?: MeterWhereInput | MeterWhereInput[] id?: IntFilter<"Meter"> | number customerId?: IntFilter<"Meter"> | number meterNumber?: StringFilter<"Meter"> | string type?: EnumMeterTypeFilter<"Meter"> | $Enums.MeterType location?: StringNullableFilter<"Meter"> | string | null isActive?: BoolFilter<"Meter"> | boolean createdAt?: DateTimeFilter<"Meter"> | Date | string updatedAt?: DateTimeFilter<"Meter"> | Date | string customer?: XOR readings?: MeterReadingListRelationFilter energyDetails?: EnergyContractDetailsListRelationFilter } export type MeterOrderByWithRelationInput = { id?: SortOrder customerId?: SortOrder meterNumber?: SortOrder type?: SortOrder location?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder customer?: CustomerOrderByWithRelationInput readings?: MeterReadingOrderByRelationAggregateInput energyDetails?: EnergyContractDetailsOrderByRelationAggregateInput } export type MeterWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: MeterWhereInput | MeterWhereInput[] OR?: MeterWhereInput[] NOT?: MeterWhereInput | MeterWhereInput[] customerId?: IntFilter<"Meter"> | number meterNumber?: StringFilter<"Meter"> | string type?: EnumMeterTypeFilter<"Meter"> | $Enums.MeterType location?: StringNullableFilter<"Meter"> | string | null isActive?: BoolFilter<"Meter"> | boolean createdAt?: DateTimeFilter<"Meter"> | Date | string updatedAt?: DateTimeFilter<"Meter"> | Date | string customer?: XOR readings?: MeterReadingListRelationFilter energyDetails?: EnergyContractDetailsListRelationFilter }, "id"> export type MeterOrderByWithAggregationInput = { id?: SortOrder customerId?: SortOrder meterNumber?: SortOrder type?: SortOrder location?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: MeterCountOrderByAggregateInput _avg?: MeterAvgOrderByAggregateInput _max?: MeterMaxOrderByAggregateInput _min?: MeterMinOrderByAggregateInput _sum?: MeterSumOrderByAggregateInput } export type MeterScalarWhereWithAggregatesInput = { AND?: MeterScalarWhereWithAggregatesInput | MeterScalarWhereWithAggregatesInput[] OR?: MeterScalarWhereWithAggregatesInput[] NOT?: MeterScalarWhereWithAggregatesInput | MeterScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Meter"> | number customerId?: IntWithAggregatesFilter<"Meter"> | number meterNumber?: StringWithAggregatesFilter<"Meter"> | string type?: EnumMeterTypeWithAggregatesFilter<"Meter"> | $Enums.MeterType location?: StringNullableWithAggregatesFilter<"Meter"> | string | null isActive?: BoolWithAggregatesFilter<"Meter"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Meter"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Meter"> | Date | string } export type MeterReadingWhereInput = { AND?: MeterReadingWhereInput | MeterReadingWhereInput[] OR?: MeterReadingWhereInput[] NOT?: MeterReadingWhereInput | MeterReadingWhereInput[] id?: IntFilter<"MeterReading"> | number meterId?: IntFilter<"MeterReading"> | number readingDate?: DateTimeFilter<"MeterReading"> | Date | string value?: FloatFilter<"MeterReading"> | number unit?: StringFilter<"MeterReading"> | string notes?: StringNullableFilter<"MeterReading"> | string | null createdAt?: DateTimeFilter<"MeterReading"> | Date | string meter?: XOR } export type MeterReadingOrderByWithRelationInput = { id?: SortOrder meterId?: SortOrder readingDate?: SortOrder value?: SortOrder unit?: SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder meter?: MeterOrderByWithRelationInput } export type MeterReadingWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: MeterReadingWhereInput | MeterReadingWhereInput[] OR?: MeterReadingWhereInput[] NOT?: MeterReadingWhereInput | MeterReadingWhereInput[] meterId?: IntFilter<"MeterReading"> | number readingDate?: DateTimeFilter<"MeterReading"> | Date | string value?: FloatFilter<"MeterReading"> | number unit?: StringFilter<"MeterReading"> | string notes?: StringNullableFilter<"MeterReading"> | string | null createdAt?: DateTimeFilter<"MeterReading"> | Date | string meter?: XOR }, "id"> export type MeterReadingOrderByWithAggregationInput = { id?: SortOrder meterId?: SortOrder readingDate?: SortOrder value?: SortOrder unit?: SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: MeterReadingCountOrderByAggregateInput _avg?: MeterReadingAvgOrderByAggregateInput _max?: MeterReadingMaxOrderByAggregateInput _min?: MeterReadingMinOrderByAggregateInput _sum?: MeterReadingSumOrderByAggregateInput } export type MeterReadingScalarWhereWithAggregatesInput = { AND?: MeterReadingScalarWhereWithAggregatesInput | MeterReadingScalarWhereWithAggregatesInput[] OR?: MeterReadingScalarWhereWithAggregatesInput[] NOT?: MeterReadingScalarWhereWithAggregatesInput | MeterReadingScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"MeterReading"> | number meterId?: IntWithAggregatesFilter<"MeterReading"> | number readingDate?: DateTimeWithAggregatesFilter<"MeterReading"> | Date | string value?: FloatWithAggregatesFilter<"MeterReading"> | number unit?: StringWithAggregatesFilter<"MeterReading"> | string notes?: StringNullableWithAggregatesFilter<"MeterReading"> | string | null createdAt?: DateTimeWithAggregatesFilter<"MeterReading"> | Date | string } export type SalesPlatformWhereInput = { AND?: SalesPlatformWhereInput | SalesPlatformWhereInput[] OR?: SalesPlatformWhereInput[] NOT?: SalesPlatformWhereInput | SalesPlatformWhereInput[] id?: IntFilter<"SalesPlatform"> | number name?: StringFilter<"SalesPlatform"> | string contactInfo?: StringNullableFilter<"SalesPlatform"> | string | null isActive?: BoolFilter<"SalesPlatform"> | boolean createdAt?: DateTimeFilter<"SalesPlatform"> | Date | string updatedAt?: DateTimeFilter<"SalesPlatform"> | Date | string contracts?: ContractListRelationFilter } export type SalesPlatformOrderByWithRelationInput = { id?: SortOrder name?: SortOrder contactInfo?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder contracts?: ContractOrderByRelationAggregateInput } export type SalesPlatformWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: SalesPlatformWhereInput | SalesPlatformWhereInput[] OR?: SalesPlatformWhereInput[] NOT?: SalesPlatformWhereInput | SalesPlatformWhereInput[] contactInfo?: StringNullableFilter<"SalesPlatform"> | string | null isActive?: BoolFilter<"SalesPlatform"> | boolean createdAt?: DateTimeFilter<"SalesPlatform"> | Date | string updatedAt?: DateTimeFilter<"SalesPlatform"> | Date | string contracts?: ContractListRelationFilter }, "id" | "name"> export type SalesPlatformOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder contactInfo?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: SalesPlatformCountOrderByAggregateInput _avg?: SalesPlatformAvgOrderByAggregateInput _max?: SalesPlatformMaxOrderByAggregateInput _min?: SalesPlatformMinOrderByAggregateInput _sum?: SalesPlatformSumOrderByAggregateInput } export type SalesPlatformScalarWhereWithAggregatesInput = { AND?: SalesPlatformScalarWhereWithAggregatesInput | SalesPlatformScalarWhereWithAggregatesInput[] OR?: SalesPlatformScalarWhereWithAggregatesInput[] NOT?: SalesPlatformScalarWhereWithAggregatesInput | SalesPlatformScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"SalesPlatform"> | number name?: StringWithAggregatesFilter<"SalesPlatform"> | string contactInfo?: StringNullableWithAggregatesFilter<"SalesPlatform"> | string | null isActive?: BoolWithAggregatesFilter<"SalesPlatform"> | boolean createdAt?: DateTimeWithAggregatesFilter<"SalesPlatform"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"SalesPlatform"> | Date | string } export type CancellationPeriodWhereInput = { AND?: CancellationPeriodWhereInput | CancellationPeriodWhereInput[] OR?: CancellationPeriodWhereInput[] NOT?: CancellationPeriodWhereInput | CancellationPeriodWhereInput[] id?: IntFilter<"CancellationPeriod"> | number code?: StringFilter<"CancellationPeriod"> | string description?: StringFilter<"CancellationPeriod"> | string isActive?: BoolFilter<"CancellationPeriod"> | boolean createdAt?: DateTimeFilter<"CancellationPeriod"> | Date | string updatedAt?: DateTimeFilter<"CancellationPeriod"> | Date | string contracts?: ContractListRelationFilter } export type CancellationPeriodOrderByWithRelationInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder contracts?: ContractOrderByRelationAggregateInput } export type CancellationPeriodWhereUniqueInput = Prisma.AtLeast<{ id?: number code?: string AND?: CancellationPeriodWhereInput | CancellationPeriodWhereInput[] OR?: CancellationPeriodWhereInput[] NOT?: CancellationPeriodWhereInput | CancellationPeriodWhereInput[] description?: StringFilter<"CancellationPeriod"> | string isActive?: BoolFilter<"CancellationPeriod"> | boolean createdAt?: DateTimeFilter<"CancellationPeriod"> | Date | string updatedAt?: DateTimeFilter<"CancellationPeriod"> | Date | string contracts?: ContractListRelationFilter }, "id" | "code"> export type CancellationPeriodOrderByWithAggregationInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CancellationPeriodCountOrderByAggregateInput _avg?: CancellationPeriodAvgOrderByAggregateInput _max?: CancellationPeriodMaxOrderByAggregateInput _min?: CancellationPeriodMinOrderByAggregateInput _sum?: CancellationPeriodSumOrderByAggregateInput } export type CancellationPeriodScalarWhereWithAggregatesInput = { AND?: CancellationPeriodScalarWhereWithAggregatesInput | CancellationPeriodScalarWhereWithAggregatesInput[] OR?: CancellationPeriodScalarWhereWithAggregatesInput[] NOT?: CancellationPeriodScalarWhereWithAggregatesInput | CancellationPeriodScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CancellationPeriod"> | number code?: StringWithAggregatesFilter<"CancellationPeriod"> | string description?: StringWithAggregatesFilter<"CancellationPeriod"> | string isActive?: BoolWithAggregatesFilter<"CancellationPeriod"> | boolean createdAt?: DateTimeWithAggregatesFilter<"CancellationPeriod"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"CancellationPeriod"> | Date | string } export type ContractDurationWhereInput = { AND?: ContractDurationWhereInput | ContractDurationWhereInput[] OR?: ContractDurationWhereInput[] NOT?: ContractDurationWhereInput | ContractDurationWhereInput[] id?: IntFilter<"ContractDuration"> | number code?: StringFilter<"ContractDuration"> | string description?: StringFilter<"ContractDuration"> | string isActive?: BoolFilter<"ContractDuration"> | boolean createdAt?: DateTimeFilter<"ContractDuration"> | Date | string updatedAt?: DateTimeFilter<"ContractDuration"> | Date | string contracts?: ContractListRelationFilter } export type ContractDurationOrderByWithRelationInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder contracts?: ContractOrderByRelationAggregateInput } export type ContractDurationWhereUniqueInput = Prisma.AtLeast<{ id?: number code?: string AND?: ContractDurationWhereInput | ContractDurationWhereInput[] OR?: ContractDurationWhereInput[] NOT?: ContractDurationWhereInput | ContractDurationWhereInput[] description?: StringFilter<"ContractDuration"> | string isActive?: BoolFilter<"ContractDuration"> | boolean createdAt?: DateTimeFilter<"ContractDuration"> | Date | string updatedAt?: DateTimeFilter<"ContractDuration"> | Date | string contracts?: ContractListRelationFilter }, "id" | "code"> export type ContractDurationOrderByWithAggregationInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ContractDurationCountOrderByAggregateInput _avg?: ContractDurationAvgOrderByAggregateInput _max?: ContractDurationMaxOrderByAggregateInput _min?: ContractDurationMinOrderByAggregateInput _sum?: ContractDurationSumOrderByAggregateInput } export type ContractDurationScalarWhereWithAggregatesInput = { AND?: ContractDurationScalarWhereWithAggregatesInput | ContractDurationScalarWhereWithAggregatesInput[] OR?: ContractDurationScalarWhereWithAggregatesInput[] NOT?: ContractDurationScalarWhereWithAggregatesInput | ContractDurationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ContractDuration"> | number code?: StringWithAggregatesFilter<"ContractDuration"> | string description?: StringWithAggregatesFilter<"ContractDuration"> | string isActive?: BoolWithAggregatesFilter<"ContractDuration"> | boolean createdAt?: DateTimeWithAggregatesFilter<"ContractDuration"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ContractDuration"> | Date | string } export type ProviderWhereInput = { AND?: ProviderWhereInput | ProviderWhereInput[] OR?: ProviderWhereInput[] NOT?: ProviderWhereInput | ProviderWhereInput[] id?: IntFilter<"Provider"> | number name?: StringFilter<"Provider"> | string portalUrl?: StringNullableFilter<"Provider"> | string | null usernameFieldName?: StringNullableFilter<"Provider"> | string | null passwordFieldName?: StringNullableFilter<"Provider"> | string | null isActive?: BoolFilter<"Provider"> | boolean createdAt?: DateTimeFilter<"Provider"> | Date | string updatedAt?: DateTimeFilter<"Provider"> | Date | string tariffs?: TariffListRelationFilter contracts?: ContractListRelationFilter } export type ProviderOrderByWithRelationInput = { id?: SortOrder name?: SortOrder portalUrl?: SortOrderInput | SortOrder usernameFieldName?: SortOrderInput | SortOrder passwordFieldName?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder tariffs?: TariffOrderByRelationAggregateInput contracts?: ContractOrderByRelationAggregateInput } export type ProviderWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: ProviderWhereInput | ProviderWhereInput[] OR?: ProviderWhereInput[] NOT?: ProviderWhereInput | ProviderWhereInput[] portalUrl?: StringNullableFilter<"Provider"> | string | null usernameFieldName?: StringNullableFilter<"Provider"> | string | null passwordFieldName?: StringNullableFilter<"Provider"> | string | null isActive?: BoolFilter<"Provider"> | boolean createdAt?: DateTimeFilter<"Provider"> | Date | string updatedAt?: DateTimeFilter<"Provider"> | Date | string tariffs?: TariffListRelationFilter contracts?: ContractListRelationFilter }, "id" | "name"> export type ProviderOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder portalUrl?: SortOrderInput | SortOrder usernameFieldName?: SortOrderInput | SortOrder passwordFieldName?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ProviderCountOrderByAggregateInput _avg?: ProviderAvgOrderByAggregateInput _max?: ProviderMaxOrderByAggregateInput _min?: ProviderMinOrderByAggregateInput _sum?: ProviderSumOrderByAggregateInput } export type ProviderScalarWhereWithAggregatesInput = { AND?: ProviderScalarWhereWithAggregatesInput | ProviderScalarWhereWithAggregatesInput[] OR?: ProviderScalarWhereWithAggregatesInput[] NOT?: ProviderScalarWhereWithAggregatesInput | ProviderScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Provider"> | number name?: StringWithAggregatesFilter<"Provider"> | string portalUrl?: StringNullableWithAggregatesFilter<"Provider"> | string | null usernameFieldName?: StringNullableWithAggregatesFilter<"Provider"> | string | null passwordFieldName?: StringNullableWithAggregatesFilter<"Provider"> | string | null isActive?: BoolWithAggregatesFilter<"Provider"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Provider"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Provider"> | Date | string } export type TariffWhereInput = { AND?: TariffWhereInput | TariffWhereInput[] OR?: TariffWhereInput[] NOT?: TariffWhereInput | TariffWhereInput[] id?: IntFilter<"Tariff"> | number providerId?: IntFilter<"Tariff"> | number name?: StringFilter<"Tariff"> | string isActive?: BoolFilter<"Tariff"> | boolean createdAt?: DateTimeFilter<"Tariff"> | Date | string updatedAt?: DateTimeFilter<"Tariff"> | Date | string provider?: XOR contracts?: ContractListRelationFilter } export type TariffOrderByWithRelationInput = { id?: SortOrder providerId?: SortOrder name?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder provider?: ProviderOrderByWithRelationInput contracts?: ContractOrderByRelationAggregateInput } export type TariffWhereUniqueInput = Prisma.AtLeast<{ id?: number providerId_name?: TariffProviderIdNameCompoundUniqueInput AND?: TariffWhereInput | TariffWhereInput[] OR?: TariffWhereInput[] NOT?: TariffWhereInput | TariffWhereInput[] providerId?: IntFilter<"Tariff"> | number name?: StringFilter<"Tariff"> | string isActive?: BoolFilter<"Tariff"> | boolean createdAt?: DateTimeFilter<"Tariff"> | Date | string updatedAt?: DateTimeFilter<"Tariff"> | Date | string provider?: XOR contracts?: ContractListRelationFilter }, "id" | "providerId_name"> export type TariffOrderByWithAggregationInput = { id?: SortOrder providerId?: SortOrder name?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: TariffCountOrderByAggregateInput _avg?: TariffAvgOrderByAggregateInput _max?: TariffMaxOrderByAggregateInput _min?: TariffMinOrderByAggregateInput _sum?: TariffSumOrderByAggregateInput } export type TariffScalarWhereWithAggregatesInput = { AND?: TariffScalarWhereWithAggregatesInput | TariffScalarWhereWithAggregatesInput[] OR?: TariffScalarWhereWithAggregatesInput[] NOT?: TariffScalarWhereWithAggregatesInput | TariffScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Tariff"> | number providerId?: IntWithAggregatesFilter<"Tariff"> | number name?: StringWithAggregatesFilter<"Tariff"> | string isActive?: BoolWithAggregatesFilter<"Tariff"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Tariff"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Tariff"> | Date | string } export type ContractCategoryWhereInput = { AND?: ContractCategoryWhereInput | ContractCategoryWhereInput[] OR?: ContractCategoryWhereInput[] NOT?: ContractCategoryWhereInput | ContractCategoryWhereInput[] id?: IntFilter<"ContractCategory"> | number code?: StringFilter<"ContractCategory"> | string name?: StringFilter<"ContractCategory"> | string icon?: StringNullableFilter<"ContractCategory"> | string | null color?: StringNullableFilter<"ContractCategory"> | string | null sortOrder?: IntFilter<"ContractCategory"> | number isActive?: BoolFilter<"ContractCategory"> | boolean createdAt?: DateTimeFilter<"ContractCategory"> | Date | string updatedAt?: DateTimeFilter<"ContractCategory"> | Date | string contracts?: ContractListRelationFilter } export type ContractCategoryOrderByWithRelationInput = { id?: SortOrder code?: SortOrder name?: SortOrder icon?: SortOrderInput | SortOrder color?: SortOrderInput | SortOrder sortOrder?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder contracts?: ContractOrderByRelationAggregateInput } export type ContractCategoryWhereUniqueInput = Prisma.AtLeast<{ id?: number code?: string AND?: ContractCategoryWhereInput | ContractCategoryWhereInput[] OR?: ContractCategoryWhereInput[] NOT?: ContractCategoryWhereInput | ContractCategoryWhereInput[] name?: StringFilter<"ContractCategory"> | string icon?: StringNullableFilter<"ContractCategory"> | string | null color?: StringNullableFilter<"ContractCategory"> | string | null sortOrder?: IntFilter<"ContractCategory"> | number isActive?: BoolFilter<"ContractCategory"> | boolean createdAt?: DateTimeFilter<"ContractCategory"> | Date | string updatedAt?: DateTimeFilter<"ContractCategory"> | Date | string contracts?: ContractListRelationFilter }, "id" | "code"> export type ContractCategoryOrderByWithAggregationInput = { id?: SortOrder code?: SortOrder name?: SortOrder icon?: SortOrderInput | SortOrder color?: SortOrderInput | SortOrder sortOrder?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ContractCategoryCountOrderByAggregateInput _avg?: ContractCategoryAvgOrderByAggregateInput _max?: ContractCategoryMaxOrderByAggregateInput _min?: ContractCategoryMinOrderByAggregateInput _sum?: ContractCategorySumOrderByAggregateInput } export type ContractCategoryScalarWhereWithAggregatesInput = { AND?: ContractCategoryScalarWhereWithAggregatesInput | ContractCategoryScalarWhereWithAggregatesInput[] OR?: ContractCategoryScalarWhereWithAggregatesInput[] NOT?: ContractCategoryScalarWhereWithAggregatesInput | ContractCategoryScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ContractCategory"> | number code?: StringWithAggregatesFilter<"ContractCategory"> | string name?: StringWithAggregatesFilter<"ContractCategory"> | string icon?: StringNullableWithAggregatesFilter<"ContractCategory"> | string | null color?: StringNullableWithAggregatesFilter<"ContractCategory"> | string | null sortOrder?: IntWithAggregatesFilter<"ContractCategory"> | number isActive?: BoolWithAggregatesFilter<"ContractCategory"> | boolean createdAt?: DateTimeWithAggregatesFilter<"ContractCategory"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ContractCategory"> | Date | string } export type ContractWhereInput = { AND?: ContractWhereInput | ContractWhereInput[] OR?: ContractWhereInput[] NOT?: ContractWhereInput | ContractWhereInput[] id?: IntFilter<"Contract"> | number contractNumber?: StringFilter<"Contract"> | string customerId?: IntFilter<"Contract"> | number type?: EnumContractTypeFilter<"Contract"> | $Enums.ContractType status?: EnumContractStatusFilter<"Contract"> | $Enums.ContractStatus contractCategoryId?: IntNullableFilter<"Contract"> | number | null addressId?: IntNullableFilter<"Contract"> | number | null billingAddressId?: IntNullableFilter<"Contract"> | number | null bankCardId?: IntNullableFilter<"Contract"> | number | null identityDocumentId?: IntNullableFilter<"Contract"> | number | null salesPlatformId?: IntNullableFilter<"Contract"> | number | null cancellationPeriodId?: IntNullableFilter<"Contract"> | number | null contractDurationId?: IntNullableFilter<"Contract"> | number | null previousContractId?: IntNullableFilter<"Contract"> | number | null providerId?: IntNullableFilter<"Contract"> | number | null tariffId?: IntNullableFilter<"Contract"> | number | null providerName?: StringNullableFilter<"Contract"> | string | null tariffName?: StringNullableFilter<"Contract"> | string | null customerNumberAtProvider?: StringNullableFilter<"Contract"> | string | null priceFirst12Months?: StringNullableFilter<"Contract"> | string | null priceFrom13Months?: StringNullableFilter<"Contract"> | string | null priceAfter24Months?: StringNullableFilter<"Contract"> | string | null startDate?: DateTimeNullableFilter<"Contract"> | Date | string | null endDate?: DateTimeNullableFilter<"Contract"> | Date | string | null commission?: FloatNullableFilter<"Contract"> | number | null cancellationLetterPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationPath?: StringNullableFilter<"Contract"> | string | null cancellationLetterOptionsPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationOptionsPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationDate?: DateTimeNullableFilter<"Contract"> | Date | string | null cancellationConfirmationOptionsDate?: DateTimeNullableFilter<"Contract"> | Date | string | null wasSpecialCancellation?: BoolFilter<"Contract"> | boolean portalUsername?: StringNullableFilter<"Contract"> | string | null portalPasswordEncrypted?: StringNullableFilter<"Contract"> | string | null stressfreiEmailId?: IntNullableFilter<"Contract"> | number | null notes?: StringNullableFilter<"Contract"> | string | null createdAt?: DateTimeFilter<"Contract"> | Date | string updatedAt?: DateTimeFilter<"Contract"> | Date | string customer?: XOR contractCategory?: XOR | null address?: XOR | null billingAddress?: XOR | null bankCard?: XOR | null identityDocument?: XOR | null salesPlatform?: XOR | null cancellationPeriod?: XOR | null contractDuration?: XOR | null previousContract?: XOR | null followUpContract?: XOR | null provider?: XOR | null tariff?: XOR | null stressfreiEmail?: XOR | null energyDetails?: XOR | null internetDetails?: XOR | null mobileDetails?: XOR | null tvDetails?: XOR | null carInsuranceDetails?: XOR | null tasks?: ContractTaskListRelationFilter assignedEmails?: CachedEmailListRelationFilter } export type ContractOrderByWithRelationInput = { id?: SortOrder contractNumber?: SortOrder customerId?: SortOrder type?: SortOrder status?: SortOrder contractCategoryId?: SortOrderInput | SortOrder addressId?: SortOrderInput | SortOrder billingAddressId?: SortOrderInput | SortOrder bankCardId?: SortOrderInput | SortOrder identityDocumentId?: SortOrderInput | SortOrder salesPlatformId?: SortOrderInput | SortOrder cancellationPeriodId?: SortOrderInput | SortOrder contractDurationId?: SortOrderInput | SortOrder previousContractId?: SortOrderInput | SortOrder providerId?: SortOrderInput | SortOrder tariffId?: SortOrderInput | SortOrder providerName?: SortOrderInput | SortOrder tariffName?: SortOrderInput | SortOrder customerNumberAtProvider?: SortOrderInput | SortOrder priceFirst12Months?: SortOrderInput | SortOrder priceFrom13Months?: SortOrderInput | SortOrder priceAfter24Months?: SortOrderInput | SortOrder startDate?: SortOrderInput | SortOrder endDate?: SortOrderInput | SortOrder commission?: SortOrderInput | SortOrder cancellationLetterPath?: SortOrderInput | SortOrder cancellationConfirmationPath?: SortOrderInput | SortOrder cancellationLetterOptionsPath?: SortOrderInput | SortOrder cancellationConfirmationOptionsPath?: SortOrderInput | SortOrder cancellationConfirmationDate?: SortOrderInput | SortOrder cancellationConfirmationOptionsDate?: SortOrderInput | SortOrder wasSpecialCancellation?: SortOrder portalUsername?: SortOrderInput | SortOrder portalPasswordEncrypted?: SortOrderInput | SortOrder stressfreiEmailId?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder customer?: CustomerOrderByWithRelationInput contractCategory?: ContractCategoryOrderByWithRelationInput address?: AddressOrderByWithRelationInput billingAddress?: AddressOrderByWithRelationInput bankCard?: BankCardOrderByWithRelationInput identityDocument?: IdentityDocumentOrderByWithRelationInput salesPlatform?: SalesPlatformOrderByWithRelationInput cancellationPeriod?: CancellationPeriodOrderByWithRelationInput contractDuration?: ContractDurationOrderByWithRelationInput previousContract?: ContractOrderByWithRelationInput followUpContract?: ContractOrderByWithRelationInput provider?: ProviderOrderByWithRelationInput tariff?: TariffOrderByWithRelationInput stressfreiEmail?: StressfreiEmailOrderByWithRelationInput energyDetails?: EnergyContractDetailsOrderByWithRelationInput internetDetails?: InternetContractDetailsOrderByWithRelationInput mobileDetails?: MobileContractDetailsOrderByWithRelationInput tvDetails?: TvContractDetailsOrderByWithRelationInput carInsuranceDetails?: CarInsuranceDetailsOrderByWithRelationInput tasks?: ContractTaskOrderByRelationAggregateInput assignedEmails?: CachedEmailOrderByRelationAggregateInput } export type ContractWhereUniqueInput = Prisma.AtLeast<{ id?: number contractNumber?: string previousContractId?: number AND?: ContractWhereInput | ContractWhereInput[] OR?: ContractWhereInput[] NOT?: ContractWhereInput | ContractWhereInput[] customerId?: IntFilter<"Contract"> | number type?: EnumContractTypeFilter<"Contract"> | $Enums.ContractType status?: EnumContractStatusFilter<"Contract"> | $Enums.ContractStatus contractCategoryId?: IntNullableFilter<"Contract"> | number | null addressId?: IntNullableFilter<"Contract"> | number | null billingAddressId?: IntNullableFilter<"Contract"> | number | null bankCardId?: IntNullableFilter<"Contract"> | number | null identityDocumentId?: IntNullableFilter<"Contract"> | number | null salesPlatformId?: IntNullableFilter<"Contract"> | number | null cancellationPeriodId?: IntNullableFilter<"Contract"> | number | null contractDurationId?: IntNullableFilter<"Contract"> | number | null providerId?: IntNullableFilter<"Contract"> | number | null tariffId?: IntNullableFilter<"Contract"> | number | null providerName?: StringNullableFilter<"Contract"> | string | null tariffName?: StringNullableFilter<"Contract"> | string | null customerNumberAtProvider?: StringNullableFilter<"Contract"> | string | null priceFirst12Months?: StringNullableFilter<"Contract"> | string | null priceFrom13Months?: StringNullableFilter<"Contract"> | string | null priceAfter24Months?: StringNullableFilter<"Contract"> | string | null startDate?: DateTimeNullableFilter<"Contract"> | Date | string | null endDate?: DateTimeNullableFilter<"Contract"> | Date | string | null commission?: FloatNullableFilter<"Contract"> | number | null cancellationLetterPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationPath?: StringNullableFilter<"Contract"> | string | null cancellationLetterOptionsPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationOptionsPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationDate?: DateTimeNullableFilter<"Contract"> | Date | string | null cancellationConfirmationOptionsDate?: DateTimeNullableFilter<"Contract"> | Date | string | null wasSpecialCancellation?: BoolFilter<"Contract"> | boolean portalUsername?: StringNullableFilter<"Contract"> | string | null portalPasswordEncrypted?: StringNullableFilter<"Contract"> | string | null stressfreiEmailId?: IntNullableFilter<"Contract"> | number | null notes?: StringNullableFilter<"Contract"> | string | null createdAt?: DateTimeFilter<"Contract"> | Date | string updatedAt?: DateTimeFilter<"Contract"> | Date | string customer?: XOR contractCategory?: XOR | null address?: XOR | null billingAddress?: XOR | null bankCard?: XOR | null identityDocument?: XOR | null salesPlatform?: XOR | null cancellationPeriod?: XOR | null contractDuration?: XOR | null previousContract?: XOR | null followUpContract?: XOR | null provider?: XOR | null tariff?: XOR | null stressfreiEmail?: XOR | null energyDetails?: XOR | null internetDetails?: XOR | null mobileDetails?: XOR | null tvDetails?: XOR | null carInsuranceDetails?: XOR | null tasks?: ContractTaskListRelationFilter assignedEmails?: CachedEmailListRelationFilter }, "id" | "contractNumber" | "previousContractId"> export type ContractOrderByWithAggregationInput = { id?: SortOrder contractNumber?: SortOrder customerId?: SortOrder type?: SortOrder status?: SortOrder contractCategoryId?: SortOrderInput | SortOrder addressId?: SortOrderInput | SortOrder billingAddressId?: SortOrderInput | SortOrder bankCardId?: SortOrderInput | SortOrder identityDocumentId?: SortOrderInput | SortOrder salesPlatformId?: SortOrderInput | SortOrder cancellationPeriodId?: SortOrderInput | SortOrder contractDurationId?: SortOrderInput | SortOrder previousContractId?: SortOrderInput | SortOrder providerId?: SortOrderInput | SortOrder tariffId?: SortOrderInput | SortOrder providerName?: SortOrderInput | SortOrder tariffName?: SortOrderInput | SortOrder customerNumberAtProvider?: SortOrderInput | SortOrder priceFirst12Months?: SortOrderInput | SortOrder priceFrom13Months?: SortOrderInput | SortOrder priceAfter24Months?: SortOrderInput | SortOrder startDate?: SortOrderInput | SortOrder endDate?: SortOrderInput | SortOrder commission?: SortOrderInput | SortOrder cancellationLetterPath?: SortOrderInput | SortOrder cancellationConfirmationPath?: SortOrderInput | SortOrder cancellationLetterOptionsPath?: SortOrderInput | SortOrder cancellationConfirmationOptionsPath?: SortOrderInput | SortOrder cancellationConfirmationDate?: SortOrderInput | SortOrder cancellationConfirmationOptionsDate?: SortOrderInput | SortOrder wasSpecialCancellation?: SortOrder portalUsername?: SortOrderInput | SortOrder portalPasswordEncrypted?: SortOrderInput | SortOrder stressfreiEmailId?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ContractCountOrderByAggregateInput _avg?: ContractAvgOrderByAggregateInput _max?: ContractMaxOrderByAggregateInput _min?: ContractMinOrderByAggregateInput _sum?: ContractSumOrderByAggregateInput } export type ContractScalarWhereWithAggregatesInput = { AND?: ContractScalarWhereWithAggregatesInput | ContractScalarWhereWithAggregatesInput[] OR?: ContractScalarWhereWithAggregatesInput[] NOT?: ContractScalarWhereWithAggregatesInput | ContractScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Contract"> | number contractNumber?: StringWithAggregatesFilter<"Contract"> | string customerId?: IntWithAggregatesFilter<"Contract"> | number type?: EnumContractTypeWithAggregatesFilter<"Contract"> | $Enums.ContractType status?: EnumContractStatusWithAggregatesFilter<"Contract"> | $Enums.ContractStatus contractCategoryId?: IntNullableWithAggregatesFilter<"Contract"> | number | null addressId?: IntNullableWithAggregatesFilter<"Contract"> | number | null billingAddressId?: IntNullableWithAggregatesFilter<"Contract"> | number | null bankCardId?: IntNullableWithAggregatesFilter<"Contract"> | number | null identityDocumentId?: IntNullableWithAggregatesFilter<"Contract"> | number | null salesPlatformId?: IntNullableWithAggregatesFilter<"Contract"> | number | null cancellationPeriodId?: IntNullableWithAggregatesFilter<"Contract"> | number | null contractDurationId?: IntNullableWithAggregatesFilter<"Contract"> | number | null previousContractId?: IntNullableWithAggregatesFilter<"Contract"> | number | null providerId?: IntNullableWithAggregatesFilter<"Contract"> | number | null tariffId?: IntNullableWithAggregatesFilter<"Contract"> | number | null providerName?: StringNullableWithAggregatesFilter<"Contract"> | string | null tariffName?: StringNullableWithAggregatesFilter<"Contract"> | string | null customerNumberAtProvider?: StringNullableWithAggregatesFilter<"Contract"> | string | null priceFirst12Months?: StringNullableWithAggregatesFilter<"Contract"> | string | null priceFrom13Months?: StringNullableWithAggregatesFilter<"Contract"> | string | null priceAfter24Months?: StringNullableWithAggregatesFilter<"Contract"> | string | null startDate?: DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null endDate?: DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null commission?: FloatNullableWithAggregatesFilter<"Contract"> | number | null cancellationLetterPath?: StringNullableWithAggregatesFilter<"Contract"> | string | null cancellationConfirmationPath?: StringNullableWithAggregatesFilter<"Contract"> | string | null cancellationLetterOptionsPath?: StringNullableWithAggregatesFilter<"Contract"> | string | null cancellationConfirmationOptionsPath?: StringNullableWithAggregatesFilter<"Contract"> | string | null cancellationConfirmationDate?: DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null cancellationConfirmationOptionsDate?: DateTimeNullableWithAggregatesFilter<"Contract"> | Date | string | null wasSpecialCancellation?: BoolWithAggregatesFilter<"Contract"> | boolean portalUsername?: StringNullableWithAggregatesFilter<"Contract"> | string | null portalPasswordEncrypted?: StringNullableWithAggregatesFilter<"Contract"> | string | null stressfreiEmailId?: IntNullableWithAggregatesFilter<"Contract"> | number | null notes?: StringNullableWithAggregatesFilter<"Contract"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Contract"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Contract"> | Date | string } export type ContractTaskWhereInput = { AND?: ContractTaskWhereInput | ContractTaskWhereInput[] OR?: ContractTaskWhereInput[] NOT?: ContractTaskWhereInput | ContractTaskWhereInput[] id?: IntFilter<"ContractTask"> | number contractId?: IntFilter<"ContractTask"> | number title?: StringFilter<"ContractTask"> | string description?: StringNullableFilter<"ContractTask"> | string | null status?: EnumContractTaskStatusFilter<"ContractTask"> | $Enums.ContractTaskStatus visibleInPortal?: BoolFilter<"ContractTask"> | boolean createdBy?: StringNullableFilter<"ContractTask"> | string | null completedAt?: DateTimeNullableFilter<"ContractTask"> | Date | string | null createdAt?: DateTimeFilter<"ContractTask"> | Date | string updatedAt?: DateTimeFilter<"ContractTask"> | Date | string contract?: XOR subtasks?: ContractTaskSubtaskListRelationFilter } export type ContractTaskOrderByWithRelationInput = { id?: SortOrder contractId?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder status?: SortOrder visibleInPortal?: SortOrder createdBy?: SortOrderInput | SortOrder completedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder contract?: ContractOrderByWithRelationInput subtasks?: ContractTaskSubtaskOrderByRelationAggregateInput } export type ContractTaskWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ContractTaskWhereInput | ContractTaskWhereInput[] OR?: ContractTaskWhereInput[] NOT?: ContractTaskWhereInput | ContractTaskWhereInput[] contractId?: IntFilter<"ContractTask"> | number title?: StringFilter<"ContractTask"> | string description?: StringNullableFilter<"ContractTask"> | string | null status?: EnumContractTaskStatusFilter<"ContractTask"> | $Enums.ContractTaskStatus visibleInPortal?: BoolFilter<"ContractTask"> | boolean createdBy?: StringNullableFilter<"ContractTask"> | string | null completedAt?: DateTimeNullableFilter<"ContractTask"> | Date | string | null createdAt?: DateTimeFilter<"ContractTask"> | Date | string updatedAt?: DateTimeFilter<"ContractTask"> | Date | string contract?: XOR subtasks?: ContractTaskSubtaskListRelationFilter }, "id"> export type ContractTaskOrderByWithAggregationInput = { id?: SortOrder contractId?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder status?: SortOrder visibleInPortal?: SortOrder createdBy?: SortOrderInput | SortOrder completedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ContractTaskCountOrderByAggregateInput _avg?: ContractTaskAvgOrderByAggregateInput _max?: ContractTaskMaxOrderByAggregateInput _min?: ContractTaskMinOrderByAggregateInput _sum?: ContractTaskSumOrderByAggregateInput } export type ContractTaskScalarWhereWithAggregatesInput = { AND?: ContractTaskScalarWhereWithAggregatesInput | ContractTaskScalarWhereWithAggregatesInput[] OR?: ContractTaskScalarWhereWithAggregatesInput[] NOT?: ContractTaskScalarWhereWithAggregatesInput | ContractTaskScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ContractTask"> | number contractId?: IntWithAggregatesFilter<"ContractTask"> | number title?: StringWithAggregatesFilter<"ContractTask"> | string description?: StringNullableWithAggregatesFilter<"ContractTask"> | string | null status?: EnumContractTaskStatusWithAggregatesFilter<"ContractTask"> | $Enums.ContractTaskStatus visibleInPortal?: BoolWithAggregatesFilter<"ContractTask"> | boolean createdBy?: StringNullableWithAggregatesFilter<"ContractTask"> | string | null completedAt?: DateTimeNullableWithAggregatesFilter<"ContractTask"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"ContractTask"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ContractTask"> | Date | string } export type ContractTaskSubtaskWhereInput = { AND?: ContractTaskSubtaskWhereInput | ContractTaskSubtaskWhereInput[] OR?: ContractTaskSubtaskWhereInput[] NOT?: ContractTaskSubtaskWhereInput | ContractTaskSubtaskWhereInput[] id?: IntFilter<"ContractTaskSubtask"> | number taskId?: IntFilter<"ContractTaskSubtask"> | number title?: StringFilter<"ContractTaskSubtask"> | string status?: EnumContractTaskStatusFilter<"ContractTaskSubtask"> | $Enums.ContractTaskStatus createdBy?: StringNullableFilter<"ContractTaskSubtask"> | string | null completedAt?: DateTimeNullableFilter<"ContractTaskSubtask"> | Date | string | null createdAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string updatedAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string task?: XOR } export type ContractTaskSubtaskOrderByWithRelationInput = { id?: SortOrder taskId?: SortOrder title?: SortOrder status?: SortOrder createdBy?: SortOrderInput | SortOrder completedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder task?: ContractTaskOrderByWithRelationInput } export type ContractTaskSubtaskWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ContractTaskSubtaskWhereInput | ContractTaskSubtaskWhereInput[] OR?: ContractTaskSubtaskWhereInput[] NOT?: ContractTaskSubtaskWhereInput | ContractTaskSubtaskWhereInput[] taskId?: IntFilter<"ContractTaskSubtask"> | number title?: StringFilter<"ContractTaskSubtask"> | string status?: EnumContractTaskStatusFilter<"ContractTaskSubtask"> | $Enums.ContractTaskStatus createdBy?: StringNullableFilter<"ContractTaskSubtask"> | string | null completedAt?: DateTimeNullableFilter<"ContractTaskSubtask"> | Date | string | null createdAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string updatedAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string task?: XOR }, "id"> export type ContractTaskSubtaskOrderByWithAggregationInput = { id?: SortOrder taskId?: SortOrder title?: SortOrder status?: SortOrder createdBy?: SortOrderInput | SortOrder completedAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ContractTaskSubtaskCountOrderByAggregateInput _avg?: ContractTaskSubtaskAvgOrderByAggregateInput _max?: ContractTaskSubtaskMaxOrderByAggregateInput _min?: ContractTaskSubtaskMinOrderByAggregateInput _sum?: ContractTaskSubtaskSumOrderByAggregateInput } export type ContractTaskSubtaskScalarWhereWithAggregatesInput = { AND?: ContractTaskSubtaskScalarWhereWithAggregatesInput | ContractTaskSubtaskScalarWhereWithAggregatesInput[] OR?: ContractTaskSubtaskScalarWhereWithAggregatesInput[] NOT?: ContractTaskSubtaskScalarWhereWithAggregatesInput | ContractTaskSubtaskScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ContractTaskSubtask"> | number taskId?: IntWithAggregatesFilter<"ContractTaskSubtask"> | number title?: StringWithAggregatesFilter<"ContractTaskSubtask"> | string status?: EnumContractTaskStatusWithAggregatesFilter<"ContractTaskSubtask"> | $Enums.ContractTaskStatus createdBy?: StringNullableWithAggregatesFilter<"ContractTaskSubtask"> | string | null completedAt?: DateTimeNullableWithAggregatesFilter<"ContractTaskSubtask"> | Date | string | null createdAt?: DateTimeWithAggregatesFilter<"ContractTaskSubtask"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ContractTaskSubtask"> | Date | string } export type EnergyContractDetailsWhereInput = { AND?: EnergyContractDetailsWhereInput | EnergyContractDetailsWhereInput[] OR?: EnergyContractDetailsWhereInput[] NOT?: EnergyContractDetailsWhereInput | EnergyContractDetailsWhereInput[] id?: IntFilter<"EnergyContractDetails"> | number contractId?: IntFilter<"EnergyContractDetails"> | number meterId?: IntNullableFilter<"EnergyContractDetails"> | number | null maloId?: StringNullableFilter<"EnergyContractDetails"> | string | null annualConsumption?: FloatNullableFilter<"EnergyContractDetails"> | number | null annualConsumptionKwh?: FloatNullableFilter<"EnergyContractDetails"> | number | null basePrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null unitPrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null bonus?: FloatNullableFilter<"EnergyContractDetails"> | number | null previousProviderName?: StringNullableFilter<"EnergyContractDetails"> | string | null previousCustomerNumber?: StringNullableFilter<"EnergyContractDetails"> | string | null contract?: XOR meter?: XOR | null invoices?: InvoiceListRelationFilter } export type EnergyContractDetailsOrderByWithRelationInput = { id?: SortOrder contractId?: SortOrder meterId?: SortOrderInput | SortOrder maloId?: SortOrderInput | SortOrder annualConsumption?: SortOrderInput | SortOrder annualConsumptionKwh?: SortOrderInput | SortOrder basePrice?: SortOrderInput | SortOrder unitPrice?: SortOrderInput | SortOrder bonus?: SortOrderInput | SortOrder previousProviderName?: SortOrderInput | SortOrder previousCustomerNumber?: SortOrderInput | SortOrder contract?: ContractOrderByWithRelationInput meter?: MeterOrderByWithRelationInput invoices?: InvoiceOrderByRelationAggregateInput } export type EnergyContractDetailsWhereUniqueInput = Prisma.AtLeast<{ id?: number contractId?: number AND?: EnergyContractDetailsWhereInput | EnergyContractDetailsWhereInput[] OR?: EnergyContractDetailsWhereInput[] NOT?: EnergyContractDetailsWhereInput | EnergyContractDetailsWhereInput[] meterId?: IntNullableFilter<"EnergyContractDetails"> | number | null maloId?: StringNullableFilter<"EnergyContractDetails"> | string | null annualConsumption?: FloatNullableFilter<"EnergyContractDetails"> | number | null annualConsumptionKwh?: FloatNullableFilter<"EnergyContractDetails"> | number | null basePrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null unitPrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null bonus?: FloatNullableFilter<"EnergyContractDetails"> | number | null previousProviderName?: StringNullableFilter<"EnergyContractDetails"> | string | null previousCustomerNumber?: StringNullableFilter<"EnergyContractDetails"> | string | null contract?: XOR meter?: XOR | null invoices?: InvoiceListRelationFilter }, "id" | "contractId"> export type EnergyContractDetailsOrderByWithAggregationInput = { id?: SortOrder contractId?: SortOrder meterId?: SortOrderInput | SortOrder maloId?: SortOrderInput | SortOrder annualConsumption?: SortOrderInput | SortOrder annualConsumptionKwh?: SortOrderInput | SortOrder basePrice?: SortOrderInput | SortOrder unitPrice?: SortOrderInput | SortOrder bonus?: SortOrderInput | SortOrder previousProviderName?: SortOrderInput | SortOrder previousCustomerNumber?: SortOrderInput | SortOrder _count?: EnergyContractDetailsCountOrderByAggregateInput _avg?: EnergyContractDetailsAvgOrderByAggregateInput _max?: EnergyContractDetailsMaxOrderByAggregateInput _min?: EnergyContractDetailsMinOrderByAggregateInput _sum?: EnergyContractDetailsSumOrderByAggregateInput } export type EnergyContractDetailsScalarWhereWithAggregatesInput = { AND?: EnergyContractDetailsScalarWhereWithAggregatesInput | EnergyContractDetailsScalarWhereWithAggregatesInput[] OR?: EnergyContractDetailsScalarWhereWithAggregatesInput[] NOT?: EnergyContractDetailsScalarWhereWithAggregatesInput | EnergyContractDetailsScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"EnergyContractDetails"> | number contractId?: IntWithAggregatesFilter<"EnergyContractDetails"> | number meterId?: IntNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null maloId?: StringNullableWithAggregatesFilter<"EnergyContractDetails"> | string | null annualConsumption?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null annualConsumptionKwh?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null basePrice?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null unitPrice?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null bonus?: FloatNullableWithAggregatesFilter<"EnergyContractDetails"> | number | null previousProviderName?: StringNullableWithAggregatesFilter<"EnergyContractDetails"> | string | null previousCustomerNumber?: StringNullableWithAggregatesFilter<"EnergyContractDetails"> | string | null } export type InvoiceWhereInput = { AND?: InvoiceWhereInput | InvoiceWhereInput[] OR?: InvoiceWhereInput[] NOT?: InvoiceWhereInput | InvoiceWhereInput[] id?: IntFilter<"Invoice"> | number energyContractDetailsId?: IntFilter<"Invoice"> | number invoiceDate?: DateTimeFilter<"Invoice"> | Date | string invoiceType?: EnumInvoiceTypeFilter<"Invoice"> | $Enums.InvoiceType documentPath?: StringNullableFilter<"Invoice"> | string | null notes?: StringNullableFilter<"Invoice"> | string | null createdAt?: DateTimeFilter<"Invoice"> | Date | string updatedAt?: DateTimeFilter<"Invoice"> | Date | string energyContractDetails?: XOR } export type InvoiceOrderByWithRelationInput = { id?: SortOrder energyContractDetailsId?: SortOrder invoiceDate?: SortOrder invoiceType?: SortOrder documentPath?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder energyContractDetails?: EnergyContractDetailsOrderByWithRelationInput } export type InvoiceWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: InvoiceWhereInput | InvoiceWhereInput[] OR?: InvoiceWhereInput[] NOT?: InvoiceWhereInput | InvoiceWhereInput[] energyContractDetailsId?: IntFilter<"Invoice"> | number invoiceDate?: DateTimeFilter<"Invoice"> | Date | string invoiceType?: EnumInvoiceTypeFilter<"Invoice"> | $Enums.InvoiceType documentPath?: StringNullableFilter<"Invoice"> | string | null notes?: StringNullableFilter<"Invoice"> | string | null createdAt?: DateTimeFilter<"Invoice"> | Date | string updatedAt?: DateTimeFilter<"Invoice"> | Date | string energyContractDetails?: XOR }, "id"> export type InvoiceOrderByWithAggregationInput = { id?: SortOrder energyContractDetailsId?: SortOrder invoiceDate?: SortOrder invoiceType?: SortOrder documentPath?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: InvoiceCountOrderByAggregateInput _avg?: InvoiceAvgOrderByAggregateInput _max?: InvoiceMaxOrderByAggregateInput _min?: InvoiceMinOrderByAggregateInput _sum?: InvoiceSumOrderByAggregateInput } export type InvoiceScalarWhereWithAggregatesInput = { AND?: InvoiceScalarWhereWithAggregatesInput | InvoiceScalarWhereWithAggregatesInput[] OR?: InvoiceScalarWhereWithAggregatesInput[] NOT?: InvoiceScalarWhereWithAggregatesInput | InvoiceScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Invoice"> | number energyContractDetailsId?: IntWithAggregatesFilter<"Invoice"> | number invoiceDate?: DateTimeWithAggregatesFilter<"Invoice"> | Date | string invoiceType?: EnumInvoiceTypeWithAggregatesFilter<"Invoice"> | $Enums.InvoiceType documentPath?: StringNullableWithAggregatesFilter<"Invoice"> | string | null notes?: StringNullableWithAggregatesFilter<"Invoice"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Invoice"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Invoice"> | Date | string } export type InternetContractDetailsWhereInput = { AND?: InternetContractDetailsWhereInput | InternetContractDetailsWhereInput[] OR?: InternetContractDetailsWhereInput[] NOT?: InternetContractDetailsWhereInput | InternetContractDetailsWhereInput[] id?: IntFilter<"InternetContractDetails"> | number contractId?: IntFilter<"InternetContractDetails"> | number downloadSpeed?: IntNullableFilter<"InternetContractDetails"> | number | null uploadSpeed?: IntNullableFilter<"InternetContractDetails"> | number | null routerModel?: StringNullableFilter<"InternetContractDetails"> | string | null routerSerialNumber?: StringNullableFilter<"InternetContractDetails"> | string | null installationDate?: DateTimeNullableFilter<"InternetContractDetails"> | Date | string | null internetUsername?: StringNullableFilter<"InternetContractDetails"> | string | null internetPasswordEncrypted?: StringNullableFilter<"InternetContractDetails"> | string | null homeId?: StringNullableFilter<"InternetContractDetails"> | string | null activationCode?: StringNullableFilter<"InternetContractDetails"> | string | null contract?: XOR phoneNumbers?: PhoneNumberListRelationFilter } export type InternetContractDetailsOrderByWithRelationInput = { id?: SortOrder contractId?: SortOrder downloadSpeed?: SortOrderInput | SortOrder uploadSpeed?: SortOrderInput | SortOrder routerModel?: SortOrderInput | SortOrder routerSerialNumber?: SortOrderInput | SortOrder installationDate?: SortOrderInput | SortOrder internetUsername?: SortOrderInput | SortOrder internetPasswordEncrypted?: SortOrderInput | SortOrder homeId?: SortOrderInput | SortOrder activationCode?: SortOrderInput | SortOrder contract?: ContractOrderByWithRelationInput phoneNumbers?: PhoneNumberOrderByRelationAggregateInput } export type InternetContractDetailsWhereUniqueInput = Prisma.AtLeast<{ id?: number contractId?: number AND?: InternetContractDetailsWhereInput | InternetContractDetailsWhereInput[] OR?: InternetContractDetailsWhereInput[] NOT?: InternetContractDetailsWhereInput | InternetContractDetailsWhereInput[] downloadSpeed?: IntNullableFilter<"InternetContractDetails"> | number | null uploadSpeed?: IntNullableFilter<"InternetContractDetails"> | number | null routerModel?: StringNullableFilter<"InternetContractDetails"> | string | null routerSerialNumber?: StringNullableFilter<"InternetContractDetails"> | string | null installationDate?: DateTimeNullableFilter<"InternetContractDetails"> | Date | string | null internetUsername?: StringNullableFilter<"InternetContractDetails"> | string | null internetPasswordEncrypted?: StringNullableFilter<"InternetContractDetails"> | string | null homeId?: StringNullableFilter<"InternetContractDetails"> | string | null activationCode?: StringNullableFilter<"InternetContractDetails"> | string | null contract?: XOR phoneNumbers?: PhoneNumberListRelationFilter }, "id" | "contractId"> export type InternetContractDetailsOrderByWithAggregationInput = { id?: SortOrder contractId?: SortOrder downloadSpeed?: SortOrderInput | SortOrder uploadSpeed?: SortOrderInput | SortOrder routerModel?: SortOrderInput | SortOrder routerSerialNumber?: SortOrderInput | SortOrder installationDate?: SortOrderInput | SortOrder internetUsername?: SortOrderInput | SortOrder internetPasswordEncrypted?: SortOrderInput | SortOrder homeId?: SortOrderInput | SortOrder activationCode?: SortOrderInput | SortOrder _count?: InternetContractDetailsCountOrderByAggregateInput _avg?: InternetContractDetailsAvgOrderByAggregateInput _max?: InternetContractDetailsMaxOrderByAggregateInput _min?: InternetContractDetailsMinOrderByAggregateInput _sum?: InternetContractDetailsSumOrderByAggregateInput } export type InternetContractDetailsScalarWhereWithAggregatesInput = { AND?: InternetContractDetailsScalarWhereWithAggregatesInput | InternetContractDetailsScalarWhereWithAggregatesInput[] OR?: InternetContractDetailsScalarWhereWithAggregatesInput[] NOT?: InternetContractDetailsScalarWhereWithAggregatesInput | InternetContractDetailsScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"InternetContractDetails"> | number contractId?: IntWithAggregatesFilter<"InternetContractDetails"> | number downloadSpeed?: IntNullableWithAggregatesFilter<"InternetContractDetails"> | number | null uploadSpeed?: IntNullableWithAggregatesFilter<"InternetContractDetails"> | number | null routerModel?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null routerSerialNumber?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null installationDate?: DateTimeNullableWithAggregatesFilter<"InternetContractDetails"> | Date | string | null internetUsername?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null internetPasswordEncrypted?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null homeId?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null activationCode?: StringNullableWithAggregatesFilter<"InternetContractDetails"> | string | null } export type PhoneNumberWhereInput = { AND?: PhoneNumberWhereInput | PhoneNumberWhereInput[] OR?: PhoneNumberWhereInput[] NOT?: PhoneNumberWhereInput | PhoneNumberWhereInput[] id?: IntFilter<"PhoneNumber"> | number internetContractDetailsId?: IntFilter<"PhoneNumber"> | number phoneNumber?: StringFilter<"PhoneNumber"> | string isMain?: BoolFilter<"PhoneNumber"> | boolean sipUsername?: StringNullableFilter<"PhoneNumber"> | string | null sipPasswordEncrypted?: StringNullableFilter<"PhoneNumber"> | string | null sipServer?: StringNullableFilter<"PhoneNumber"> | string | null internetDetails?: XOR } export type PhoneNumberOrderByWithRelationInput = { id?: SortOrder internetContractDetailsId?: SortOrder phoneNumber?: SortOrder isMain?: SortOrder sipUsername?: SortOrderInput | SortOrder sipPasswordEncrypted?: SortOrderInput | SortOrder sipServer?: SortOrderInput | SortOrder internetDetails?: InternetContractDetailsOrderByWithRelationInput } export type PhoneNumberWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PhoneNumberWhereInput | PhoneNumberWhereInput[] OR?: PhoneNumberWhereInput[] NOT?: PhoneNumberWhereInput | PhoneNumberWhereInput[] internetContractDetailsId?: IntFilter<"PhoneNumber"> | number phoneNumber?: StringFilter<"PhoneNumber"> | string isMain?: BoolFilter<"PhoneNumber"> | boolean sipUsername?: StringNullableFilter<"PhoneNumber"> | string | null sipPasswordEncrypted?: StringNullableFilter<"PhoneNumber"> | string | null sipServer?: StringNullableFilter<"PhoneNumber"> | string | null internetDetails?: XOR }, "id"> export type PhoneNumberOrderByWithAggregationInput = { id?: SortOrder internetContractDetailsId?: SortOrder phoneNumber?: SortOrder isMain?: SortOrder sipUsername?: SortOrderInput | SortOrder sipPasswordEncrypted?: SortOrderInput | SortOrder sipServer?: SortOrderInput | SortOrder _count?: PhoneNumberCountOrderByAggregateInput _avg?: PhoneNumberAvgOrderByAggregateInput _max?: PhoneNumberMaxOrderByAggregateInput _min?: PhoneNumberMinOrderByAggregateInput _sum?: PhoneNumberSumOrderByAggregateInput } export type PhoneNumberScalarWhereWithAggregatesInput = { AND?: PhoneNumberScalarWhereWithAggregatesInput | PhoneNumberScalarWhereWithAggregatesInput[] OR?: PhoneNumberScalarWhereWithAggregatesInput[] NOT?: PhoneNumberScalarWhereWithAggregatesInput | PhoneNumberScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"PhoneNumber"> | number internetContractDetailsId?: IntWithAggregatesFilter<"PhoneNumber"> | number phoneNumber?: StringWithAggregatesFilter<"PhoneNumber"> | string isMain?: BoolWithAggregatesFilter<"PhoneNumber"> | boolean sipUsername?: StringNullableWithAggregatesFilter<"PhoneNumber"> | string | null sipPasswordEncrypted?: StringNullableWithAggregatesFilter<"PhoneNumber"> | string | null sipServer?: StringNullableWithAggregatesFilter<"PhoneNumber"> | string | null } export type MobileContractDetailsWhereInput = { AND?: MobileContractDetailsWhereInput | MobileContractDetailsWhereInput[] OR?: MobileContractDetailsWhereInput[] NOT?: MobileContractDetailsWhereInput | MobileContractDetailsWhereInput[] id?: IntFilter<"MobileContractDetails"> | number contractId?: IntFilter<"MobileContractDetails"> | number requiresMultisim?: BoolFilter<"MobileContractDetails"> | boolean dataVolume?: FloatNullableFilter<"MobileContractDetails"> | number | null includedMinutes?: IntNullableFilter<"MobileContractDetails"> | number | null includedSMS?: IntNullableFilter<"MobileContractDetails"> | number | null deviceModel?: StringNullableFilter<"MobileContractDetails"> | string | null deviceImei?: StringNullableFilter<"MobileContractDetails"> | string | null phoneNumber?: StringNullableFilter<"MobileContractDetails"> | string | null simCardNumber?: StringNullableFilter<"MobileContractDetails"> | string | null contract?: XOR simCards?: SimCardListRelationFilter } export type MobileContractDetailsOrderByWithRelationInput = { id?: SortOrder contractId?: SortOrder requiresMultisim?: SortOrder dataVolume?: SortOrderInput | SortOrder includedMinutes?: SortOrderInput | SortOrder includedSMS?: SortOrderInput | SortOrder deviceModel?: SortOrderInput | SortOrder deviceImei?: SortOrderInput | SortOrder phoneNumber?: SortOrderInput | SortOrder simCardNumber?: SortOrderInput | SortOrder contract?: ContractOrderByWithRelationInput simCards?: SimCardOrderByRelationAggregateInput } export type MobileContractDetailsWhereUniqueInput = Prisma.AtLeast<{ id?: number contractId?: number AND?: MobileContractDetailsWhereInput | MobileContractDetailsWhereInput[] OR?: MobileContractDetailsWhereInput[] NOT?: MobileContractDetailsWhereInput | MobileContractDetailsWhereInput[] requiresMultisim?: BoolFilter<"MobileContractDetails"> | boolean dataVolume?: FloatNullableFilter<"MobileContractDetails"> | number | null includedMinutes?: IntNullableFilter<"MobileContractDetails"> | number | null includedSMS?: IntNullableFilter<"MobileContractDetails"> | number | null deviceModel?: StringNullableFilter<"MobileContractDetails"> | string | null deviceImei?: StringNullableFilter<"MobileContractDetails"> | string | null phoneNumber?: StringNullableFilter<"MobileContractDetails"> | string | null simCardNumber?: StringNullableFilter<"MobileContractDetails"> | string | null contract?: XOR simCards?: SimCardListRelationFilter }, "id" | "contractId"> export type MobileContractDetailsOrderByWithAggregationInput = { id?: SortOrder contractId?: SortOrder requiresMultisim?: SortOrder dataVolume?: SortOrderInput | SortOrder includedMinutes?: SortOrderInput | SortOrder includedSMS?: SortOrderInput | SortOrder deviceModel?: SortOrderInput | SortOrder deviceImei?: SortOrderInput | SortOrder phoneNumber?: SortOrderInput | SortOrder simCardNumber?: SortOrderInput | SortOrder _count?: MobileContractDetailsCountOrderByAggregateInput _avg?: MobileContractDetailsAvgOrderByAggregateInput _max?: MobileContractDetailsMaxOrderByAggregateInput _min?: MobileContractDetailsMinOrderByAggregateInput _sum?: MobileContractDetailsSumOrderByAggregateInput } export type MobileContractDetailsScalarWhereWithAggregatesInput = { AND?: MobileContractDetailsScalarWhereWithAggregatesInput | MobileContractDetailsScalarWhereWithAggregatesInput[] OR?: MobileContractDetailsScalarWhereWithAggregatesInput[] NOT?: MobileContractDetailsScalarWhereWithAggregatesInput | MobileContractDetailsScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"MobileContractDetails"> | number contractId?: IntWithAggregatesFilter<"MobileContractDetails"> | number requiresMultisim?: BoolWithAggregatesFilter<"MobileContractDetails"> | boolean dataVolume?: FloatNullableWithAggregatesFilter<"MobileContractDetails"> | number | null includedMinutes?: IntNullableWithAggregatesFilter<"MobileContractDetails"> | number | null includedSMS?: IntNullableWithAggregatesFilter<"MobileContractDetails"> | number | null deviceModel?: StringNullableWithAggregatesFilter<"MobileContractDetails"> | string | null deviceImei?: StringNullableWithAggregatesFilter<"MobileContractDetails"> | string | null phoneNumber?: StringNullableWithAggregatesFilter<"MobileContractDetails"> | string | null simCardNumber?: StringNullableWithAggregatesFilter<"MobileContractDetails"> | string | null } export type SimCardWhereInput = { AND?: SimCardWhereInput | SimCardWhereInput[] OR?: SimCardWhereInput[] NOT?: SimCardWhereInput | SimCardWhereInput[] id?: IntFilter<"SimCard"> | number mobileDetailsId?: IntFilter<"SimCard"> | number phoneNumber?: StringNullableFilter<"SimCard"> | string | null simCardNumber?: StringNullableFilter<"SimCard"> | string | null pin?: StringNullableFilter<"SimCard"> | string | null puk?: StringNullableFilter<"SimCard"> | string | null isMultisim?: BoolFilter<"SimCard"> | boolean isMain?: BoolFilter<"SimCard"> | boolean createdAt?: DateTimeFilter<"SimCard"> | Date | string updatedAt?: DateTimeFilter<"SimCard"> | Date | string mobileDetails?: XOR } export type SimCardOrderByWithRelationInput = { id?: SortOrder mobileDetailsId?: SortOrder phoneNumber?: SortOrderInput | SortOrder simCardNumber?: SortOrderInput | SortOrder pin?: SortOrderInput | SortOrder puk?: SortOrderInput | SortOrder isMultisim?: SortOrder isMain?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder mobileDetails?: MobileContractDetailsOrderByWithRelationInput } export type SimCardWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: SimCardWhereInput | SimCardWhereInput[] OR?: SimCardWhereInput[] NOT?: SimCardWhereInput | SimCardWhereInput[] mobileDetailsId?: IntFilter<"SimCard"> | number phoneNumber?: StringNullableFilter<"SimCard"> | string | null simCardNumber?: StringNullableFilter<"SimCard"> | string | null pin?: StringNullableFilter<"SimCard"> | string | null puk?: StringNullableFilter<"SimCard"> | string | null isMultisim?: BoolFilter<"SimCard"> | boolean isMain?: BoolFilter<"SimCard"> | boolean createdAt?: DateTimeFilter<"SimCard"> | Date | string updatedAt?: DateTimeFilter<"SimCard"> | Date | string mobileDetails?: XOR }, "id"> export type SimCardOrderByWithAggregationInput = { id?: SortOrder mobileDetailsId?: SortOrder phoneNumber?: SortOrderInput | SortOrder simCardNumber?: SortOrderInput | SortOrder pin?: SortOrderInput | SortOrder puk?: SortOrderInput | SortOrder isMultisim?: SortOrder isMain?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: SimCardCountOrderByAggregateInput _avg?: SimCardAvgOrderByAggregateInput _max?: SimCardMaxOrderByAggregateInput _min?: SimCardMinOrderByAggregateInput _sum?: SimCardSumOrderByAggregateInput } export type SimCardScalarWhereWithAggregatesInput = { AND?: SimCardScalarWhereWithAggregatesInput | SimCardScalarWhereWithAggregatesInput[] OR?: SimCardScalarWhereWithAggregatesInput[] NOT?: SimCardScalarWhereWithAggregatesInput | SimCardScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"SimCard"> | number mobileDetailsId?: IntWithAggregatesFilter<"SimCard"> | number phoneNumber?: StringNullableWithAggregatesFilter<"SimCard"> | string | null simCardNumber?: StringNullableWithAggregatesFilter<"SimCard"> | string | null pin?: StringNullableWithAggregatesFilter<"SimCard"> | string | null puk?: StringNullableWithAggregatesFilter<"SimCard"> | string | null isMultisim?: BoolWithAggregatesFilter<"SimCard"> | boolean isMain?: BoolWithAggregatesFilter<"SimCard"> | boolean createdAt?: DateTimeWithAggregatesFilter<"SimCard"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"SimCard"> | Date | string } export type TvContractDetailsWhereInput = { AND?: TvContractDetailsWhereInput | TvContractDetailsWhereInput[] OR?: TvContractDetailsWhereInput[] NOT?: TvContractDetailsWhereInput | TvContractDetailsWhereInput[] id?: IntFilter<"TvContractDetails"> | number contractId?: IntFilter<"TvContractDetails"> | number receiverModel?: StringNullableFilter<"TvContractDetails"> | string | null smartcardNumber?: StringNullableFilter<"TvContractDetails"> | string | null package?: StringNullableFilter<"TvContractDetails"> | string | null contract?: XOR } export type TvContractDetailsOrderByWithRelationInput = { id?: SortOrder contractId?: SortOrder receiverModel?: SortOrderInput | SortOrder smartcardNumber?: SortOrderInput | SortOrder package?: SortOrderInput | SortOrder contract?: ContractOrderByWithRelationInput } export type TvContractDetailsWhereUniqueInput = Prisma.AtLeast<{ id?: number contractId?: number AND?: TvContractDetailsWhereInput | TvContractDetailsWhereInput[] OR?: TvContractDetailsWhereInput[] NOT?: TvContractDetailsWhereInput | TvContractDetailsWhereInput[] receiverModel?: StringNullableFilter<"TvContractDetails"> | string | null smartcardNumber?: StringNullableFilter<"TvContractDetails"> | string | null package?: StringNullableFilter<"TvContractDetails"> | string | null contract?: XOR }, "id" | "contractId"> export type TvContractDetailsOrderByWithAggregationInput = { id?: SortOrder contractId?: SortOrder receiverModel?: SortOrderInput | SortOrder smartcardNumber?: SortOrderInput | SortOrder package?: SortOrderInput | SortOrder _count?: TvContractDetailsCountOrderByAggregateInput _avg?: TvContractDetailsAvgOrderByAggregateInput _max?: TvContractDetailsMaxOrderByAggregateInput _min?: TvContractDetailsMinOrderByAggregateInput _sum?: TvContractDetailsSumOrderByAggregateInput } export type TvContractDetailsScalarWhereWithAggregatesInput = { AND?: TvContractDetailsScalarWhereWithAggregatesInput | TvContractDetailsScalarWhereWithAggregatesInput[] OR?: TvContractDetailsScalarWhereWithAggregatesInput[] NOT?: TvContractDetailsScalarWhereWithAggregatesInput | TvContractDetailsScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"TvContractDetails"> | number contractId?: IntWithAggregatesFilter<"TvContractDetails"> | number receiverModel?: StringNullableWithAggregatesFilter<"TvContractDetails"> | string | null smartcardNumber?: StringNullableWithAggregatesFilter<"TvContractDetails"> | string | null package?: StringNullableWithAggregatesFilter<"TvContractDetails"> | string | null } export type CarInsuranceDetailsWhereInput = { AND?: CarInsuranceDetailsWhereInput | CarInsuranceDetailsWhereInput[] OR?: CarInsuranceDetailsWhereInput[] NOT?: CarInsuranceDetailsWhereInput | CarInsuranceDetailsWhereInput[] id?: IntFilter<"CarInsuranceDetails"> | number contractId?: IntFilter<"CarInsuranceDetails"> | number licensePlate?: StringNullableFilter<"CarInsuranceDetails"> | string | null hsn?: StringNullableFilter<"CarInsuranceDetails"> | string | null tsn?: StringNullableFilter<"CarInsuranceDetails"> | string | null vin?: StringNullableFilter<"CarInsuranceDetails"> | string | null vehicleType?: StringNullableFilter<"CarInsuranceDetails"> | string | null firstRegistration?: DateTimeNullableFilter<"CarInsuranceDetails"> | Date | string | null noClaimsClass?: StringNullableFilter<"CarInsuranceDetails"> | string | null insuranceType?: EnumInsuranceTypeFilter<"CarInsuranceDetails"> | $Enums.InsuranceType deductiblePartial?: FloatNullableFilter<"CarInsuranceDetails"> | number | null deductibleFull?: FloatNullableFilter<"CarInsuranceDetails"> | number | null policyNumber?: StringNullableFilter<"CarInsuranceDetails"> | string | null previousInsurer?: StringNullableFilter<"CarInsuranceDetails"> | string | null contract?: XOR } export type CarInsuranceDetailsOrderByWithRelationInput = { id?: SortOrder contractId?: SortOrder licensePlate?: SortOrderInput | SortOrder hsn?: SortOrderInput | SortOrder tsn?: SortOrderInput | SortOrder vin?: SortOrderInput | SortOrder vehicleType?: SortOrderInput | SortOrder firstRegistration?: SortOrderInput | SortOrder noClaimsClass?: SortOrderInput | SortOrder insuranceType?: SortOrder deductiblePartial?: SortOrderInput | SortOrder deductibleFull?: SortOrderInput | SortOrder policyNumber?: SortOrderInput | SortOrder previousInsurer?: SortOrderInput | SortOrder contract?: ContractOrderByWithRelationInput } export type CarInsuranceDetailsWhereUniqueInput = Prisma.AtLeast<{ id?: number contractId?: number AND?: CarInsuranceDetailsWhereInput | CarInsuranceDetailsWhereInput[] OR?: CarInsuranceDetailsWhereInput[] NOT?: CarInsuranceDetailsWhereInput | CarInsuranceDetailsWhereInput[] licensePlate?: StringNullableFilter<"CarInsuranceDetails"> | string | null hsn?: StringNullableFilter<"CarInsuranceDetails"> | string | null tsn?: StringNullableFilter<"CarInsuranceDetails"> | string | null vin?: StringNullableFilter<"CarInsuranceDetails"> | string | null vehicleType?: StringNullableFilter<"CarInsuranceDetails"> | string | null firstRegistration?: DateTimeNullableFilter<"CarInsuranceDetails"> | Date | string | null noClaimsClass?: StringNullableFilter<"CarInsuranceDetails"> | string | null insuranceType?: EnumInsuranceTypeFilter<"CarInsuranceDetails"> | $Enums.InsuranceType deductiblePartial?: FloatNullableFilter<"CarInsuranceDetails"> | number | null deductibleFull?: FloatNullableFilter<"CarInsuranceDetails"> | number | null policyNumber?: StringNullableFilter<"CarInsuranceDetails"> | string | null previousInsurer?: StringNullableFilter<"CarInsuranceDetails"> | string | null contract?: XOR }, "id" | "contractId"> export type CarInsuranceDetailsOrderByWithAggregationInput = { id?: SortOrder contractId?: SortOrder licensePlate?: SortOrderInput | SortOrder hsn?: SortOrderInput | SortOrder tsn?: SortOrderInput | SortOrder vin?: SortOrderInput | SortOrder vehicleType?: SortOrderInput | SortOrder firstRegistration?: SortOrderInput | SortOrder noClaimsClass?: SortOrderInput | SortOrder insuranceType?: SortOrder deductiblePartial?: SortOrderInput | SortOrder deductibleFull?: SortOrderInput | SortOrder policyNumber?: SortOrderInput | SortOrder previousInsurer?: SortOrderInput | SortOrder _count?: CarInsuranceDetailsCountOrderByAggregateInput _avg?: CarInsuranceDetailsAvgOrderByAggregateInput _max?: CarInsuranceDetailsMaxOrderByAggregateInput _min?: CarInsuranceDetailsMinOrderByAggregateInput _sum?: CarInsuranceDetailsSumOrderByAggregateInput } export type CarInsuranceDetailsScalarWhereWithAggregatesInput = { AND?: CarInsuranceDetailsScalarWhereWithAggregatesInput | CarInsuranceDetailsScalarWhereWithAggregatesInput[] OR?: CarInsuranceDetailsScalarWhereWithAggregatesInput[] NOT?: CarInsuranceDetailsScalarWhereWithAggregatesInput | CarInsuranceDetailsScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CarInsuranceDetails"> | number contractId?: IntWithAggregatesFilter<"CarInsuranceDetails"> | number licensePlate?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null hsn?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null tsn?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null vin?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null vehicleType?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null firstRegistration?: DateTimeNullableWithAggregatesFilter<"CarInsuranceDetails"> | Date | string | null noClaimsClass?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null insuranceType?: EnumInsuranceTypeWithAggregatesFilter<"CarInsuranceDetails"> | $Enums.InsuranceType deductiblePartial?: FloatNullableWithAggregatesFilter<"CarInsuranceDetails"> | number | null deductibleFull?: FloatNullableWithAggregatesFilter<"CarInsuranceDetails"> | number | null policyNumber?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null previousInsurer?: StringNullableWithAggregatesFilter<"CarInsuranceDetails"> | string | null } export type AppSettingCreateInput = { key: string value: string createdAt?: Date | string updatedAt?: Date | string } export type AppSettingUncheckedCreateInput = { id?: number key: string value: string createdAt?: Date | string updatedAt?: Date | string } export type AppSettingUpdateInput = { key?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number key?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingCreateManyInput = { id?: number key: string value: string createdAt?: Date | string updatedAt?: Date | string } export type AppSettingUpdateManyMutationInput = { key?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number key?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserCreateInput = { email: string password: string firstName: string lastName: string isActive?: boolean tokenInvalidatedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string customer?: CustomerCreateNestedOneWithoutUserInput roles?: UserRoleCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: number email: string password: string firstName: string lastName: string isActive?: boolean tokenInvalidatedAt?: Date | string | null customerId?: number | null createdAt?: Date | string updatedAt?: Date | string roles?: UserRoleUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneWithoutUserNestedInput roles?: UserRoleUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null customerId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string roles?: UserRoleUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: number email: string password: string firstName: string lastName: string isActive?: boolean tokenInvalidatedAt?: Date | string | null customerId?: number | null createdAt?: Date | string updatedAt?: Date | string } export type UserUpdateManyMutationInput = { email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null customerId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RoleCreateInput = { name: string description?: string | null createdAt?: Date | string updatedAt?: Date | string permissions?: RolePermissionCreateNestedManyWithoutRoleInput users?: UserRoleCreateNestedManyWithoutRoleInput } export type RoleUncheckedCreateInput = { id?: number name: string description?: string | null createdAt?: Date | string updatedAt?: Date | string permissions?: RolePermissionUncheckedCreateNestedManyWithoutRoleInput users?: UserRoleUncheckedCreateNestedManyWithoutRoleInput } export type RoleUpdateInput = { name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string permissions?: RolePermissionUpdateManyWithoutRoleNestedInput users?: UserRoleUpdateManyWithoutRoleNestedInput } export type RoleUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string permissions?: RolePermissionUncheckedUpdateManyWithoutRoleNestedInput users?: UserRoleUncheckedUpdateManyWithoutRoleNestedInput } export type RoleCreateManyInput = { id?: number name: string description?: string | null createdAt?: Date | string updatedAt?: Date | string } export type RoleUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RoleUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PermissionCreateInput = { resource: string action: string roles?: RolePermissionCreateNestedManyWithoutPermissionInput } export type PermissionUncheckedCreateInput = { id?: number resource: string action: string roles?: RolePermissionUncheckedCreateNestedManyWithoutPermissionInput } export type PermissionUpdateInput = { resource?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string roles?: RolePermissionUpdateManyWithoutPermissionNestedInput } export type PermissionUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number resource?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string roles?: RolePermissionUncheckedUpdateManyWithoutPermissionNestedInput } export type PermissionCreateManyInput = { id?: number resource: string action: string } export type PermissionUpdateManyMutationInput = { resource?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string } export type PermissionUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number resource?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string } export type RolePermissionCreateInput = { role: RoleCreateNestedOneWithoutPermissionsInput permission: PermissionCreateNestedOneWithoutRolesInput } export type RolePermissionUncheckedCreateInput = { roleId: number permissionId: number } export type RolePermissionUpdateInput = { role?: RoleUpdateOneRequiredWithoutPermissionsNestedInput permission?: PermissionUpdateOneRequiredWithoutRolesNestedInput } export type RolePermissionUncheckedUpdateInput = { roleId?: IntFieldUpdateOperationsInput | number permissionId?: IntFieldUpdateOperationsInput | number } export type RolePermissionCreateManyInput = { roleId: number permissionId: number } export type RolePermissionUpdateManyMutationInput = { } export type RolePermissionUncheckedUpdateManyInput = { roleId?: IntFieldUpdateOperationsInput | number permissionId?: IntFieldUpdateOperationsInput | number } export type UserRoleCreateInput = { user: UserCreateNestedOneWithoutRolesInput role: RoleCreateNestedOneWithoutUsersInput } export type UserRoleUncheckedCreateInput = { userId: number roleId: number } export type UserRoleUpdateInput = { user?: UserUpdateOneRequiredWithoutRolesNestedInput role?: RoleUpdateOneRequiredWithoutUsersNestedInput } export type UserRoleUncheckedUpdateInput = { userId?: IntFieldUpdateOperationsInput | number roleId?: IntFieldUpdateOperationsInput | number } export type UserRoleCreateManyInput = { userId: number roleId: number } export type UserRoleUpdateManyMutationInput = { } export type UserRoleUncheckedUpdateManyInput = { userId?: IntFieldUpdateOperationsInput | number roleId?: IntFieldUpdateOperationsInput | number } export type CustomerCreateInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput addresses?: AddressCreateNestedManyWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerUpdateInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput addresses?: AddressUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type CustomerCreateManyInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type CustomerUpdateManyMutationInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CustomerUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CustomerRepresentativeCreateInput = { notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutRepresentedByInput representative: CustomerCreateNestedOneWithoutRepresentingForInput } export type CustomerRepresentativeUncheckedCreateInput = { id?: number customerId: number representativeId: number notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CustomerRepresentativeUpdateInput = { notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutRepresentedByNestedInput representative?: CustomerUpdateOneRequiredWithoutRepresentingForNestedInput } export type CustomerRepresentativeUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number representativeId?: IntFieldUpdateOperationsInput | number notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CustomerRepresentativeCreateManyInput = { id?: number customerId: number representativeId: number notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CustomerRepresentativeUpdateManyMutationInput = { notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CustomerRepresentativeUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number representativeId?: IntFieldUpdateOperationsInput | number notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AddressCreateInput = { type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutAddressesInput contractsAsDelivery?: ContractCreateNestedManyWithoutAddressInput contractsAsBilling?: ContractCreateNestedManyWithoutBillingAddressInput } export type AddressUncheckedCreateInput = { id?: number customerId: number type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string contractsAsDelivery?: ContractUncheckedCreateNestedManyWithoutAddressInput contractsAsBilling?: ContractUncheckedCreateNestedManyWithoutBillingAddressInput } export type AddressUpdateInput = { type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutAddressesNestedInput contractsAsDelivery?: ContractUpdateManyWithoutAddressNestedInput contractsAsBilling?: ContractUpdateManyWithoutBillingAddressNestedInput } export type AddressUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contractsAsDelivery?: ContractUncheckedUpdateManyWithoutAddressNestedInput contractsAsBilling?: ContractUncheckedUpdateManyWithoutBillingAddressNestedInput } export type AddressCreateManyInput = { id?: number customerId: number type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string } export type AddressUpdateManyMutationInput = { type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AddressUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BankCardCreateInput = { accountHolder: string iban: string bic?: string | null bankName?: string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutBankCardsInput contracts?: ContractCreateNestedManyWithoutBankCardInput } export type BankCardUncheckedCreateInput = { id?: number customerId: number accountHolder: string iban: string bic?: string | null bankName?: string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutBankCardInput } export type BankCardUpdateInput = { accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutBankCardsNestedInput contracts?: ContractUpdateManyWithoutBankCardNestedInput } export type BankCardUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutBankCardNestedInput } export type BankCardCreateManyInput = { id?: number customerId: number accountHolder: string iban: string bic?: string | null bankName?: string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type BankCardUpdateManyMutationInput = { accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BankCardUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IdentityDocumentCreateInput = { type?: $Enums.DocumentType documentNumber: string issuingAuthority?: string | null issueDate?: Date | string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean licenseClasses?: string | null licenseIssueDate?: Date | string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutIdentityDocumentsInput contracts?: ContractCreateNestedManyWithoutIdentityDocumentInput } export type IdentityDocumentUncheckedCreateInput = { id?: number customerId: number type?: $Enums.DocumentType documentNumber: string issuingAuthority?: string | null issueDate?: Date | string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean licenseClasses?: string | null licenseIssueDate?: Date | string | null createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutIdentityDocumentInput } export type IdentityDocumentUpdateInput = { type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutIdentityDocumentsNestedInput contracts?: ContractUpdateManyWithoutIdentityDocumentNestedInput } export type IdentityDocumentUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutIdentityDocumentNestedInput } export type IdentityDocumentCreateManyInput = { id?: number customerId: number type?: $Enums.DocumentType documentNumber: string issuingAuthority?: string | null issueDate?: Date | string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean licenseClasses?: string | null licenseIssueDate?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type IdentityDocumentUpdateManyMutationInput = { type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IdentityDocumentUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EmailProviderConfigCreateInput = { name: string type: $Enums.EmailProviderType apiUrl: string apiKey?: string | null username?: string | null passwordEncrypted?: string | null domain: string defaultForwardEmail?: string | null imapServer?: string | null imapPort?: number | null smtpServer?: string | null smtpPort?: number | null imapEncryption?: $Enums.MailEncryption smtpEncryption?: $Enums.MailEncryption allowSelfSignedCerts?: boolean isActive?: boolean isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string } export type EmailProviderConfigUncheckedCreateInput = { id?: number name: string type: $Enums.EmailProviderType apiUrl: string apiKey?: string | null username?: string | null passwordEncrypted?: string | null domain: string defaultForwardEmail?: string | null imapServer?: string | null imapPort?: number | null smtpServer?: string | null smtpPort?: number | null imapEncryption?: $Enums.MailEncryption smtpEncryption?: $Enums.MailEncryption allowSelfSignedCerts?: boolean isActive?: boolean isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string } export type EmailProviderConfigUpdateInput = { name?: StringFieldUpdateOperationsInput | string type?: EnumEmailProviderTypeFieldUpdateOperationsInput | $Enums.EmailProviderType apiUrl?: StringFieldUpdateOperationsInput | string apiKey?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null passwordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null domain?: StringFieldUpdateOperationsInput | string defaultForwardEmail?: NullableStringFieldUpdateOperationsInput | string | null imapServer?: NullableStringFieldUpdateOperationsInput | string | null imapPort?: NullableIntFieldUpdateOperationsInput | number | null smtpServer?: NullableStringFieldUpdateOperationsInput | string | null smtpPort?: NullableIntFieldUpdateOperationsInput | number | null imapEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption smtpEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption allowSelfSignedCerts?: BoolFieldUpdateOperationsInput | boolean isActive?: BoolFieldUpdateOperationsInput | boolean isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EmailProviderConfigUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string type?: EnumEmailProviderTypeFieldUpdateOperationsInput | $Enums.EmailProviderType apiUrl?: StringFieldUpdateOperationsInput | string apiKey?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null passwordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null domain?: StringFieldUpdateOperationsInput | string defaultForwardEmail?: NullableStringFieldUpdateOperationsInput | string | null imapServer?: NullableStringFieldUpdateOperationsInput | string | null imapPort?: NullableIntFieldUpdateOperationsInput | number | null smtpServer?: NullableStringFieldUpdateOperationsInput | string | null smtpPort?: NullableIntFieldUpdateOperationsInput | number | null imapEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption smtpEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption allowSelfSignedCerts?: BoolFieldUpdateOperationsInput | boolean isActive?: BoolFieldUpdateOperationsInput | boolean isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EmailProviderConfigCreateManyInput = { id?: number name: string type: $Enums.EmailProviderType apiUrl: string apiKey?: string | null username?: string | null passwordEncrypted?: string | null domain: string defaultForwardEmail?: string | null imapServer?: string | null imapPort?: number | null smtpServer?: string | null smtpPort?: number | null imapEncryption?: $Enums.MailEncryption smtpEncryption?: $Enums.MailEncryption allowSelfSignedCerts?: boolean isActive?: boolean isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string } export type EmailProviderConfigUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string type?: EnumEmailProviderTypeFieldUpdateOperationsInput | $Enums.EmailProviderType apiUrl?: StringFieldUpdateOperationsInput | string apiKey?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null passwordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null domain?: StringFieldUpdateOperationsInput | string defaultForwardEmail?: NullableStringFieldUpdateOperationsInput | string | null imapServer?: NullableStringFieldUpdateOperationsInput | string | null imapPort?: NullableIntFieldUpdateOperationsInput | number | null smtpServer?: NullableStringFieldUpdateOperationsInput | string | null smtpPort?: NullableIntFieldUpdateOperationsInput | number | null imapEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption smtpEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption allowSelfSignedCerts?: BoolFieldUpdateOperationsInput | boolean isActive?: BoolFieldUpdateOperationsInput | boolean isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EmailProviderConfigUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string type?: EnumEmailProviderTypeFieldUpdateOperationsInput | $Enums.EmailProviderType apiUrl?: StringFieldUpdateOperationsInput | string apiKey?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null passwordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null domain?: StringFieldUpdateOperationsInput | string defaultForwardEmail?: NullableStringFieldUpdateOperationsInput | string | null imapServer?: NullableStringFieldUpdateOperationsInput | string | null imapPort?: NullableIntFieldUpdateOperationsInput | number | null smtpServer?: NullableStringFieldUpdateOperationsInput | string | null smtpPort?: NullableIntFieldUpdateOperationsInput | number | null imapEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption smtpEncryption?: EnumMailEncryptionFieldUpdateOperationsInput | $Enums.MailEncryption allowSelfSignedCerts?: BoolFieldUpdateOperationsInput | boolean isActive?: BoolFieldUpdateOperationsInput | boolean isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StressfreiEmailCreateInput = { email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutStressfreiEmailsInput contracts?: ContractCreateNestedManyWithoutStressfreiEmailInput cachedEmails?: CachedEmailCreateNestedManyWithoutStressfreiEmailInput } export type StressfreiEmailUncheckedCreateInput = { id?: number customerId: number email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutStressfreiEmailInput cachedEmails?: CachedEmailUncheckedCreateNestedManyWithoutStressfreiEmailInput } export type StressfreiEmailUpdateInput = { email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutStressfreiEmailsNestedInput contracts?: ContractUpdateManyWithoutStressfreiEmailNestedInput cachedEmails?: CachedEmailUpdateManyWithoutStressfreiEmailNestedInput } export type StressfreiEmailUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutStressfreiEmailNestedInput cachedEmails?: CachedEmailUncheckedUpdateManyWithoutStressfreiEmailNestedInput } export type StressfreiEmailCreateManyInput = { id?: number customerId: number email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string } export type StressfreiEmailUpdateManyMutationInput = { email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StressfreiEmailUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CachedEmailCreateInput = { folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string stressfreiEmail: StressfreiEmailCreateNestedOneWithoutCachedEmailsInput contract?: ContractCreateNestedOneWithoutAssignedEmailsInput } export type CachedEmailUncheckedCreateInput = { id?: number stressfreiEmailId: number folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null contractId?: number | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type CachedEmailUpdateInput = { folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stressfreiEmail?: StressfreiEmailUpdateOneRequiredWithoutCachedEmailsNestedInput contract?: ContractUpdateOneWithoutAssignedEmailsNestedInput } export type CachedEmailUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number stressfreiEmailId?: IntFieldUpdateOperationsInput | number folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null contractId?: NullableIntFieldUpdateOperationsInput | number | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CachedEmailCreateManyInput = { id?: number stressfreiEmailId: number folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null contractId?: number | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type CachedEmailUpdateManyMutationInput = { folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CachedEmailUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number stressfreiEmailId?: IntFieldUpdateOperationsInput | number folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null contractId?: NullableIntFieldUpdateOperationsInput | number | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterCreateInput = { meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutMetersInput readings?: MeterReadingCreateNestedManyWithoutMeterInput energyDetails?: EnergyContractDetailsCreateNestedManyWithoutMeterInput } export type MeterUncheckedCreateInput = { id?: number customerId: number meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string readings?: MeterReadingUncheckedCreateNestedManyWithoutMeterInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedManyWithoutMeterInput } export type MeterUpdateInput = { meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutMetersNestedInput readings?: MeterReadingUpdateManyWithoutMeterNestedInput energyDetails?: EnergyContractDetailsUpdateManyWithoutMeterNestedInput } export type MeterUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readings?: MeterReadingUncheckedUpdateManyWithoutMeterNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateManyWithoutMeterNestedInput } export type MeterCreateManyInput = { id?: number customerId: number meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type MeterUpdateManyMutationInput = { meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterReadingCreateInput = { readingDate: Date | string value: number unit?: string notes?: string | null createdAt?: Date | string meter: MeterCreateNestedOneWithoutReadingsInput } export type MeterReadingUncheckedCreateInput = { id?: number meterId: number readingDate: Date | string value: number unit?: string notes?: string | null createdAt?: Date | string } export type MeterReadingUpdateInput = { readingDate?: DateTimeFieldUpdateOperationsInput | Date | string value?: FloatFieldUpdateOperationsInput | number unit?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string meter?: MeterUpdateOneRequiredWithoutReadingsNestedInput } export type MeterReadingUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number meterId?: IntFieldUpdateOperationsInput | number readingDate?: DateTimeFieldUpdateOperationsInput | Date | string value?: FloatFieldUpdateOperationsInput | number unit?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterReadingCreateManyInput = { id?: number meterId: number readingDate: Date | string value: number unit?: string notes?: string | null createdAt?: Date | string } export type MeterReadingUpdateManyMutationInput = { readingDate?: DateTimeFieldUpdateOperationsInput | Date | string value?: FloatFieldUpdateOperationsInput | number unit?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterReadingUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number meterId?: IntFieldUpdateOperationsInput | number readingDate?: DateTimeFieldUpdateOperationsInput | Date | string value?: FloatFieldUpdateOperationsInput | number unit?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SalesPlatformCreateInput = { name: string contactInfo?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutSalesPlatformInput } export type SalesPlatformUncheckedCreateInput = { id?: number name: string contactInfo?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutSalesPlatformInput } export type SalesPlatformUpdateInput = { name?: StringFieldUpdateOperationsInput | string contactInfo?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutSalesPlatformNestedInput } export type SalesPlatformUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string contactInfo?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutSalesPlatformNestedInput } export type SalesPlatformCreateManyInput = { id?: number name: string contactInfo?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SalesPlatformUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string contactInfo?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SalesPlatformUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string contactInfo?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CancellationPeriodCreateInput = { code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutCancellationPeriodInput } export type CancellationPeriodUncheckedCreateInput = { id?: number code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutCancellationPeriodInput } export type CancellationPeriodUpdateInput = { code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutCancellationPeriodNestedInput } export type CancellationPeriodUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutCancellationPeriodNestedInput } export type CancellationPeriodCreateManyInput = { id?: number code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CancellationPeriodUpdateManyMutationInput = { code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CancellationPeriodUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractDurationCreateInput = { code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutContractDurationInput } export type ContractDurationUncheckedCreateInput = { id?: number code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutContractDurationInput } export type ContractDurationUpdateInput = { code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutContractDurationNestedInput } export type ContractDurationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutContractDurationNestedInput } export type ContractDurationCreateManyInput = { id?: number code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ContractDurationUpdateManyMutationInput = { code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractDurationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProviderCreateInput = { name: string portalUrl?: string | null usernameFieldName?: string | null passwordFieldName?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string tariffs?: TariffCreateNestedManyWithoutProviderInput contracts?: ContractCreateNestedManyWithoutProviderInput } export type ProviderUncheckedCreateInput = { id?: number name: string portalUrl?: string | null usernameFieldName?: string | null passwordFieldName?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string tariffs?: TariffUncheckedCreateNestedManyWithoutProviderInput contracts?: ContractUncheckedCreateNestedManyWithoutProviderInput } export type ProviderUpdateInput = { name?: StringFieldUpdateOperationsInput | string portalUrl?: NullableStringFieldUpdateOperationsInput | string | null usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string tariffs?: TariffUpdateManyWithoutProviderNestedInput contracts?: ContractUpdateManyWithoutProviderNestedInput } export type ProviderUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string portalUrl?: NullableStringFieldUpdateOperationsInput | string | null usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string tariffs?: TariffUncheckedUpdateManyWithoutProviderNestedInput contracts?: ContractUncheckedUpdateManyWithoutProviderNestedInput } export type ProviderCreateManyInput = { id?: number name: string portalUrl?: string | null usernameFieldName?: string | null passwordFieldName?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ProviderUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string portalUrl?: NullableStringFieldUpdateOperationsInput | string | null usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProviderUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string portalUrl?: NullableStringFieldUpdateOperationsInput | string | null usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TariffCreateInput = { name: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string provider: ProviderCreateNestedOneWithoutTariffsInput contracts?: ContractCreateNestedManyWithoutTariffInput } export type TariffUncheckedCreateInput = { id?: number providerId: number name: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutTariffInput } export type TariffUpdateInput = { name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string provider?: ProviderUpdateOneRequiredWithoutTariffsNestedInput contracts?: ContractUpdateManyWithoutTariffNestedInput } export type TariffUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number providerId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutTariffNestedInput } export type TariffCreateManyInput = { id?: number providerId: number name: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type TariffUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TariffUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number providerId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCategoryCreateInput = { code: string name: string icon?: string | null color?: string | null sortOrder?: number isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutContractCategoryInput } export type ContractCategoryUncheckedCreateInput = { id?: number code: string name: string icon?: string | null color?: string | null sortOrder?: number isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutContractCategoryInput } export type ContractCategoryUpdateInput = { code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string icon?: NullableStringFieldUpdateOperationsInput | string | null color?: NullableStringFieldUpdateOperationsInput | string | null sortOrder?: IntFieldUpdateOperationsInput | number isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutContractCategoryNestedInput } export type ContractCategoryUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string icon?: NullableStringFieldUpdateOperationsInput | string | null color?: NullableStringFieldUpdateOperationsInput | string | null sortOrder?: IntFieldUpdateOperationsInput | number isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutContractCategoryNestedInput } export type ContractCategoryCreateManyInput = { id?: number code: string name: string icon?: string | null color?: string | null sortOrder?: number isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ContractCategoryUpdateManyMutationInput = { code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string icon?: NullableStringFieldUpdateOperationsInput | string | null color?: NullableStringFieldUpdateOperationsInput | string | null sortOrder?: IntFieldUpdateOperationsInput | number isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCategoryUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string icon?: NullableStringFieldUpdateOperationsInput | string | null color?: NullableStringFieldUpdateOperationsInput | string | null sortOrder?: IntFieldUpdateOperationsInput | number isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractUpdateInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractCreateManyInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateManyMutationInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskCreateInput = { title: string description?: string | null status?: $Enums.ContractTaskStatus visibleInPortal?: boolean createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string contract: ContractCreateNestedOneWithoutTasksInput subtasks?: ContractTaskSubtaskCreateNestedManyWithoutTaskInput } export type ContractTaskUncheckedCreateInput = { id?: number contractId: number title: string description?: string | null status?: $Enums.ContractTaskStatus visibleInPortal?: boolean createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string subtasks?: ContractTaskSubtaskUncheckedCreateNestedManyWithoutTaskInput } export type ContractTaskUpdateInput = { title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contract?: ContractUpdateOneRequiredWithoutTasksNestedInput subtasks?: ContractTaskSubtaskUpdateManyWithoutTaskNestedInput } export type ContractTaskUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string subtasks?: ContractTaskSubtaskUncheckedUpdateManyWithoutTaskNestedInput } export type ContractTaskCreateManyInput = { id?: number contractId: number title: string description?: string | null status?: $Enums.ContractTaskStatus visibleInPortal?: boolean createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractTaskUpdateManyMutationInput = { title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskSubtaskCreateInput = { title: string status?: $Enums.ContractTaskStatus createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string task: ContractTaskCreateNestedOneWithoutSubtasksInput } export type ContractTaskSubtaskUncheckedCreateInput = { id?: number taskId: number title: string status?: $Enums.ContractTaskStatus createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractTaskSubtaskUpdateInput = { title?: StringFieldUpdateOperationsInput | string status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string task?: ContractTaskUpdateOneRequiredWithoutSubtasksNestedInput } export type ContractTaskSubtaskUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number taskId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskSubtaskCreateManyInput = { id?: number taskId: number title: string status?: $Enums.ContractTaskStatus createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractTaskSubtaskUpdateManyMutationInput = { title?: StringFieldUpdateOperationsInput | string status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskSubtaskUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number taskId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EnergyContractDetailsCreateInput = { maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null contract: ContractCreateNestedOneWithoutEnergyDetailsInput meter?: MeterCreateNestedOneWithoutEnergyDetailsInput invoices?: InvoiceCreateNestedManyWithoutEnergyContractDetailsInput } export type EnergyContractDetailsUncheckedCreateInput = { id?: number contractId: number meterId?: number | null maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null invoices?: InvoiceUncheckedCreateNestedManyWithoutEnergyContractDetailsInput } export type EnergyContractDetailsUpdateInput = { maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutEnergyDetailsNestedInput meter?: MeterUpdateOneWithoutEnergyDetailsNestedInput invoices?: InvoiceUpdateManyWithoutEnergyContractDetailsNestedInput } export type EnergyContractDetailsUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number meterId?: NullableIntFieldUpdateOperationsInput | number | null maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null invoices?: InvoiceUncheckedUpdateManyWithoutEnergyContractDetailsNestedInput } export type EnergyContractDetailsCreateManyInput = { id?: number contractId: number meterId?: number | null maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null } export type EnergyContractDetailsUpdateManyMutationInput = { maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type EnergyContractDetailsUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number meterId?: NullableIntFieldUpdateOperationsInput | number | null maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type InvoiceCreateInput = { invoiceDate: Date | string invoiceType: $Enums.InvoiceType documentPath?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string energyContractDetails: EnergyContractDetailsCreateNestedOneWithoutInvoicesInput } export type InvoiceUncheckedCreateInput = { id?: number energyContractDetailsId: number invoiceDate: Date | string invoiceType: $Enums.InvoiceType documentPath?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type InvoiceUpdateInput = { invoiceDate?: DateTimeFieldUpdateOperationsInput | Date | string invoiceType?: EnumInvoiceTypeFieldUpdateOperationsInput | $Enums.InvoiceType documentPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string energyContractDetails?: EnergyContractDetailsUpdateOneRequiredWithoutInvoicesNestedInput } export type InvoiceUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number energyContractDetailsId?: IntFieldUpdateOperationsInput | number invoiceDate?: DateTimeFieldUpdateOperationsInput | Date | string invoiceType?: EnumInvoiceTypeFieldUpdateOperationsInput | $Enums.InvoiceType documentPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvoiceCreateManyInput = { id?: number energyContractDetailsId: number invoiceDate: Date | string invoiceType: $Enums.InvoiceType documentPath?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type InvoiceUpdateManyMutationInput = { invoiceDate?: DateTimeFieldUpdateOperationsInput | Date | string invoiceType?: EnumInvoiceTypeFieldUpdateOperationsInput | $Enums.InvoiceType documentPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvoiceUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number energyContractDetailsId?: IntFieldUpdateOperationsInput | number invoiceDate?: DateTimeFieldUpdateOperationsInput | Date | string invoiceType?: EnumInvoiceTypeFieldUpdateOperationsInput | $Enums.InvoiceType documentPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InternetContractDetailsCreateInput = { downloadSpeed?: number | null uploadSpeed?: number | null routerModel?: string | null routerSerialNumber?: string | null installationDate?: Date | string | null internetUsername?: string | null internetPasswordEncrypted?: string | null homeId?: string | null activationCode?: string | null contract: ContractCreateNestedOneWithoutInternetDetailsInput phoneNumbers?: PhoneNumberCreateNestedManyWithoutInternetDetailsInput } export type InternetContractDetailsUncheckedCreateInput = { id?: number contractId: number downloadSpeed?: number | null uploadSpeed?: number | null routerModel?: string | null routerSerialNumber?: string | null installationDate?: Date | string | null internetUsername?: string | null internetPasswordEncrypted?: string | null homeId?: string | null activationCode?: string | null phoneNumbers?: PhoneNumberUncheckedCreateNestedManyWithoutInternetDetailsInput } export type InternetContractDetailsUpdateInput = { downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null routerModel?: NullableStringFieldUpdateOperationsInput | string | null routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null internetUsername?: NullableStringFieldUpdateOperationsInput | string | null internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null homeId?: NullableStringFieldUpdateOperationsInput | string | null activationCode?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutInternetDetailsNestedInput phoneNumbers?: PhoneNumberUpdateManyWithoutInternetDetailsNestedInput } export type InternetContractDetailsUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null routerModel?: NullableStringFieldUpdateOperationsInput | string | null routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null internetUsername?: NullableStringFieldUpdateOperationsInput | string | null internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null homeId?: NullableStringFieldUpdateOperationsInput | string | null activationCode?: NullableStringFieldUpdateOperationsInput | string | null phoneNumbers?: PhoneNumberUncheckedUpdateManyWithoutInternetDetailsNestedInput } export type InternetContractDetailsCreateManyInput = { id?: number contractId: number downloadSpeed?: number | null uploadSpeed?: number | null routerModel?: string | null routerSerialNumber?: string | null installationDate?: Date | string | null internetUsername?: string | null internetPasswordEncrypted?: string | null homeId?: string | null activationCode?: string | null } export type InternetContractDetailsUpdateManyMutationInput = { downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null routerModel?: NullableStringFieldUpdateOperationsInput | string | null routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null internetUsername?: NullableStringFieldUpdateOperationsInput | string | null internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null homeId?: NullableStringFieldUpdateOperationsInput | string | null activationCode?: NullableStringFieldUpdateOperationsInput | string | null } export type InternetContractDetailsUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null routerModel?: NullableStringFieldUpdateOperationsInput | string | null routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null internetUsername?: NullableStringFieldUpdateOperationsInput | string | null internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null homeId?: NullableStringFieldUpdateOperationsInput | string | null activationCode?: NullableStringFieldUpdateOperationsInput | string | null } export type PhoneNumberCreateInput = { phoneNumber: string isMain?: boolean sipUsername?: string | null sipPasswordEncrypted?: string | null sipServer?: string | null internetDetails: InternetContractDetailsCreateNestedOneWithoutPhoneNumbersInput } export type PhoneNumberUncheckedCreateInput = { id?: number internetContractDetailsId: number phoneNumber: string isMain?: boolean sipUsername?: string | null sipPasswordEncrypted?: string | null sipServer?: string | null } export type PhoneNumberUpdateInput = { phoneNumber?: StringFieldUpdateOperationsInput | string isMain?: BoolFieldUpdateOperationsInput | boolean sipUsername?: NullableStringFieldUpdateOperationsInput | string | null sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null sipServer?: NullableStringFieldUpdateOperationsInput | string | null internetDetails?: InternetContractDetailsUpdateOneRequiredWithoutPhoneNumbersNestedInput } export type PhoneNumberUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number internetContractDetailsId?: IntFieldUpdateOperationsInput | number phoneNumber?: StringFieldUpdateOperationsInput | string isMain?: BoolFieldUpdateOperationsInput | boolean sipUsername?: NullableStringFieldUpdateOperationsInput | string | null sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null sipServer?: NullableStringFieldUpdateOperationsInput | string | null } export type PhoneNumberCreateManyInput = { id?: number internetContractDetailsId: number phoneNumber: string isMain?: boolean sipUsername?: string | null sipPasswordEncrypted?: string | null sipServer?: string | null } export type PhoneNumberUpdateManyMutationInput = { phoneNumber?: StringFieldUpdateOperationsInput | string isMain?: BoolFieldUpdateOperationsInput | boolean sipUsername?: NullableStringFieldUpdateOperationsInput | string | null sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null sipServer?: NullableStringFieldUpdateOperationsInput | string | null } export type PhoneNumberUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number internetContractDetailsId?: IntFieldUpdateOperationsInput | number phoneNumber?: StringFieldUpdateOperationsInput | string isMain?: BoolFieldUpdateOperationsInput | boolean sipUsername?: NullableStringFieldUpdateOperationsInput | string | null sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null sipServer?: NullableStringFieldUpdateOperationsInput | string | null } export type MobileContractDetailsCreateInput = { requiresMultisim?: boolean dataVolume?: number | null includedMinutes?: number | null includedSMS?: number | null deviceModel?: string | null deviceImei?: string | null phoneNumber?: string | null simCardNumber?: string | null contract: ContractCreateNestedOneWithoutMobileDetailsInput simCards?: SimCardCreateNestedManyWithoutMobileDetailsInput } export type MobileContractDetailsUncheckedCreateInput = { id?: number contractId: number requiresMultisim?: boolean dataVolume?: number | null includedMinutes?: number | null includedSMS?: number | null deviceModel?: string | null deviceImei?: string | null phoneNumber?: string | null simCardNumber?: string | null simCards?: SimCardUncheckedCreateNestedManyWithoutMobileDetailsInput } export type MobileContractDetailsUpdateInput = { requiresMultisim?: BoolFieldUpdateOperationsInput | boolean dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null includedSMS?: NullableIntFieldUpdateOperationsInput | number | null deviceModel?: NullableStringFieldUpdateOperationsInput | string | null deviceImei?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutMobileDetailsNestedInput simCards?: SimCardUpdateManyWithoutMobileDetailsNestedInput } export type MobileContractDetailsUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number requiresMultisim?: BoolFieldUpdateOperationsInput | boolean dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null includedSMS?: NullableIntFieldUpdateOperationsInput | number | null deviceModel?: NullableStringFieldUpdateOperationsInput | string | null deviceImei?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null simCards?: SimCardUncheckedUpdateManyWithoutMobileDetailsNestedInput } export type MobileContractDetailsCreateManyInput = { id?: number contractId: number requiresMultisim?: boolean dataVolume?: number | null includedMinutes?: number | null includedSMS?: number | null deviceModel?: string | null deviceImei?: string | null phoneNumber?: string | null simCardNumber?: string | null } export type MobileContractDetailsUpdateManyMutationInput = { requiresMultisim?: BoolFieldUpdateOperationsInput | boolean dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null includedSMS?: NullableIntFieldUpdateOperationsInput | number | null deviceModel?: NullableStringFieldUpdateOperationsInput | string | null deviceImei?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type MobileContractDetailsUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number requiresMultisim?: BoolFieldUpdateOperationsInput | boolean dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null includedSMS?: NullableIntFieldUpdateOperationsInput | number | null deviceModel?: NullableStringFieldUpdateOperationsInput | string | null deviceImei?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type SimCardCreateInput = { phoneNumber?: string | null simCardNumber?: string | null pin?: string | null puk?: string | null isMultisim?: boolean isMain?: boolean createdAt?: Date | string updatedAt?: Date | string mobileDetails: MobileContractDetailsCreateNestedOneWithoutSimCardsInput } export type SimCardUncheckedCreateInput = { id?: number mobileDetailsId: number phoneNumber?: string | null simCardNumber?: string | null pin?: string | null puk?: string | null isMultisim?: boolean isMain?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SimCardUpdateInput = { phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null pin?: NullableStringFieldUpdateOperationsInput | string | null puk?: NullableStringFieldUpdateOperationsInput | string | null isMultisim?: BoolFieldUpdateOperationsInput | boolean isMain?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string mobileDetails?: MobileContractDetailsUpdateOneRequiredWithoutSimCardsNestedInput } export type SimCardUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number mobileDetailsId?: IntFieldUpdateOperationsInput | number phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null pin?: NullableStringFieldUpdateOperationsInput | string | null puk?: NullableStringFieldUpdateOperationsInput | string | null isMultisim?: BoolFieldUpdateOperationsInput | boolean isMain?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SimCardCreateManyInput = { id?: number mobileDetailsId: number phoneNumber?: string | null simCardNumber?: string | null pin?: string | null puk?: string | null isMultisim?: boolean isMain?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SimCardUpdateManyMutationInput = { phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null pin?: NullableStringFieldUpdateOperationsInput | string | null puk?: NullableStringFieldUpdateOperationsInput | string | null isMultisim?: BoolFieldUpdateOperationsInput | boolean isMain?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SimCardUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number mobileDetailsId?: IntFieldUpdateOperationsInput | number phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null pin?: NullableStringFieldUpdateOperationsInput | string | null puk?: NullableStringFieldUpdateOperationsInput | string | null isMultisim?: BoolFieldUpdateOperationsInput | boolean isMain?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TvContractDetailsCreateInput = { receiverModel?: string | null smartcardNumber?: string | null package?: string | null contract: ContractCreateNestedOneWithoutTvDetailsInput } export type TvContractDetailsUncheckedCreateInput = { id?: number contractId: number receiverModel?: string | null smartcardNumber?: string | null package?: string | null } export type TvContractDetailsUpdateInput = { receiverModel?: NullableStringFieldUpdateOperationsInput | string | null smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null package?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutTvDetailsNestedInput } export type TvContractDetailsUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number receiverModel?: NullableStringFieldUpdateOperationsInput | string | null smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null package?: NullableStringFieldUpdateOperationsInput | string | null } export type TvContractDetailsCreateManyInput = { id?: number contractId: number receiverModel?: string | null smartcardNumber?: string | null package?: string | null } export type TvContractDetailsUpdateManyMutationInput = { receiverModel?: NullableStringFieldUpdateOperationsInput | string | null smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null package?: NullableStringFieldUpdateOperationsInput | string | null } export type TvContractDetailsUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number receiverModel?: NullableStringFieldUpdateOperationsInput | string | null smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null package?: NullableStringFieldUpdateOperationsInput | string | null } export type CarInsuranceDetailsCreateInput = { licensePlate?: string | null hsn?: string | null tsn?: string | null vin?: string | null vehicleType?: string | null firstRegistration?: Date | string | null noClaimsClass?: string | null insuranceType?: $Enums.InsuranceType deductiblePartial?: number | null deductibleFull?: number | null policyNumber?: string | null previousInsurer?: string | null contract: ContractCreateNestedOneWithoutCarInsuranceDetailsInput } export type CarInsuranceDetailsUncheckedCreateInput = { id?: number contractId: number licensePlate?: string | null hsn?: string | null tsn?: string | null vin?: string | null vehicleType?: string | null firstRegistration?: Date | string | null noClaimsClass?: string | null insuranceType?: $Enums.InsuranceType deductiblePartial?: number | null deductibleFull?: number | null policyNumber?: string | null previousInsurer?: string | null } export type CarInsuranceDetailsUpdateInput = { licensePlate?: NullableStringFieldUpdateOperationsInput | string | null hsn?: NullableStringFieldUpdateOperationsInput | string | null tsn?: NullableStringFieldUpdateOperationsInput | string | null vin?: NullableStringFieldUpdateOperationsInput | string | null vehicleType?: NullableStringFieldUpdateOperationsInput | string | null firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null policyNumber?: NullableStringFieldUpdateOperationsInput | string | null previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutCarInsuranceDetailsNestedInput } export type CarInsuranceDetailsUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number licensePlate?: NullableStringFieldUpdateOperationsInput | string | null hsn?: NullableStringFieldUpdateOperationsInput | string | null tsn?: NullableStringFieldUpdateOperationsInput | string | null vin?: NullableStringFieldUpdateOperationsInput | string | null vehicleType?: NullableStringFieldUpdateOperationsInput | string | null firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null policyNumber?: NullableStringFieldUpdateOperationsInput | string | null previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null } export type CarInsuranceDetailsCreateManyInput = { id?: number contractId: number licensePlate?: string | null hsn?: string | null tsn?: string | null vin?: string | null vehicleType?: string | null firstRegistration?: Date | string | null noClaimsClass?: string | null insuranceType?: $Enums.InsuranceType deductiblePartial?: number | null deductibleFull?: number | null policyNumber?: string | null previousInsurer?: string | null } export type CarInsuranceDetailsUpdateManyMutationInput = { licensePlate?: NullableStringFieldUpdateOperationsInput | string | null hsn?: NullableStringFieldUpdateOperationsInput | string | null tsn?: NullableStringFieldUpdateOperationsInput | string | null vin?: NullableStringFieldUpdateOperationsInput | string | null vehicleType?: NullableStringFieldUpdateOperationsInput | string | null firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null policyNumber?: NullableStringFieldUpdateOperationsInput | string | null previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null } export type CarInsuranceDetailsUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number licensePlate?: NullableStringFieldUpdateOperationsInput | string | null hsn?: NullableStringFieldUpdateOperationsInput | string | null tsn?: NullableStringFieldUpdateOperationsInput | string | null vin?: NullableStringFieldUpdateOperationsInput | string | null vehicleType?: NullableStringFieldUpdateOperationsInput | string | null firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null policyNumber?: NullableStringFieldUpdateOperationsInput | string | null previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type AppSettingCountOrderByAggregateInput = { id?: SortOrder key?: SortOrder value?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AppSettingAvgOrderByAggregateInput = { id?: SortOrder } export type AppSettingMaxOrderByAggregateInput = { id?: SortOrder key?: SortOrder value?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AppSettingMinOrderByAggregateInput = { id?: SortOrder key?: SortOrder value?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AppSettingSumOrderByAggregateInput = { id?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type CustomerNullableRelationFilter = { is?: CustomerWhereInput | null isNot?: CustomerWhereInput | null } export type UserRoleListRelationFilter = { every?: UserRoleWhereInput some?: UserRoleWhereInput none?: UserRoleWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type UserRoleOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder email?: SortOrder password?: SortOrder firstName?: SortOrder lastName?: SortOrder isActive?: SortOrder tokenInvalidatedAt?: SortOrder customerId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserAvgOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder email?: SortOrder password?: SortOrder firstName?: SortOrder lastName?: SortOrder isActive?: SortOrder tokenInvalidatedAt?: SortOrder customerId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder email?: SortOrder password?: SortOrder firstName?: SortOrder lastName?: SortOrder isActive?: SortOrder tokenInvalidatedAt?: SortOrder customerId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserSumOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | null notIn?: string[] | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type RolePermissionListRelationFilter = { every?: RolePermissionWhereInput some?: RolePermissionWhereInput none?: RolePermissionWhereInput } export type RolePermissionOrderByRelationAggregateInput = { _count?: SortOrder } export type RoleCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RoleAvgOrderByAggregateInput = { id?: SortOrder } export type RoleMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RoleMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder description?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type RoleSumOrderByAggregateInput = { id?: SortOrder } export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | null notIn?: string[] | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type PermissionResourceActionCompoundUniqueInput = { resource: string action: string } export type PermissionCountOrderByAggregateInput = { id?: SortOrder resource?: SortOrder action?: SortOrder } export type PermissionAvgOrderByAggregateInput = { id?: SortOrder } export type PermissionMaxOrderByAggregateInput = { id?: SortOrder resource?: SortOrder action?: SortOrder } export type PermissionMinOrderByAggregateInput = { id?: SortOrder resource?: SortOrder action?: SortOrder } export type PermissionSumOrderByAggregateInput = { id?: SortOrder } export type RoleRelationFilter = { is?: RoleWhereInput isNot?: RoleWhereInput } export type PermissionRelationFilter = { is?: PermissionWhereInput isNot?: PermissionWhereInput } export type RolePermissionRoleIdPermissionIdCompoundUniqueInput = { roleId: number permissionId: number } export type RolePermissionCountOrderByAggregateInput = { roleId?: SortOrder permissionId?: SortOrder } export type RolePermissionAvgOrderByAggregateInput = { roleId?: SortOrder permissionId?: SortOrder } export type RolePermissionMaxOrderByAggregateInput = { roleId?: SortOrder permissionId?: SortOrder } export type RolePermissionMinOrderByAggregateInput = { roleId?: SortOrder permissionId?: SortOrder } export type RolePermissionSumOrderByAggregateInput = { roleId?: SortOrder permissionId?: SortOrder } export type UserRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type UserRoleUserIdRoleIdCompoundUniqueInput = { userId: number roleId: number } export type UserRoleCountOrderByAggregateInput = { userId?: SortOrder roleId?: SortOrder } export type UserRoleAvgOrderByAggregateInput = { userId?: SortOrder roleId?: SortOrder } export type UserRoleMaxOrderByAggregateInput = { userId?: SortOrder roleId?: SortOrder } export type UserRoleMinOrderByAggregateInput = { userId?: SortOrder roleId?: SortOrder } export type UserRoleSumOrderByAggregateInput = { userId?: SortOrder roleId?: SortOrder } export type EnumCustomerTypeFilter<$PrismaModel = never> = { equals?: $Enums.CustomerType | EnumCustomerTypeFieldRefInput<$PrismaModel> in?: $Enums.CustomerType[] notIn?: $Enums.CustomerType[] not?: NestedEnumCustomerTypeFilter<$PrismaModel> | $Enums.CustomerType } export type UserNullableRelationFilter = { is?: UserWhereInput | null isNot?: UserWhereInput | null } export type AddressListRelationFilter = { every?: AddressWhereInput some?: AddressWhereInput none?: AddressWhereInput } export type BankCardListRelationFilter = { every?: BankCardWhereInput some?: BankCardWhereInput none?: BankCardWhereInput } export type IdentityDocumentListRelationFilter = { every?: IdentityDocumentWhereInput some?: IdentityDocumentWhereInput none?: IdentityDocumentWhereInput } export type MeterListRelationFilter = { every?: MeterWhereInput some?: MeterWhereInput none?: MeterWhereInput } export type StressfreiEmailListRelationFilter = { every?: StressfreiEmailWhereInput some?: StressfreiEmailWhereInput none?: StressfreiEmailWhereInput } export type ContractListRelationFilter = { every?: ContractWhereInput some?: ContractWhereInput none?: ContractWhereInput } export type CustomerRepresentativeListRelationFilter = { every?: CustomerRepresentativeWhereInput some?: CustomerRepresentativeWhereInput none?: CustomerRepresentativeWhereInput } export type AddressOrderByRelationAggregateInput = { _count?: SortOrder } export type BankCardOrderByRelationAggregateInput = { _count?: SortOrder } export type IdentityDocumentOrderByRelationAggregateInput = { _count?: SortOrder } export type MeterOrderByRelationAggregateInput = { _count?: SortOrder } export type StressfreiEmailOrderByRelationAggregateInput = { _count?: SortOrder } export type ContractOrderByRelationAggregateInput = { _count?: SortOrder } export type CustomerRepresentativeOrderByRelationAggregateInput = { _count?: SortOrder } export type CustomerCountOrderByAggregateInput = { id?: SortOrder customerNumber?: SortOrder type?: SortOrder salutation?: SortOrder firstName?: SortOrder lastName?: SortOrder companyName?: SortOrder foundingDate?: SortOrder birthDate?: SortOrder birthPlace?: SortOrder email?: SortOrder phone?: SortOrder mobile?: SortOrder taxNumber?: SortOrder businessRegistrationPath?: SortOrder commercialRegisterPath?: SortOrder commercialRegisterNumber?: SortOrder privacyPolicyPath?: SortOrder notes?: SortOrder portalEnabled?: SortOrder portalEmail?: SortOrder portalPasswordHash?: SortOrder portalPasswordEncrypted?: SortOrder portalLastLogin?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CustomerAvgOrderByAggregateInput = { id?: SortOrder } export type CustomerMaxOrderByAggregateInput = { id?: SortOrder customerNumber?: SortOrder type?: SortOrder salutation?: SortOrder firstName?: SortOrder lastName?: SortOrder companyName?: SortOrder foundingDate?: SortOrder birthDate?: SortOrder birthPlace?: SortOrder email?: SortOrder phone?: SortOrder mobile?: SortOrder taxNumber?: SortOrder businessRegistrationPath?: SortOrder commercialRegisterPath?: SortOrder commercialRegisterNumber?: SortOrder privacyPolicyPath?: SortOrder notes?: SortOrder portalEnabled?: SortOrder portalEmail?: SortOrder portalPasswordHash?: SortOrder portalPasswordEncrypted?: SortOrder portalLastLogin?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CustomerMinOrderByAggregateInput = { id?: SortOrder customerNumber?: SortOrder type?: SortOrder salutation?: SortOrder firstName?: SortOrder lastName?: SortOrder companyName?: SortOrder foundingDate?: SortOrder birthDate?: SortOrder birthPlace?: SortOrder email?: SortOrder phone?: SortOrder mobile?: SortOrder taxNumber?: SortOrder businessRegistrationPath?: SortOrder commercialRegisterPath?: SortOrder commercialRegisterNumber?: SortOrder privacyPolicyPath?: SortOrder notes?: SortOrder portalEnabled?: SortOrder portalEmail?: SortOrder portalPasswordHash?: SortOrder portalPasswordEncrypted?: SortOrder portalLastLogin?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CustomerSumOrderByAggregateInput = { id?: SortOrder } export type EnumCustomerTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CustomerType | EnumCustomerTypeFieldRefInput<$PrismaModel> in?: $Enums.CustomerType[] notIn?: $Enums.CustomerType[] not?: NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel> | $Enums.CustomerType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCustomerTypeFilter<$PrismaModel> _max?: NestedEnumCustomerTypeFilter<$PrismaModel> } export type CustomerRelationFilter = { is?: CustomerWhereInput isNot?: CustomerWhereInput } export type CustomerRepresentativeCustomerIdRepresentativeIdCompoundUniqueInput = { customerId: number representativeId: number } export type CustomerRepresentativeCountOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder representativeId?: SortOrder notes?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CustomerRepresentativeAvgOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder representativeId?: SortOrder } export type CustomerRepresentativeMaxOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder representativeId?: SortOrder notes?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CustomerRepresentativeMinOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder representativeId?: SortOrder notes?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CustomerRepresentativeSumOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder representativeId?: SortOrder } export type EnumAddressTypeFilter<$PrismaModel = never> = { equals?: $Enums.AddressType | EnumAddressTypeFieldRefInput<$PrismaModel> in?: $Enums.AddressType[] notIn?: $Enums.AddressType[] not?: NestedEnumAddressTypeFilter<$PrismaModel> | $Enums.AddressType } export type AddressCountOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder street?: SortOrder houseNumber?: SortOrder postalCode?: SortOrder city?: SortOrder country?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AddressAvgOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type AddressMaxOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder street?: SortOrder houseNumber?: SortOrder postalCode?: SortOrder city?: SortOrder country?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AddressMinOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder street?: SortOrder houseNumber?: SortOrder postalCode?: SortOrder city?: SortOrder country?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AddressSumOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type EnumAddressTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.AddressType | EnumAddressTypeFieldRefInput<$PrismaModel> in?: $Enums.AddressType[] notIn?: $Enums.AddressType[] not?: NestedEnumAddressTypeWithAggregatesFilter<$PrismaModel> | $Enums.AddressType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumAddressTypeFilter<$PrismaModel> _max?: NestedEnumAddressTypeFilter<$PrismaModel> } export type BankCardCountOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder accountHolder?: SortOrder iban?: SortOrder bic?: SortOrder bankName?: SortOrder expiryDate?: SortOrder documentPath?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type BankCardAvgOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type BankCardMaxOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder accountHolder?: SortOrder iban?: SortOrder bic?: SortOrder bankName?: SortOrder expiryDate?: SortOrder documentPath?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type BankCardMinOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder accountHolder?: SortOrder iban?: SortOrder bic?: SortOrder bankName?: SortOrder expiryDate?: SortOrder documentPath?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type BankCardSumOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type EnumDocumentTypeFilter<$PrismaModel = never> = { equals?: $Enums.DocumentType | EnumDocumentTypeFieldRefInput<$PrismaModel> in?: $Enums.DocumentType[] notIn?: $Enums.DocumentType[] not?: NestedEnumDocumentTypeFilter<$PrismaModel> | $Enums.DocumentType } export type IdentityDocumentCountOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder documentNumber?: SortOrder issuingAuthority?: SortOrder issueDate?: SortOrder expiryDate?: SortOrder documentPath?: SortOrder isActive?: SortOrder licenseClasses?: SortOrder licenseIssueDate?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IdentityDocumentAvgOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type IdentityDocumentMaxOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder documentNumber?: SortOrder issuingAuthority?: SortOrder issueDate?: SortOrder expiryDate?: SortOrder documentPath?: SortOrder isActive?: SortOrder licenseClasses?: SortOrder licenseIssueDate?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IdentityDocumentMinOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder type?: SortOrder documentNumber?: SortOrder issuingAuthority?: SortOrder issueDate?: SortOrder expiryDate?: SortOrder documentPath?: SortOrder isActive?: SortOrder licenseClasses?: SortOrder licenseIssueDate?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type IdentityDocumentSumOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type EnumDocumentTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.DocumentType | EnumDocumentTypeFieldRefInput<$PrismaModel> in?: $Enums.DocumentType[] notIn?: $Enums.DocumentType[] not?: NestedEnumDocumentTypeWithAggregatesFilter<$PrismaModel> | $Enums.DocumentType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumDocumentTypeFilter<$PrismaModel> _max?: NestedEnumDocumentTypeFilter<$PrismaModel> } export type EnumEmailProviderTypeFilter<$PrismaModel = never> = { equals?: $Enums.EmailProviderType | EnumEmailProviderTypeFieldRefInput<$PrismaModel> in?: $Enums.EmailProviderType[] notIn?: $Enums.EmailProviderType[] not?: NestedEnumEmailProviderTypeFilter<$PrismaModel> | $Enums.EmailProviderType } export type EnumMailEncryptionFilter<$PrismaModel = never> = { equals?: $Enums.MailEncryption | EnumMailEncryptionFieldRefInput<$PrismaModel> in?: $Enums.MailEncryption[] notIn?: $Enums.MailEncryption[] not?: NestedEnumMailEncryptionFilter<$PrismaModel> | $Enums.MailEncryption } export type EmailProviderConfigCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder apiUrl?: SortOrder apiKey?: SortOrder username?: SortOrder passwordEncrypted?: SortOrder domain?: SortOrder defaultForwardEmail?: SortOrder imapServer?: SortOrder imapPort?: SortOrder smtpServer?: SortOrder smtpPort?: SortOrder imapEncryption?: SortOrder smtpEncryption?: SortOrder allowSelfSignedCerts?: SortOrder isActive?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EmailProviderConfigAvgOrderByAggregateInput = { id?: SortOrder imapPort?: SortOrder smtpPort?: SortOrder } export type EmailProviderConfigMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder apiUrl?: SortOrder apiKey?: SortOrder username?: SortOrder passwordEncrypted?: SortOrder domain?: SortOrder defaultForwardEmail?: SortOrder imapServer?: SortOrder imapPort?: SortOrder smtpServer?: SortOrder smtpPort?: SortOrder imapEncryption?: SortOrder smtpEncryption?: SortOrder allowSelfSignedCerts?: SortOrder isActive?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EmailProviderConfigMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder apiUrl?: SortOrder apiKey?: SortOrder username?: SortOrder passwordEncrypted?: SortOrder domain?: SortOrder defaultForwardEmail?: SortOrder imapServer?: SortOrder imapPort?: SortOrder smtpServer?: SortOrder smtpPort?: SortOrder imapEncryption?: SortOrder smtpEncryption?: SortOrder allowSelfSignedCerts?: SortOrder isActive?: SortOrder isDefault?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EmailProviderConfigSumOrderByAggregateInput = { id?: SortOrder imapPort?: SortOrder smtpPort?: SortOrder } export type EnumEmailProviderTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.EmailProviderType | EnumEmailProviderTypeFieldRefInput<$PrismaModel> in?: $Enums.EmailProviderType[] notIn?: $Enums.EmailProviderType[] not?: NestedEnumEmailProviderTypeWithAggregatesFilter<$PrismaModel> | $Enums.EmailProviderType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumEmailProviderTypeFilter<$PrismaModel> _max?: NestedEnumEmailProviderTypeFilter<$PrismaModel> } export type EnumMailEncryptionWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MailEncryption | EnumMailEncryptionFieldRefInput<$PrismaModel> in?: $Enums.MailEncryption[] notIn?: $Enums.MailEncryption[] not?: NestedEnumMailEncryptionWithAggregatesFilter<$PrismaModel> | $Enums.MailEncryption _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMailEncryptionFilter<$PrismaModel> _max?: NestedEnumMailEncryptionFilter<$PrismaModel> } export type CachedEmailListRelationFilter = { every?: CachedEmailWhereInput some?: CachedEmailWhereInput none?: CachedEmailWhereInput } export type CachedEmailOrderByRelationAggregateInput = { _count?: SortOrder } export type StressfreiEmailCountOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder email?: SortOrder platform?: SortOrder notes?: SortOrder isActive?: SortOrder isProvisioned?: SortOrder provisionedAt?: SortOrder provisionError?: SortOrder hasMailbox?: SortOrder emailPasswordEncrypted?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type StressfreiEmailAvgOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type StressfreiEmailMaxOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder email?: SortOrder platform?: SortOrder notes?: SortOrder isActive?: SortOrder isProvisioned?: SortOrder provisionedAt?: SortOrder provisionError?: SortOrder hasMailbox?: SortOrder emailPasswordEncrypted?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type StressfreiEmailMinOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder email?: SortOrder platform?: SortOrder notes?: SortOrder isActive?: SortOrder isProvisioned?: SortOrder provisionedAt?: SortOrder provisionError?: SortOrder hasMailbox?: SortOrder emailPasswordEncrypted?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type StressfreiEmailSumOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type EnumEmailFolderFilter<$PrismaModel = never> = { equals?: $Enums.EmailFolder | EnumEmailFolderFieldRefInput<$PrismaModel> in?: $Enums.EmailFolder[] notIn?: $Enums.EmailFolder[] not?: NestedEnumEmailFolderFilter<$PrismaModel> | $Enums.EmailFolder } export type StressfreiEmailRelationFilter = { is?: StressfreiEmailWhereInput isNot?: StressfreiEmailWhereInput } export type ContractNullableRelationFilter = { is?: ContractWhereInput | null isNot?: ContractWhereInput | null } export type CachedEmailStressfreiEmailIdMessageIdFolderCompoundUniqueInput = { stressfreiEmailId: number messageId: string folder: $Enums.EmailFolder } export type CachedEmailCountOrderByAggregateInput = { id?: SortOrder stressfreiEmailId?: SortOrder folder?: SortOrder messageId?: SortOrder uid?: SortOrder subject?: SortOrder fromAddress?: SortOrder fromName?: SortOrder toAddresses?: SortOrder ccAddresses?: SortOrder receivedAt?: SortOrder textBody?: SortOrder htmlBody?: SortOrder hasAttachments?: SortOrder attachmentNames?: SortOrder contractId?: SortOrder assignedAt?: SortOrder assignedBy?: SortOrder isAutoAssigned?: SortOrder isRead?: SortOrder isStarred?: SortOrder isDeleted?: SortOrder deletedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CachedEmailAvgOrderByAggregateInput = { id?: SortOrder stressfreiEmailId?: SortOrder uid?: SortOrder contractId?: SortOrder assignedBy?: SortOrder } export type CachedEmailMaxOrderByAggregateInput = { id?: SortOrder stressfreiEmailId?: SortOrder folder?: SortOrder messageId?: SortOrder uid?: SortOrder subject?: SortOrder fromAddress?: SortOrder fromName?: SortOrder toAddresses?: SortOrder ccAddresses?: SortOrder receivedAt?: SortOrder textBody?: SortOrder htmlBody?: SortOrder hasAttachments?: SortOrder attachmentNames?: SortOrder contractId?: SortOrder assignedAt?: SortOrder assignedBy?: SortOrder isAutoAssigned?: SortOrder isRead?: SortOrder isStarred?: SortOrder isDeleted?: SortOrder deletedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CachedEmailMinOrderByAggregateInput = { id?: SortOrder stressfreiEmailId?: SortOrder folder?: SortOrder messageId?: SortOrder uid?: SortOrder subject?: SortOrder fromAddress?: SortOrder fromName?: SortOrder toAddresses?: SortOrder ccAddresses?: SortOrder receivedAt?: SortOrder textBody?: SortOrder htmlBody?: SortOrder hasAttachments?: SortOrder attachmentNames?: SortOrder contractId?: SortOrder assignedAt?: SortOrder assignedBy?: SortOrder isAutoAssigned?: SortOrder isRead?: SortOrder isStarred?: SortOrder isDeleted?: SortOrder deletedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CachedEmailSumOrderByAggregateInput = { id?: SortOrder stressfreiEmailId?: SortOrder uid?: SortOrder contractId?: SortOrder assignedBy?: SortOrder } export type EnumEmailFolderWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.EmailFolder | EnumEmailFolderFieldRefInput<$PrismaModel> in?: $Enums.EmailFolder[] notIn?: $Enums.EmailFolder[] not?: NestedEnumEmailFolderWithAggregatesFilter<$PrismaModel> | $Enums.EmailFolder _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumEmailFolderFilter<$PrismaModel> _max?: NestedEnumEmailFolderFilter<$PrismaModel> } export type EnumMeterTypeFilter<$PrismaModel = never> = { equals?: $Enums.MeterType | EnumMeterTypeFieldRefInput<$PrismaModel> in?: $Enums.MeterType[] notIn?: $Enums.MeterType[] not?: NestedEnumMeterTypeFilter<$PrismaModel> | $Enums.MeterType } export type MeterReadingListRelationFilter = { every?: MeterReadingWhereInput some?: MeterReadingWhereInput none?: MeterReadingWhereInput } export type EnergyContractDetailsListRelationFilter = { every?: EnergyContractDetailsWhereInput some?: EnergyContractDetailsWhereInput none?: EnergyContractDetailsWhereInput } export type MeterReadingOrderByRelationAggregateInput = { _count?: SortOrder } export type EnergyContractDetailsOrderByRelationAggregateInput = { _count?: SortOrder } export type MeterCountOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder meterNumber?: SortOrder type?: SortOrder location?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MeterAvgOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type MeterMaxOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder meterNumber?: SortOrder type?: SortOrder location?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MeterMinOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder meterNumber?: SortOrder type?: SortOrder location?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MeterSumOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder } export type EnumMeterTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MeterType | EnumMeterTypeFieldRefInput<$PrismaModel> in?: $Enums.MeterType[] notIn?: $Enums.MeterType[] not?: NestedEnumMeterTypeWithAggregatesFilter<$PrismaModel> | $Enums.MeterType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMeterTypeFilter<$PrismaModel> _max?: NestedEnumMeterTypeFilter<$PrismaModel> } export type FloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type MeterRelationFilter = { is?: MeterWhereInput isNot?: MeterWhereInput } export type MeterReadingCountOrderByAggregateInput = { id?: SortOrder meterId?: SortOrder readingDate?: SortOrder value?: SortOrder unit?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type MeterReadingAvgOrderByAggregateInput = { id?: SortOrder meterId?: SortOrder value?: SortOrder } export type MeterReadingMaxOrderByAggregateInput = { id?: SortOrder meterId?: SortOrder readingDate?: SortOrder value?: SortOrder unit?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type MeterReadingMinOrderByAggregateInput = { id?: SortOrder meterId?: SortOrder readingDate?: SortOrder value?: SortOrder unit?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type MeterReadingSumOrderByAggregateInput = { id?: SortOrder meterId?: SortOrder value?: SortOrder } export type FloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type SalesPlatformCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder contactInfo?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SalesPlatformAvgOrderByAggregateInput = { id?: SortOrder } export type SalesPlatformMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder contactInfo?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SalesPlatformMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder contactInfo?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SalesPlatformSumOrderByAggregateInput = { id?: SortOrder } export type CancellationPeriodCountOrderByAggregateInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CancellationPeriodAvgOrderByAggregateInput = { id?: SortOrder } export type CancellationPeriodMaxOrderByAggregateInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CancellationPeriodMinOrderByAggregateInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CancellationPeriodSumOrderByAggregateInput = { id?: SortOrder } export type ContractDurationCountOrderByAggregateInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractDurationAvgOrderByAggregateInput = { id?: SortOrder } export type ContractDurationMaxOrderByAggregateInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractDurationMinOrderByAggregateInput = { id?: SortOrder code?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractDurationSumOrderByAggregateInput = { id?: SortOrder } export type TariffListRelationFilter = { every?: TariffWhereInput some?: TariffWhereInput none?: TariffWhereInput } export type TariffOrderByRelationAggregateInput = { _count?: SortOrder } export type ProviderCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder portalUrl?: SortOrder usernameFieldName?: SortOrder passwordFieldName?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProviderAvgOrderByAggregateInput = { id?: SortOrder } export type ProviderMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder portalUrl?: SortOrder usernameFieldName?: SortOrder passwordFieldName?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProviderMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder portalUrl?: SortOrder usernameFieldName?: SortOrder passwordFieldName?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProviderSumOrderByAggregateInput = { id?: SortOrder } export type ProviderRelationFilter = { is?: ProviderWhereInput isNot?: ProviderWhereInput } export type TariffProviderIdNameCompoundUniqueInput = { providerId: number name: string } export type TariffCountOrderByAggregateInput = { id?: SortOrder providerId?: SortOrder name?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TariffAvgOrderByAggregateInput = { id?: SortOrder providerId?: SortOrder } export type TariffMaxOrderByAggregateInput = { id?: SortOrder providerId?: SortOrder name?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TariffMinOrderByAggregateInput = { id?: SortOrder providerId?: SortOrder name?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TariffSumOrderByAggregateInput = { id?: SortOrder providerId?: SortOrder } export type ContractCategoryCountOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder icon?: SortOrder color?: SortOrder sortOrder?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractCategoryAvgOrderByAggregateInput = { id?: SortOrder sortOrder?: SortOrder } export type ContractCategoryMaxOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder icon?: SortOrder color?: SortOrder sortOrder?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractCategoryMinOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder icon?: SortOrder color?: SortOrder sortOrder?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractCategorySumOrderByAggregateInput = { id?: SortOrder sortOrder?: SortOrder } export type EnumContractTypeFilter<$PrismaModel = never> = { equals?: $Enums.ContractType | EnumContractTypeFieldRefInput<$PrismaModel> in?: $Enums.ContractType[] notIn?: $Enums.ContractType[] not?: NestedEnumContractTypeFilter<$PrismaModel> | $Enums.ContractType } export type EnumContractStatusFilter<$PrismaModel = never> = { equals?: $Enums.ContractStatus | EnumContractStatusFieldRefInput<$PrismaModel> in?: $Enums.ContractStatus[] notIn?: $Enums.ContractStatus[] not?: NestedEnumContractStatusFilter<$PrismaModel> | $Enums.ContractStatus } export type FloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type ContractCategoryNullableRelationFilter = { is?: ContractCategoryWhereInput | null isNot?: ContractCategoryWhereInput | null } export type AddressNullableRelationFilter = { is?: AddressWhereInput | null isNot?: AddressWhereInput | null } export type BankCardNullableRelationFilter = { is?: BankCardWhereInput | null isNot?: BankCardWhereInput | null } export type IdentityDocumentNullableRelationFilter = { is?: IdentityDocumentWhereInput | null isNot?: IdentityDocumentWhereInput | null } export type SalesPlatformNullableRelationFilter = { is?: SalesPlatformWhereInput | null isNot?: SalesPlatformWhereInput | null } export type CancellationPeriodNullableRelationFilter = { is?: CancellationPeriodWhereInput | null isNot?: CancellationPeriodWhereInput | null } export type ContractDurationNullableRelationFilter = { is?: ContractDurationWhereInput | null isNot?: ContractDurationWhereInput | null } export type ProviderNullableRelationFilter = { is?: ProviderWhereInput | null isNot?: ProviderWhereInput | null } export type TariffNullableRelationFilter = { is?: TariffWhereInput | null isNot?: TariffWhereInput | null } export type StressfreiEmailNullableRelationFilter = { is?: StressfreiEmailWhereInput | null isNot?: StressfreiEmailWhereInput | null } export type EnergyContractDetailsNullableRelationFilter = { is?: EnergyContractDetailsWhereInput | null isNot?: EnergyContractDetailsWhereInput | null } export type InternetContractDetailsNullableRelationFilter = { is?: InternetContractDetailsWhereInput | null isNot?: InternetContractDetailsWhereInput | null } export type MobileContractDetailsNullableRelationFilter = { is?: MobileContractDetailsWhereInput | null isNot?: MobileContractDetailsWhereInput | null } export type TvContractDetailsNullableRelationFilter = { is?: TvContractDetailsWhereInput | null isNot?: TvContractDetailsWhereInput | null } export type CarInsuranceDetailsNullableRelationFilter = { is?: CarInsuranceDetailsWhereInput | null isNot?: CarInsuranceDetailsWhereInput | null } export type ContractTaskListRelationFilter = { every?: ContractTaskWhereInput some?: ContractTaskWhereInput none?: ContractTaskWhereInput } export type ContractTaskOrderByRelationAggregateInput = { _count?: SortOrder } export type ContractCountOrderByAggregateInput = { id?: SortOrder contractNumber?: SortOrder customerId?: SortOrder type?: SortOrder status?: SortOrder contractCategoryId?: SortOrder addressId?: SortOrder billingAddressId?: SortOrder bankCardId?: SortOrder identityDocumentId?: SortOrder salesPlatformId?: SortOrder cancellationPeriodId?: SortOrder contractDurationId?: SortOrder previousContractId?: SortOrder providerId?: SortOrder tariffId?: SortOrder providerName?: SortOrder tariffName?: SortOrder customerNumberAtProvider?: SortOrder priceFirst12Months?: SortOrder priceFrom13Months?: SortOrder priceAfter24Months?: SortOrder startDate?: SortOrder endDate?: SortOrder commission?: SortOrder cancellationLetterPath?: SortOrder cancellationConfirmationPath?: SortOrder cancellationLetterOptionsPath?: SortOrder cancellationConfirmationOptionsPath?: SortOrder cancellationConfirmationDate?: SortOrder cancellationConfirmationOptionsDate?: SortOrder wasSpecialCancellation?: SortOrder portalUsername?: SortOrder portalPasswordEncrypted?: SortOrder stressfreiEmailId?: SortOrder notes?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractAvgOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder contractCategoryId?: SortOrder addressId?: SortOrder billingAddressId?: SortOrder bankCardId?: SortOrder identityDocumentId?: SortOrder salesPlatformId?: SortOrder cancellationPeriodId?: SortOrder contractDurationId?: SortOrder previousContractId?: SortOrder providerId?: SortOrder tariffId?: SortOrder commission?: SortOrder stressfreiEmailId?: SortOrder } export type ContractMaxOrderByAggregateInput = { id?: SortOrder contractNumber?: SortOrder customerId?: SortOrder type?: SortOrder status?: SortOrder contractCategoryId?: SortOrder addressId?: SortOrder billingAddressId?: SortOrder bankCardId?: SortOrder identityDocumentId?: SortOrder salesPlatformId?: SortOrder cancellationPeriodId?: SortOrder contractDurationId?: SortOrder previousContractId?: SortOrder providerId?: SortOrder tariffId?: SortOrder providerName?: SortOrder tariffName?: SortOrder customerNumberAtProvider?: SortOrder priceFirst12Months?: SortOrder priceFrom13Months?: SortOrder priceAfter24Months?: SortOrder startDate?: SortOrder endDate?: SortOrder commission?: SortOrder cancellationLetterPath?: SortOrder cancellationConfirmationPath?: SortOrder cancellationLetterOptionsPath?: SortOrder cancellationConfirmationOptionsPath?: SortOrder cancellationConfirmationDate?: SortOrder cancellationConfirmationOptionsDate?: SortOrder wasSpecialCancellation?: SortOrder portalUsername?: SortOrder portalPasswordEncrypted?: SortOrder stressfreiEmailId?: SortOrder notes?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractMinOrderByAggregateInput = { id?: SortOrder contractNumber?: SortOrder customerId?: SortOrder type?: SortOrder status?: SortOrder contractCategoryId?: SortOrder addressId?: SortOrder billingAddressId?: SortOrder bankCardId?: SortOrder identityDocumentId?: SortOrder salesPlatformId?: SortOrder cancellationPeriodId?: SortOrder contractDurationId?: SortOrder previousContractId?: SortOrder providerId?: SortOrder tariffId?: SortOrder providerName?: SortOrder tariffName?: SortOrder customerNumberAtProvider?: SortOrder priceFirst12Months?: SortOrder priceFrom13Months?: SortOrder priceAfter24Months?: SortOrder startDate?: SortOrder endDate?: SortOrder commission?: SortOrder cancellationLetterPath?: SortOrder cancellationConfirmationPath?: SortOrder cancellationLetterOptionsPath?: SortOrder cancellationConfirmationOptionsPath?: SortOrder cancellationConfirmationDate?: SortOrder cancellationConfirmationOptionsDate?: SortOrder wasSpecialCancellation?: SortOrder portalUsername?: SortOrder portalPasswordEncrypted?: SortOrder stressfreiEmailId?: SortOrder notes?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractSumOrderByAggregateInput = { id?: SortOrder customerId?: SortOrder contractCategoryId?: SortOrder addressId?: SortOrder billingAddressId?: SortOrder bankCardId?: SortOrder identityDocumentId?: SortOrder salesPlatformId?: SortOrder cancellationPeriodId?: SortOrder contractDurationId?: SortOrder previousContractId?: SortOrder providerId?: SortOrder tariffId?: SortOrder commission?: SortOrder stressfreiEmailId?: SortOrder } export type EnumContractTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ContractType | EnumContractTypeFieldRefInput<$PrismaModel> in?: $Enums.ContractType[] notIn?: $Enums.ContractType[] not?: NestedEnumContractTypeWithAggregatesFilter<$PrismaModel> | $Enums.ContractType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumContractTypeFilter<$PrismaModel> _max?: NestedEnumContractTypeFilter<$PrismaModel> } export type EnumContractStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ContractStatus | EnumContractStatusFieldRefInput<$PrismaModel> in?: $Enums.ContractStatus[] notIn?: $Enums.ContractStatus[] not?: NestedEnumContractStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContractStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumContractStatusFilter<$PrismaModel> _max?: NestedEnumContractStatusFilter<$PrismaModel> } export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedFloatNullableFilter<$PrismaModel> _min?: NestedFloatNullableFilter<$PrismaModel> _max?: NestedFloatNullableFilter<$PrismaModel> } export type EnumContractTaskStatusFilter<$PrismaModel = never> = { equals?: $Enums.ContractTaskStatus | EnumContractTaskStatusFieldRefInput<$PrismaModel> in?: $Enums.ContractTaskStatus[] notIn?: $Enums.ContractTaskStatus[] not?: NestedEnumContractTaskStatusFilter<$PrismaModel> | $Enums.ContractTaskStatus } export type ContractRelationFilter = { is?: ContractWhereInput isNot?: ContractWhereInput } export type ContractTaskSubtaskListRelationFilter = { every?: ContractTaskSubtaskWhereInput some?: ContractTaskSubtaskWhereInput none?: ContractTaskSubtaskWhereInput } export type ContractTaskSubtaskOrderByRelationAggregateInput = { _count?: SortOrder } export type ContractTaskCountOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder visibleInPortal?: SortOrder createdBy?: SortOrder completedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractTaskAvgOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder } export type ContractTaskMaxOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder visibleInPortal?: SortOrder createdBy?: SortOrder completedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractTaskMinOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder title?: SortOrder description?: SortOrder status?: SortOrder visibleInPortal?: SortOrder createdBy?: SortOrder completedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractTaskSumOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder } export type EnumContractTaskStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ContractTaskStatus | EnumContractTaskStatusFieldRefInput<$PrismaModel> in?: $Enums.ContractTaskStatus[] notIn?: $Enums.ContractTaskStatus[] not?: NestedEnumContractTaskStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContractTaskStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumContractTaskStatusFilter<$PrismaModel> _max?: NestedEnumContractTaskStatusFilter<$PrismaModel> } export type ContractTaskRelationFilter = { is?: ContractTaskWhereInput isNot?: ContractTaskWhereInput } export type ContractTaskSubtaskCountOrderByAggregateInput = { id?: SortOrder taskId?: SortOrder title?: SortOrder status?: SortOrder createdBy?: SortOrder completedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractTaskSubtaskAvgOrderByAggregateInput = { id?: SortOrder taskId?: SortOrder } export type ContractTaskSubtaskMaxOrderByAggregateInput = { id?: SortOrder taskId?: SortOrder title?: SortOrder status?: SortOrder createdBy?: SortOrder completedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractTaskSubtaskMinOrderByAggregateInput = { id?: SortOrder taskId?: SortOrder title?: SortOrder status?: SortOrder createdBy?: SortOrder completedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ContractTaskSubtaskSumOrderByAggregateInput = { id?: SortOrder taskId?: SortOrder } export type MeterNullableRelationFilter = { is?: MeterWhereInput | null isNot?: MeterWhereInput | null } export type InvoiceListRelationFilter = { every?: InvoiceWhereInput some?: InvoiceWhereInput none?: InvoiceWhereInput } export type InvoiceOrderByRelationAggregateInput = { _count?: SortOrder } export type EnergyContractDetailsCountOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder meterId?: SortOrder maloId?: SortOrder annualConsumption?: SortOrder annualConsumptionKwh?: SortOrder basePrice?: SortOrder unitPrice?: SortOrder bonus?: SortOrder previousProviderName?: SortOrder previousCustomerNumber?: SortOrder } export type EnergyContractDetailsAvgOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder meterId?: SortOrder annualConsumption?: SortOrder annualConsumptionKwh?: SortOrder basePrice?: SortOrder unitPrice?: SortOrder bonus?: SortOrder } export type EnergyContractDetailsMaxOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder meterId?: SortOrder maloId?: SortOrder annualConsumption?: SortOrder annualConsumptionKwh?: SortOrder basePrice?: SortOrder unitPrice?: SortOrder bonus?: SortOrder previousProviderName?: SortOrder previousCustomerNumber?: SortOrder } export type EnergyContractDetailsMinOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder meterId?: SortOrder maloId?: SortOrder annualConsumption?: SortOrder annualConsumptionKwh?: SortOrder basePrice?: SortOrder unitPrice?: SortOrder bonus?: SortOrder previousProviderName?: SortOrder previousCustomerNumber?: SortOrder } export type EnergyContractDetailsSumOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder meterId?: SortOrder annualConsumption?: SortOrder annualConsumptionKwh?: SortOrder basePrice?: SortOrder unitPrice?: SortOrder bonus?: SortOrder } export type EnumInvoiceTypeFilter<$PrismaModel = never> = { equals?: $Enums.InvoiceType | EnumInvoiceTypeFieldRefInput<$PrismaModel> in?: $Enums.InvoiceType[] notIn?: $Enums.InvoiceType[] not?: NestedEnumInvoiceTypeFilter<$PrismaModel> | $Enums.InvoiceType } export type EnergyContractDetailsRelationFilter = { is?: EnergyContractDetailsWhereInput isNot?: EnergyContractDetailsWhereInput } export type InvoiceCountOrderByAggregateInput = { id?: SortOrder energyContractDetailsId?: SortOrder invoiceDate?: SortOrder invoiceType?: SortOrder documentPath?: SortOrder notes?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type InvoiceAvgOrderByAggregateInput = { id?: SortOrder energyContractDetailsId?: SortOrder } export type InvoiceMaxOrderByAggregateInput = { id?: SortOrder energyContractDetailsId?: SortOrder invoiceDate?: SortOrder invoiceType?: SortOrder documentPath?: SortOrder notes?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type InvoiceMinOrderByAggregateInput = { id?: SortOrder energyContractDetailsId?: SortOrder invoiceDate?: SortOrder invoiceType?: SortOrder documentPath?: SortOrder notes?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type InvoiceSumOrderByAggregateInput = { id?: SortOrder energyContractDetailsId?: SortOrder } export type EnumInvoiceTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.InvoiceType | EnumInvoiceTypeFieldRefInput<$PrismaModel> in?: $Enums.InvoiceType[] notIn?: $Enums.InvoiceType[] not?: NestedEnumInvoiceTypeWithAggregatesFilter<$PrismaModel> | $Enums.InvoiceType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumInvoiceTypeFilter<$PrismaModel> _max?: NestedEnumInvoiceTypeFilter<$PrismaModel> } export type PhoneNumberListRelationFilter = { every?: PhoneNumberWhereInput some?: PhoneNumberWhereInput none?: PhoneNumberWhereInput } export type PhoneNumberOrderByRelationAggregateInput = { _count?: SortOrder } export type InternetContractDetailsCountOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder downloadSpeed?: SortOrder uploadSpeed?: SortOrder routerModel?: SortOrder routerSerialNumber?: SortOrder installationDate?: SortOrder internetUsername?: SortOrder internetPasswordEncrypted?: SortOrder homeId?: SortOrder activationCode?: SortOrder } export type InternetContractDetailsAvgOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder downloadSpeed?: SortOrder uploadSpeed?: SortOrder } export type InternetContractDetailsMaxOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder downloadSpeed?: SortOrder uploadSpeed?: SortOrder routerModel?: SortOrder routerSerialNumber?: SortOrder installationDate?: SortOrder internetUsername?: SortOrder internetPasswordEncrypted?: SortOrder homeId?: SortOrder activationCode?: SortOrder } export type InternetContractDetailsMinOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder downloadSpeed?: SortOrder uploadSpeed?: SortOrder routerModel?: SortOrder routerSerialNumber?: SortOrder installationDate?: SortOrder internetUsername?: SortOrder internetPasswordEncrypted?: SortOrder homeId?: SortOrder activationCode?: SortOrder } export type InternetContractDetailsSumOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder downloadSpeed?: SortOrder uploadSpeed?: SortOrder } export type InternetContractDetailsRelationFilter = { is?: InternetContractDetailsWhereInput isNot?: InternetContractDetailsWhereInput } export type PhoneNumberCountOrderByAggregateInput = { id?: SortOrder internetContractDetailsId?: SortOrder phoneNumber?: SortOrder isMain?: SortOrder sipUsername?: SortOrder sipPasswordEncrypted?: SortOrder sipServer?: SortOrder } export type PhoneNumberAvgOrderByAggregateInput = { id?: SortOrder internetContractDetailsId?: SortOrder } export type PhoneNumberMaxOrderByAggregateInput = { id?: SortOrder internetContractDetailsId?: SortOrder phoneNumber?: SortOrder isMain?: SortOrder sipUsername?: SortOrder sipPasswordEncrypted?: SortOrder sipServer?: SortOrder } export type PhoneNumberMinOrderByAggregateInput = { id?: SortOrder internetContractDetailsId?: SortOrder phoneNumber?: SortOrder isMain?: SortOrder sipUsername?: SortOrder sipPasswordEncrypted?: SortOrder sipServer?: SortOrder } export type PhoneNumberSumOrderByAggregateInput = { id?: SortOrder internetContractDetailsId?: SortOrder } export type SimCardListRelationFilter = { every?: SimCardWhereInput some?: SimCardWhereInput none?: SimCardWhereInput } export type SimCardOrderByRelationAggregateInput = { _count?: SortOrder } export type MobileContractDetailsCountOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder requiresMultisim?: SortOrder dataVolume?: SortOrder includedMinutes?: SortOrder includedSMS?: SortOrder deviceModel?: SortOrder deviceImei?: SortOrder phoneNumber?: SortOrder simCardNumber?: SortOrder } export type MobileContractDetailsAvgOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder dataVolume?: SortOrder includedMinutes?: SortOrder includedSMS?: SortOrder } export type MobileContractDetailsMaxOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder requiresMultisim?: SortOrder dataVolume?: SortOrder includedMinutes?: SortOrder includedSMS?: SortOrder deviceModel?: SortOrder deviceImei?: SortOrder phoneNumber?: SortOrder simCardNumber?: SortOrder } export type MobileContractDetailsMinOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder requiresMultisim?: SortOrder dataVolume?: SortOrder includedMinutes?: SortOrder includedSMS?: SortOrder deviceModel?: SortOrder deviceImei?: SortOrder phoneNumber?: SortOrder simCardNumber?: SortOrder } export type MobileContractDetailsSumOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder dataVolume?: SortOrder includedMinutes?: SortOrder includedSMS?: SortOrder } export type MobileContractDetailsRelationFilter = { is?: MobileContractDetailsWhereInput isNot?: MobileContractDetailsWhereInput } export type SimCardCountOrderByAggregateInput = { id?: SortOrder mobileDetailsId?: SortOrder phoneNumber?: SortOrder simCardNumber?: SortOrder pin?: SortOrder puk?: SortOrder isMultisim?: SortOrder isMain?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SimCardAvgOrderByAggregateInput = { id?: SortOrder mobileDetailsId?: SortOrder } export type SimCardMaxOrderByAggregateInput = { id?: SortOrder mobileDetailsId?: SortOrder phoneNumber?: SortOrder simCardNumber?: SortOrder pin?: SortOrder puk?: SortOrder isMultisim?: SortOrder isMain?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SimCardMinOrderByAggregateInput = { id?: SortOrder mobileDetailsId?: SortOrder phoneNumber?: SortOrder simCardNumber?: SortOrder pin?: SortOrder puk?: SortOrder isMultisim?: SortOrder isMain?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SimCardSumOrderByAggregateInput = { id?: SortOrder mobileDetailsId?: SortOrder } export type TvContractDetailsCountOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder receiverModel?: SortOrder smartcardNumber?: SortOrder package?: SortOrder } export type TvContractDetailsAvgOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder } export type TvContractDetailsMaxOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder receiverModel?: SortOrder smartcardNumber?: SortOrder package?: SortOrder } export type TvContractDetailsMinOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder receiverModel?: SortOrder smartcardNumber?: SortOrder package?: SortOrder } export type TvContractDetailsSumOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder } export type EnumInsuranceTypeFilter<$PrismaModel = never> = { equals?: $Enums.InsuranceType | EnumInsuranceTypeFieldRefInput<$PrismaModel> in?: $Enums.InsuranceType[] notIn?: $Enums.InsuranceType[] not?: NestedEnumInsuranceTypeFilter<$PrismaModel> | $Enums.InsuranceType } export type CarInsuranceDetailsCountOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder licensePlate?: SortOrder hsn?: SortOrder tsn?: SortOrder vin?: SortOrder vehicleType?: SortOrder firstRegistration?: SortOrder noClaimsClass?: SortOrder insuranceType?: SortOrder deductiblePartial?: SortOrder deductibleFull?: SortOrder policyNumber?: SortOrder previousInsurer?: SortOrder } export type CarInsuranceDetailsAvgOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder deductiblePartial?: SortOrder deductibleFull?: SortOrder } export type CarInsuranceDetailsMaxOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder licensePlate?: SortOrder hsn?: SortOrder tsn?: SortOrder vin?: SortOrder vehicleType?: SortOrder firstRegistration?: SortOrder noClaimsClass?: SortOrder insuranceType?: SortOrder deductiblePartial?: SortOrder deductibleFull?: SortOrder policyNumber?: SortOrder previousInsurer?: SortOrder } export type CarInsuranceDetailsMinOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder licensePlate?: SortOrder hsn?: SortOrder tsn?: SortOrder vin?: SortOrder vehicleType?: SortOrder firstRegistration?: SortOrder noClaimsClass?: SortOrder insuranceType?: SortOrder deductiblePartial?: SortOrder deductibleFull?: SortOrder policyNumber?: SortOrder previousInsurer?: SortOrder } export type CarInsuranceDetailsSumOrderByAggregateInput = { id?: SortOrder contractId?: SortOrder deductiblePartial?: SortOrder deductibleFull?: SortOrder } export type EnumInsuranceTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.InsuranceType | EnumInsuranceTypeFieldRefInput<$PrismaModel> in?: $Enums.InsuranceType[] notIn?: $Enums.InsuranceType[] not?: NestedEnumInsuranceTypeWithAggregatesFilter<$PrismaModel> | $Enums.InsuranceType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumInsuranceTypeFilter<$PrismaModel> _max?: NestedEnumInsuranceTypeFilter<$PrismaModel> } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type CustomerCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutUserInput connect?: CustomerWhereUniqueInput } export type UserRoleCreateNestedManyWithoutUserInput = { create?: XOR | UserRoleCreateWithoutUserInput[] | UserRoleUncheckedCreateWithoutUserInput[] connectOrCreate?: UserRoleCreateOrConnectWithoutUserInput | UserRoleCreateOrConnectWithoutUserInput[] createMany?: UserRoleCreateManyUserInputEnvelope connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] } export type UserRoleUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | UserRoleCreateWithoutUserInput[] | UserRoleUncheckedCreateWithoutUserInput[] connectOrCreate?: UserRoleCreateOrConnectWithoutUserInput | UserRoleCreateOrConnectWithoutUserInput[] createMany?: UserRoleCreateManyUserInputEnvelope connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type CustomerUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutUserInput upsert?: CustomerUpsertWithoutUserInput disconnect?: CustomerWhereInput | boolean delete?: CustomerWhereInput | boolean connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutUserInput> } export type UserRoleUpdateManyWithoutUserNestedInput = { create?: XOR | UserRoleCreateWithoutUserInput[] | UserRoleUncheckedCreateWithoutUserInput[] connectOrCreate?: UserRoleCreateOrConnectWithoutUserInput | UserRoleCreateOrConnectWithoutUserInput[] upsert?: UserRoleUpsertWithWhereUniqueWithoutUserInput | UserRoleUpsertWithWhereUniqueWithoutUserInput[] createMany?: UserRoleCreateManyUserInputEnvelope set?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] disconnect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] delete?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] update?: UserRoleUpdateWithWhereUniqueWithoutUserInput | UserRoleUpdateWithWhereUniqueWithoutUserInput[] updateMany?: UserRoleUpdateManyWithWhereWithoutUserInput | UserRoleUpdateManyWithWhereWithoutUserInput[] deleteMany?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[] } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type UserRoleUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | UserRoleCreateWithoutUserInput[] | UserRoleUncheckedCreateWithoutUserInput[] connectOrCreate?: UserRoleCreateOrConnectWithoutUserInput | UserRoleCreateOrConnectWithoutUserInput[] upsert?: UserRoleUpsertWithWhereUniqueWithoutUserInput | UserRoleUpsertWithWhereUniqueWithoutUserInput[] createMany?: UserRoleCreateManyUserInputEnvelope set?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] disconnect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] delete?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] update?: UserRoleUpdateWithWhereUniqueWithoutUserInput | UserRoleUpdateWithWhereUniqueWithoutUserInput[] updateMany?: UserRoleUpdateManyWithWhereWithoutUserInput | UserRoleUpdateManyWithWhereWithoutUserInput[] deleteMany?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[] } export type RolePermissionCreateNestedManyWithoutRoleInput = { create?: XOR | RolePermissionCreateWithoutRoleInput[] | RolePermissionUncheckedCreateWithoutRoleInput[] connectOrCreate?: RolePermissionCreateOrConnectWithoutRoleInput | RolePermissionCreateOrConnectWithoutRoleInput[] createMany?: RolePermissionCreateManyRoleInputEnvelope connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] } export type UserRoleCreateNestedManyWithoutRoleInput = { create?: XOR | UserRoleCreateWithoutRoleInput[] | UserRoleUncheckedCreateWithoutRoleInput[] connectOrCreate?: UserRoleCreateOrConnectWithoutRoleInput | UserRoleCreateOrConnectWithoutRoleInput[] createMany?: UserRoleCreateManyRoleInputEnvelope connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] } export type RolePermissionUncheckedCreateNestedManyWithoutRoleInput = { create?: XOR | RolePermissionCreateWithoutRoleInput[] | RolePermissionUncheckedCreateWithoutRoleInput[] connectOrCreate?: RolePermissionCreateOrConnectWithoutRoleInput | RolePermissionCreateOrConnectWithoutRoleInput[] createMany?: RolePermissionCreateManyRoleInputEnvelope connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] } export type UserRoleUncheckedCreateNestedManyWithoutRoleInput = { create?: XOR | UserRoleCreateWithoutRoleInput[] | UserRoleUncheckedCreateWithoutRoleInput[] connectOrCreate?: UserRoleCreateOrConnectWithoutRoleInput | UserRoleCreateOrConnectWithoutRoleInput[] createMany?: UserRoleCreateManyRoleInputEnvelope connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type RolePermissionUpdateManyWithoutRoleNestedInput = { create?: XOR | RolePermissionCreateWithoutRoleInput[] | RolePermissionUncheckedCreateWithoutRoleInput[] connectOrCreate?: RolePermissionCreateOrConnectWithoutRoleInput | RolePermissionCreateOrConnectWithoutRoleInput[] upsert?: RolePermissionUpsertWithWhereUniqueWithoutRoleInput | RolePermissionUpsertWithWhereUniqueWithoutRoleInput[] createMany?: RolePermissionCreateManyRoleInputEnvelope set?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] disconnect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] delete?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] update?: RolePermissionUpdateWithWhereUniqueWithoutRoleInput | RolePermissionUpdateWithWhereUniqueWithoutRoleInput[] updateMany?: RolePermissionUpdateManyWithWhereWithoutRoleInput | RolePermissionUpdateManyWithWhereWithoutRoleInput[] deleteMany?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[] } export type UserRoleUpdateManyWithoutRoleNestedInput = { create?: XOR | UserRoleCreateWithoutRoleInput[] | UserRoleUncheckedCreateWithoutRoleInput[] connectOrCreate?: UserRoleCreateOrConnectWithoutRoleInput | UserRoleCreateOrConnectWithoutRoleInput[] upsert?: UserRoleUpsertWithWhereUniqueWithoutRoleInput | UserRoleUpsertWithWhereUniqueWithoutRoleInput[] createMany?: UserRoleCreateManyRoleInputEnvelope set?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] disconnect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] delete?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] update?: UserRoleUpdateWithWhereUniqueWithoutRoleInput | UserRoleUpdateWithWhereUniqueWithoutRoleInput[] updateMany?: UserRoleUpdateManyWithWhereWithoutRoleInput | UserRoleUpdateManyWithWhereWithoutRoleInput[] deleteMany?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[] } export type RolePermissionUncheckedUpdateManyWithoutRoleNestedInput = { create?: XOR | RolePermissionCreateWithoutRoleInput[] | RolePermissionUncheckedCreateWithoutRoleInput[] connectOrCreate?: RolePermissionCreateOrConnectWithoutRoleInput | RolePermissionCreateOrConnectWithoutRoleInput[] upsert?: RolePermissionUpsertWithWhereUniqueWithoutRoleInput | RolePermissionUpsertWithWhereUniqueWithoutRoleInput[] createMany?: RolePermissionCreateManyRoleInputEnvelope set?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] disconnect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] delete?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] update?: RolePermissionUpdateWithWhereUniqueWithoutRoleInput | RolePermissionUpdateWithWhereUniqueWithoutRoleInput[] updateMany?: RolePermissionUpdateManyWithWhereWithoutRoleInput | RolePermissionUpdateManyWithWhereWithoutRoleInput[] deleteMany?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[] } export type UserRoleUncheckedUpdateManyWithoutRoleNestedInput = { create?: XOR | UserRoleCreateWithoutRoleInput[] | UserRoleUncheckedCreateWithoutRoleInput[] connectOrCreate?: UserRoleCreateOrConnectWithoutRoleInput | UserRoleCreateOrConnectWithoutRoleInput[] upsert?: UserRoleUpsertWithWhereUniqueWithoutRoleInput | UserRoleUpsertWithWhereUniqueWithoutRoleInput[] createMany?: UserRoleCreateManyRoleInputEnvelope set?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] disconnect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] delete?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] connect?: UserRoleWhereUniqueInput | UserRoleWhereUniqueInput[] update?: UserRoleUpdateWithWhereUniqueWithoutRoleInput | UserRoleUpdateWithWhereUniqueWithoutRoleInput[] updateMany?: UserRoleUpdateManyWithWhereWithoutRoleInput | UserRoleUpdateManyWithWhereWithoutRoleInput[] deleteMany?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[] } export type RolePermissionCreateNestedManyWithoutPermissionInput = { create?: XOR | RolePermissionCreateWithoutPermissionInput[] | RolePermissionUncheckedCreateWithoutPermissionInput[] connectOrCreate?: RolePermissionCreateOrConnectWithoutPermissionInput | RolePermissionCreateOrConnectWithoutPermissionInput[] createMany?: RolePermissionCreateManyPermissionInputEnvelope connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] } export type RolePermissionUncheckedCreateNestedManyWithoutPermissionInput = { create?: XOR | RolePermissionCreateWithoutPermissionInput[] | RolePermissionUncheckedCreateWithoutPermissionInput[] connectOrCreate?: RolePermissionCreateOrConnectWithoutPermissionInput | RolePermissionCreateOrConnectWithoutPermissionInput[] createMany?: RolePermissionCreateManyPermissionInputEnvelope connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] } export type RolePermissionUpdateManyWithoutPermissionNestedInput = { create?: XOR | RolePermissionCreateWithoutPermissionInput[] | RolePermissionUncheckedCreateWithoutPermissionInput[] connectOrCreate?: RolePermissionCreateOrConnectWithoutPermissionInput | RolePermissionCreateOrConnectWithoutPermissionInput[] upsert?: RolePermissionUpsertWithWhereUniqueWithoutPermissionInput | RolePermissionUpsertWithWhereUniqueWithoutPermissionInput[] createMany?: RolePermissionCreateManyPermissionInputEnvelope set?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] disconnect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] delete?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] update?: RolePermissionUpdateWithWhereUniqueWithoutPermissionInput | RolePermissionUpdateWithWhereUniqueWithoutPermissionInput[] updateMany?: RolePermissionUpdateManyWithWhereWithoutPermissionInput | RolePermissionUpdateManyWithWhereWithoutPermissionInput[] deleteMany?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[] } export type RolePermissionUncheckedUpdateManyWithoutPermissionNestedInput = { create?: XOR | RolePermissionCreateWithoutPermissionInput[] | RolePermissionUncheckedCreateWithoutPermissionInput[] connectOrCreate?: RolePermissionCreateOrConnectWithoutPermissionInput | RolePermissionCreateOrConnectWithoutPermissionInput[] upsert?: RolePermissionUpsertWithWhereUniqueWithoutPermissionInput | RolePermissionUpsertWithWhereUniqueWithoutPermissionInput[] createMany?: RolePermissionCreateManyPermissionInputEnvelope set?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] disconnect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] delete?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] connect?: RolePermissionWhereUniqueInput | RolePermissionWhereUniqueInput[] update?: RolePermissionUpdateWithWhereUniqueWithoutPermissionInput | RolePermissionUpdateWithWhereUniqueWithoutPermissionInput[] updateMany?: RolePermissionUpdateManyWithWhereWithoutPermissionInput | RolePermissionUpdateManyWithWhereWithoutPermissionInput[] deleteMany?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[] } export type RoleCreateNestedOneWithoutPermissionsInput = { create?: XOR connectOrCreate?: RoleCreateOrConnectWithoutPermissionsInput connect?: RoleWhereUniqueInput } export type PermissionCreateNestedOneWithoutRolesInput = { create?: XOR connectOrCreate?: PermissionCreateOrConnectWithoutRolesInput connect?: PermissionWhereUniqueInput } export type RoleUpdateOneRequiredWithoutPermissionsNestedInput = { create?: XOR connectOrCreate?: RoleCreateOrConnectWithoutPermissionsInput upsert?: RoleUpsertWithoutPermissionsInput connect?: RoleWhereUniqueInput update?: XOR, RoleUncheckedUpdateWithoutPermissionsInput> } export type PermissionUpdateOneRequiredWithoutRolesNestedInput = { create?: XOR connectOrCreate?: PermissionCreateOrConnectWithoutRolesInput upsert?: PermissionUpsertWithoutRolesInput connect?: PermissionWhereUniqueInput update?: XOR, PermissionUncheckedUpdateWithoutRolesInput> } export type UserCreateNestedOneWithoutRolesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutRolesInput connect?: UserWhereUniqueInput } export type RoleCreateNestedOneWithoutUsersInput = { create?: XOR connectOrCreate?: RoleCreateOrConnectWithoutUsersInput connect?: RoleWhereUniqueInput } export type UserUpdateOneRequiredWithoutRolesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutRolesInput upsert?: UserUpsertWithoutRolesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutRolesInput> } export type RoleUpdateOneRequiredWithoutUsersNestedInput = { create?: XOR connectOrCreate?: RoleCreateOrConnectWithoutUsersInput upsert?: RoleUpsertWithoutUsersInput connect?: RoleWhereUniqueInput update?: XOR, RoleUncheckedUpdateWithoutUsersInput> } export type UserCreateNestedOneWithoutCustomerInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCustomerInput connect?: UserWhereUniqueInput } export type AddressCreateNestedManyWithoutCustomerInput = { create?: XOR | AddressCreateWithoutCustomerInput[] | AddressUncheckedCreateWithoutCustomerInput[] connectOrCreate?: AddressCreateOrConnectWithoutCustomerInput | AddressCreateOrConnectWithoutCustomerInput[] createMany?: AddressCreateManyCustomerInputEnvelope connect?: AddressWhereUniqueInput | AddressWhereUniqueInput[] } export type BankCardCreateNestedManyWithoutCustomerInput = { create?: XOR | BankCardCreateWithoutCustomerInput[] | BankCardUncheckedCreateWithoutCustomerInput[] connectOrCreate?: BankCardCreateOrConnectWithoutCustomerInput | BankCardCreateOrConnectWithoutCustomerInput[] createMany?: BankCardCreateManyCustomerInputEnvelope connect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] } export type IdentityDocumentCreateNestedManyWithoutCustomerInput = { create?: XOR | IdentityDocumentCreateWithoutCustomerInput[] | IdentityDocumentUncheckedCreateWithoutCustomerInput[] connectOrCreate?: IdentityDocumentCreateOrConnectWithoutCustomerInput | IdentityDocumentCreateOrConnectWithoutCustomerInput[] createMany?: IdentityDocumentCreateManyCustomerInputEnvelope connect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] } export type MeterCreateNestedManyWithoutCustomerInput = { create?: XOR | MeterCreateWithoutCustomerInput[] | MeterUncheckedCreateWithoutCustomerInput[] connectOrCreate?: MeterCreateOrConnectWithoutCustomerInput | MeterCreateOrConnectWithoutCustomerInput[] createMany?: MeterCreateManyCustomerInputEnvelope connect?: MeterWhereUniqueInput | MeterWhereUniqueInput[] } export type StressfreiEmailCreateNestedManyWithoutCustomerInput = { create?: XOR | StressfreiEmailCreateWithoutCustomerInput[] | StressfreiEmailUncheckedCreateWithoutCustomerInput[] connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCustomerInput | StressfreiEmailCreateOrConnectWithoutCustomerInput[] createMany?: StressfreiEmailCreateManyCustomerInputEnvelope connect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] } export type ContractCreateNestedManyWithoutCustomerInput = { create?: XOR | ContractCreateWithoutCustomerInput[] | ContractUncheckedCreateWithoutCustomerInput[] connectOrCreate?: ContractCreateOrConnectWithoutCustomerInput | ContractCreateOrConnectWithoutCustomerInput[] createMany?: ContractCreateManyCustomerInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput = { create?: XOR | CustomerRepresentativeCreateWithoutRepresentativeInput[] | CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput[] connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput | CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput[] createMany?: CustomerRepresentativeCreateManyRepresentativeInputEnvelope connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] } export type CustomerRepresentativeCreateNestedManyWithoutCustomerInput = { create?: XOR | CustomerRepresentativeCreateWithoutCustomerInput[] | CustomerRepresentativeUncheckedCreateWithoutCustomerInput[] connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutCustomerInput | CustomerRepresentativeCreateOrConnectWithoutCustomerInput[] createMany?: CustomerRepresentativeCreateManyCustomerInputEnvelope connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] } export type UserUncheckedCreateNestedOneWithoutCustomerInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCustomerInput connect?: UserWhereUniqueInput } export type AddressUncheckedCreateNestedManyWithoutCustomerInput = { create?: XOR | AddressCreateWithoutCustomerInput[] | AddressUncheckedCreateWithoutCustomerInput[] connectOrCreate?: AddressCreateOrConnectWithoutCustomerInput | AddressCreateOrConnectWithoutCustomerInput[] createMany?: AddressCreateManyCustomerInputEnvelope connect?: AddressWhereUniqueInput | AddressWhereUniqueInput[] } export type BankCardUncheckedCreateNestedManyWithoutCustomerInput = { create?: XOR | BankCardCreateWithoutCustomerInput[] | BankCardUncheckedCreateWithoutCustomerInput[] connectOrCreate?: BankCardCreateOrConnectWithoutCustomerInput | BankCardCreateOrConnectWithoutCustomerInput[] createMany?: BankCardCreateManyCustomerInputEnvelope connect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] } export type IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput = { create?: XOR | IdentityDocumentCreateWithoutCustomerInput[] | IdentityDocumentUncheckedCreateWithoutCustomerInput[] connectOrCreate?: IdentityDocumentCreateOrConnectWithoutCustomerInput | IdentityDocumentCreateOrConnectWithoutCustomerInput[] createMany?: IdentityDocumentCreateManyCustomerInputEnvelope connect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] } export type MeterUncheckedCreateNestedManyWithoutCustomerInput = { create?: XOR | MeterCreateWithoutCustomerInput[] | MeterUncheckedCreateWithoutCustomerInput[] connectOrCreate?: MeterCreateOrConnectWithoutCustomerInput | MeterCreateOrConnectWithoutCustomerInput[] createMany?: MeterCreateManyCustomerInputEnvelope connect?: MeterWhereUniqueInput | MeterWhereUniqueInput[] } export type StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput = { create?: XOR | StressfreiEmailCreateWithoutCustomerInput[] | StressfreiEmailUncheckedCreateWithoutCustomerInput[] connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCustomerInput | StressfreiEmailCreateOrConnectWithoutCustomerInput[] createMany?: StressfreiEmailCreateManyCustomerInputEnvelope connect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutCustomerInput = { create?: XOR | ContractCreateWithoutCustomerInput[] | ContractUncheckedCreateWithoutCustomerInput[] connectOrCreate?: ContractCreateOrConnectWithoutCustomerInput | ContractCreateOrConnectWithoutCustomerInput[] createMany?: ContractCreateManyCustomerInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput = { create?: XOR | CustomerRepresentativeCreateWithoutRepresentativeInput[] | CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput[] connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput | CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput[] createMany?: CustomerRepresentativeCreateManyRepresentativeInputEnvelope connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] } export type CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput = { create?: XOR | CustomerRepresentativeCreateWithoutCustomerInput[] | CustomerRepresentativeUncheckedCreateWithoutCustomerInput[] connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutCustomerInput | CustomerRepresentativeCreateOrConnectWithoutCustomerInput[] createMany?: CustomerRepresentativeCreateManyCustomerInputEnvelope connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] } export type EnumCustomerTypeFieldUpdateOperationsInput = { set?: $Enums.CustomerType } export type UserUpdateOneWithoutCustomerNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCustomerInput upsert?: UserUpsertWithoutCustomerInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCustomerInput> } export type AddressUpdateManyWithoutCustomerNestedInput = { create?: XOR | AddressCreateWithoutCustomerInput[] | AddressUncheckedCreateWithoutCustomerInput[] connectOrCreate?: AddressCreateOrConnectWithoutCustomerInput | AddressCreateOrConnectWithoutCustomerInput[] upsert?: AddressUpsertWithWhereUniqueWithoutCustomerInput | AddressUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: AddressCreateManyCustomerInputEnvelope set?: AddressWhereUniqueInput | AddressWhereUniqueInput[] disconnect?: AddressWhereUniqueInput | AddressWhereUniqueInput[] delete?: AddressWhereUniqueInput | AddressWhereUniqueInput[] connect?: AddressWhereUniqueInput | AddressWhereUniqueInput[] update?: AddressUpdateWithWhereUniqueWithoutCustomerInput | AddressUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: AddressUpdateManyWithWhereWithoutCustomerInput | AddressUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: AddressScalarWhereInput | AddressScalarWhereInput[] } export type BankCardUpdateManyWithoutCustomerNestedInput = { create?: XOR | BankCardCreateWithoutCustomerInput[] | BankCardUncheckedCreateWithoutCustomerInput[] connectOrCreate?: BankCardCreateOrConnectWithoutCustomerInput | BankCardCreateOrConnectWithoutCustomerInput[] upsert?: BankCardUpsertWithWhereUniqueWithoutCustomerInput | BankCardUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: BankCardCreateManyCustomerInputEnvelope set?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] disconnect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] delete?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] connect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] update?: BankCardUpdateWithWhereUniqueWithoutCustomerInput | BankCardUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: BankCardUpdateManyWithWhereWithoutCustomerInput | BankCardUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: BankCardScalarWhereInput | BankCardScalarWhereInput[] } export type IdentityDocumentUpdateManyWithoutCustomerNestedInput = { create?: XOR | IdentityDocumentCreateWithoutCustomerInput[] | IdentityDocumentUncheckedCreateWithoutCustomerInput[] connectOrCreate?: IdentityDocumentCreateOrConnectWithoutCustomerInput | IdentityDocumentCreateOrConnectWithoutCustomerInput[] upsert?: IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput | IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: IdentityDocumentCreateManyCustomerInputEnvelope set?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] disconnect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] delete?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] connect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] update?: IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput | IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: IdentityDocumentUpdateManyWithWhereWithoutCustomerInput | IdentityDocumentUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: IdentityDocumentScalarWhereInput | IdentityDocumentScalarWhereInput[] } export type MeterUpdateManyWithoutCustomerNestedInput = { create?: XOR | MeterCreateWithoutCustomerInput[] | MeterUncheckedCreateWithoutCustomerInput[] connectOrCreate?: MeterCreateOrConnectWithoutCustomerInput | MeterCreateOrConnectWithoutCustomerInput[] upsert?: MeterUpsertWithWhereUniqueWithoutCustomerInput | MeterUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: MeterCreateManyCustomerInputEnvelope set?: MeterWhereUniqueInput | MeterWhereUniqueInput[] disconnect?: MeterWhereUniqueInput | MeterWhereUniqueInput[] delete?: MeterWhereUniqueInput | MeterWhereUniqueInput[] connect?: MeterWhereUniqueInput | MeterWhereUniqueInput[] update?: MeterUpdateWithWhereUniqueWithoutCustomerInput | MeterUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: MeterUpdateManyWithWhereWithoutCustomerInput | MeterUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: MeterScalarWhereInput | MeterScalarWhereInput[] } export type StressfreiEmailUpdateManyWithoutCustomerNestedInput = { create?: XOR | StressfreiEmailCreateWithoutCustomerInput[] | StressfreiEmailUncheckedCreateWithoutCustomerInput[] connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCustomerInput | StressfreiEmailCreateOrConnectWithoutCustomerInput[] upsert?: StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput | StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: StressfreiEmailCreateManyCustomerInputEnvelope set?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] disconnect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] delete?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] connect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] update?: StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput | StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: StressfreiEmailUpdateManyWithWhereWithoutCustomerInput | StressfreiEmailUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: StressfreiEmailScalarWhereInput | StressfreiEmailScalarWhereInput[] } export type ContractUpdateManyWithoutCustomerNestedInput = { create?: XOR | ContractCreateWithoutCustomerInput[] | ContractUncheckedCreateWithoutCustomerInput[] connectOrCreate?: ContractCreateOrConnectWithoutCustomerInput | ContractCreateOrConnectWithoutCustomerInput[] upsert?: ContractUpsertWithWhereUniqueWithoutCustomerInput | ContractUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: ContractCreateManyCustomerInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutCustomerInput | ContractUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: ContractUpdateManyWithWhereWithoutCustomerInput | ContractUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput = { create?: XOR | CustomerRepresentativeCreateWithoutRepresentativeInput[] | CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput[] connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput | CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput[] upsert?: CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput | CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput[] createMany?: CustomerRepresentativeCreateManyRepresentativeInputEnvelope set?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] disconnect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] delete?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] update?: CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput | CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput[] updateMany?: CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput | CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput[] deleteMany?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[] } export type CustomerRepresentativeUpdateManyWithoutCustomerNestedInput = { create?: XOR | CustomerRepresentativeCreateWithoutCustomerInput[] | CustomerRepresentativeUncheckedCreateWithoutCustomerInput[] connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutCustomerInput | CustomerRepresentativeCreateOrConnectWithoutCustomerInput[] upsert?: CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput | CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: CustomerRepresentativeCreateManyCustomerInputEnvelope set?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] disconnect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] delete?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] update?: CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput | CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput | CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[] } export type UserUncheckedUpdateOneWithoutCustomerNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCustomerInput upsert?: UserUpsertWithoutCustomerInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCustomerInput> } export type AddressUncheckedUpdateManyWithoutCustomerNestedInput = { create?: XOR | AddressCreateWithoutCustomerInput[] | AddressUncheckedCreateWithoutCustomerInput[] connectOrCreate?: AddressCreateOrConnectWithoutCustomerInput | AddressCreateOrConnectWithoutCustomerInput[] upsert?: AddressUpsertWithWhereUniqueWithoutCustomerInput | AddressUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: AddressCreateManyCustomerInputEnvelope set?: AddressWhereUniqueInput | AddressWhereUniqueInput[] disconnect?: AddressWhereUniqueInput | AddressWhereUniqueInput[] delete?: AddressWhereUniqueInput | AddressWhereUniqueInput[] connect?: AddressWhereUniqueInput | AddressWhereUniqueInput[] update?: AddressUpdateWithWhereUniqueWithoutCustomerInput | AddressUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: AddressUpdateManyWithWhereWithoutCustomerInput | AddressUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: AddressScalarWhereInput | AddressScalarWhereInput[] } export type BankCardUncheckedUpdateManyWithoutCustomerNestedInput = { create?: XOR | BankCardCreateWithoutCustomerInput[] | BankCardUncheckedCreateWithoutCustomerInput[] connectOrCreate?: BankCardCreateOrConnectWithoutCustomerInput | BankCardCreateOrConnectWithoutCustomerInput[] upsert?: BankCardUpsertWithWhereUniqueWithoutCustomerInput | BankCardUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: BankCardCreateManyCustomerInputEnvelope set?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] disconnect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] delete?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] connect?: BankCardWhereUniqueInput | BankCardWhereUniqueInput[] update?: BankCardUpdateWithWhereUniqueWithoutCustomerInput | BankCardUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: BankCardUpdateManyWithWhereWithoutCustomerInput | BankCardUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: BankCardScalarWhereInput | BankCardScalarWhereInput[] } export type IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput = { create?: XOR | IdentityDocumentCreateWithoutCustomerInput[] | IdentityDocumentUncheckedCreateWithoutCustomerInput[] connectOrCreate?: IdentityDocumentCreateOrConnectWithoutCustomerInput | IdentityDocumentCreateOrConnectWithoutCustomerInput[] upsert?: IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput | IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: IdentityDocumentCreateManyCustomerInputEnvelope set?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] disconnect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] delete?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] connect?: IdentityDocumentWhereUniqueInput | IdentityDocumentWhereUniqueInput[] update?: IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput | IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: IdentityDocumentUpdateManyWithWhereWithoutCustomerInput | IdentityDocumentUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: IdentityDocumentScalarWhereInput | IdentityDocumentScalarWhereInput[] } export type MeterUncheckedUpdateManyWithoutCustomerNestedInput = { create?: XOR | MeterCreateWithoutCustomerInput[] | MeterUncheckedCreateWithoutCustomerInput[] connectOrCreate?: MeterCreateOrConnectWithoutCustomerInput | MeterCreateOrConnectWithoutCustomerInput[] upsert?: MeterUpsertWithWhereUniqueWithoutCustomerInput | MeterUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: MeterCreateManyCustomerInputEnvelope set?: MeterWhereUniqueInput | MeterWhereUniqueInput[] disconnect?: MeterWhereUniqueInput | MeterWhereUniqueInput[] delete?: MeterWhereUniqueInput | MeterWhereUniqueInput[] connect?: MeterWhereUniqueInput | MeterWhereUniqueInput[] update?: MeterUpdateWithWhereUniqueWithoutCustomerInput | MeterUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: MeterUpdateManyWithWhereWithoutCustomerInput | MeterUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: MeterScalarWhereInput | MeterScalarWhereInput[] } export type StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput = { create?: XOR | StressfreiEmailCreateWithoutCustomerInput[] | StressfreiEmailUncheckedCreateWithoutCustomerInput[] connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCustomerInput | StressfreiEmailCreateOrConnectWithoutCustomerInput[] upsert?: StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput | StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: StressfreiEmailCreateManyCustomerInputEnvelope set?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] disconnect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] delete?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] connect?: StressfreiEmailWhereUniqueInput | StressfreiEmailWhereUniqueInput[] update?: StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput | StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: StressfreiEmailUpdateManyWithWhereWithoutCustomerInput | StressfreiEmailUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: StressfreiEmailScalarWhereInput | StressfreiEmailScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutCustomerNestedInput = { create?: XOR | ContractCreateWithoutCustomerInput[] | ContractUncheckedCreateWithoutCustomerInput[] connectOrCreate?: ContractCreateOrConnectWithoutCustomerInput | ContractCreateOrConnectWithoutCustomerInput[] upsert?: ContractUpsertWithWhereUniqueWithoutCustomerInput | ContractUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: ContractCreateManyCustomerInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutCustomerInput | ContractUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: ContractUpdateManyWithWhereWithoutCustomerInput | ContractUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput = { create?: XOR | CustomerRepresentativeCreateWithoutRepresentativeInput[] | CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput[] connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput | CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput[] upsert?: CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput | CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput[] createMany?: CustomerRepresentativeCreateManyRepresentativeInputEnvelope set?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] disconnect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] delete?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] update?: CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput | CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput[] updateMany?: CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput | CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput[] deleteMany?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[] } export type CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput = { create?: XOR | CustomerRepresentativeCreateWithoutCustomerInput[] | CustomerRepresentativeUncheckedCreateWithoutCustomerInput[] connectOrCreate?: CustomerRepresentativeCreateOrConnectWithoutCustomerInput | CustomerRepresentativeCreateOrConnectWithoutCustomerInput[] upsert?: CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput | CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput[] createMany?: CustomerRepresentativeCreateManyCustomerInputEnvelope set?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] disconnect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] delete?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] connect?: CustomerRepresentativeWhereUniqueInput | CustomerRepresentativeWhereUniqueInput[] update?: CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput | CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput[] updateMany?: CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput | CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput[] deleteMany?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[] } export type CustomerCreateNestedOneWithoutRepresentedByInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutRepresentedByInput connect?: CustomerWhereUniqueInput } export type CustomerCreateNestedOneWithoutRepresentingForInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutRepresentingForInput connect?: CustomerWhereUniqueInput } export type CustomerUpdateOneRequiredWithoutRepresentedByNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutRepresentedByInput upsert?: CustomerUpsertWithoutRepresentedByInput connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutRepresentedByInput> } export type CustomerUpdateOneRequiredWithoutRepresentingForNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutRepresentingForInput upsert?: CustomerUpsertWithoutRepresentingForInput connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutRepresentingForInput> } export type CustomerCreateNestedOneWithoutAddressesInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutAddressesInput connect?: CustomerWhereUniqueInput } export type ContractCreateNestedManyWithoutAddressInput = { create?: XOR | ContractCreateWithoutAddressInput[] | ContractUncheckedCreateWithoutAddressInput[] connectOrCreate?: ContractCreateOrConnectWithoutAddressInput | ContractCreateOrConnectWithoutAddressInput[] createMany?: ContractCreateManyAddressInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractCreateNestedManyWithoutBillingAddressInput = { create?: XOR | ContractCreateWithoutBillingAddressInput[] | ContractUncheckedCreateWithoutBillingAddressInput[] connectOrCreate?: ContractCreateOrConnectWithoutBillingAddressInput | ContractCreateOrConnectWithoutBillingAddressInput[] createMany?: ContractCreateManyBillingAddressInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutAddressInput = { create?: XOR | ContractCreateWithoutAddressInput[] | ContractUncheckedCreateWithoutAddressInput[] connectOrCreate?: ContractCreateOrConnectWithoutAddressInput | ContractCreateOrConnectWithoutAddressInput[] createMany?: ContractCreateManyAddressInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutBillingAddressInput = { create?: XOR | ContractCreateWithoutBillingAddressInput[] | ContractUncheckedCreateWithoutBillingAddressInput[] connectOrCreate?: ContractCreateOrConnectWithoutBillingAddressInput | ContractCreateOrConnectWithoutBillingAddressInput[] createMany?: ContractCreateManyBillingAddressInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type EnumAddressTypeFieldUpdateOperationsInput = { set?: $Enums.AddressType } export type CustomerUpdateOneRequiredWithoutAddressesNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutAddressesInput upsert?: CustomerUpsertWithoutAddressesInput connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutAddressesInput> } export type ContractUpdateManyWithoutAddressNestedInput = { create?: XOR | ContractCreateWithoutAddressInput[] | ContractUncheckedCreateWithoutAddressInput[] connectOrCreate?: ContractCreateOrConnectWithoutAddressInput | ContractCreateOrConnectWithoutAddressInput[] upsert?: ContractUpsertWithWhereUniqueWithoutAddressInput | ContractUpsertWithWhereUniqueWithoutAddressInput[] createMany?: ContractCreateManyAddressInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutAddressInput | ContractUpdateWithWhereUniqueWithoutAddressInput[] updateMany?: ContractUpdateManyWithWhereWithoutAddressInput | ContractUpdateManyWithWhereWithoutAddressInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUpdateManyWithoutBillingAddressNestedInput = { create?: XOR | ContractCreateWithoutBillingAddressInput[] | ContractUncheckedCreateWithoutBillingAddressInput[] connectOrCreate?: ContractCreateOrConnectWithoutBillingAddressInput | ContractCreateOrConnectWithoutBillingAddressInput[] upsert?: ContractUpsertWithWhereUniqueWithoutBillingAddressInput | ContractUpsertWithWhereUniqueWithoutBillingAddressInput[] createMany?: ContractCreateManyBillingAddressInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutBillingAddressInput | ContractUpdateWithWhereUniqueWithoutBillingAddressInput[] updateMany?: ContractUpdateManyWithWhereWithoutBillingAddressInput | ContractUpdateManyWithWhereWithoutBillingAddressInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutAddressNestedInput = { create?: XOR | ContractCreateWithoutAddressInput[] | ContractUncheckedCreateWithoutAddressInput[] connectOrCreate?: ContractCreateOrConnectWithoutAddressInput | ContractCreateOrConnectWithoutAddressInput[] upsert?: ContractUpsertWithWhereUniqueWithoutAddressInput | ContractUpsertWithWhereUniqueWithoutAddressInput[] createMany?: ContractCreateManyAddressInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutAddressInput | ContractUpdateWithWhereUniqueWithoutAddressInput[] updateMany?: ContractUpdateManyWithWhereWithoutAddressInput | ContractUpdateManyWithWhereWithoutAddressInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutBillingAddressNestedInput = { create?: XOR | ContractCreateWithoutBillingAddressInput[] | ContractUncheckedCreateWithoutBillingAddressInput[] connectOrCreate?: ContractCreateOrConnectWithoutBillingAddressInput | ContractCreateOrConnectWithoutBillingAddressInput[] upsert?: ContractUpsertWithWhereUniqueWithoutBillingAddressInput | ContractUpsertWithWhereUniqueWithoutBillingAddressInput[] createMany?: ContractCreateManyBillingAddressInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutBillingAddressInput | ContractUpdateWithWhereUniqueWithoutBillingAddressInput[] updateMany?: ContractUpdateManyWithWhereWithoutBillingAddressInput | ContractUpdateManyWithWhereWithoutBillingAddressInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type CustomerCreateNestedOneWithoutBankCardsInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutBankCardsInput connect?: CustomerWhereUniqueInput } export type ContractCreateNestedManyWithoutBankCardInput = { create?: XOR | ContractCreateWithoutBankCardInput[] | ContractUncheckedCreateWithoutBankCardInput[] connectOrCreate?: ContractCreateOrConnectWithoutBankCardInput | ContractCreateOrConnectWithoutBankCardInput[] createMany?: ContractCreateManyBankCardInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutBankCardInput = { create?: XOR | ContractCreateWithoutBankCardInput[] | ContractUncheckedCreateWithoutBankCardInput[] connectOrCreate?: ContractCreateOrConnectWithoutBankCardInput | ContractCreateOrConnectWithoutBankCardInput[] createMany?: ContractCreateManyBankCardInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type CustomerUpdateOneRequiredWithoutBankCardsNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutBankCardsInput upsert?: CustomerUpsertWithoutBankCardsInput connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutBankCardsInput> } export type ContractUpdateManyWithoutBankCardNestedInput = { create?: XOR | ContractCreateWithoutBankCardInput[] | ContractUncheckedCreateWithoutBankCardInput[] connectOrCreate?: ContractCreateOrConnectWithoutBankCardInput | ContractCreateOrConnectWithoutBankCardInput[] upsert?: ContractUpsertWithWhereUniqueWithoutBankCardInput | ContractUpsertWithWhereUniqueWithoutBankCardInput[] createMany?: ContractCreateManyBankCardInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutBankCardInput | ContractUpdateWithWhereUniqueWithoutBankCardInput[] updateMany?: ContractUpdateManyWithWhereWithoutBankCardInput | ContractUpdateManyWithWhereWithoutBankCardInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutBankCardNestedInput = { create?: XOR | ContractCreateWithoutBankCardInput[] | ContractUncheckedCreateWithoutBankCardInput[] connectOrCreate?: ContractCreateOrConnectWithoutBankCardInput | ContractCreateOrConnectWithoutBankCardInput[] upsert?: ContractUpsertWithWhereUniqueWithoutBankCardInput | ContractUpsertWithWhereUniqueWithoutBankCardInput[] createMany?: ContractCreateManyBankCardInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutBankCardInput | ContractUpdateWithWhereUniqueWithoutBankCardInput[] updateMany?: ContractUpdateManyWithWhereWithoutBankCardInput | ContractUpdateManyWithWhereWithoutBankCardInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type CustomerCreateNestedOneWithoutIdentityDocumentsInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutIdentityDocumentsInput connect?: CustomerWhereUniqueInput } export type ContractCreateNestedManyWithoutIdentityDocumentInput = { create?: XOR | ContractCreateWithoutIdentityDocumentInput[] | ContractUncheckedCreateWithoutIdentityDocumentInput[] connectOrCreate?: ContractCreateOrConnectWithoutIdentityDocumentInput | ContractCreateOrConnectWithoutIdentityDocumentInput[] createMany?: ContractCreateManyIdentityDocumentInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutIdentityDocumentInput = { create?: XOR | ContractCreateWithoutIdentityDocumentInput[] | ContractUncheckedCreateWithoutIdentityDocumentInput[] connectOrCreate?: ContractCreateOrConnectWithoutIdentityDocumentInput | ContractCreateOrConnectWithoutIdentityDocumentInput[] createMany?: ContractCreateManyIdentityDocumentInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type EnumDocumentTypeFieldUpdateOperationsInput = { set?: $Enums.DocumentType } export type CustomerUpdateOneRequiredWithoutIdentityDocumentsNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutIdentityDocumentsInput upsert?: CustomerUpsertWithoutIdentityDocumentsInput connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutIdentityDocumentsInput> } export type ContractUpdateManyWithoutIdentityDocumentNestedInput = { create?: XOR | ContractCreateWithoutIdentityDocumentInput[] | ContractUncheckedCreateWithoutIdentityDocumentInput[] connectOrCreate?: ContractCreateOrConnectWithoutIdentityDocumentInput | ContractCreateOrConnectWithoutIdentityDocumentInput[] upsert?: ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput | ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput[] createMany?: ContractCreateManyIdentityDocumentInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput | ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput[] updateMany?: ContractUpdateManyWithWhereWithoutIdentityDocumentInput | ContractUpdateManyWithWhereWithoutIdentityDocumentInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutIdentityDocumentNestedInput = { create?: XOR | ContractCreateWithoutIdentityDocumentInput[] | ContractUncheckedCreateWithoutIdentityDocumentInput[] connectOrCreate?: ContractCreateOrConnectWithoutIdentityDocumentInput | ContractCreateOrConnectWithoutIdentityDocumentInput[] upsert?: ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput | ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput[] createMany?: ContractCreateManyIdentityDocumentInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput | ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput[] updateMany?: ContractUpdateManyWithWhereWithoutIdentityDocumentInput | ContractUpdateManyWithWhereWithoutIdentityDocumentInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type EnumEmailProviderTypeFieldUpdateOperationsInput = { set?: $Enums.EmailProviderType } export type EnumMailEncryptionFieldUpdateOperationsInput = { set?: $Enums.MailEncryption } export type CustomerCreateNestedOneWithoutStressfreiEmailsInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutStressfreiEmailsInput connect?: CustomerWhereUniqueInput } export type ContractCreateNestedManyWithoutStressfreiEmailInput = { create?: XOR | ContractCreateWithoutStressfreiEmailInput[] | ContractUncheckedCreateWithoutStressfreiEmailInput[] connectOrCreate?: ContractCreateOrConnectWithoutStressfreiEmailInput | ContractCreateOrConnectWithoutStressfreiEmailInput[] createMany?: ContractCreateManyStressfreiEmailInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type CachedEmailCreateNestedManyWithoutStressfreiEmailInput = { create?: XOR | CachedEmailCreateWithoutStressfreiEmailInput[] | CachedEmailUncheckedCreateWithoutStressfreiEmailInput[] connectOrCreate?: CachedEmailCreateOrConnectWithoutStressfreiEmailInput | CachedEmailCreateOrConnectWithoutStressfreiEmailInput[] createMany?: CachedEmailCreateManyStressfreiEmailInputEnvelope connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutStressfreiEmailInput = { create?: XOR | ContractCreateWithoutStressfreiEmailInput[] | ContractUncheckedCreateWithoutStressfreiEmailInput[] connectOrCreate?: ContractCreateOrConnectWithoutStressfreiEmailInput | ContractCreateOrConnectWithoutStressfreiEmailInput[] createMany?: ContractCreateManyStressfreiEmailInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type CachedEmailUncheckedCreateNestedManyWithoutStressfreiEmailInput = { create?: XOR | CachedEmailCreateWithoutStressfreiEmailInput[] | CachedEmailUncheckedCreateWithoutStressfreiEmailInput[] connectOrCreate?: CachedEmailCreateOrConnectWithoutStressfreiEmailInput | CachedEmailCreateOrConnectWithoutStressfreiEmailInput[] createMany?: CachedEmailCreateManyStressfreiEmailInputEnvelope connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] } export type CustomerUpdateOneRequiredWithoutStressfreiEmailsNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutStressfreiEmailsInput upsert?: CustomerUpsertWithoutStressfreiEmailsInput connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutStressfreiEmailsInput> } export type ContractUpdateManyWithoutStressfreiEmailNestedInput = { create?: XOR | ContractCreateWithoutStressfreiEmailInput[] | ContractUncheckedCreateWithoutStressfreiEmailInput[] connectOrCreate?: ContractCreateOrConnectWithoutStressfreiEmailInput | ContractCreateOrConnectWithoutStressfreiEmailInput[] upsert?: ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput | ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput[] createMany?: ContractCreateManyStressfreiEmailInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput | ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput[] updateMany?: ContractUpdateManyWithWhereWithoutStressfreiEmailInput | ContractUpdateManyWithWhereWithoutStressfreiEmailInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type CachedEmailUpdateManyWithoutStressfreiEmailNestedInput = { create?: XOR | CachedEmailCreateWithoutStressfreiEmailInput[] | CachedEmailUncheckedCreateWithoutStressfreiEmailInput[] connectOrCreate?: CachedEmailCreateOrConnectWithoutStressfreiEmailInput | CachedEmailCreateOrConnectWithoutStressfreiEmailInput[] upsert?: CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput | CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput[] createMany?: CachedEmailCreateManyStressfreiEmailInputEnvelope set?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] disconnect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] delete?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] update?: CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput | CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput[] updateMany?: CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput | CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput[] deleteMany?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutStressfreiEmailNestedInput = { create?: XOR | ContractCreateWithoutStressfreiEmailInput[] | ContractUncheckedCreateWithoutStressfreiEmailInput[] connectOrCreate?: ContractCreateOrConnectWithoutStressfreiEmailInput | ContractCreateOrConnectWithoutStressfreiEmailInput[] upsert?: ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput | ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput[] createMany?: ContractCreateManyStressfreiEmailInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput | ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput[] updateMany?: ContractUpdateManyWithWhereWithoutStressfreiEmailInput | ContractUpdateManyWithWhereWithoutStressfreiEmailInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type CachedEmailUncheckedUpdateManyWithoutStressfreiEmailNestedInput = { create?: XOR | CachedEmailCreateWithoutStressfreiEmailInput[] | CachedEmailUncheckedCreateWithoutStressfreiEmailInput[] connectOrCreate?: CachedEmailCreateOrConnectWithoutStressfreiEmailInput | CachedEmailCreateOrConnectWithoutStressfreiEmailInput[] upsert?: CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput | CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput[] createMany?: CachedEmailCreateManyStressfreiEmailInputEnvelope set?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] disconnect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] delete?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] update?: CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput | CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput[] updateMany?: CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput | CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput[] deleteMany?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[] } export type StressfreiEmailCreateNestedOneWithoutCachedEmailsInput = { create?: XOR connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCachedEmailsInput connect?: StressfreiEmailWhereUniqueInput } export type ContractCreateNestedOneWithoutAssignedEmailsInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutAssignedEmailsInput connect?: ContractWhereUniqueInput } export type EnumEmailFolderFieldUpdateOperationsInput = { set?: $Enums.EmailFolder } export type StressfreiEmailUpdateOneRequiredWithoutCachedEmailsNestedInput = { create?: XOR connectOrCreate?: StressfreiEmailCreateOrConnectWithoutCachedEmailsInput upsert?: StressfreiEmailUpsertWithoutCachedEmailsInput connect?: StressfreiEmailWhereUniqueInput update?: XOR, StressfreiEmailUncheckedUpdateWithoutCachedEmailsInput> } export type ContractUpdateOneWithoutAssignedEmailsNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutAssignedEmailsInput upsert?: ContractUpsertWithoutAssignedEmailsInput disconnect?: ContractWhereInput | boolean delete?: ContractWhereInput | boolean connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutAssignedEmailsInput> } export type CustomerCreateNestedOneWithoutMetersInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutMetersInput connect?: CustomerWhereUniqueInput } export type MeterReadingCreateNestedManyWithoutMeterInput = { create?: XOR | MeterReadingCreateWithoutMeterInput[] | MeterReadingUncheckedCreateWithoutMeterInput[] connectOrCreate?: MeterReadingCreateOrConnectWithoutMeterInput | MeterReadingCreateOrConnectWithoutMeterInput[] createMany?: MeterReadingCreateManyMeterInputEnvelope connect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] } export type EnergyContractDetailsCreateNestedManyWithoutMeterInput = { create?: XOR | EnergyContractDetailsCreateWithoutMeterInput[] | EnergyContractDetailsUncheckedCreateWithoutMeterInput[] connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutMeterInput | EnergyContractDetailsCreateOrConnectWithoutMeterInput[] createMany?: EnergyContractDetailsCreateManyMeterInputEnvelope connect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] } export type MeterReadingUncheckedCreateNestedManyWithoutMeterInput = { create?: XOR | MeterReadingCreateWithoutMeterInput[] | MeterReadingUncheckedCreateWithoutMeterInput[] connectOrCreate?: MeterReadingCreateOrConnectWithoutMeterInput | MeterReadingCreateOrConnectWithoutMeterInput[] createMany?: MeterReadingCreateManyMeterInputEnvelope connect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] } export type EnergyContractDetailsUncheckedCreateNestedManyWithoutMeterInput = { create?: XOR | EnergyContractDetailsCreateWithoutMeterInput[] | EnergyContractDetailsUncheckedCreateWithoutMeterInput[] connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutMeterInput | EnergyContractDetailsCreateOrConnectWithoutMeterInput[] createMany?: EnergyContractDetailsCreateManyMeterInputEnvelope connect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] } export type EnumMeterTypeFieldUpdateOperationsInput = { set?: $Enums.MeterType } export type CustomerUpdateOneRequiredWithoutMetersNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutMetersInput upsert?: CustomerUpsertWithoutMetersInput connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutMetersInput> } export type MeterReadingUpdateManyWithoutMeterNestedInput = { create?: XOR | MeterReadingCreateWithoutMeterInput[] | MeterReadingUncheckedCreateWithoutMeterInput[] connectOrCreate?: MeterReadingCreateOrConnectWithoutMeterInput | MeterReadingCreateOrConnectWithoutMeterInput[] upsert?: MeterReadingUpsertWithWhereUniqueWithoutMeterInput | MeterReadingUpsertWithWhereUniqueWithoutMeterInput[] createMany?: MeterReadingCreateManyMeterInputEnvelope set?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] disconnect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] delete?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] connect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] update?: MeterReadingUpdateWithWhereUniqueWithoutMeterInput | MeterReadingUpdateWithWhereUniqueWithoutMeterInput[] updateMany?: MeterReadingUpdateManyWithWhereWithoutMeterInput | MeterReadingUpdateManyWithWhereWithoutMeterInput[] deleteMany?: MeterReadingScalarWhereInput | MeterReadingScalarWhereInput[] } export type EnergyContractDetailsUpdateManyWithoutMeterNestedInput = { create?: XOR | EnergyContractDetailsCreateWithoutMeterInput[] | EnergyContractDetailsUncheckedCreateWithoutMeterInput[] connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutMeterInput | EnergyContractDetailsCreateOrConnectWithoutMeterInput[] upsert?: EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput | EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput[] createMany?: EnergyContractDetailsCreateManyMeterInputEnvelope set?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] disconnect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] delete?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] connect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] update?: EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput | EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput[] updateMany?: EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput | EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput[] deleteMany?: EnergyContractDetailsScalarWhereInput | EnergyContractDetailsScalarWhereInput[] } export type MeterReadingUncheckedUpdateManyWithoutMeterNestedInput = { create?: XOR | MeterReadingCreateWithoutMeterInput[] | MeterReadingUncheckedCreateWithoutMeterInput[] connectOrCreate?: MeterReadingCreateOrConnectWithoutMeterInput | MeterReadingCreateOrConnectWithoutMeterInput[] upsert?: MeterReadingUpsertWithWhereUniqueWithoutMeterInput | MeterReadingUpsertWithWhereUniqueWithoutMeterInput[] createMany?: MeterReadingCreateManyMeterInputEnvelope set?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] disconnect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] delete?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] connect?: MeterReadingWhereUniqueInput | MeterReadingWhereUniqueInput[] update?: MeterReadingUpdateWithWhereUniqueWithoutMeterInput | MeterReadingUpdateWithWhereUniqueWithoutMeterInput[] updateMany?: MeterReadingUpdateManyWithWhereWithoutMeterInput | MeterReadingUpdateManyWithWhereWithoutMeterInput[] deleteMany?: MeterReadingScalarWhereInput | MeterReadingScalarWhereInput[] } export type EnergyContractDetailsUncheckedUpdateManyWithoutMeterNestedInput = { create?: XOR | EnergyContractDetailsCreateWithoutMeterInput[] | EnergyContractDetailsUncheckedCreateWithoutMeterInput[] connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutMeterInput | EnergyContractDetailsCreateOrConnectWithoutMeterInput[] upsert?: EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput | EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput[] createMany?: EnergyContractDetailsCreateManyMeterInputEnvelope set?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] disconnect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] delete?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] connect?: EnergyContractDetailsWhereUniqueInput | EnergyContractDetailsWhereUniqueInput[] update?: EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput | EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput[] updateMany?: EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput | EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput[] deleteMany?: EnergyContractDetailsScalarWhereInput | EnergyContractDetailsScalarWhereInput[] } export type MeterCreateNestedOneWithoutReadingsInput = { create?: XOR connectOrCreate?: MeterCreateOrConnectWithoutReadingsInput connect?: MeterWhereUniqueInput } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type MeterUpdateOneRequiredWithoutReadingsNestedInput = { create?: XOR connectOrCreate?: MeterCreateOrConnectWithoutReadingsInput upsert?: MeterUpsertWithoutReadingsInput connect?: MeterWhereUniqueInput update?: XOR, MeterUncheckedUpdateWithoutReadingsInput> } export type ContractCreateNestedManyWithoutSalesPlatformInput = { create?: XOR | ContractCreateWithoutSalesPlatformInput[] | ContractUncheckedCreateWithoutSalesPlatformInput[] connectOrCreate?: ContractCreateOrConnectWithoutSalesPlatformInput | ContractCreateOrConnectWithoutSalesPlatformInput[] createMany?: ContractCreateManySalesPlatformInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutSalesPlatformInput = { create?: XOR | ContractCreateWithoutSalesPlatformInput[] | ContractUncheckedCreateWithoutSalesPlatformInput[] connectOrCreate?: ContractCreateOrConnectWithoutSalesPlatformInput | ContractCreateOrConnectWithoutSalesPlatformInput[] createMany?: ContractCreateManySalesPlatformInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUpdateManyWithoutSalesPlatformNestedInput = { create?: XOR | ContractCreateWithoutSalesPlatformInput[] | ContractUncheckedCreateWithoutSalesPlatformInput[] connectOrCreate?: ContractCreateOrConnectWithoutSalesPlatformInput | ContractCreateOrConnectWithoutSalesPlatformInput[] upsert?: ContractUpsertWithWhereUniqueWithoutSalesPlatformInput | ContractUpsertWithWhereUniqueWithoutSalesPlatformInput[] createMany?: ContractCreateManySalesPlatformInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutSalesPlatformInput | ContractUpdateWithWhereUniqueWithoutSalesPlatformInput[] updateMany?: ContractUpdateManyWithWhereWithoutSalesPlatformInput | ContractUpdateManyWithWhereWithoutSalesPlatformInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutSalesPlatformNestedInput = { create?: XOR | ContractCreateWithoutSalesPlatformInput[] | ContractUncheckedCreateWithoutSalesPlatformInput[] connectOrCreate?: ContractCreateOrConnectWithoutSalesPlatformInput | ContractCreateOrConnectWithoutSalesPlatformInput[] upsert?: ContractUpsertWithWhereUniqueWithoutSalesPlatformInput | ContractUpsertWithWhereUniqueWithoutSalesPlatformInput[] createMany?: ContractCreateManySalesPlatformInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutSalesPlatformInput | ContractUpdateWithWhereUniqueWithoutSalesPlatformInput[] updateMany?: ContractUpdateManyWithWhereWithoutSalesPlatformInput | ContractUpdateManyWithWhereWithoutSalesPlatformInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractCreateNestedManyWithoutCancellationPeriodInput = { create?: XOR | ContractCreateWithoutCancellationPeriodInput[] | ContractUncheckedCreateWithoutCancellationPeriodInput[] connectOrCreate?: ContractCreateOrConnectWithoutCancellationPeriodInput | ContractCreateOrConnectWithoutCancellationPeriodInput[] createMany?: ContractCreateManyCancellationPeriodInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutCancellationPeriodInput = { create?: XOR | ContractCreateWithoutCancellationPeriodInput[] | ContractUncheckedCreateWithoutCancellationPeriodInput[] connectOrCreate?: ContractCreateOrConnectWithoutCancellationPeriodInput | ContractCreateOrConnectWithoutCancellationPeriodInput[] createMany?: ContractCreateManyCancellationPeriodInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUpdateManyWithoutCancellationPeriodNestedInput = { create?: XOR | ContractCreateWithoutCancellationPeriodInput[] | ContractUncheckedCreateWithoutCancellationPeriodInput[] connectOrCreate?: ContractCreateOrConnectWithoutCancellationPeriodInput | ContractCreateOrConnectWithoutCancellationPeriodInput[] upsert?: ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput | ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput[] createMany?: ContractCreateManyCancellationPeriodInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput | ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput[] updateMany?: ContractUpdateManyWithWhereWithoutCancellationPeriodInput | ContractUpdateManyWithWhereWithoutCancellationPeriodInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutCancellationPeriodNestedInput = { create?: XOR | ContractCreateWithoutCancellationPeriodInput[] | ContractUncheckedCreateWithoutCancellationPeriodInput[] connectOrCreate?: ContractCreateOrConnectWithoutCancellationPeriodInput | ContractCreateOrConnectWithoutCancellationPeriodInput[] upsert?: ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput | ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput[] createMany?: ContractCreateManyCancellationPeriodInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput | ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput[] updateMany?: ContractUpdateManyWithWhereWithoutCancellationPeriodInput | ContractUpdateManyWithWhereWithoutCancellationPeriodInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractCreateNestedManyWithoutContractDurationInput = { create?: XOR | ContractCreateWithoutContractDurationInput[] | ContractUncheckedCreateWithoutContractDurationInput[] connectOrCreate?: ContractCreateOrConnectWithoutContractDurationInput | ContractCreateOrConnectWithoutContractDurationInput[] createMany?: ContractCreateManyContractDurationInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutContractDurationInput = { create?: XOR | ContractCreateWithoutContractDurationInput[] | ContractUncheckedCreateWithoutContractDurationInput[] connectOrCreate?: ContractCreateOrConnectWithoutContractDurationInput | ContractCreateOrConnectWithoutContractDurationInput[] createMany?: ContractCreateManyContractDurationInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUpdateManyWithoutContractDurationNestedInput = { create?: XOR | ContractCreateWithoutContractDurationInput[] | ContractUncheckedCreateWithoutContractDurationInput[] connectOrCreate?: ContractCreateOrConnectWithoutContractDurationInput | ContractCreateOrConnectWithoutContractDurationInput[] upsert?: ContractUpsertWithWhereUniqueWithoutContractDurationInput | ContractUpsertWithWhereUniqueWithoutContractDurationInput[] createMany?: ContractCreateManyContractDurationInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutContractDurationInput | ContractUpdateWithWhereUniqueWithoutContractDurationInput[] updateMany?: ContractUpdateManyWithWhereWithoutContractDurationInput | ContractUpdateManyWithWhereWithoutContractDurationInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutContractDurationNestedInput = { create?: XOR | ContractCreateWithoutContractDurationInput[] | ContractUncheckedCreateWithoutContractDurationInput[] connectOrCreate?: ContractCreateOrConnectWithoutContractDurationInput | ContractCreateOrConnectWithoutContractDurationInput[] upsert?: ContractUpsertWithWhereUniqueWithoutContractDurationInput | ContractUpsertWithWhereUniqueWithoutContractDurationInput[] createMany?: ContractCreateManyContractDurationInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutContractDurationInput | ContractUpdateWithWhereUniqueWithoutContractDurationInput[] updateMany?: ContractUpdateManyWithWhereWithoutContractDurationInput | ContractUpdateManyWithWhereWithoutContractDurationInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type TariffCreateNestedManyWithoutProviderInput = { create?: XOR | TariffCreateWithoutProviderInput[] | TariffUncheckedCreateWithoutProviderInput[] connectOrCreate?: TariffCreateOrConnectWithoutProviderInput | TariffCreateOrConnectWithoutProviderInput[] createMany?: TariffCreateManyProviderInputEnvelope connect?: TariffWhereUniqueInput | TariffWhereUniqueInput[] } export type ContractCreateNestedManyWithoutProviderInput = { create?: XOR | ContractCreateWithoutProviderInput[] | ContractUncheckedCreateWithoutProviderInput[] connectOrCreate?: ContractCreateOrConnectWithoutProviderInput | ContractCreateOrConnectWithoutProviderInput[] createMany?: ContractCreateManyProviderInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type TariffUncheckedCreateNestedManyWithoutProviderInput = { create?: XOR | TariffCreateWithoutProviderInput[] | TariffUncheckedCreateWithoutProviderInput[] connectOrCreate?: TariffCreateOrConnectWithoutProviderInput | TariffCreateOrConnectWithoutProviderInput[] createMany?: TariffCreateManyProviderInputEnvelope connect?: TariffWhereUniqueInput | TariffWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutProviderInput = { create?: XOR | ContractCreateWithoutProviderInput[] | ContractUncheckedCreateWithoutProviderInput[] connectOrCreate?: ContractCreateOrConnectWithoutProviderInput | ContractCreateOrConnectWithoutProviderInput[] createMany?: ContractCreateManyProviderInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type TariffUpdateManyWithoutProviderNestedInput = { create?: XOR | TariffCreateWithoutProviderInput[] | TariffUncheckedCreateWithoutProviderInput[] connectOrCreate?: TariffCreateOrConnectWithoutProviderInput | TariffCreateOrConnectWithoutProviderInput[] upsert?: TariffUpsertWithWhereUniqueWithoutProviderInput | TariffUpsertWithWhereUniqueWithoutProviderInput[] createMany?: TariffCreateManyProviderInputEnvelope set?: TariffWhereUniqueInput | TariffWhereUniqueInput[] disconnect?: TariffWhereUniqueInput | TariffWhereUniqueInput[] delete?: TariffWhereUniqueInput | TariffWhereUniqueInput[] connect?: TariffWhereUniqueInput | TariffWhereUniqueInput[] update?: TariffUpdateWithWhereUniqueWithoutProviderInput | TariffUpdateWithWhereUniqueWithoutProviderInput[] updateMany?: TariffUpdateManyWithWhereWithoutProviderInput | TariffUpdateManyWithWhereWithoutProviderInput[] deleteMany?: TariffScalarWhereInput | TariffScalarWhereInput[] } export type ContractUpdateManyWithoutProviderNestedInput = { create?: XOR | ContractCreateWithoutProviderInput[] | ContractUncheckedCreateWithoutProviderInput[] connectOrCreate?: ContractCreateOrConnectWithoutProviderInput | ContractCreateOrConnectWithoutProviderInput[] upsert?: ContractUpsertWithWhereUniqueWithoutProviderInput | ContractUpsertWithWhereUniqueWithoutProviderInput[] createMany?: ContractCreateManyProviderInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutProviderInput | ContractUpdateWithWhereUniqueWithoutProviderInput[] updateMany?: ContractUpdateManyWithWhereWithoutProviderInput | ContractUpdateManyWithWhereWithoutProviderInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type TariffUncheckedUpdateManyWithoutProviderNestedInput = { create?: XOR | TariffCreateWithoutProviderInput[] | TariffUncheckedCreateWithoutProviderInput[] connectOrCreate?: TariffCreateOrConnectWithoutProviderInput | TariffCreateOrConnectWithoutProviderInput[] upsert?: TariffUpsertWithWhereUniqueWithoutProviderInput | TariffUpsertWithWhereUniqueWithoutProviderInput[] createMany?: TariffCreateManyProviderInputEnvelope set?: TariffWhereUniqueInput | TariffWhereUniqueInput[] disconnect?: TariffWhereUniqueInput | TariffWhereUniqueInput[] delete?: TariffWhereUniqueInput | TariffWhereUniqueInput[] connect?: TariffWhereUniqueInput | TariffWhereUniqueInput[] update?: TariffUpdateWithWhereUniqueWithoutProviderInput | TariffUpdateWithWhereUniqueWithoutProviderInput[] updateMany?: TariffUpdateManyWithWhereWithoutProviderInput | TariffUpdateManyWithWhereWithoutProviderInput[] deleteMany?: TariffScalarWhereInput | TariffScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutProviderNestedInput = { create?: XOR | ContractCreateWithoutProviderInput[] | ContractUncheckedCreateWithoutProviderInput[] connectOrCreate?: ContractCreateOrConnectWithoutProviderInput | ContractCreateOrConnectWithoutProviderInput[] upsert?: ContractUpsertWithWhereUniqueWithoutProviderInput | ContractUpsertWithWhereUniqueWithoutProviderInput[] createMany?: ContractCreateManyProviderInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutProviderInput | ContractUpdateWithWhereUniqueWithoutProviderInput[] updateMany?: ContractUpdateManyWithWhereWithoutProviderInput | ContractUpdateManyWithWhereWithoutProviderInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ProviderCreateNestedOneWithoutTariffsInput = { create?: XOR connectOrCreate?: ProviderCreateOrConnectWithoutTariffsInput connect?: ProviderWhereUniqueInput } export type ContractCreateNestedManyWithoutTariffInput = { create?: XOR | ContractCreateWithoutTariffInput[] | ContractUncheckedCreateWithoutTariffInput[] connectOrCreate?: ContractCreateOrConnectWithoutTariffInput | ContractCreateOrConnectWithoutTariffInput[] createMany?: ContractCreateManyTariffInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutTariffInput = { create?: XOR | ContractCreateWithoutTariffInput[] | ContractUncheckedCreateWithoutTariffInput[] connectOrCreate?: ContractCreateOrConnectWithoutTariffInput | ContractCreateOrConnectWithoutTariffInput[] createMany?: ContractCreateManyTariffInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ProviderUpdateOneRequiredWithoutTariffsNestedInput = { create?: XOR connectOrCreate?: ProviderCreateOrConnectWithoutTariffsInput upsert?: ProviderUpsertWithoutTariffsInput connect?: ProviderWhereUniqueInput update?: XOR, ProviderUncheckedUpdateWithoutTariffsInput> } export type ContractUpdateManyWithoutTariffNestedInput = { create?: XOR | ContractCreateWithoutTariffInput[] | ContractUncheckedCreateWithoutTariffInput[] connectOrCreate?: ContractCreateOrConnectWithoutTariffInput | ContractCreateOrConnectWithoutTariffInput[] upsert?: ContractUpsertWithWhereUniqueWithoutTariffInput | ContractUpsertWithWhereUniqueWithoutTariffInput[] createMany?: ContractCreateManyTariffInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutTariffInput | ContractUpdateWithWhereUniqueWithoutTariffInput[] updateMany?: ContractUpdateManyWithWhereWithoutTariffInput | ContractUpdateManyWithWhereWithoutTariffInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutTariffNestedInput = { create?: XOR | ContractCreateWithoutTariffInput[] | ContractUncheckedCreateWithoutTariffInput[] connectOrCreate?: ContractCreateOrConnectWithoutTariffInput | ContractCreateOrConnectWithoutTariffInput[] upsert?: ContractUpsertWithWhereUniqueWithoutTariffInput | ContractUpsertWithWhereUniqueWithoutTariffInput[] createMany?: ContractCreateManyTariffInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutTariffInput | ContractUpdateWithWhereUniqueWithoutTariffInput[] updateMany?: ContractUpdateManyWithWhereWithoutTariffInput | ContractUpdateManyWithWhereWithoutTariffInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractCreateNestedManyWithoutContractCategoryInput = { create?: XOR | ContractCreateWithoutContractCategoryInput[] | ContractUncheckedCreateWithoutContractCategoryInput[] connectOrCreate?: ContractCreateOrConnectWithoutContractCategoryInput | ContractCreateOrConnectWithoutContractCategoryInput[] createMany?: ContractCreateManyContractCategoryInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUncheckedCreateNestedManyWithoutContractCategoryInput = { create?: XOR | ContractCreateWithoutContractCategoryInput[] | ContractUncheckedCreateWithoutContractCategoryInput[] connectOrCreate?: ContractCreateOrConnectWithoutContractCategoryInput | ContractCreateOrConnectWithoutContractCategoryInput[] createMany?: ContractCreateManyContractCategoryInputEnvelope connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] } export type ContractUpdateManyWithoutContractCategoryNestedInput = { create?: XOR | ContractCreateWithoutContractCategoryInput[] | ContractUncheckedCreateWithoutContractCategoryInput[] connectOrCreate?: ContractCreateOrConnectWithoutContractCategoryInput | ContractCreateOrConnectWithoutContractCategoryInput[] upsert?: ContractUpsertWithWhereUniqueWithoutContractCategoryInput | ContractUpsertWithWhereUniqueWithoutContractCategoryInput[] createMany?: ContractCreateManyContractCategoryInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutContractCategoryInput | ContractUpdateWithWhereUniqueWithoutContractCategoryInput[] updateMany?: ContractUpdateManyWithWhereWithoutContractCategoryInput | ContractUpdateManyWithWhereWithoutContractCategoryInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type ContractUncheckedUpdateManyWithoutContractCategoryNestedInput = { create?: XOR | ContractCreateWithoutContractCategoryInput[] | ContractUncheckedCreateWithoutContractCategoryInput[] connectOrCreate?: ContractCreateOrConnectWithoutContractCategoryInput | ContractCreateOrConnectWithoutContractCategoryInput[] upsert?: ContractUpsertWithWhereUniqueWithoutContractCategoryInput | ContractUpsertWithWhereUniqueWithoutContractCategoryInput[] createMany?: ContractCreateManyContractCategoryInputEnvelope set?: ContractWhereUniqueInput | ContractWhereUniqueInput[] disconnect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] delete?: ContractWhereUniqueInput | ContractWhereUniqueInput[] connect?: ContractWhereUniqueInput | ContractWhereUniqueInput[] update?: ContractUpdateWithWhereUniqueWithoutContractCategoryInput | ContractUpdateWithWhereUniqueWithoutContractCategoryInput[] updateMany?: ContractUpdateManyWithWhereWithoutContractCategoryInput | ContractUpdateManyWithWhereWithoutContractCategoryInput[] deleteMany?: ContractScalarWhereInput | ContractScalarWhereInput[] } export type CustomerCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutContractsInput connect?: CustomerWhereUniqueInput } export type ContractCategoryCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: ContractCategoryCreateOrConnectWithoutContractsInput connect?: ContractCategoryWhereUniqueInput } export type AddressCreateNestedOneWithoutContractsAsDeliveryInput = { create?: XOR connectOrCreate?: AddressCreateOrConnectWithoutContractsAsDeliveryInput connect?: AddressWhereUniqueInput } export type AddressCreateNestedOneWithoutContractsAsBillingInput = { create?: XOR connectOrCreate?: AddressCreateOrConnectWithoutContractsAsBillingInput connect?: AddressWhereUniqueInput } export type BankCardCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: BankCardCreateOrConnectWithoutContractsInput connect?: BankCardWhereUniqueInput } export type IdentityDocumentCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: IdentityDocumentCreateOrConnectWithoutContractsInput connect?: IdentityDocumentWhereUniqueInput } export type SalesPlatformCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: SalesPlatformCreateOrConnectWithoutContractsInput connect?: SalesPlatformWhereUniqueInput } export type CancellationPeriodCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: CancellationPeriodCreateOrConnectWithoutContractsInput connect?: CancellationPeriodWhereUniqueInput } export type ContractDurationCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: ContractDurationCreateOrConnectWithoutContractsInput connect?: ContractDurationWhereUniqueInput } export type ContractCreateNestedOneWithoutFollowUpContractInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutFollowUpContractInput connect?: ContractWhereUniqueInput } export type ContractCreateNestedOneWithoutPreviousContractInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutPreviousContractInput connect?: ContractWhereUniqueInput } export type ProviderCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: ProviderCreateOrConnectWithoutContractsInput connect?: ProviderWhereUniqueInput } export type TariffCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: TariffCreateOrConnectWithoutContractsInput connect?: TariffWhereUniqueInput } export type StressfreiEmailCreateNestedOneWithoutContractsInput = { create?: XOR connectOrCreate?: StressfreiEmailCreateOrConnectWithoutContractsInput connect?: StressfreiEmailWhereUniqueInput } export type EnergyContractDetailsCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutContractInput connect?: EnergyContractDetailsWhereUniqueInput } export type InternetContractDetailsCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutContractInput connect?: InternetContractDetailsWhereUniqueInput } export type MobileContractDetailsCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutContractInput connect?: MobileContractDetailsWhereUniqueInput } export type TvContractDetailsCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: TvContractDetailsCreateOrConnectWithoutContractInput connect?: TvContractDetailsWhereUniqueInput } export type CarInsuranceDetailsCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: CarInsuranceDetailsCreateOrConnectWithoutContractInput connect?: CarInsuranceDetailsWhereUniqueInput } export type ContractTaskCreateNestedManyWithoutContractInput = { create?: XOR | ContractTaskCreateWithoutContractInput[] | ContractTaskUncheckedCreateWithoutContractInput[] connectOrCreate?: ContractTaskCreateOrConnectWithoutContractInput | ContractTaskCreateOrConnectWithoutContractInput[] createMany?: ContractTaskCreateManyContractInputEnvelope connect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] } export type CachedEmailCreateNestedManyWithoutContractInput = { create?: XOR | CachedEmailCreateWithoutContractInput[] | CachedEmailUncheckedCreateWithoutContractInput[] connectOrCreate?: CachedEmailCreateOrConnectWithoutContractInput | CachedEmailCreateOrConnectWithoutContractInput[] createMany?: CachedEmailCreateManyContractInputEnvelope connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] } export type ContractUncheckedCreateNestedOneWithoutPreviousContractInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutPreviousContractInput connect?: ContractWhereUniqueInput } export type EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutContractInput connect?: EnergyContractDetailsWhereUniqueInput } export type InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutContractInput connect?: InternetContractDetailsWhereUniqueInput } export type MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutContractInput connect?: MobileContractDetailsWhereUniqueInput } export type TvContractDetailsUncheckedCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: TvContractDetailsCreateOrConnectWithoutContractInput connect?: TvContractDetailsWhereUniqueInput } export type CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput = { create?: XOR connectOrCreate?: CarInsuranceDetailsCreateOrConnectWithoutContractInput connect?: CarInsuranceDetailsWhereUniqueInput } export type ContractTaskUncheckedCreateNestedManyWithoutContractInput = { create?: XOR | ContractTaskCreateWithoutContractInput[] | ContractTaskUncheckedCreateWithoutContractInput[] connectOrCreate?: ContractTaskCreateOrConnectWithoutContractInput | ContractTaskCreateOrConnectWithoutContractInput[] createMany?: ContractTaskCreateManyContractInputEnvelope connect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] } export type CachedEmailUncheckedCreateNestedManyWithoutContractInput = { create?: XOR | CachedEmailCreateWithoutContractInput[] | CachedEmailUncheckedCreateWithoutContractInput[] connectOrCreate?: CachedEmailCreateOrConnectWithoutContractInput | CachedEmailCreateOrConnectWithoutContractInput[] createMany?: CachedEmailCreateManyContractInputEnvelope connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] } export type EnumContractTypeFieldUpdateOperationsInput = { set?: $Enums.ContractType } export type EnumContractStatusFieldUpdateOperationsInput = { set?: $Enums.ContractStatus } export type NullableFloatFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type CustomerUpdateOneRequiredWithoutContractsNestedInput = { create?: XOR connectOrCreate?: CustomerCreateOrConnectWithoutContractsInput upsert?: CustomerUpsertWithoutContractsInput connect?: CustomerWhereUniqueInput update?: XOR, CustomerUncheckedUpdateWithoutContractsInput> } export type ContractCategoryUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: ContractCategoryCreateOrConnectWithoutContractsInput upsert?: ContractCategoryUpsertWithoutContractsInput disconnect?: ContractCategoryWhereInput | boolean delete?: ContractCategoryWhereInput | boolean connect?: ContractCategoryWhereUniqueInput update?: XOR, ContractCategoryUncheckedUpdateWithoutContractsInput> } export type AddressUpdateOneWithoutContractsAsDeliveryNestedInput = { create?: XOR connectOrCreate?: AddressCreateOrConnectWithoutContractsAsDeliveryInput upsert?: AddressUpsertWithoutContractsAsDeliveryInput disconnect?: AddressWhereInput | boolean delete?: AddressWhereInput | boolean connect?: AddressWhereUniqueInput update?: XOR, AddressUncheckedUpdateWithoutContractsAsDeliveryInput> } export type AddressUpdateOneWithoutContractsAsBillingNestedInput = { create?: XOR connectOrCreate?: AddressCreateOrConnectWithoutContractsAsBillingInput upsert?: AddressUpsertWithoutContractsAsBillingInput disconnect?: AddressWhereInput | boolean delete?: AddressWhereInput | boolean connect?: AddressWhereUniqueInput update?: XOR, AddressUncheckedUpdateWithoutContractsAsBillingInput> } export type BankCardUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: BankCardCreateOrConnectWithoutContractsInput upsert?: BankCardUpsertWithoutContractsInput disconnect?: BankCardWhereInput | boolean delete?: BankCardWhereInput | boolean connect?: BankCardWhereUniqueInput update?: XOR, BankCardUncheckedUpdateWithoutContractsInput> } export type IdentityDocumentUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: IdentityDocumentCreateOrConnectWithoutContractsInput upsert?: IdentityDocumentUpsertWithoutContractsInput disconnect?: IdentityDocumentWhereInput | boolean delete?: IdentityDocumentWhereInput | boolean connect?: IdentityDocumentWhereUniqueInput update?: XOR, IdentityDocumentUncheckedUpdateWithoutContractsInput> } export type SalesPlatformUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: SalesPlatformCreateOrConnectWithoutContractsInput upsert?: SalesPlatformUpsertWithoutContractsInput disconnect?: SalesPlatformWhereInput | boolean delete?: SalesPlatformWhereInput | boolean connect?: SalesPlatformWhereUniqueInput update?: XOR, SalesPlatformUncheckedUpdateWithoutContractsInput> } export type CancellationPeriodUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: CancellationPeriodCreateOrConnectWithoutContractsInput upsert?: CancellationPeriodUpsertWithoutContractsInput disconnect?: CancellationPeriodWhereInput | boolean delete?: CancellationPeriodWhereInput | boolean connect?: CancellationPeriodWhereUniqueInput update?: XOR, CancellationPeriodUncheckedUpdateWithoutContractsInput> } export type ContractDurationUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: ContractDurationCreateOrConnectWithoutContractsInput upsert?: ContractDurationUpsertWithoutContractsInput disconnect?: ContractDurationWhereInput | boolean delete?: ContractDurationWhereInput | boolean connect?: ContractDurationWhereUniqueInput update?: XOR, ContractDurationUncheckedUpdateWithoutContractsInput> } export type ContractUpdateOneWithoutFollowUpContractNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutFollowUpContractInput upsert?: ContractUpsertWithoutFollowUpContractInput disconnect?: ContractWhereInput | boolean delete?: ContractWhereInput | boolean connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutFollowUpContractInput> } export type ContractUpdateOneWithoutPreviousContractNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutPreviousContractInput upsert?: ContractUpsertWithoutPreviousContractInput disconnect?: ContractWhereInput | boolean delete?: ContractWhereInput | boolean connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutPreviousContractInput> } export type ProviderUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: ProviderCreateOrConnectWithoutContractsInput upsert?: ProviderUpsertWithoutContractsInput disconnect?: ProviderWhereInput | boolean delete?: ProviderWhereInput | boolean connect?: ProviderWhereUniqueInput update?: XOR, ProviderUncheckedUpdateWithoutContractsInput> } export type TariffUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: TariffCreateOrConnectWithoutContractsInput upsert?: TariffUpsertWithoutContractsInput disconnect?: TariffWhereInput | boolean delete?: TariffWhereInput | boolean connect?: TariffWhereUniqueInput update?: XOR, TariffUncheckedUpdateWithoutContractsInput> } export type StressfreiEmailUpdateOneWithoutContractsNestedInput = { create?: XOR connectOrCreate?: StressfreiEmailCreateOrConnectWithoutContractsInput upsert?: StressfreiEmailUpsertWithoutContractsInput disconnect?: StressfreiEmailWhereInput | boolean delete?: StressfreiEmailWhereInput | boolean connect?: StressfreiEmailWhereUniqueInput update?: XOR, StressfreiEmailUncheckedUpdateWithoutContractsInput> } export type EnergyContractDetailsUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutContractInput upsert?: EnergyContractDetailsUpsertWithoutContractInput disconnect?: EnergyContractDetailsWhereInput | boolean delete?: EnergyContractDetailsWhereInput | boolean connect?: EnergyContractDetailsWhereUniqueInput update?: XOR, EnergyContractDetailsUncheckedUpdateWithoutContractInput> } export type InternetContractDetailsUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutContractInput upsert?: InternetContractDetailsUpsertWithoutContractInput disconnect?: InternetContractDetailsWhereInput | boolean delete?: InternetContractDetailsWhereInput | boolean connect?: InternetContractDetailsWhereUniqueInput update?: XOR, InternetContractDetailsUncheckedUpdateWithoutContractInput> } export type MobileContractDetailsUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutContractInput upsert?: MobileContractDetailsUpsertWithoutContractInput disconnect?: MobileContractDetailsWhereInput | boolean delete?: MobileContractDetailsWhereInput | boolean connect?: MobileContractDetailsWhereUniqueInput update?: XOR, MobileContractDetailsUncheckedUpdateWithoutContractInput> } export type TvContractDetailsUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: TvContractDetailsCreateOrConnectWithoutContractInput upsert?: TvContractDetailsUpsertWithoutContractInput disconnect?: TvContractDetailsWhereInput | boolean delete?: TvContractDetailsWhereInput | boolean connect?: TvContractDetailsWhereUniqueInput update?: XOR, TvContractDetailsUncheckedUpdateWithoutContractInput> } export type CarInsuranceDetailsUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: CarInsuranceDetailsCreateOrConnectWithoutContractInput upsert?: CarInsuranceDetailsUpsertWithoutContractInput disconnect?: CarInsuranceDetailsWhereInput | boolean delete?: CarInsuranceDetailsWhereInput | boolean connect?: CarInsuranceDetailsWhereUniqueInput update?: XOR, CarInsuranceDetailsUncheckedUpdateWithoutContractInput> } export type ContractTaskUpdateManyWithoutContractNestedInput = { create?: XOR | ContractTaskCreateWithoutContractInput[] | ContractTaskUncheckedCreateWithoutContractInput[] connectOrCreate?: ContractTaskCreateOrConnectWithoutContractInput | ContractTaskCreateOrConnectWithoutContractInput[] upsert?: ContractTaskUpsertWithWhereUniqueWithoutContractInput | ContractTaskUpsertWithWhereUniqueWithoutContractInput[] createMany?: ContractTaskCreateManyContractInputEnvelope set?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] disconnect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] delete?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] connect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] update?: ContractTaskUpdateWithWhereUniqueWithoutContractInput | ContractTaskUpdateWithWhereUniqueWithoutContractInput[] updateMany?: ContractTaskUpdateManyWithWhereWithoutContractInput | ContractTaskUpdateManyWithWhereWithoutContractInput[] deleteMany?: ContractTaskScalarWhereInput | ContractTaskScalarWhereInput[] } export type CachedEmailUpdateManyWithoutContractNestedInput = { create?: XOR | CachedEmailCreateWithoutContractInput[] | CachedEmailUncheckedCreateWithoutContractInput[] connectOrCreate?: CachedEmailCreateOrConnectWithoutContractInput | CachedEmailCreateOrConnectWithoutContractInput[] upsert?: CachedEmailUpsertWithWhereUniqueWithoutContractInput | CachedEmailUpsertWithWhereUniqueWithoutContractInput[] createMany?: CachedEmailCreateManyContractInputEnvelope set?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] disconnect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] delete?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] update?: CachedEmailUpdateWithWhereUniqueWithoutContractInput | CachedEmailUpdateWithWhereUniqueWithoutContractInput[] updateMany?: CachedEmailUpdateManyWithWhereWithoutContractInput | CachedEmailUpdateManyWithWhereWithoutContractInput[] deleteMany?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[] } export type ContractUncheckedUpdateOneWithoutPreviousContractNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutPreviousContractInput upsert?: ContractUpsertWithoutPreviousContractInput disconnect?: ContractWhereInput | boolean delete?: ContractWhereInput | boolean connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutPreviousContractInput> } export type EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutContractInput upsert?: EnergyContractDetailsUpsertWithoutContractInput disconnect?: EnergyContractDetailsWhereInput | boolean delete?: EnergyContractDetailsWhereInput | boolean connect?: EnergyContractDetailsWhereUniqueInput update?: XOR, EnergyContractDetailsUncheckedUpdateWithoutContractInput> } export type InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutContractInput upsert?: InternetContractDetailsUpsertWithoutContractInput disconnect?: InternetContractDetailsWhereInput | boolean delete?: InternetContractDetailsWhereInput | boolean connect?: InternetContractDetailsWhereUniqueInput update?: XOR, InternetContractDetailsUncheckedUpdateWithoutContractInput> } export type MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutContractInput upsert?: MobileContractDetailsUpsertWithoutContractInput disconnect?: MobileContractDetailsWhereInput | boolean delete?: MobileContractDetailsWhereInput | boolean connect?: MobileContractDetailsWhereUniqueInput update?: XOR, MobileContractDetailsUncheckedUpdateWithoutContractInput> } export type TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: TvContractDetailsCreateOrConnectWithoutContractInput upsert?: TvContractDetailsUpsertWithoutContractInput disconnect?: TvContractDetailsWhereInput | boolean delete?: TvContractDetailsWhereInput | boolean connect?: TvContractDetailsWhereUniqueInput update?: XOR, TvContractDetailsUncheckedUpdateWithoutContractInput> } export type CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput = { create?: XOR connectOrCreate?: CarInsuranceDetailsCreateOrConnectWithoutContractInput upsert?: CarInsuranceDetailsUpsertWithoutContractInput disconnect?: CarInsuranceDetailsWhereInput | boolean delete?: CarInsuranceDetailsWhereInput | boolean connect?: CarInsuranceDetailsWhereUniqueInput update?: XOR, CarInsuranceDetailsUncheckedUpdateWithoutContractInput> } export type ContractTaskUncheckedUpdateManyWithoutContractNestedInput = { create?: XOR | ContractTaskCreateWithoutContractInput[] | ContractTaskUncheckedCreateWithoutContractInput[] connectOrCreate?: ContractTaskCreateOrConnectWithoutContractInput | ContractTaskCreateOrConnectWithoutContractInput[] upsert?: ContractTaskUpsertWithWhereUniqueWithoutContractInput | ContractTaskUpsertWithWhereUniqueWithoutContractInput[] createMany?: ContractTaskCreateManyContractInputEnvelope set?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] disconnect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] delete?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] connect?: ContractTaskWhereUniqueInput | ContractTaskWhereUniqueInput[] update?: ContractTaskUpdateWithWhereUniqueWithoutContractInput | ContractTaskUpdateWithWhereUniqueWithoutContractInput[] updateMany?: ContractTaskUpdateManyWithWhereWithoutContractInput | ContractTaskUpdateManyWithWhereWithoutContractInput[] deleteMany?: ContractTaskScalarWhereInput | ContractTaskScalarWhereInput[] } export type CachedEmailUncheckedUpdateManyWithoutContractNestedInput = { create?: XOR | CachedEmailCreateWithoutContractInput[] | CachedEmailUncheckedCreateWithoutContractInput[] connectOrCreate?: CachedEmailCreateOrConnectWithoutContractInput | CachedEmailCreateOrConnectWithoutContractInput[] upsert?: CachedEmailUpsertWithWhereUniqueWithoutContractInput | CachedEmailUpsertWithWhereUniqueWithoutContractInput[] createMany?: CachedEmailCreateManyContractInputEnvelope set?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] disconnect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] delete?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] connect?: CachedEmailWhereUniqueInput | CachedEmailWhereUniqueInput[] update?: CachedEmailUpdateWithWhereUniqueWithoutContractInput | CachedEmailUpdateWithWhereUniqueWithoutContractInput[] updateMany?: CachedEmailUpdateManyWithWhereWithoutContractInput | CachedEmailUpdateManyWithWhereWithoutContractInput[] deleteMany?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[] } export type ContractCreateNestedOneWithoutTasksInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutTasksInput connect?: ContractWhereUniqueInput } export type ContractTaskSubtaskCreateNestedManyWithoutTaskInput = { create?: XOR | ContractTaskSubtaskCreateWithoutTaskInput[] | ContractTaskSubtaskUncheckedCreateWithoutTaskInput[] connectOrCreate?: ContractTaskSubtaskCreateOrConnectWithoutTaskInput | ContractTaskSubtaskCreateOrConnectWithoutTaskInput[] createMany?: ContractTaskSubtaskCreateManyTaskInputEnvelope connect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] } export type ContractTaskSubtaskUncheckedCreateNestedManyWithoutTaskInput = { create?: XOR | ContractTaskSubtaskCreateWithoutTaskInput[] | ContractTaskSubtaskUncheckedCreateWithoutTaskInput[] connectOrCreate?: ContractTaskSubtaskCreateOrConnectWithoutTaskInput | ContractTaskSubtaskCreateOrConnectWithoutTaskInput[] createMany?: ContractTaskSubtaskCreateManyTaskInputEnvelope connect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] } export type EnumContractTaskStatusFieldUpdateOperationsInput = { set?: $Enums.ContractTaskStatus } export type ContractUpdateOneRequiredWithoutTasksNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutTasksInput upsert?: ContractUpsertWithoutTasksInput connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutTasksInput> } export type ContractTaskSubtaskUpdateManyWithoutTaskNestedInput = { create?: XOR | ContractTaskSubtaskCreateWithoutTaskInput[] | ContractTaskSubtaskUncheckedCreateWithoutTaskInput[] connectOrCreate?: ContractTaskSubtaskCreateOrConnectWithoutTaskInput | ContractTaskSubtaskCreateOrConnectWithoutTaskInput[] upsert?: ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput | ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput[] createMany?: ContractTaskSubtaskCreateManyTaskInputEnvelope set?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] disconnect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] delete?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] connect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] update?: ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput | ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput | ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput[] deleteMany?: ContractTaskSubtaskScalarWhereInput | ContractTaskSubtaskScalarWhereInput[] } export type ContractTaskSubtaskUncheckedUpdateManyWithoutTaskNestedInput = { create?: XOR | ContractTaskSubtaskCreateWithoutTaskInput[] | ContractTaskSubtaskUncheckedCreateWithoutTaskInput[] connectOrCreate?: ContractTaskSubtaskCreateOrConnectWithoutTaskInput | ContractTaskSubtaskCreateOrConnectWithoutTaskInput[] upsert?: ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput | ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput[] createMany?: ContractTaskSubtaskCreateManyTaskInputEnvelope set?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] disconnect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] delete?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] connect?: ContractTaskSubtaskWhereUniqueInput | ContractTaskSubtaskWhereUniqueInput[] update?: ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput | ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput | ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput[] deleteMany?: ContractTaskSubtaskScalarWhereInput | ContractTaskSubtaskScalarWhereInput[] } export type ContractTaskCreateNestedOneWithoutSubtasksInput = { create?: XOR connectOrCreate?: ContractTaskCreateOrConnectWithoutSubtasksInput connect?: ContractTaskWhereUniqueInput } export type ContractTaskUpdateOneRequiredWithoutSubtasksNestedInput = { create?: XOR connectOrCreate?: ContractTaskCreateOrConnectWithoutSubtasksInput upsert?: ContractTaskUpsertWithoutSubtasksInput connect?: ContractTaskWhereUniqueInput update?: XOR, ContractTaskUncheckedUpdateWithoutSubtasksInput> } export type ContractCreateNestedOneWithoutEnergyDetailsInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutEnergyDetailsInput connect?: ContractWhereUniqueInput } export type MeterCreateNestedOneWithoutEnergyDetailsInput = { create?: XOR connectOrCreate?: MeterCreateOrConnectWithoutEnergyDetailsInput connect?: MeterWhereUniqueInput } export type InvoiceCreateNestedManyWithoutEnergyContractDetailsInput = { create?: XOR | InvoiceCreateWithoutEnergyContractDetailsInput[] | InvoiceUncheckedCreateWithoutEnergyContractDetailsInput[] connectOrCreate?: InvoiceCreateOrConnectWithoutEnergyContractDetailsInput | InvoiceCreateOrConnectWithoutEnergyContractDetailsInput[] createMany?: InvoiceCreateManyEnergyContractDetailsInputEnvelope connect?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] } export type InvoiceUncheckedCreateNestedManyWithoutEnergyContractDetailsInput = { create?: XOR | InvoiceCreateWithoutEnergyContractDetailsInput[] | InvoiceUncheckedCreateWithoutEnergyContractDetailsInput[] connectOrCreate?: InvoiceCreateOrConnectWithoutEnergyContractDetailsInput | InvoiceCreateOrConnectWithoutEnergyContractDetailsInput[] createMany?: InvoiceCreateManyEnergyContractDetailsInputEnvelope connect?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] } export type ContractUpdateOneRequiredWithoutEnergyDetailsNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutEnergyDetailsInput upsert?: ContractUpsertWithoutEnergyDetailsInput connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutEnergyDetailsInput> } export type MeterUpdateOneWithoutEnergyDetailsNestedInput = { create?: XOR connectOrCreate?: MeterCreateOrConnectWithoutEnergyDetailsInput upsert?: MeterUpsertWithoutEnergyDetailsInput disconnect?: MeterWhereInput | boolean delete?: MeterWhereInput | boolean connect?: MeterWhereUniqueInput update?: XOR, MeterUncheckedUpdateWithoutEnergyDetailsInput> } export type InvoiceUpdateManyWithoutEnergyContractDetailsNestedInput = { create?: XOR | InvoiceCreateWithoutEnergyContractDetailsInput[] | InvoiceUncheckedCreateWithoutEnergyContractDetailsInput[] connectOrCreate?: InvoiceCreateOrConnectWithoutEnergyContractDetailsInput | InvoiceCreateOrConnectWithoutEnergyContractDetailsInput[] upsert?: InvoiceUpsertWithWhereUniqueWithoutEnergyContractDetailsInput | InvoiceUpsertWithWhereUniqueWithoutEnergyContractDetailsInput[] createMany?: InvoiceCreateManyEnergyContractDetailsInputEnvelope set?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] disconnect?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] delete?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] connect?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] update?: InvoiceUpdateWithWhereUniqueWithoutEnergyContractDetailsInput | InvoiceUpdateWithWhereUniqueWithoutEnergyContractDetailsInput[] updateMany?: InvoiceUpdateManyWithWhereWithoutEnergyContractDetailsInput | InvoiceUpdateManyWithWhereWithoutEnergyContractDetailsInput[] deleteMany?: InvoiceScalarWhereInput | InvoiceScalarWhereInput[] } export type InvoiceUncheckedUpdateManyWithoutEnergyContractDetailsNestedInput = { create?: XOR | InvoiceCreateWithoutEnergyContractDetailsInput[] | InvoiceUncheckedCreateWithoutEnergyContractDetailsInput[] connectOrCreate?: InvoiceCreateOrConnectWithoutEnergyContractDetailsInput | InvoiceCreateOrConnectWithoutEnergyContractDetailsInput[] upsert?: InvoiceUpsertWithWhereUniqueWithoutEnergyContractDetailsInput | InvoiceUpsertWithWhereUniqueWithoutEnergyContractDetailsInput[] createMany?: InvoiceCreateManyEnergyContractDetailsInputEnvelope set?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] disconnect?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] delete?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] connect?: InvoiceWhereUniqueInput | InvoiceWhereUniqueInput[] update?: InvoiceUpdateWithWhereUniqueWithoutEnergyContractDetailsInput | InvoiceUpdateWithWhereUniqueWithoutEnergyContractDetailsInput[] updateMany?: InvoiceUpdateManyWithWhereWithoutEnergyContractDetailsInput | InvoiceUpdateManyWithWhereWithoutEnergyContractDetailsInput[] deleteMany?: InvoiceScalarWhereInput | InvoiceScalarWhereInput[] } export type EnergyContractDetailsCreateNestedOneWithoutInvoicesInput = { create?: XOR connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutInvoicesInput connect?: EnergyContractDetailsWhereUniqueInput } export type EnumInvoiceTypeFieldUpdateOperationsInput = { set?: $Enums.InvoiceType } export type EnergyContractDetailsUpdateOneRequiredWithoutInvoicesNestedInput = { create?: XOR connectOrCreate?: EnergyContractDetailsCreateOrConnectWithoutInvoicesInput upsert?: EnergyContractDetailsUpsertWithoutInvoicesInput connect?: EnergyContractDetailsWhereUniqueInput update?: XOR, EnergyContractDetailsUncheckedUpdateWithoutInvoicesInput> } export type ContractCreateNestedOneWithoutInternetDetailsInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutInternetDetailsInput connect?: ContractWhereUniqueInput } export type PhoneNumberCreateNestedManyWithoutInternetDetailsInput = { create?: XOR | PhoneNumberCreateWithoutInternetDetailsInput[] | PhoneNumberUncheckedCreateWithoutInternetDetailsInput[] connectOrCreate?: PhoneNumberCreateOrConnectWithoutInternetDetailsInput | PhoneNumberCreateOrConnectWithoutInternetDetailsInput[] createMany?: PhoneNumberCreateManyInternetDetailsInputEnvelope connect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] } export type PhoneNumberUncheckedCreateNestedManyWithoutInternetDetailsInput = { create?: XOR | PhoneNumberCreateWithoutInternetDetailsInput[] | PhoneNumberUncheckedCreateWithoutInternetDetailsInput[] connectOrCreate?: PhoneNumberCreateOrConnectWithoutInternetDetailsInput | PhoneNumberCreateOrConnectWithoutInternetDetailsInput[] createMany?: PhoneNumberCreateManyInternetDetailsInputEnvelope connect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] } export type ContractUpdateOneRequiredWithoutInternetDetailsNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutInternetDetailsInput upsert?: ContractUpsertWithoutInternetDetailsInput connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutInternetDetailsInput> } export type PhoneNumberUpdateManyWithoutInternetDetailsNestedInput = { create?: XOR | PhoneNumberCreateWithoutInternetDetailsInput[] | PhoneNumberUncheckedCreateWithoutInternetDetailsInput[] connectOrCreate?: PhoneNumberCreateOrConnectWithoutInternetDetailsInput | PhoneNumberCreateOrConnectWithoutInternetDetailsInput[] upsert?: PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput | PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput[] createMany?: PhoneNumberCreateManyInternetDetailsInputEnvelope set?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] disconnect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] delete?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] connect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] update?: PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput | PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput[] updateMany?: PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput | PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput[] deleteMany?: PhoneNumberScalarWhereInput | PhoneNumberScalarWhereInput[] } export type PhoneNumberUncheckedUpdateManyWithoutInternetDetailsNestedInput = { create?: XOR | PhoneNumberCreateWithoutInternetDetailsInput[] | PhoneNumberUncheckedCreateWithoutInternetDetailsInput[] connectOrCreate?: PhoneNumberCreateOrConnectWithoutInternetDetailsInput | PhoneNumberCreateOrConnectWithoutInternetDetailsInput[] upsert?: PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput | PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput[] createMany?: PhoneNumberCreateManyInternetDetailsInputEnvelope set?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] disconnect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] delete?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] connect?: PhoneNumberWhereUniqueInput | PhoneNumberWhereUniqueInput[] update?: PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput | PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput[] updateMany?: PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput | PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput[] deleteMany?: PhoneNumberScalarWhereInput | PhoneNumberScalarWhereInput[] } export type InternetContractDetailsCreateNestedOneWithoutPhoneNumbersInput = { create?: XOR connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutPhoneNumbersInput connect?: InternetContractDetailsWhereUniqueInput } export type InternetContractDetailsUpdateOneRequiredWithoutPhoneNumbersNestedInput = { create?: XOR connectOrCreate?: InternetContractDetailsCreateOrConnectWithoutPhoneNumbersInput upsert?: InternetContractDetailsUpsertWithoutPhoneNumbersInput connect?: InternetContractDetailsWhereUniqueInput update?: XOR, InternetContractDetailsUncheckedUpdateWithoutPhoneNumbersInput> } export type ContractCreateNestedOneWithoutMobileDetailsInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutMobileDetailsInput connect?: ContractWhereUniqueInput } export type SimCardCreateNestedManyWithoutMobileDetailsInput = { create?: XOR | SimCardCreateWithoutMobileDetailsInput[] | SimCardUncheckedCreateWithoutMobileDetailsInput[] connectOrCreate?: SimCardCreateOrConnectWithoutMobileDetailsInput | SimCardCreateOrConnectWithoutMobileDetailsInput[] createMany?: SimCardCreateManyMobileDetailsInputEnvelope connect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] } export type SimCardUncheckedCreateNestedManyWithoutMobileDetailsInput = { create?: XOR | SimCardCreateWithoutMobileDetailsInput[] | SimCardUncheckedCreateWithoutMobileDetailsInput[] connectOrCreate?: SimCardCreateOrConnectWithoutMobileDetailsInput | SimCardCreateOrConnectWithoutMobileDetailsInput[] createMany?: SimCardCreateManyMobileDetailsInputEnvelope connect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] } export type ContractUpdateOneRequiredWithoutMobileDetailsNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutMobileDetailsInput upsert?: ContractUpsertWithoutMobileDetailsInput connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutMobileDetailsInput> } export type SimCardUpdateManyWithoutMobileDetailsNestedInput = { create?: XOR | SimCardCreateWithoutMobileDetailsInput[] | SimCardUncheckedCreateWithoutMobileDetailsInput[] connectOrCreate?: SimCardCreateOrConnectWithoutMobileDetailsInput | SimCardCreateOrConnectWithoutMobileDetailsInput[] upsert?: SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput | SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput[] createMany?: SimCardCreateManyMobileDetailsInputEnvelope set?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] disconnect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] delete?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] connect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] update?: SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput | SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput[] updateMany?: SimCardUpdateManyWithWhereWithoutMobileDetailsInput | SimCardUpdateManyWithWhereWithoutMobileDetailsInput[] deleteMany?: SimCardScalarWhereInput | SimCardScalarWhereInput[] } export type SimCardUncheckedUpdateManyWithoutMobileDetailsNestedInput = { create?: XOR | SimCardCreateWithoutMobileDetailsInput[] | SimCardUncheckedCreateWithoutMobileDetailsInput[] connectOrCreate?: SimCardCreateOrConnectWithoutMobileDetailsInput | SimCardCreateOrConnectWithoutMobileDetailsInput[] upsert?: SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput | SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput[] createMany?: SimCardCreateManyMobileDetailsInputEnvelope set?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] disconnect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] delete?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] connect?: SimCardWhereUniqueInput | SimCardWhereUniqueInput[] update?: SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput | SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput[] updateMany?: SimCardUpdateManyWithWhereWithoutMobileDetailsInput | SimCardUpdateManyWithWhereWithoutMobileDetailsInput[] deleteMany?: SimCardScalarWhereInput | SimCardScalarWhereInput[] } export type MobileContractDetailsCreateNestedOneWithoutSimCardsInput = { create?: XOR connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutSimCardsInput connect?: MobileContractDetailsWhereUniqueInput } export type MobileContractDetailsUpdateOneRequiredWithoutSimCardsNestedInput = { create?: XOR connectOrCreate?: MobileContractDetailsCreateOrConnectWithoutSimCardsInput upsert?: MobileContractDetailsUpsertWithoutSimCardsInput connect?: MobileContractDetailsWhereUniqueInput update?: XOR, MobileContractDetailsUncheckedUpdateWithoutSimCardsInput> } export type ContractCreateNestedOneWithoutTvDetailsInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutTvDetailsInput connect?: ContractWhereUniqueInput } export type ContractUpdateOneRequiredWithoutTvDetailsNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutTvDetailsInput upsert?: ContractUpsertWithoutTvDetailsInput connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutTvDetailsInput> } export type ContractCreateNestedOneWithoutCarInsuranceDetailsInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutCarInsuranceDetailsInput connect?: ContractWhereUniqueInput } export type EnumInsuranceTypeFieldUpdateOperationsInput = { set?: $Enums.InsuranceType } export type ContractUpdateOneRequiredWithoutCarInsuranceDetailsNestedInput = { create?: XOR connectOrCreate?: ContractCreateOrConnectWithoutCarInsuranceDetailsInput upsert?: ContractUpsertWithoutCarInsuranceDetailsInput connect?: ContractWhereUniqueInput update?: XOR, ContractUncheckedUpdateWithoutCarInsuranceDetailsInput> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] notIn?: Date[] | string[] lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedDateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | null notIn?: Date[] | string[] | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type NestedFloatNullableFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | null notIn?: string[] | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | null notIn?: string[] | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedEnumCustomerTypeFilter<$PrismaModel = never> = { equals?: $Enums.CustomerType | EnumCustomerTypeFieldRefInput<$PrismaModel> in?: $Enums.CustomerType[] notIn?: $Enums.CustomerType[] not?: NestedEnumCustomerTypeFilter<$PrismaModel> | $Enums.CustomerType } export type NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CustomerType | EnumCustomerTypeFieldRefInput<$PrismaModel> in?: $Enums.CustomerType[] notIn?: $Enums.CustomerType[] not?: NestedEnumCustomerTypeWithAggregatesFilter<$PrismaModel> | $Enums.CustomerType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCustomerTypeFilter<$PrismaModel> _max?: NestedEnumCustomerTypeFilter<$PrismaModel> } export type NestedEnumAddressTypeFilter<$PrismaModel = never> = { equals?: $Enums.AddressType | EnumAddressTypeFieldRefInput<$PrismaModel> in?: $Enums.AddressType[] notIn?: $Enums.AddressType[] not?: NestedEnumAddressTypeFilter<$PrismaModel> | $Enums.AddressType } export type NestedEnumAddressTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.AddressType | EnumAddressTypeFieldRefInput<$PrismaModel> in?: $Enums.AddressType[] notIn?: $Enums.AddressType[] not?: NestedEnumAddressTypeWithAggregatesFilter<$PrismaModel> | $Enums.AddressType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumAddressTypeFilter<$PrismaModel> _max?: NestedEnumAddressTypeFilter<$PrismaModel> } export type NestedEnumDocumentTypeFilter<$PrismaModel = never> = { equals?: $Enums.DocumentType | EnumDocumentTypeFieldRefInput<$PrismaModel> in?: $Enums.DocumentType[] notIn?: $Enums.DocumentType[] not?: NestedEnumDocumentTypeFilter<$PrismaModel> | $Enums.DocumentType } export type NestedEnumDocumentTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.DocumentType | EnumDocumentTypeFieldRefInput<$PrismaModel> in?: $Enums.DocumentType[] notIn?: $Enums.DocumentType[] not?: NestedEnumDocumentTypeWithAggregatesFilter<$PrismaModel> | $Enums.DocumentType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumDocumentTypeFilter<$PrismaModel> _max?: NestedEnumDocumentTypeFilter<$PrismaModel> } export type NestedEnumEmailProviderTypeFilter<$PrismaModel = never> = { equals?: $Enums.EmailProviderType | EnumEmailProviderTypeFieldRefInput<$PrismaModel> in?: $Enums.EmailProviderType[] notIn?: $Enums.EmailProviderType[] not?: NestedEnumEmailProviderTypeFilter<$PrismaModel> | $Enums.EmailProviderType } export type NestedEnumMailEncryptionFilter<$PrismaModel = never> = { equals?: $Enums.MailEncryption | EnumMailEncryptionFieldRefInput<$PrismaModel> in?: $Enums.MailEncryption[] notIn?: $Enums.MailEncryption[] not?: NestedEnumMailEncryptionFilter<$PrismaModel> | $Enums.MailEncryption } export type NestedEnumEmailProviderTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.EmailProviderType | EnumEmailProviderTypeFieldRefInput<$PrismaModel> in?: $Enums.EmailProviderType[] notIn?: $Enums.EmailProviderType[] not?: NestedEnumEmailProviderTypeWithAggregatesFilter<$PrismaModel> | $Enums.EmailProviderType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumEmailProviderTypeFilter<$PrismaModel> _max?: NestedEnumEmailProviderTypeFilter<$PrismaModel> } export type NestedEnumMailEncryptionWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MailEncryption | EnumMailEncryptionFieldRefInput<$PrismaModel> in?: $Enums.MailEncryption[] notIn?: $Enums.MailEncryption[] not?: NestedEnumMailEncryptionWithAggregatesFilter<$PrismaModel> | $Enums.MailEncryption _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMailEncryptionFilter<$PrismaModel> _max?: NestedEnumMailEncryptionFilter<$PrismaModel> } export type NestedEnumEmailFolderFilter<$PrismaModel = never> = { equals?: $Enums.EmailFolder | EnumEmailFolderFieldRefInput<$PrismaModel> in?: $Enums.EmailFolder[] notIn?: $Enums.EmailFolder[] not?: NestedEnumEmailFolderFilter<$PrismaModel> | $Enums.EmailFolder } export type NestedEnumEmailFolderWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.EmailFolder | EnumEmailFolderFieldRefInput<$PrismaModel> in?: $Enums.EmailFolder[] notIn?: $Enums.EmailFolder[] not?: NestedEnumEmailFolderWithAggregatesFilter<$PrismaModel> | $Enums.EmailFolder _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumEmailFolderFilter<$PrismaModel> _max?: NestedEnumEmailFolderFilter<$PrismaModel> } export type NestedEnumMeterTypeFilter<$PrismaModel = never> = { equals?: $Enums.MeterType | EnumMeterTypeFieldRefInput<$PrismaModel> in?: $Enums.MeterType[] notIn?: $Enums.MeterType[] not?: NestedEnumMeterTypeFilter<$PrismaModel> | $Enums.MeterType } export type NestedEnumMeterTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MeterType | EnumMeterTypeFieldRefInput<$PrismaModel> in?: $Enums.MeterType[] notIn?: $Enums.MeterType[] not?: NestedEnumMeterTypeWithAggregatesFilter<$PrismaModel> | $Enums.MeterType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMeterTypeFilter<$PrismaModel> _max?: NestedEnumMeterTypeFilter<$PrismaModel> } export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type NestedEnumContractTypeFilter<$PrismaModel = never> = { equals?: $Enums.ContractType | EnumContractTypeFieldRefInput<$PrismaModel> in?: $Enums.ContractType[] notIn?: $Enums.ContractType[] not?: NestedEnumContractTypeFilter<$PrismaModel> | $Enums.ContractType } export type NestedEnumContractStatusFilter<$PrismaModel = never> = { equals?: $Enums.ContractStatus | EnumContractStatusFieldRefInput<$PrismaModel> in?: $Enums.ContractStatus[] notIn?: $Enums.ContractStatus[] not?: NestedEnumContractStatusFilter<$PrismaModel> | $Enums.ContractStatus } export type NestedEnumContractTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ContractType | EnumContractTypeFieldRefInput<$PrismaModel> in?: $Enums.ContractType[] notIn?: $Enums.ContractType[] not?: NestedEnumContractTypeWithAggregatesFilter<$PrismaModel> | $Enums.ContractType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumContractTypeFilter<$PrismaModel> _max?: NestedEnumContractTypeFilter<$PrismaModel> } export type NestedEnumContractStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ContractStatus | EnumContractStatusFieldRefInput<$PrismaModel> in?: $Enums.ContractStatus[] notIn?: $Enums.ContractStatus[] not?: NestedEnumContractStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContractStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumContractStatusFilter<$PrismaModel> _max?: NestedEnumContractStatusFilter<$PrismaModel> } export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> | null in?: number[] | null notIn?: number[] | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedFloatNullableFilter<$PrismaModel> _min?: NestedFloatNullableFilter<$PrismaModel> _max?: NestedFloatNullableFilter<$PrismaModel> } export type NestedEnumContractTaskStatusFilter<$PrismaModel = never> = { equals?: $Enums.ContractTaskStatus | EnumContractTaskStatusFieldRefInput<$PrismaModel> in?: $Enums.ContractTaskStatus[] notIn?: $Enums.ContractTaskStatus[] not?: NestedEnumContractTaskStatusFilter<$PrismaModel> | $Enums.ContractTaskStatus } export type NestedEnumContractTaskStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ContractTaskStatus | EnumContractTaskStatusFieldRefInput<$PrismaModel> in?: $Enums.ContractTaskStatus[] notIn?: $Enums.ContractTaskStatus[] not?: NestedEnumContractTaskStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContractTaskStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumContractTaskStatusFilter<$PrismaModel> _max?: NestedEnumContractTaskStatusFilter<$PrismaModel> } export type NestedEnumInvoiceTypeFilter<$PrismaModel = never> = { equals?: $Enums.InvoiceType | EnumInvoiceTypeFieldRefInput<$PrismaModel> in?: $Enums.InvoiceType[] notIn?: $Enums.InvoiceType[] not?: NestedEnumInvoiceTypeFilter<$PrismaModel> | $Enums.InvoiceType } export type NestedEnumInvoiceTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.InvoiceType | EnumInvoiceTypeFieldRefInput<$PrismaModel> in?: $Enums.InvoiceType[] notIn?: $Enums.InvoiceType[] not?: NestedEnumInvoiceTypeWithAggregatesFilter<$PrismaModel> | $Enums.InvoiceType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumInvoiceTypeFilter<$PrismaModel> _max?: NestedEnumInvoiceTypeFilter<$PrismaModel> } export type NestedEnumInsuranceTypeFilter<$PrismaModel = never> = { equals?: $Enums.InsuranceType | EnumInsuranceTypeFieldRefInput<$PrismaModel> in?: $Enums.InsuranceType[] notIn?: $Enums.InsuranceType[] not?: NestedEnumInsuranceTypeFilter<$PrismaModel> | $Enums.InsuranceType } export type NestedEnumInsuranceTypeWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.InsuranceType | EnumInsuranceTypeFieldRefInput<$PrismaModel> in?: $Enums.InsuranceType[] notIn?: $Enums.InsuranceType[] not?: NestedEnumInsuranceTypeWithAggregatesFilter<$PrismaModel> | $Enums.InsuranceType _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumInsuranceTypeFilter<$PrismaModel> _max?: NestedEnumInsuranceTypeFilter<$PrismaModel> } export type CustomerCreateWithoutUserInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string addresses?: AddressCreateNestedManyWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateWithoutUserInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerCreateOrConnectWithoutUserInput = { where: CustomerWhereUniqueInput create: XOR } export type UserRoleCreateWithoutUserInput = { role: RoleCreateNestedOneWithoutUsersInput } export type UserRoleUncheckedCreateWithoutUserInput = { roleId: number } export type UserRoleCreateOrConnectWithoutUserInput = { where: UserRoleWhereUniqueInput create: XOR } export type UserRoleCreateManyUserInputEnvelope = { data: UserRoleCreateManyUserInput | UserRoleCreateManyUserInput[] skipDuplicates?: boolean } export type CustomerUpsertWithoutUserInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutUserInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutUserInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string addresses?: AddressUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type UserRoleUpsertWithWhereUniqueWithoutUserInput = { where: UserRoleWhereUniqueInput update: XOR create: XOR } export type UserRoleUpdateWithWhereUniqueWithoutUserInput = { where: UserRoleWhereUniqueInput data: XOR } export type UserRoleUpdateManyWithWhereWithoutUserInput = { where: UserRoleScalarWhereInput data: XOR } export type UserRoleScalarWhereInput = { AND?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[] OR?: UserRoleScalarWhereInput[] NOT?: UserRoleScalarWhereInput | UserRoleScalarWhereInput[] userId?: IntFilter<"UserRole"> | number roleId?: IntFilter<"UserRole"> | number } export type RolePermissionCreateWithoutRoleInput = { permission: PermissionCreateNestedOneWithoutRolesInput } export type RolePermissionUncheckedCreateWithoutRoleInput = { permissionId: number } export type RolePermissionCreateOrConnectWithoutRoleInput = { where: RolePermissionWhereUniqueInput create: XOR } export type RolePermissionCreateManyRoleInputEnvelope = { data: RolePermissionCreateManyRoleInput | RolePermissionCreateManyRoleInput[] skipDuplicates?: boolean } export type UserRoleCreateWithoutRoleInput = { user: UserCreateNestedOneWithoutRolesInput } export type UserRoleUncheckedCreateWithoutRoleInput = { userId: number } export type UserRoleCreateOrConnectWithoutRoleInput = { where: UserRoleWhereUniqueInput create: XOR } export type UserRoleCreateManyRoleInputEnvelope = { data: UserRoleCreateManyRoleInput | UserRoleCreateManyRoleInput[] skipDuplicates?: boolean } export type RolePermissionUpsertWithWhereUniqueWithoutRoleInput = { where: RolePermissionWhereUniqueInput update: XOR create: XOR } export type RolePermissionUpdateWithWhereUniqueWithoutRoleInput = { where: RolePermissionWhereUniqueInput data: XOR } export type RolePermissionUpdateManyWithWhereWithoutRoleInput = { where: RolePermissionScalarWhereInput data: XOR } export type RolePermissionScalarWhereInput = { AND?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[] OR?: RolePermissionScalarWhereInput[] NOT?: RolePermissionScalarWhereInput | RolePermissionScalarWhereInput[] roleId?: IntFilter<"RolePermission"> | number permissionId?: IntFilter<"RolePermission"> | number } export type UserRoleUpsertWithWhereUniqueWithoutRoleInput = { where: UserRoleWhereUniqueInput update: XOR create: XOR } export type UserRoleUpdateWithWhereUniqueWithoutRoleInput = { where: UserRoleWhereUniqueInput data: XOR } export type UserRoleUpdateManyWithWhereWithoutRoleInput = { where: UserRoleScalarWhereInput data: XOR } export type RolePermissionCreateWithoutPermissionInput = { role: RoleCreateNestedOneWithoutPermissionsInput } export type RolePermissionUncheckedCreateWithoutPermissionInput = { roleId: number } export type RolePermissionCreateOrConnectWithoutPermissionInput = { where: RolePermissionWhereUniqueInput create: XOR } export type RolePermissionCreateManyPermissionInputEnvelope = { data: RolePermissionCreateManyPermissionInput | RolePermissionCreateManyPermissionInput[] skipDuplicates?: boolean } export type RolePermissionUpsertWithWhereUniqueWithoutPermissionInput = { where: RolePermissionWhereUniqueInput update: XOR create: XOR } export type RolePermissionUpdateWithWhereUniqueWithoutPermissionInput = { where: RolePermissionWhereUniqueInput data: XOR } export type RolePermissionUpdateManyWithWhereWithoutPermissionInput = { where: RolePermissionScalarWhereInput data: XOR } export type RoleCreateWithoutPermissionsInput = { name: string description?: string | null createdAt?: Date | string updatedAt?: Date | string users?: UserRoleCreateNestedManyWithoutRoleInput } export type RoleUncheckedCreateWithoutPermissionsInput = { id?: number name: string description?: string | null createdAt?: Date | string updatedAt?: Date | string users?: UserRoleUncheckedCreateNestedManyWithoutRoleInput } export type RoleCreateOrConnectWithoutPermissionsInput = { where: RoleWhereUniqueInput create: XOR } export type PermissionCreateWithoutRolesInput = { resource: string action: string } export type PermissionUncheckedCreateWithoutRolesInput = { id?: number resource: string action: string } export type PermissionCreateOrConnectWithoutRolesInput = { where: PermissionWhereUniqueInput create: XOR } export type RoleUpsertWithoutPermissionsInput = { update: XOR create: XOR where?: RoleWhereInput } export type RoleUpdateToOneWithWhereWithoutPermissionsInput = { where?: RoleWhereInput data: XOR } export type RoleUpdateWithoutPermissionsInput = { name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string users?: UserRoleUpdateManyWithoutRoleNestedInput } export type RoleUncheckedUpdateWithoutPermissionsInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string users?: UserRoleUncheckedUpdateManyWithoutRoleNestedInput } export type PermissionUpsertWithoutRolesInput = { update: XOR create: XOR where?: PermissionWhereInput } export type PermissionUpdateToOneWithWhereWithoutRolesInput = { where?: PermissionWhereInput data: XOR } export type PermissionUpdateWithoutRolesInput = { resource?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string } export type PermissionUncheckedUpdateWithoutRolesInput = { id?: IntFieldUpdateOperationsInput | number resource?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string } export type UserCreateWithoutRolesInput = { email: string password: string firstName: string lastName: string isActive?: boolean tokenInvalidatedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string customer?: CustomerCreateNestedOneWithoutUserInput } export type UserUncheckedCreateWithoutRolesInput = { id?: number email: string password: string firstName: string lastName: string isActive?: boolean tokenInvalidatedAt?: Date | string | null customerId?: number | null createdAt?: Date | string updatedAt?: Date | string } export type UserCreateOrConnectWithoutRolesInput = { where: UserWhereUniqueInput create: XOR } export type RoleCreateWithoutUsersInput = { name: string description?: string | null createdAt?: Date | string updatedAt?: Date | string permissions?: RolePermissionCreateNestedManyWithoutRoleInput } export type RoleUncheckedCreateWithoutUsersInput = { id?: number name: string description?: string | null createdAt?: Date | string updatedAt?: Date | string permissions?: RolePermissionUncheckedCreateNestedManyWithoutRoleInput } export type RoleCreateOrConnectWithoutUsersInput = { where: RoleWhereUniqueInput create: XOR } export type UserUpsertWithoutRolesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutRolesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutRolesInput = { email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutRolesInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null customerId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type RoleUpsertWithoutUsersInput = { update: XOR create: XOR where?: RoleWhereInput } export type RoleUpdateToOneWithWhereWithoutUsersInput = { where?: RoleWhereInput data: XOR } export type RoleUpdateWithoutUsersInput = { name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string permissions?: RolePermissionUpdateManyWithoutRoleNestedInput } export type RoleUncheckedUpdateWithoutUsersInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string permissions?: RolePermissionUncheckedUpdateManyWithoutRoleNestedInput } export type UserCreateWithoutCustomerInput = { email: string password: string firstName: string lastName: string isActive?: boolean tokenInvalidatedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string roles?: UserRoleCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutCustomerInput = { id?: number email: string password: string firstName: string lastName: string isActive?: boolean tokenInvalidatedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string roles?: UserRoleUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutCustomerInput = { where: UserWhereUniqueInput create: XOR } export type AddressCreateWithoutCustomerInput = { type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string contractsAsDelivery?: ContractCreateNestedManyWithoutAddressInput contractsAsBilling?: ContractCreateNestedManyWithoutBillingAddressInput } export type AddressUncheckedCreateWithoutCustomerInput = { id?: number type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string contractsAsDelivery?: ContractUncheckedCreateNestedManyWithoutAddressInput contractsAsBilling?: ContractUncheckedCreateNestedManyWithoutBillingAddressInput } export type AddressCreateOrConnectWithoutCustomerInput = { where: AddressWhereUniqueInput create: XOR } export type AddressCreateManyCustomerInputEnvelope = { data: AddressCreateManyCustomerInput | AddressCreateManyCustomerInput[] skipDuplicates?: boolean } export type BankCardCreateWithoutCustomerInput = { accountHolder: string iban: string bic?: string | null bankName?: string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutBankCardInput } export type BankCardUncheckedCreateWithoutCustomerInput = { id?: number accountHolder: string iban: string bic?: string | null bankName?: string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutBankCardInput } export type BankCardCreateOrConnectWithoutCustomerInput = { where: BankCardWhereUniqueInput create: XOR } export type BankCardCreateManyCustomerInputEnvelope = { data: BankCardCreateManyCustomerInput | BankCardCreateManyCustomerInput[] skipDuplicates?: boolean } export type IdentityDocumentCreateWithoutCustomerInput = { type?: $Enums.DocumentType documentNumber: string issuingAuthority?: string | null issueDate?: Date | string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean licenseClasses?: string | null licenseIssueDate?: Date | string | null createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutIdentityDocumentInput } export type IdentityDocumentUncheckedCreateWithoutCustomerInput = { id?: number type?: $Enums.DocumentType documentNumber: string issuingAuthority?: string | null issueDate?: Date | string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean licenseClasses?: string | null licenseIssueDate?: Date | string | null createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutIdentityDocumentInput } export type IdentityDocumentCreateOrConnectWithoutCustomerInput = { where: IdentityDocumentWhereUniqueInput create: XOR } export type IdentityDocumentCreateManyCustomerInputEnvelope = { data: IdentityDocumentCreateManyCustomerInput | IdentityDocumentCreateManyCustomerInput[] skipDuplicates?: boolean } export type MeterCreateWithoutCustomerInput = { meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string readings?: MeterReadingCreateNestedManyWithoutMeterInput energyDetails?: EnergyContractDetailsCreateNestedManyWithoutMeterInput } export type MeterUncheckedCreateWithoutCustomerInput = { id?: number meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string readings?: MeterReadingUncheckedCreateNestedManyWithoutMeterInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedManyWithoutMeterInput } export type MeterCreateOrConnectWithoutCustomerInput = { where: MeterWhereUniqueInput create: XOR } export type MeterCreateManyCustomerInputEnvelope = { data: MeterCreateManyCustomerInput | MeterCreateManyCustomerInput[] skipDuplicates?: boolean } export type StressfreiEmailCreateWithoutCustomerInput = { email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutStressfreiEmailInput cachedEmails?: CachedEmailCreateNestedManyWithoutStressfreiEmailInput } export type StressfreiEmailUncheckedCreateWithoutCustomerInput = { id?: number email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutStressfreiEmailInput cachedEmails?: CachedEmailUncheckedCreateNestedManyWithoutStressfreiEmailInput } export type StressfreiEmailCreateOrConnectWithoutCustomerInput = { where: StressfreiEmailWhereUniqueInput create: XOR } export type StressfreiEmailCreateManyCustomerInputEnvelope = { data: StressfreiEmailCreateManyCustomerInput | StressfreiEmailCreateManyCustomerInput[] skipDuplicates?: boolean } export type ContractCreateWithoutCustomerInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutCustomerInput = { id?: number contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutCustomerInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyCustomerInputEnvelope = { data: ContractCreateManyCustomerInput | ContractCreateManyCustomerInput[] skipDuplicates?: boolean } export type CustomerRepresentativeCreateWithoutRepresentativeInput = { notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutRepresentedByInput } export type CustomerRepresentativeUncheckedCreateWithoutRepresentativeInput = { id?: number customerId: number notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CustomerRepresentativeCreateOrConnectWithoutRepresentativeInput = { where: CustomerRepresentativeWhereUniqueInput create: XOR } export type CustomerRepresentativeCreateManyRepresentativeInputEnvelope = { data: CustomerRepresentativeCreateManyRepresentativeInput | CustomerRepresentativeCreateManyRepresentativeInput[] skipDuplicates?: boolean } export type CustomerRepresentativeCreateWithoutCustomerInput = { notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string representative: CustomerCreateNestedOneWithoutRepresentingForInput } export type CustomerRepresentativeUncheckedCreateWithoutCustomerInput = { id?: number representativeId: number notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CustomerRepresentativeCreateOrConnectWithoutCustomerInput = { where: CustomerRepresentativeWhereUniqueInput create: XOR } export type CustomerRepresentativeCreateManyCustomerInputEnvelope = { data: CustomerRepresentativeCreateManyCustomerInput | CustomerRepresentativeCreateManyCustomerInput[] skipDuplicates?: boolean } export type UserUpsertWithoutCustomerInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCustomerInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCustomerInput = { email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string roles?: UserRoleUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean tokenInvalidatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string roles?: UserRoleUncheckedUpdateManyWithoutUserNestedInput } export type AddressUpsertWithWhereUniqueWithoutCustomerInput = { where: AddressWhereUniqueInput update: XOR create: XOR } export type AddressUpdateWithWhereUniqueWithoutCustomerInput = { where: AddressWhereUniqueInput data: XOR } export type AddressUpdateManyWithWhereWithoutCustomerInput = { where: AddressScalarWhereInput data: XOR } export type AddressScalarWhereInput = { AND?: AddressScalarWhereInput | AddressScalarWhereInput[] OR?: AddressScalarWhereInput[] NOT?: AddressScalarWhereInput | AddressScalarWhereInput[] id?: IntFilter<"Address"> | number customerId?: IntFilter<"Address"> | number type?: EnumAddressTypeFilter<"Address"> | $Enums.AddressType street?: StringFilter<"Address"> | string houseNumber?: StringFilter<"Address"> | string postalCode?: StringFilter<"Address"> | string city?: StringFilter<"Address"> | string country?: StringFilter<"Address"> | string isDefault?: BoolFilter<"Address"> | boolean createdAt?: DateTimeFilter<"Address"> | Date | string updatedAt?: DateTimeFilter<"Address"> | Date | string } export type BankCardUpsertWithWhereUniqueWithoutCustomerInput = { where: BankCardWhereUniqueInput update: XOR create: XOR } export type BankCardUpdateWithWhereUniqueWithoutCustomerInput = { where: BankCardWhereUniqueInput data: XOR } export type BankCardUpdateManyWithWhereWithoutCustomerInput = { where: BankCardScalarWhereInput data: XOR } export type BankCardScalarWhereInput = { AND?: BankCardScalarWhereInput | BankCardScalarWhereInput[] OR?: BankCardScalarWhereInput[] NOT?: BankCardScalarWhereInput | BankCardScalarWhereInput[] id?: IntFilter<"BankCard"> | number customerId?: IntFilter<"BankCard"> | number accountHolder?: StringFilter<"BankCard"> | string iban?: StringFilter<"BankCard"> | string bic?: StringNullableFilter<"BankCard"> | string | null bankName?: StringNullableFilter<"BankCard"> | string | null expiryDate?: DateTimeNullableFilter<"BankCard"> | Date | string | null documentPath?: StringNullableFilter<"BankCard"> | string | null isActive?: BoolFilter<"BankCard"> | boolean createdAt?: DateTimeFilter<"BankCard"> | Date | string updatedAt?: DateTimeFilter<"BankCard"> | Date | string } export type IdentityDocumentUpsertWithWhereUniqueWithoutCustomerInput = { where: IdentityDocumentWhereUniqueInput update: XOR create: XOR } export type IdentityDocumentUpdateWithWhereUniqueWithoutCustomerInput = { where: IdentityDocumentWhereUniqueInput data: XOR } export type IdentityDocumentUpdateManyWithWhereWithoutCustomerInput = { where: IdentityDocumentScalarWhereInput data: XOR } export type IdentityDocumentScalarWhereInput = { AND?: IdentityDocumentScalarWhereInput | IdentityDocumentScalarWhereInput[] OR?: IdentityDocumentScalarWhereInput[] NOT?: IdentityDocumentScalarWhereInput | IdentityDocumentScalarWhereInput[] id?: IntFilter<"IdentityDocument"> | number customerId?: IntFilter<"IdentityDocument"> | number type?: EnumDocumentTypeFilter<"IdentityDocument"> | $Enums.DocumentType documentNumber?: StringFilter<"IdentityDocument"> | string issuingAuthority?: StringNullableFilter<"IdentityDocument"> | string | null issueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null expiryDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null documentPath?: StringNullableFilter<"IdentityDocument"> | string | null isActive?: BoolFilter<"IdentityDocument"> | boolean licenseClasses?: StringNullableFilter<"IdentityDocument"> | string | null licenseIssueDate?: DateTimeNullableFilter<"IdentityDocument"> | Date | string | null createdAt?: DateTimeFilter<"IdentityDocument"> | Date | string updatedAt?: DateTimeFilter<"IdentityDocument"> | Date | string } export type MeterUpsertWithWhereUniqueWithoutCustomerInput = { where: MeterWhereUniqueInput update: XOR create: XOR } export type MeterUpdateWithWhereUniqueWithoutCustomerInput = { where: MeterWhereUniqueInput data: XOR } export type MeterUpdateManyWithWhereWithoutCustomerInput = { where: MeterScalarWhereInput data: XOR } export type MeterScalarWhereInput = { AND?: MeterScalarWhereInput | MeterScalarWhereInput[] OR?: MeterScalarWhereInput[] NOT?: MeterScalarWhereInput | MeterScalarWhereInput[] id?: IntFilter<"Meter"> | number customerId?: IntFilter<"Meter"> | number meterNumber?: StringFilter<"Meter"> | string type?: EnumMeterTypeFilter<"Meter"> | $Enums.MeterType location?: StringNullableFilter<"Meter"> | string | null isActive?: BoolFilter<"Meter"> | boolean createdAt?: DateTimeFilter<"Meter"> | Date | string updatedAt?: DateTimeFilter<"Meter"> | Date | string } export type StressfreiEmailUpsertWithWhereUniqueWithoutCustomerInput = { where: StressfreiEmailWhereUniqueInput update: XOR create: XOR } export type StressfreiEmailUpdateWithWhereUniqueWithoutCustomerInput = { where: StressfreiEmailWhereUniqueInput data: XOR } export type StressfreiEmailUpdateManyWithWhereWithoutCustomerInput = { where: StressfreiEmailScalarWhereInput data: XOR } export type StressfreiEmailScalarWhereInput = { AND?: StressfreiEmailScalarWhereInput | StressfreiEmailScalarWhereInput[] OR?: StressfreiEmailScalarWhereInput[] NOT?: StressfreiEmailScalarWhereInput | StressfreiEmailScalarWhereInput[] id?: IntFilter<"StressfreiEmail"> | number customerId?: IntFilter<"StressfreiEmail"> | number email?: StringFilter<"StressfreiEmail"> | string platform?: StringNullableFilter<"StressfreiEmail"> | string | null notes?: StringNullableFilter<"StressfreiEmail"> | string | null isActive?: BoolFilter<"StressfreiEmail"> | boolean isProvisioned?: BoolFilter<"StressfreiEmail"> | boolean provisionedAt?: DateTimeNullableFilter<"StressfreiEmail"> | Date | string | null provisionError?: StringNullableFilter<"StressfreiEmail"> | string | null hasMailbox?: BoolFilter<"StressfreiEmail"> | boolean emailPasswordEncrypted?: StringNullableFilter<"StressfreiEmail"> | string | null createdAt?: DateTimeFilter<"StressfreiEmail"> | Date | string updatedAt?: DateTimeFilter<"StressfreiEmail"> | Date | string } export type ContractUpsertWithWhereUniqueWithoutCustomerInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutCustomerInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutCustomerInput = { where: ContractScalarWhereInput data: XOR } export type ContractScalarWhereInput = { AND?: ContractScalarWhereInput | ContractScalarWhereInput[] OR?: ContractScalarWhereInput[] NOT?: ContractScalarWhereInput | ContractScalarWhereInput[] id?: IntFilter<"Contract"> | number contractNumber?: StringFilter<"Contract"> | string customerId?: IntFilter<"Contract"> | number type?: EnumContractTypeFilter<"Contract"> | $Enums.ContractType status?: EnumContractStatusFilter<"Contract"> | $Enums.ContractStatus contractCategoryId?: IntNullableFilter<"Contract"> | number | null addressId?: IntNullableFilter<"Contract"> | number | null billingAddressId?: IntNullableFilter<"Contract"> | number | null bankCardId?: IntNullableFilter<"Contract"> | number | null identityDocumentId?: IntNullableFilter<"Contract"> | number | null salesPlatformId?: IntNullableFilter<"Contract"> | number | null cancellationPeriodId?: IntNullableFilter<"Contract"> | number | null contractDurationId?: IntNullableFilter<"Contract"> | number | null previousContractId?: IntNullableFilter<"Contract"> | number | null providerId?: IntNullableFilter<"Contract"> | number | null tariffId?: IntNullableFilter<"Contract"> | number | null providerName?: StringNullableFilter<"Contract"> | string | null tariffName?: StringNullableFilter<"Contract"> | string | null customerNumberAtProvider?: StringNullableFilter<"Contract"> | string | null priceFirst12Months?: StringNullableFilter<"Contract"> | string | null priceFrom13Months?: StringNullableFilter<"Contract"> | string | null priceAfter24Months?: StringNullableFilter<"Contract"> | string | null startDate?: DateTimeNullableFilter<"Contract"> | Date | string | null endDate?: DateTimeNullableFilter<"Contract"> | Date | string | null commission?: FloatNullableFilter<"Contract"> | number | null cancellationLetterPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationPath?: StringNullableFilter<"Contract"> | string | null cancellationLetterOptionsPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationOptionsPath?: StringNullableFilter<"Contract"> | string | null cancellationConfirmationDate?: DateTimeNullableFilter<"Contract"> | Date | string | null cancellationConfirmationOptionsDate?: DateTimeNullableFilter<"Contract"> | Date | string | null wasSpecialCancellation?: BoolFilter<"Contract"> | boolean portalUsername?: StringNullableFilter<"Contract"> | string | null portalPasswordEncrypted?: StringNullableFilter<"Contract"> | string | null stressfreiEmailId?: IntNullableFilter<"Contract"> | number | null notes?: StringNullableFilter<"Contract"> | string | null createdAt?: DateTimeFilter<"Contract"> | Date | string updatedAt?: DateTimeFilter<"Contract"> | Date | string } export type CustomerRepresentativeUpsertWithWhereUniqueWithoutRepresentativeInput = { where: CustomerRepresentativeWhereUniqueInput update: XOR create: XOR } export type CustomerRepresentativeUpdateWithWhereUniqueWithoutRepresentativeInput = { where: CustomerRepresentativeWhereUniqueInput data: XOR } export type CustomerRepresentativeUpdateManyWithWhereWithoutRepresentativeInput = { where: CustomerRepresentativeScalarWhereInput data: XOR } export type CustomerRepresentativeScalarWhereInput = { AND?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[] OR?: CustomerRepresentativeScalarWhereInput[] NOT?: CustomerRepresentativeScalarWhereInput | CustomerRepresentativeScalarWhereInput[] id?: IntFilter<"CustomerRepresentative"> | number customerId?: IntFilter<"CustomerRepresentative"> | number representativeId?: IntFilter<"CustomerRepresentative"> | number notes?: StringNullableFilter<"CustomerRepresentative"> | string | null isActive?: BoolFilter<"CustomerRepresentative"> | boolean createdAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string updatedAt?: DateTimeFilter<"CustomerRepresentative"> | Date | string } export type CustomerRepresentativeUpsertWithWhereUniqueWithoutCustomerInput = { where: CustomerRepresentativeWhereUniqueInput update: XOR create: XOR } export type CustomerRepresentativeUpdateWithWhereUniqueWithoutCustomerInput = { where: CustomerRepresentativeWhereUniqueInput data: XOR } export type CustomerRepresentativeUpdateManyWithWhereWithoutCustomerInput = { where: CustomerRepresentativeScalarWhereInput data: XOR } export type CustomerCreateWithoutRepresentedByInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput addresses?: AddressCreateNestedManyWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput } export type CustomerUncheckedCreateWithoutRepresentedByInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput } export type CustomerCreateOrConnectWithoutRepresentedByInput = { where: CustomerWhereUniqueInput create: XOR } export type CustomerCreateWithoutRepresentingForInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput addresses?: AddressCreateNestedManyWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateWithoutRepresentingForInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerCreateOrConnectWithoutRepresentingForInput = { where: CustomerWhereUniqueInput create: XOR } export type CustomerUpsertWithoutRepresentedByInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutRepresentedByInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutRepresentedByInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput addresses?: AddressUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput } export type CustomerUncheckedUpdateWithoutRepresentedByInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput } export type CustomerUpsertWithoutRepresentingForInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutRepresentingForInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutRepresentingForInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput addresses?: AddressUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutRepresentingForInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type CustomerCreateWithoutAddressesInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateWithoutAddressesInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerCreateOrConnectWithoutAddressesInput = { where: CustomerWhereUniqueInput create: XOR } export type ContractCreateWithoutAddressInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutAddressInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutAddressInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyAddressInputEnvelope = { data: ContractCreateManyAddressInput | ContractCreateManyAddressInput[] skipDuplicates?: boolean } export type ContractCreateWithoutBillingAddressInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutBillingAddressInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutBillingAddressInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyBillingAddressInputEnvelope = { data: ContractCreateManyBillingAddressInput | ContractCreateManyBillingAddressInput[] skipDuplicates?: boolean } export type CustomerUpsertWithoutAddressesInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutAddressesInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutAddressesInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutAddressesInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type ContractUpsertWithWhereUniqueWithoutAddressInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutAddressInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutAddressInput = { where: ContractScalarWhereInput data: XOR } export type ContractUpsertWithWhereUniqueWithoutBillingAddressInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutBillingAddressInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutBillingAddressInput = { where: ContractScalarWhereInput data: XOR } export type CustomerCreateWithoutBankCardsInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput addresses?: AddressCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateWithoutBankCardsInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerCreateOrConnectWithoutBankCardsInput = { where: CustomerWhereUniqueInput create: XOR } export type ContractCreateWithoutBankCardInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutBankCardInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutBankCardInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyBankCardInputEnvelope = { data: ContractCreateManyBankCardInput | ContractCreateManyBankCardInput[] skipDuplicates?: boolean } export type CustomerUpsertWithoutBankCardsInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutBankCardsInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutBankCardsInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput addresses?: AddressUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutBankCardsInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type ContractUpsertWithWhereUniqueWithoutBankCardInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutBankCardInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutBankCardInput = { where: ContractScalarWhereInput data: XOR } export type CustomerCreateWithoutIdentityDocumentsInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput addresses?: AddressCreateNestedManyWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateWithoutIdentityDocumentsInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerCreateOrConnectWithoutIdentityDocumentsInput = { where: CustomerWhereUniqueInput create: XOR } export type ContractCreateWithoutIdentityDocumentInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutIdentityDocumentInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutIdentityDocumentInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyIdentityDocumentInputEnvelope = { data: ContractCreateManyIdentityDocumentInput | ContractCreateManyIdentityDocumentInput[] skipDuplicates?: boolean } export type CustomerUpsertWithoutIdentityDocumentsInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutIdentityDocumentsInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutIdentityDocumentsInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput addresses?: AddressUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutIdentityDocumentsInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type ContractUpsertWithWhereUniqueWithoutIdentityDocumentInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutIdentityDocumentInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutIdentityDocumentInput = { where: ContractScalarWhereInput data: XOR } export type CustomerCreateWithoutStressfreiEmailsInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput addresses?: AddressCreateNestedManyWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateWithoutStressfreiEmailsInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerCreateOrConnectWithoutStressfreiEmailsInput = { where: CustomerWhereUniqueInput create: XOR } export type ContractCreateWithoutStressfreiEmailInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutStressfreiEmailInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutStressfreiEmailInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyStressfreiEmailInputEnvelope = { data: ContractCreateManyStressfreiEmailInput | ContractCreateManyStressfreiEmailInput[] skipDuplicates?: boolean } export type CachedEmailCreateWithoutStressfreiEmailInput = { folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string contract?: ContractCreateNestedOneWithoutAssignedEmailsInput } export type CachedEmailUncheckedCreateWithoutStressfreiEmailInput = { id?: number folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null contractId?: number | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type CachedEmailCreateOrConnectWithoutStressfreiEmailInput = { where: CachedEmailWhereUniqueInput create: XOR } export type CachedEmailCreateManyStressfreiEmailInputEnvelope = { data: CachedEmailCreateManyStressfreiEmailInput | CachedEmailCreateManyStressfreiEmailInput[] skipDuplicates?: boolean } export type CustomerUpsertWithoutStressfreiEmailsInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutStressfreiEmailsInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutStressfreiEmailsInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput addresses?: AddressUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutStressfreiEmailsInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type ContractUpsertWithWhereUniqueWithoutStressfreiEmailInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutStressfreiEmailInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutStressfreiEmailInput = { where: ContractScalarWhereInput data: XOR } export type CachedEmailUpsertWithWhereUniqueWithoutStressfreiEmailInput = { where: CachedEmailWhereUniqueInput update: XOR create: XOR } export type CachedEmailUpdateWithWhereUniqueWithoutStressfreiEmailInput = { where: CachedEmailWhereUniqueInput data: XOR } export type CachedEmailUpdateManyWithWhereWithoutStressfreiEmailInput = { where: CachedEmailScalarWhereInput data: XOR } export type CachedEmailScalarWhereInput = { AND?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[] OR?: CachedEmailScalarWhereInput[] NOT?: CachedEmailScalarWhereInput | CachedEmailScalarWhereInput[] id?: IntFilter<"CachedEmail"> | number stressfreiEmailId?: IntFilter<"CachedEmail"> | number folder?: EnumEmailFolderFilter<"CachedEmail"> | $Enums.EmailFolder messageId?: StringFilter<"CachedEmail"> | string uid?: IntFilter<"CachedEmail"> | number subject?: StringNullableFilter<"CachedEmail"> | string | null fromAddress?: StringFilter<"CachedEmail"> | string fromName?: StringNullableFilter<"CachedEmail"> | string | null toAddresses?: StringFilter<"CachedEmail"> | string ccAddresses?: StringNullableFilter<"CachedEmail"> | string | null receivedAt?: DateTimeFilter<"CachedEmail"> | Date | string textBody?: StringNullableFilter<"CachedEmail"> | string | null htmlBody?: StringNullableFilter<"CachedEmail"> | string | null hasAttachments?: BoolFilter<"CachedEmail"> | boolean attachmentNames?: StringNullableFilter<"CachedEmail"> | string | null contractId?: IntNullableFilter<"CachedEmail"> | number | null assignedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null assignedBy?: IntNullableFilter<"CachedEmail"> | number | null isAutoAssigned?: BoolFilter<"CachedEmail"> | boolean isRead?: BoolFilter<"CachedEmail"> | boolean isStarred?: BoolFilter<"CachedEmail"> | boolean isDeleted?: BoolFilter<"CachedEmail"> | boolean deletedAt?: DateTimeNullableFilter<"CachedEmail"> | Date | string | null createdAt?: DateTimeFilter<"CachedEmail"> | Date | string updatedAt?: DateTimeFilter<"CachedEmail"> | Date | string } export type StressfreiEmailCreateWithoutCachedEmailsInput = { email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutStressfreiEmailsInput contracts?: ContractCreateNestedManyWithoutStressfreiEmailInput } export type StressfreiEmailUncheckedCreateWithoutCachedEmailsInput = { id?: number customerId: number email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutStressfreiEmailInput } export type StressfreiEmailCreateOrConnectWithoutCachedEmailsInput = { where: StressfreiEmailWhereUniqueInput create: XOR } export type ContractCreateWithoutAssignedEmailsInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutAssignedEmailsInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutAssignedEmailsInput = { where: ContractWhereUniqueInput create: XOR } export type StressfreiEmailUpsertWithoutCachedEmailsInput = { update: XOR create: XOR where?: StressfreiEmailWhereInput } export type StressfreiEmailUpdateToOneWithWhereWithoutCachedEmailsInput = { where?: StressfreiEmailWhereInput data: XOR } export type StressfreiEmailUpdateWithoutCachedEmailsInput = { email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutStressfreiEmailsNestedInput contracts?: ContractUpdateManyWithoutStressfreiEmailNestedInput } export type StressfreiEmailUncheckedUpdateWithoutCachedEmailsInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutStressfreiEmailNestedInput } export type ContractUpsertWithoutAssignedEmailsInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutAssignedEmailsInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutAssignedEmailsInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutAssignedEmailsInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput } export type CustomerCreateWithoutMetersInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput addresses?: AddressCreateNestedManyWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput contracts?: ContractCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateWithoutMetersInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput contracts?: ContractUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerCreateOrConnectWithoutMetersInput = { where: CustomerWhereUniqueInput create: XOR } export type MeterReadingCreateWithoutMeterInput = { readingDate: Date | string value: number unit?: string notes?: string | null createdAt?: Date | string } export type MeterReadingUncheckedCreateWithoutMeterInput = { id?: number readingDate: Date | string value: number unit?: string notes?: string | null createdAt?: Date | string } export type MeterReadingCreateOrConnectWithoutMeterInput = { where: MeterReadingWhereUniqueInput create: XOR } export type MeterReadingCreateManyMeterInputEnvelope = { data: MeterReadingCreateManyMeterInput | MeterReadingCreateManyMeterInput[] skipDuplicates?: boolean } export type EnergyContractDetailsCreateWithoutMeterInput = { maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null contract: ContractCreateNestedOneWithoutEnergyDetailsInput invoices?: InvoiceCreateNestedManyWithoutEnergyContractDetailsInput } export type EnergyContractDetailsUncheckedCreateWithoutMeterInput = { id?: number contractId: number maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null invoices?: InvoiceUncheckedCreateNestedManyWithoutEnergyContractDetailsInput } export type EnergyContractDetailsCreateOrConnectWithoutMeterInput = { where: EnergyContractDetailsWhereUniqueInput create: XOR } export type EnergyContractDetailsCreateManyMeterInputEnvelope = { data: EnergyContractDetailsCreateManyMeterInput | EnergyContractDetailsCreateManyMeterInput[] skipDuplicates?: boolean } export type CustomerUpsertWithoutMetersInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutMetersInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutMetersInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput addresses?: AddressUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput contracts?: ContractUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutMetersInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput contracts?: ContractUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type MeterReadingUpsertWithWhereUniqueWithoutMeterInput = { where: MeterReadingWhereUniqueInput update: XOR create: XOR } export type MeterReadingUpdateWithWhereUniqueWithoutMeterInput = { where: MeterReadingWhereUniqueInput data: XOR } export type MeterReadingUpdateManyWithWhereWithoutMeterInput = { where: MeterReadingScalarWhereInput data: XOR } export type MeterReadingScalarWhereInput = { AND?: MeterReadingScalarWhereInput | MeterReadingScalarWhereInput[] OR?: MeterReadingScalarWhereInput[] NOT?: MeterReadingScalarWhereInput | MeterReadingScalarWhereInput[] id?: IntFilter<"MeterReading"> | number meterId?: IntFilter<"MeterReading"> | number readingDate?: DateTimeFilter<"MeterReading"> | Date | string value?: FloatFilter<"MeterReading"> | number unit?: StringFilter<"MeterReading"> | string notes?: StringNullableFilter<"MeterReading"> | string | null createdAt?: DateTimeFilter<"MeterReading"> | Date | string } export type EnergyContractDetailsUpsertWithWhereUniqueWithoutMeterInput = { where: EnergyContractDetailsWhereUniqueInput update: XOR create: XOR } export type EnergyContractDetailsUpdateWithWhereUniqueWithoutMeterInput = { where: EnergyContractDetailsWhereUniqueInput data: XOR } export type EnergyContractDetailsUpdateManyWithWhereWithoutMeterInput = { where: EnergyContractDetailsScalarWhereInput data: XOR } export type EnergyContractDetailsScalarWhereInput = { AND?: EnergyContractDetailsScalarWhereInput | EnergyContractDetailsScalarWhereInput[] OR?: EnergyContractDetailsScalarWhereInput[] NOT?: EnergyContractDetailsScalarWhereInput | EnergyContractDetailsScalarWhereInput[] id?: IntFilter<"EnergyContractDetails"> | number contractId?: IntFilter<"EnergyContractDetails"> | number meterId?: IntNullableFilter<"EnergyContractDetails"> | number | null maloId?: StringNullableFilter<"EnergyContractDetails"> | string | null annualConsumption?: FloatNullableFilter<"EnergyContractDetails"> | number | null annualConsumptionKwh?: FloatNullableFilter<"EnergyContractDetails"> | number | null basePrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null unitPrice?: FloatNullableFilter<"EnergyContractDetails"> | number | null bonus?: FloatNullableFilter<"EnergyContractDetails"> | number | null previousProviderName?: StringNullableFilter<"EnergyContractDetails"> | string | null previousCustomerNumber?: StringNullableFilter<"EnergyContractDetails"> | string | null } export type MeterCreateWithoutReadingsInput = { meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutMetersInput energyDetails?: EnergyContractDetailsCreateNestedManyWithoutMeterInput } export type MeterUncheckedCreateWithoutReadingsInput = { id?: number customerId: number meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string energyDetails?: EnergyContractDetailsUncheckedCreateNestedManyWithoutMeterInput } export type MeterCreateOrConnectWithoutReadingsInput = { where: MeterWhereUniqueInput create: XOR } export type MeterUpsertWithoutReadingsInput = { update: XOR create: XOR where?: MeterWhereInput } export type MeterUpdateToOneWithWhereWithoutReadingsInput = { where?: MeterWhereInput data: XOR } export type MeterUpdateWithoutReadingsInput = { meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutMetersNestedInput energyDetails?: EnergyContractDetailsUpdateManyWithoutMeterNestedInput } export type MeterUncheckedUpdateWithoutReadingsInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string energyDetails?: EnergyContractDetailsUncheckedUpdateManyWithoutMeterNestedInput } export type ContractCreateWithoutSalesPlatformInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutSalesPlatformInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutSalesPlatformInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManySalesPlatformInputEnvelope = { data: ContractCreateManySalesPlatformInput | ContractCreateManySalesPlatformInput[] skipDuplicates?: boolean } export type ContractUpsertWithWhereUniqueWithoutSalesPlatformInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutSalesPlatformInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutSalesPlatformInput = { where: ContractScalarWhereInput data: XOR } export type ContractCreateWithoutCancellationPeriodInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutCancellationPeriodInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutCancellationPeriodInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyCancellationPeriodInputEnvelope = { data: ContractCreateManyCancellationPeriodInput | ContractCreateManyCancellationPeriodInput[] skipDuplicates?: boolean } export type ContractUpsertWithWhereUniqueWithoutCancellationPeriodInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutCancellationPeriodInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutCancellationPeriodInput = { where: ContractScalarWhereInput data: XOR } export type ContractCreateWithoutContractDurationInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutContractDurationInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutContractDurationInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyContractDurationInputEnvelope = { data: ContractCreateManyContractDurationInput | ContractCreateManyContractDurationInput[] skipDuplicates?: boolean } export type ContractUpsertWithWhereUniqueWithoutContractDurationInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutContractDurationInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutContractDurationInput = { where: ContractScalarWhereInput data: XOR } export type TariffCreateWithoutProviderInput = { name: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutTariffInput } export type TariffUncheckedCreateWithoutProviderInput = { id?: number name: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutTariffInput } export type TariffCreateOrConnectWithoutProviderInput = { where: TariffWhereUniqueInput create: XOR } export type TariffCreateManyProviderInputEnvelope = { data: TariffCreateManyProviderInput | TariffCreateManyProviderInput[] skipDuplicates?: boolean } export type ContractCreateWithoutProviderInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutProviderInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutProviderInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyProviderInputEnvelope = { data: ContractCreateManyProviderInput | ContractCreateManyProviderInput[] skipDuplicates?: boolean } export type TariffUpsertWithWhereUniqueWithoutProviderInput = { where: TariffWhereUniqueInput update: XOR create: XOR } export type TariffUpdateWithWhereUniqueWithoutProviderInput = { where: TariffWhereUniqueInput data: XOR } export type TariffUpdateManyWithWhereWithoutProviderInput = { where: TariffScalarWhereInput data: XOR } export type TariffScalarWhereInput = { AND?: TariffScalarWhereInput | TariffScalarWhereInput[] OR?: TariffScalarWhereInput[] NOT?: TariffScalarWhereInput | TariffScalarWhereInput[] id?: IntFilter<"Tariff"> | number providerId?: IntFilter<"Tariff"> | number name?: StringFilter<"Tariff"> | string isActive?: BoolFilter<"Tariff"> | boolean createdAt?: DateTimeFilter<"Tariff"> | Date | string updatedAt?: DateTimeFilter<"Tariff"> | Date | string } export type ContractUpsertWithWhereUniqueWithoutProviderInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutProviderInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutProviderInput = { where: ContractScalarWhereInput data: XOR } export type ProviderCreateWithoutTariffsInput = { name: string portalUrl?: string | null usernameFieldName?: string | null passwordFieldName?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractCreateNestedManyWithoutProviderInput } export type ProviderUncheckedCreateWithoutTariffsInput = { id?: number name: string portalUrl?: string | null usernameFieldName?: string | null passwordFieldName?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string contracts?: ContractUncheckedCreateNestedManyWithoutProviderInput } export type ProviderCreateOrConnectWithoutTariffsInput = { where: ProviderWhereUniqueInput create: XOR } export type ContractCreateWithoutTariffInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutTariffInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutTariffInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyTariffInputEnvelope = { data: ContractCreateManyTariffInput | ContractCreateManyTariffInput[] skipDuplicates?: boolean } export type ProviderUpsertWithoutTariffsInput = { update: XOR create: XOR where?: ProviderWhereInput } export type ProviderUpdateToOneWithWhereWithoutTariffsInput = { where?: ProviderWhereInput data: XOR } export type ProviderUpdateWithoutTariffsInput = { name?: StringFieldUpdateOperationsInput | string portalUrl?: NullableStringFieldUpdateOperationsInput | string | null usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutProviderNestedInput } export type ProviderUncheckedUpdateWithoutTariffsInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string portalUrl?: NullableStringFieldUpdateOperationsInput | string | null usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutProviderNestedInput } export type ContractUpsertWithWhereUniqueWithoutTariffInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutTariffInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutTariffInput = { where: ContractScalarWhereInput data: XOR } export type ContractCreateWithoutContractCategoryInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutContractCategoryInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutContractCategoryInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateManyContractCategoryInputEnvelope = { data: ContractCreateManyContractCategoryInput | ContractCreateManyContractCategoryInput[] skipDuplicates?: boolean } export type ContractUpsertWithWhereUniqueWithoutContractCategoryInput = { where: ContractWhereUniqueInput update: XOR create: XOR } export type ContractUpdateWithWhereUniqueWithoutContractCategoryInput = { where: ContractWhereUniqueInput data: XOR } export type ContractUpdateManyWithWhereWithoutContractCategoryInput = { where: ContractScalarWhereInput data: XOR } export type CustomerCreateWithoutContractsInput = { customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserCreateNestedOneWithoutCustomerInput addresses?: AddressCreateNestedManyWithoutCustomerInput bankCards?: BankCardCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentCreateNestedManyWithoutCustomerInput meters?: MeterCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeCreateNestedManyWithoutCustomerInput } export type CustomerUncheckedCreateWithoutContractsInput = { id?: number customerNumber: string type?: $Enums.CustomerType salutation?: string | null firstName: string lastName: string companyName?: string | null foundingDate?: Date | string | null birthDate?: Date | string | null birthPlace?: string | null email?: string | null phone?: string | null mobile?: string | null taxNumber?: string | null businessRegistrationPath?: string | null commercialRegisterPath?: string | null commercialRegisterNumber?: string | null privacyPolicyPath?: string | null notes?: string | null portalEnabled?: boolean portalEmail?: string | null portalPasswordHash?: string | null portalPasswordEncrypted?: string | null portalLastLogin?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user?: UserUncheckedCreateNestedOneWithoutCustomerInput addresses?: AddressUncheckedCreateNestedManyWithoutCustomerInput bankCards?: BankCardUncheckedCreateNestedManyWithoutCustomerInput identityDocuments?: IdentityDocumentUncheckedCreateNestedManyWithoutCustomerInput meters?: MeterUncheckedCreateNestedManyWithoutCustomerInput stressfreiEmails?: StressfreiEmailUncheckedCreateNestedManyWithoutCustomerInput representingFor?: CustomerRepresentativeUncheckedCreateNestedManyWithoutRepresentativeInput representedBy?: CustomerRepresentativeUncheckedCreateNestedManyWithoutCustomerInput } export type CustomerCreateOrConnectWithoutContractsInput = { where: CustomerWhereUniqueInput create: XOR } export type ContractCategoryCreateWithoutContractsInput = { code: string name: string icon?: string | null color?: string | null sortOrder?: number isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ContractCategoryUncheckedCreateWithoutContractsInput = { id?: number code: string name: string icon?: string | null color?: string | null sortOrder?: number isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ContractCategoryCreateOrConnectWithoutContractsInput = { where: ContractCategoryWhereUniqueInput create: XOR } export type AddressCreateWithoutContractsAsDeliveryInput = { type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutAddressesInput contractsAsBilling?: ContractCreateNestedManyWithoutBillingAddressInput } export type AddressUncheckedCreateWithoutContractsAsDeliveryInput = { id?: number customerId: number type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string contractsAsBilling?: ContractUncheckedCreateNestedManyWithoutBillingAddressInput } export type AddressCreateOrConnectWithoutContractsAsDeliveryInput = { where: AddressWhereUniqueInput create: XOR } export type AddressCreateWithoutContractsAsBillingInput = { type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutAddressesInput contractsAsDelivery?: ContractCreateNestedManyWithoutAddressInput } export type AddressUncheckedCreateWithoutContractsAsBillingInput = { id?: number customerId: number type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string contractsAsDelivery?: ContractUncheckedCreateNestedManyWithoutAddressInput } export type AddressCreateOrConnectWithoutContractsAsBillingInput = { where: AddressWhereUniqueInput create: XOR } export type BankCardCreateWithoutContractsInput = { accountHolder: string iban: string bic?: string | null bankName?: string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutBankCardsInput } export type BankCardUncheckedCreateWithoutContractsInput = { id?: number customerId: number accountHolder: string iban: string bic?: string | null bankName?: string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type BankCardCreateOrConnectWithoutContractsInput = { where: BankCardWhereUniqueInput create: XOR } export type IdentityDocumentCreateWithoutContractsInput = { type?: $Enums.DocumentType documentNumber: string issuingAuthority?: string | null issueDate?: Date | string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean licenseClasses?: string | null licenseIssueDate?: Date | string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutIdentityDocumentsInput } export type IdentityDocumentUncheckedCreateWithoutContractsInput = { id?: number customerId: number type?: $Enums.DocumentType documentNumber: string issuingAuthority?: string | null issueDate?: Date | string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean licenseClasses?: string | null licenseIssueDate?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type IdentityDocumentCreateOrConnectWithoutContractsInput = { where: IdentityDocumentWhereUniqueInput create: XOR } export type SalesPlatformCreateWithoutContractsInput = { name: string contactInfo?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SalesPlatformUncheckedCreateWithoutContractsInput = { id?: number name: string contactInfo?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SalesPlatformCreateOrConnectWithoutContractsInput = { where: SalesPlatformWhereUniqueInput create: XOR } export type CancellationPeriodCreateWithoutContractsInput = { code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CancellationPeriodUncheckedCreateWithoutContractsInput = { id?: number code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CancellationPeriodCreateOrConnectWithoutContractsInput = { where: CancellationPeriodWhereUniqueInput create: XOR } export type ContractDurationCreateWithoutContractsInput = { code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ContractDurationUncheckedCreateWithoutContractsInput = { id?: number code: string description: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ContractDurationCreateOrConnectWithoutContractsInput = { where: ContractDurationWhereUniqueInput create: XOR } export type ContractCreateWithoutFollowUpContractInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutFollowUpContractInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutFollowUpContractInput = { where: ContractWhereUniqueInput create: XOR } export type ContractCreateWithoutPreviousContractInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutPreviousContractInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutPreviousContractInput = { where: ContractWhereUniqueInput create: XOR } export type ProviderCreateWithoutContractsInput = { name: string portalUrl?: string | null usernameFieldName?: string | null passwordFieldName?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string tariffs?: TariffCreateNestedManyWithoutProviderInput } export type ProviderUncheckedCreateWithoutContractsInput = { id?: number name: string portalUrl?: string | null usernameFieldName?: string | null passwordFieldName?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string tariffs?: TariffUncheckedCreateNestedManyWithoutProviderInput } export type ProviderCreateOrConnectWithoutContractsInput = { where: ProviderWhereUniqueInput create: XOR } export type TariffCreateWithoutContractsInput = { name: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string provider: ProviderCreateNestedOneWithoutTariffsInput } export type TariffUncheckedCreateWithoutContractsInput = { id?: number providerId: number name: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type TariffCreateOrConnectWithoutContractsInput = { where: TariffWhereUniqueInput create: XOR } export type StressfreiEmailCreateWithoutContractsInput = { email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutStressfreiEmailsInput cachedEmails?: CachedEmailCreateNestedManyWithoutStressfreiEmailInput } export type StressfreiEmailUncheckedCreateWithoutContractsInput = { id?: number customerId: number email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string cachedEmails?: CachedEmailUncheckedCreateNestedManyWithoutStressfreiEmailInput } export type StressfreiEmailCreateOrConnectWithoutContractsInput = { where: StressfreiEmailWhereUniqueInput create: XOR } export type EnergyContractDetailsCreateWithoutContractInput = { maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null meter?: MeterCreateNestedOneWithoutEnergyDetailsInput invoices?: InvoiceCreateNestedManyWithoutEnergyContractDetailsInput } export type EnergyContractDetailsUncheckedCreateWithoutContractInput = { id?: number meterId?: number | null maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null invoices?: InvoiceUncheckedCreateNestedManyWithoutEnergyContractDetailsInput } export type EnergyContractDetailsCreateOrConnectWithoutContractInput = { where: EnergyContractDetailsWhereUniqueInput create: XOR } export type InternetContractDetailsCreateWithoutContractInput = { downloadSpeed?: number | null uploadSpeed?: number | null routerModel?: string | null routerSerialNumber?: string | null installationDate?: Date | string | null internetUsername?: string | null internetPasswordEncrypted?: string | null homeId?: string | null activationCode?: string | null phoneNumbers?: PhoneNumberCreateNestedManyWithoutInternetDetailsInput } export type InternetContractDetailsUncheckedCreateWithoutContractInput = { id?: number downloadSpeed?: number | null uploadSpeed?: number | null routerModel?: string | null routerSerialNumber?: string | null installationDate?: Date | string | null internetUsername?: string | null internetPasswordEncrypted?: string | null homeId?: string | null activationCode?: string | null phoneNumbers?: PhoneNumberUncheckedCreateNestedManyWithoutInternetDetailsInput } export type InternetContractDetailsCreateOrConnectWithoutContractInput = { where: InternetContractDetailsWhereUniqueInput create: XOR } export type MobileContractDetailsCreateWithoutContractInput = { requiresMultisim?: boolean dataVolume?: number | null includedMinutes?: number | null includedSMS?: number | null deviceModel?: string | null deviceImei?: string | null phoneNumber?: string | null simCardNumber?: string | null simCards?: SimCardCreateNestedManyWithoutMobileDetailsInput } export type MobileContractDetailsUncheckedCreateWithoutContractInput = { id?: number requiresMultisim?: boolean dataVolume?: number | null includedMinutes?: number | null includedSMS?: number | null deviceModel?: string | null deviceImei?: string | null phoneNumber?: string | null simCardNumber?: string | null simCards?: SimCardUncheckedCreateNestedManyWithoutMobileDetailsInput } export type MobileContractDetailsCreateOrConnectWithoutContractInput = { where: MobileContractDetailsWhereUniqueInput create: XOR } export type TvContractDetailsCreateWithoutContractInput = { receiverModel?: string | null smartcardNumber?: string | null package?: string | null } export type TvContractDetailsUncheckedCreateWithoutContractInput = { id?: number receiverModel?: string | null smartcardNumber?: string | null package?: string | null } export type TvContractDetailsCreateOrConnectWithoutContractInput = { where: TvContractDetailsWhereUniqueInput create: XOR } export type CarInsuranceDetailsCreateWithoutContractInput = { licensePlate?: string | null hsn?: string | null tsn?: string | null vin?: string | null vehicleType?: string | null firstRegistration?: Date | string | null noClaimsClass?: string | null insuranceType?: $Enums.InsuranceType deductiblePartial?: number | null deductibleFull?: number | null policyNumber?: string | null previousInsurer?: string | null } export type CarInsuranceDetailsUncheckedCreateWithoutContractInput = { id?: number licensePlate?: string | null hsn?: string | null tsn?: string | null vin?: string | null vehicleType?: string | null firstRegistration?: Date | string | null noClaimsClass?: string | null insuranceType?: $Enums.InsuranceType deductiblePartial?: number | null deductibleFull?: number | null policyNumber?: string | null previousInsurer?: string | null } export type CarInsuranceDetailsCreateOrConnectWithoutContractInput = { where: CarInsuranceDetailsWhereUniqueInput create: XOR } export type ContractTaskCreateWithoutContractInput = { title: string description?: string | null status?: $Enums.ContractTaskStatus visibleInPortal?: boolean createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string subtasks?: ContractTaskSubtaskCreateNestedManyWithoutTaskInput } export type ContractTaskUncheckedCreateWithoutContractInput = { id?: number title: string description?: string | null status?: $Enums.ContractTaskStatus visibleInPortal?: boolean createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string subtasks?: ContractTaskSubtaskUncheckedCreateNestedManyWithoutTaskInput } export type ContractTaskCreateOrConnectWithoutContractInput = { where: ContractTaskWhereUniqueInput create: XOR } export type ContractTaskCreateManyContractInputEnvelope = { data: ContractTaskCreateManyContractInput | ContractTaskCreateManyContractInput[] skipDuplicates?: boolean } export type CachedEmailCreateWithoutContractInput = { folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string stressfreiEmail: StressfreiEmailCreateNestedOneWithoutCachedEmailsInput } export type CachedEmailUncheckedCreateWithoutContractInput = { id?: number stressfreiEmailId: number folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type CachedEmailCreateOrConnectWithoutContractInput = { where: CachedEmailWhereUniqueInput create: XOR } export type CachedEmailCreateManyContractInputEnvelope = { data: CachedEmailCreateManyContractInput | CachedEmailCreateManyContractInput[] skipDuplicates?: boolean } export type CustomerUpsertWithoutContractsInput = { update: XOR create: XOR where?: CustomerWhereInput } export type CustomerUpdateToOneWithWhereWithoutContractsInput = { where?: CustomerWhereInput data: XOR } export type CustomerUpdateWithoutContractsInput = { customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCustomerNestedInput addresses?: AddressUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUpdateManyWithoutCustomerNestedInput meters?: MeterUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUpdateManyWithoutCustomerNestedInput } export type CustomerUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number customerNumber?: StringFieldUpdateOperationsInput | string type?: EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType salutation?: NullableStringFieldUpdateOperationsInput | string | null firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string companyName?: NullableStringFieldUpdateOperationsInput | string | null foundingDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null birthPlace?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null phone?: NullableStringFieldUpdateOperationsInput | string | null mobile?: NullableStringFieldUpdateOperationsInput | string | null taxNumber?: NullableStringFieldUpdateOperationsInput | string | null businessRegistrationPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterPath?: NullableStringFieldUpdateOperationsInput | string | null commercialRegisterNumber?: NullableStringFieldUpdateOperationsInput | string | null privacyPolicyPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null portalEnabled?: BoolFieldUpdateOperationsInput | boolean portalEmail?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordHash?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null portalLastLogin?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUncheckedUpdateOneWithoutCustomerNestedInput addresses?: AddressUncheckedUpdateManyWithoutCustomerNestedInput bankCards?: BankCardUncheckedUpdateManyWithoutCustomerNestedInput identityDocuments?: IdentityDocumentUncheckedUpdateManyWithoutCustomerNestedInput meters?: MeterUncheckedUpdateManyWithoutCustomerNestedInput stressfreiEmails?: StressfreiEmailUncheckedUpdateManyWithoutCustomerNestedInput representingFor?: CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeNestedInput representedBy?: CustomerRepresentativeUncheckedUpdateManyWithoutCustomerNestedInput } export type ContractCategoryUpsertWithoutContractsInput = { update: XOR create: XOR where?: ContractCategoryWhereInput } export type ContractCategoryUpdateToOneWithWhereWithoutContractsInput = { where?: ContractCategoryWhereInput data: XOR } export type ContractCategoryUpdateWithoutContractsInput = { code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string icon?: NullableStringFieldUpdateOperationsInput | string | null color?: NullableStringFieldUpdateOperationsInput | string | null sortOrder?: IntFieldUpdateOperationsInput | number isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCategoryUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string icon?: NullableStringFieldUpdateOperationsInput | string | null color?: NullableStringFieldUpdateOperationsInput | string | null sortOrder?: IntFieldUpdateOperationsInput | number isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AddressUpsertWithoutContractsAsDeliveryInput = { update: XOR create: XOR where?: AddressWhereInput } export type AddressUpdateToOneWithWhereWithoutContractsAsDeliveryInput = { where?: AddressWhereInput data: XOR } export type AddressUpdateWithoutContractsAsDeliveryInput = { type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutAddressesNestedInput contractsAsBilling?: ContractUpdateManyWithoutBillingAddressNestedInput } export type AddressUncheckedUpdateWithoutContractsAsDeliveryInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contractsAsBilling?: ContractUncheckedUpdateManyWithoutBillingAddressNestedInput } export type AddressUpsertWithoutContractsAsBillingInput = { update: XOR create: XOR where?: AddressWhereInput } export type AddressUpdateToOneWithWhereWithoutContractsAsBillingInput = { where?: AddressWhereInput data: XOR } export type AddressUpdateWithoutContractsAsBillingInput = { type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutAddressesNestedInput contractsAsDelivery?: ContractUpdateManyWithoutAddressNestedInput } export type AddressUncheckedUpdateWithoutContractsAsBillingInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contractsAsDelivery?: ContractUncheckedUpdateManyWithoutAddressNestedInput } export type BankCardUpsertWithoutContractsInput = { update: XOR create: XOR where?: BankCardWhereInput } export type BankCardUpdateToOneWithWhereWithoutContractsInput = { where?: BankCardWhereInput data: XOR } export type BankCardUpdateWithoutContractsInput = { accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutBankCardsNestedInput } export type BankCardUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IdentityDocumentUpsertWithoutContractsInput = { update: XOR create: XOR where?: IdentityDocumentWhereInput } export type IdentityDocumentUpdateToOneWithWhereWithoutContractsInput = { where?: IdentityDocumentWhereInput data: XOR } export type IdentityDocumentUpdateWithoutContractsInput = { type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutIdentityDocumentsNestedInput } export type IdentityDocumentUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SalesPlatformUpsertWithoutContractsInput = { update: XOR create: XOR where?: SalesPlatformWhereInput } export type SalesPlatformUpdateToOneWithWhereWithoutContractsInput = { where?: SalesPlatformWhereInput data: XOR } export type SalesPlatformUpdateWithoutContractsInput = { name?: StringFieldUpdateOperationsInput | string contactInfo?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SalesPlatformUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string contactInfo?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CancellationPeriodUpsertWithoutContractsInput = { update: XOR create: XOR where?: CancellationPeriodWhereInput } export type CancellationPeriodUpdateToOneWithWhereWithoutContractsInput = { where?: CancellationPeriodWhereInput data: XOR } export type CancellationPeriodUpdateWithoutContractsInput = { code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CancellationPeriodUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractDurationUpsertWithoutContractsInput = { update: XOR create: XOR where?: ContractDurationWhereInput } export type ContractDurationUpdateToOneWithWhereWithoutContractsInput = { where?: ContractDurationWhereInput data: XOR } export type ContractDurationUpdateWithoutContractsInput = { code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractDurationUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number code?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractUpsertWithoutFollowUpContractInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutFollowUpContractInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutFollowUpContractInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutFollowUpContractInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUpsertWithoutPreviousContractInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutPreviousContractInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutPreviousContractInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutPreviousContractInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ProviderUpsertWithoutContractsInput = { update: XOR create: XOR where?: ProviderWhereInput } export type ProviderUpdateToOneWithWhereWithoutContractsInput = { where?: ProviderWhereInput data: XOR } export type ProviderUpdateWithoutContractsInput = { name?: StringFieldUpdateOperationsInput | string portalUrl?: NullableStringFieldUpdateOperationsInput | string | null usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string tariffs?: TariffUpdateManyWithoutProviderNestedInput } export type ProviderUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string portalUrl?: NullableStringFieldUpdateOperationsInput | string | null usernameFieldName?: NullableStringFieldUpdateOperationsInput | string | null passwordFieldName?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string tariffs?: TariffUncheckedUpdateManyWithoutProviderNestedInput } export type TariffUpsertWithoutContractsInput = { update: XOR create: XOR where?: TariffWhereInput } export type TariffUpdateToOneWithWhereWithoutContractsInput = { where?: TariffWhereInput data: XOR } export type TariffUpdateWithoutContractsInput = { name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string provider?: ProviderUpdateOneRequiredWithoutTariffsNestedInput } export type TariffUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number providerId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StressfreiEmailUpsertWithoutContractsInput = { update: XOR create: XOR where?: StressfreiEmailWhereInput } export type StressfreiEmailUpdateToOneWithWhereWithoutContractsInput = { where?: StressfreiEmailWhereInput data: XOR } export type StressfreiEmailUpdateWithoutContractsInput = { email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutStressfreiEmailsNestedInput cachedEmails?: CachedEmailUpdateManyWithoutStressfreiEmailNestedInput } export type StressfreiEmailUncheckedUpdateWithoutContractsInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string cachedEmails?: CachedEmailUncheckedUpdateManyWithoutStressfreiEmailNestedInput } export type EnergyContractDetailsUpsertWithoutContractInput = { update: XOR create: XOR where?: EnergyContractDetailsWhereInput } export type EnergyContractDetailsUpdateToOneWithWhereWithoutContractInput = { where?: EnergyContractDetailsWhereInput data: XOR } export type EnergyContractDetailsUpdateWithoutContractInput = { maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null meter?: MeterUpdateOneWithoutEnergyDetailsNestedInput invoices?: InvoiceUpdateManyWithoutEnergyContractDetailsNestedInput } export type EnergyContractDetailsUncheckedUpdateWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number meterId?: NullableIntFieldUpdateOperationsInput | number | null maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null invoices?: InvoiceUncheckedUpdateManyWithoutEnergyContractDetailsNestedInput } export type InternetContractDetailsUpsertWithoutContractInput = { update: XOR create: XOR where?: InternetContractDetailsWhereInput } export type InternetContractDetailsUpdateToOneWithWhereWithoutContractInput = { where?: InternetContractDetailsWhereInput data: XOR } export type InternetContractDetailsUpdateWithoutContractInput = { downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null routerModel?: NullableStringFieldUpdateOperationsInput | string | null routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null internetUsername?: NullableStringFieldUpdateOperationsInput | string | null internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null homeId?: NullableStringFieldUpdateOperationsInput | string | null activationCode?: NullableStringFieldUpdateOperationsInput | string | null phoneNumbers?: PhoneNumberUpdateManyWithoutInternetDetailsNestedInput } export type InternetContractDetailsUncheckedUpdateWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null routerModel?: NullableStringFieldUpdateOperationsInput | string | null routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null internetUsername?: NullableStringFieldUpdateOperationsInput | string | null internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null homeId?: NullableStringFieldUpdateOperationsInput | string | null activationCode?: NullableStringFieldUpdateOperationsInput | string | null phoneNumbers?: PhoneNumberUncheckedUpdateManyWithoutInternetDetailsNestedInput } export type MobileContractDetailsUpsertWithoutContractInput = { update: XOR create: XOR where?: MobileContractDetailsWhereInput } export type MobileContractDetailsUpdateToOneWithWhereWithoutContractInput = { where?: MobileContractDetailsWhereInput data: XOR } export type MobileContractDetailsUpdateWithoutContractInput = { requiresMultisim?: BoolFieldUpdateOperationsInput | boolean dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null includedSMS?: NullableIntFieldUpdateOperationsInput | number | null deviceModel?: NullableStringFieldUpdateOperationsInput | string | null deviceImei?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null simCards?: SimCardUpdateManyWithoutMobileDetailsNestedInput } export type MobileContractDetailsUncheckedUpdateWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number requiresMultisim?: BoolFieldUpdateOperationsInput | boolean dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null includedSMS?: NullableIntFieldUpdateOperationsInput | number | null deviceModel?: NullableStringFieldUpdateOperationsInput | string | null deviceImei?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null simCards?: SimCardUncheckedUpdateManyWithoutMobileDetailsNestedInput } export type TvContractDetailsUpsertWithoutContractInput = { update: XOR create: XOR where?: TvContractDetailsWhereInput } export type TvContractDetailsUpdateToOneWithWhereWithoutContractInput = { where?: TvContractDetailsWhereInput data: XOR } export type TvContractDetailsUpdateWithoutContractInput = { receiverModel?: NullableStringFieldUpdateOperationsInput | string | null smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null package?: NullableStringFieldUpdateOperationsInput | string | null } export type TvContractDetailsUncheckedUpdateWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number receiverModel?: NullableStringFieldUpdateOperationsInput | string | null smartcardNumber?: NullableStringFieldUpdateOperationsInput | string | null package?: NullableStringFieldUpdateOperationsInput | string | null } export type CarInsuranceDetailsUpsertWithoutContractInput = { update: XOR create: XOR where?: CarInsuranceDetailsWhereInput } export type CarInsuranceDetailsUpdateToOneWithWhereWithoutContractInput = { where?: CarInsuranceDetailsWhereInput data: XOR } export type CarInsuranceDetailsUpdateWithoutContractInput = { licensePlate?: NullableStringFieldUpdateOperationsInput | string | null hsn?: NullableStringFieldUpdateOperationsInput | string | null tsn?: NullableStringFieldUpdateOperationsInput | string | null vin?: NullableStringFieldUpdateOperationsInput | string | null vehicleType?: NullableStringFieldUpdateOperationsInput | string | null firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null policyNumber?: NullableStringFieldUpdateOperationsInput | string | null previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null } export type CarInsuranceDetailsUncheckedUpdateWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number licensePlate?: NullableStringFieldUpdateOperationsInput | string | null hsn?: NullableStringFieldUpdateOperationsInput | string | null tsn?: NullableStringFieldUpdateOperationsInput | string | null vin?: NullableStringFieldUpdateOperationsInput | string | null vehicleType?: NullableStringFieldUpdateOperationsInput | string | null firstRegistration?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null noClaimsClass?: NullableStringFieldUpdateOperationsInput | string | null insuranceType?: EnumInsuranceTypeFieldUpdateOperationsInput | $Enums.InsuranceType deductiblePartial?: NullableFloatFieldUpdateOperationsInput | number | null deductibleFull?: NullableFloatFieldUpdateOperationsInput | number | null policyNumber?: NullableStringFieldUpdateOperationsInput | string | null previousInsurer?: NullableStringFieldUpdateOperationsInput | string | null } export type ContractTaskUpsertWithWhereUniqueWithoutContractInput = { where: ContractTaskWhereUniqueInput update: XOR create: XOR } export type ContractTaskUpdateWithWhereUniqueWithoutContractInput = { where: ContractTaskWhereUniqueInput data: XOR } export type ContractTaskUpdateManyWithWhereWithoutContractInput = { where: ContractTaskScalarWhereInput data: XOR } export type ContractTaskScalarWhereInput = { AND?: ContractTaskScalarWhereInput | ContractTaskScalarWhereInput[] OR?: ContractTaskScalarWhereInput[] NOT?: ContractTaskScalarWhereInput | ContractTaskScalarWhereInput[] id?: IntFilter<"ContractTask"> | number contractId?: IntFilter<"ContractTask"> | number title?: StringFilter<"ContractTask"> | string description?: StringNullableFilter<"ContractTask"> | string | null status?: EnumContractTaskStatusFilter<"ContractTask"> | $Enums.ContractTaskStatus visibleInPortal?: BoolFilter<"ContractTask"> | boolean createdBy?: StringNullableFilter<"ContractTask"> | string | null completedAt?: DateTimeNullableFilter<"ContractTask"> | Date | string | null createdAt?: DateTimeFilter<"ContractTask"> | Date | string updatedAt?: DateTimeFilter<"ContractTask"> | Date | string } export type CachedEmailUpsertWithWhereUniqueWithoutContractInput = { where: CachedEmailWhereUniqueInput update: XOR create: XOR } export type CachedEmailUpdateWithWhereUniqueWithoutContractInput = { where: CachedEmailWhereUniqueInput data: XOR } export type CachedEmailUpdateManyWithWhereWithoutContractInput = { where: CachedEmailScalarWhereInput data: XOR } export type ContractCreateWithoutTasksInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutTasksInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutTasksInput = { where: ContractWhereUniqueInput create: XOR } export type ContractTaskSubtaskCreateWithoutTaskInput = { title: string status?: $Enums.ContractTaskStatus createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractTaskSubtaskUncheckedCreateWithoutTaskInput = { id?: number title: string status?: $Enums.ContractTaskStatus createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractTaskSubtaskCreateOrConnectWithoutTaskInput = { where: ContractTaskSubtaskWhereUniqueInput create: XOR } export type ContractTaskSubtaskCreateManyTaskInputEnvelope = { data: ContractTaskSubtaskCreateManyTaskInput | ContractTaskSubtaskCreateManyTaskInput[] skipDuplicates?: boolean } export type ContractUpsertWithoutTasksInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutTasksInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutTasksInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutTasksInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractTaskSubtaskUpsertWithWhereUniqueWithoutTaskInput = { where: ContractTaskSubtaskWhereUniqueInput update: XOR create: XOR } export type ContractTaskSubtaskUpdateWithWhereUniqueWithoutTaskInput = { where: ContractTaskSubtaskWhereUniqueInput data: XOR } export type ContractTaskSubtaskUpdateManyWithWhereWithoutTaskInput = { where: ContractTaskSubtaskScalarWhereInput data: XOR } export type ContractTaskSubtaskScalarWhereInput = { AND?: ContractTaskSubtaskScalarWhereInput | ContractTaskSubtaskScalarWhereInput[] OR?: ContractTaskSubtaskScalarWhereInput[] NOT?: ContractTaskSubtaskScalarWhereInput | ContractTaskSubtaskScalarWhereInput[] id?: IntFilter<"ContractTaskSubtask"> | number taskId?: IntFilter<"ContractTaskSubtask"> | number title?: StringFilter<"ContractTaskSubtask"> | string status?: EnumContractTaskStatusFilter<"ContractTaskSubtask"> | $Enums.ContractTaskStatus createdBy?: StringNullableFilter<"ContractTaskSubtask"> | string | null completedAt?: DateTimeNullableFilter<"ContractTaskSubtask"> | Date | string | null createdAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string updatedAt?: DateTimeFilter<"ContractTaskSubtask"> | Date | string } export type ContractTaskCreateWithoutSubtasksInput = { title: string description?: string | null status?: $Enums.ContractTaskStatus visibleInPortal?: boolean createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string contract: ContractCreateNestedOneWithoutTasksInput } export type ContractTaskUncheckedCreateWithoutSubtasksInput = { id?: number contractId: number title: string description?: string | null status?: $Enums.ContractTaskStatus visibleInPortal?: boolean createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractTaskCreateOrConnectWithoutSubtasksInput = { where: ContractTaskWhereUniqueInput create: XOR } export type ContractTaskUpsertWithoutSubtasksInput = { update: XOR create: XOR where?: ContractTaskWhereInput } export type ContractTaskUpdateToOneWithWhereWithoutSubtasksInput = { where?: ContractTaskWhereInput data: XOR } export type ContractTaskUpdateWithoutSubtasksInput = { title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contract?: ContractUpdateOneRequiredWithoutTasksNestedInput } export type ContractTaskUncheckedUpdateWithoutSubtasksInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateWithoutEnergyDetailsInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutEnergyDetailsInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutEnergyDetailsInput = { where: ContractWhereUniqueInput create: XOR } export type MeterCreateWithoutEnergyDetailsInput = { meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutMetersInput readings?: MeterReadingCreateNestedManyWithoutMeterInput } export type MeterUncheckedCreateWithoutEnergyDetailsInput = { id?: number customerId: number meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string readings?: MeterReadingUncheckedCreateNestedManyWithoutMeterInput } export type MeterCreateOrConnectWithoutEnergyDetailsInput = { where: MeterWhereUniqueInput create: XOR } export type InvoiceCreateWithoutEnergyContractDetailsInput = { invoiceDate: Date | string invoiceType: $Enums.InvoiceType documentPath?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type InvoiceUncheckedCreateWithoutEnergyContractDetailsInput = { id?: number invoiceDate: Date | string invoiceType: $Enums.InvoiceType documentPath?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type InvoiceCreateOrConnectWithoutEnergyContractDetailsInput = { where: InvoiceWhereUniqueInput create: XOR } export type InvoiceCreateManyEnergyContractDetailsInputEnvelope = { data: InvoiceCreateManyEnergyContractDetailsInput | InvoiceCreateManyEnergyContractDetailsInput[] skipDuplicates?: boolean } export type ContractUpsertWithoutEnergyDetailsInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutEnergyDetailsInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutEnergyDetailsInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutEnergyDetailsInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type MeterUpsertWithoutEnergyDetailsInput = { update: XOR create: XOR where?: MeterWhereInput } export type MeterUpdateToOneWithWhereWithoutEnergyDetailsInput = { where?: MeterWhereInput data: XOR } export type MeterUpdateWithoutEnergyDetailsInput = { meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutMetersNestedInput readings?: MeterReadingUpdateManyWithoutMeterNestedInput } export type MeterUncheckedUpdateWithoutEnergyDetailsInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readings?: MeterReadingUncheckedUpdateManyWithoutMeterNestedInput } export type InvoiceUpsertWithWhereUniqueWithoutEnergyContractDetailsInput = { where: InvoiceWhereUniqueInput update: XOR create: XOR } export type InvoiceUpdateWithWhereUniqueWithoutEnergyContractDetailsInput = { where: InvoiceWhereUniqueInput data: XOR } export type InvoiceUpdateManyWithWhereWithoutEnergyContractDetailsInput = { where: InvoiceScalarWhereInput data: XOR } export type InvoiceScalarWhereInput = { AND?: InvoiceScalarWhereInput | InvoiceScalarWhereInput[] OR?: InvoiceScalarWhereInput[] NOT?: InvoiceScalarWhereInput | InvoiceScalarWhereInput[] id?: IntFilter<"Invoice"> | number energyContractDetailsId?: IntFilter<"Invoice"> | number invoiceDate?: DateTimeFilter<"Invoice"> | Date | string invoiceType?: EnumInvoiceTypeFilter<"Invoice"> | $Enums.InvoiceType documentPath?: StringNullableFilter<"Invoice"> | string | null notes?: StringNullableFilter<"Invoice"> | string | null createdAt?: DateTimeFilter<"Invoice"> | Date | string updatedAt?: DateTimeFilter<"Invoice"> | Date | string } export type EnergyContractDetailsCreateWithoutInvoicesInput = { maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null contract: ContractCreateNestedOneWithoutEnergyDetailsInput meter?: MeterCreateNestedOneWithoutEnergyDetailsInput } export type EnergyContractDetailsUncheckedCreateWithoutInvoicesInput = { id?: number contractId: number meterId?: number | null maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null } export type EnergyContractDetailsCreateOrConnectWithoutInvoicesInput = { where: EnergyContractDetailsWhereUniqueInput create: XOR } export type EnergyContractDetailsUpsertWithoutInvoicesInput = { update: XOR create: XOR where?: EnergyContractDetailsWhereInput } export type EnergyContractDetailsUpdateToOneWithWhereWithoutInvoicesInput = { where?: EnergyContractDetailsWhereInput data: XOR } export type EnergyContractDetailsUpdateWithoutInvoicesInput = { maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutEnergyDetailsNestedInput meter?: MeterUpdateOneWithoutEnergyDetailsNestedInput } export type EnergyContractDetailsUncheckedUpdateWithoutInvoicesInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number meterId?: NullableIntFieldUpdateOperationsInput | number | null maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type ContractCreateWithoutInternetDetailsInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutInternetDetailsInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutInternetDetailsInput = { where: ContractWhereUniqueInput create: XOR } export type PhoneNumberCreateWithoutInternetDetailsInput = { phoneNumber: string isMain?: boolean sipUsername?: string | null sipPasswordEncrypted?: string | null sipServer?: string | null } export type PhoneNumberUncheckedCreateWithoutInternetDetailsInput = { id?: number phoneNumber: string isMain?: boolean sipUsername?: string | null sipPasswordEncrypted?: string | null sipServer?: string | null } export type PhoneNumberCreateOrConnectWithoutInternetDetailsInput = { where: PhoneNumberWhereUniqueInput create: XOR } export type PhoneNumberCreateManyInternetDetailsInputEnvelope = { data: PhoneNumberCreateManyInternetDetailsInput | PhoneNumberCreateManyInternetDetailsInput[] skipDuplicates?: boolean } export type ContractUpsertWithoutInternetDetailsInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutInternetDetailsInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutInternetDetailsInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutInternetDetailsInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type PhoneNumberUpsertWithWhereUniqueWithoutInternetDetailsInput = { where: PhoneNumberWhereUniqueInput update: XOR create: XOR } export type PhoneNumberUpdateWithWhereUniqueWithoutInternetDetailsInput = { where: PhoneNumberWhereUniqueInput data: XOR } export type PhoneNumberUpdateManyWithWhereWithoutInternetDetailsInput = { where: PhoneNumberScalarWhereInput data: XOR } export type PhoneNumberScalarWhereInput = { AND?: PhoneNumberScalarWhereInput | PhoneNumberScalarWhereInput[] OR?: PhoneNumberScalarWhereInput[] NOT?: PhoneNumberScalarWhereInput | PhoneNumberScalarWhereInput[] id?: IntFilter<"PhoneNumber"> | number internetContractDetailsId?: IntFilter<"PhoneNumber"> | number phoneNumber?: StringFilter<"PhoneNumber"> | string isMain?: BoolFilter<"PhoneNumber"> | boolean sipUsername?: StringNullableFilter<"PhoneNumber"> | string | null sipPasswordEncrypted?: StringNullableFilter<"PhoneNumber"> | string | null sipServer?: StringNullableFilter<"PhoneNumber"> | string | null } export type InternetContractDetailsCreateWithoutPhoneNumbersInput = { downloadSpeed?: number | null uploadSpeed?: number | null routerModel?: string | null routerSerialNumber?: string | null installationDate?: Date | string | null internetUsername?: string | null internetPasswordEncrypted?: string | null homeId?: string | null activationCode?: string | null contract: ContractCreateNestedOneWithoutInternetDetailsInput } export type InternetContractDetailsUncheckedCreateWithoutPhoneNumbersInput = { id?: number contractId: number downloadSpeed?: number | null uploadSpeed?: number | null routerModel?: string | null routerSerialNumber?: string | null installationDate?: Date | string | null internetUsername?: string | null internetPasswordEncrypted?: string | null homeId?: string | null activationCode?: string | null } export type InternetContractDetailsCreateOrConnectWithoutPhoneNumbersInput = { where: InternetContractDetailsWhereUniqueInput create: XOR } export type InternetContractDetailsUpsertWithoutPhoneNumbersInput = { update: XOR create: XOR where?: InternetContractDetailsWhereInput } export type InternetContractDetailsUpdateToOneWithWhereWithoutPhoneNumbersInput = { where?: InternetContractDetailsWhereInput data: XOR } export type InternetContractDetailsUpdateWithoutPhoneNumbersInput = { downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null routerModel?: NullableStringFieldUpdateOperationsInput | string | null routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null internetUsername?: NullableStringFieldUpdateOperationsInput | string | null internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null homeId?: NullableStringFieldUpdateOperationsInput | string | null activationCode?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutInternetDetailsNestedInput } export type InternetContractDetailsUncheckedUpdateWithoutPhoneNumbersInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number downloadSpeed?: NullableIntFieldUpdateOperationsInput | number | null uploadSpeed?: NullableIntFieldUpdateOperationsInput | number | null routerModel?: NullableStringFieldUpdateOperationsInput | string | null routerSerialNumber?: NullableStringFieldUpdateOperationsInput | string | null installationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null internetUsername?: NullableStringFieldUpdateOperationsInput | string | null internetPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null homeId?: NullableStringFieldUpdateOperationsInput | string | null activationCode?: NullableStringFieldUpdateOperationsInput | string | null } export type ContractCreateWithoutMobileDetailsInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutMobileDetailsInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutMobileDetailsInput = { where: ContractWhereUniqueInput create: XOR } export type SimCardCreateWithoutMobileDetailsInput = { phoneNumber?: string | null simCardNumber?: string | null pin?: string | null puk?: string | null isMultisim?: boolean isMain?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SimCardUncheckedCreateWithoutMobileDetailsInput = { id?: number phoneNumber?: string | null simCardNumber?: string | null pin?: string | null puk?: string | null isMultisim?: boolean isMain?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SimCardCreateOrConnectWithoutMobileDetailsInput = { where: SimCardWhereUniqueInput create: XOR } export type SimCardCreateManyMobileDetailsInputEnvelope = { data: SimCardCreateManyMobileDetailsInput | SimCardCreateManyMobileDetailsInput[] skipDuplicates?: boolean } export type ContractUpsertWithoutMobileDetailsInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutMobileDetailsInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutMobileDetailsInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutMobileDetailsInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type SimCardUpsertWithWhereUniqueWithoutMobileDetailsInput = { where: SimCardWhereUniqueInput update: XOR create: XOR } export type SimCardUpdateWithWhereUniqueWithoutMobileDetailsInput = { where: SimCardWhereUniqueInput data: XOR } export type SimCardUpdateManyWithWhereWithoutMobileDetailsInput = { where: SimCardScalarWhereInput data: XOR } export type SimCardScalarWhereInput = { AND?: SimCardScalarWhereInput | SimCardScalarWhereInput[] OR?: SimCardScalarWhereInput[] NOT?: SimCardScalarWhereInput | SimCardScalarWhereInput[] id?: IntFilter<"SimCard"> | number mobileDetailsId?: IntFilter<"SimCard"> | number phoneNumber?: StringNullableFilter<"SimCard"> | string | null simCardNumber?: StringNullableFilter<"SimCard"> | string | null pin?: StringNullableFilter<"SimCard"> | string | null puk?: StringNullableFilter<"SimCard"> | string | null isMultisim?: BoolFilter<"SimCard"> | boolean isMain?: BoolFilter<"SimCard"> | boolean createdAt?: DateTimeFilter<"SimCard"> | Date | string updatedAt?: DateTimeFilter<"SimCard"> | Date | string } export type MobileContractDetailsCreateWithoutSimCardsInput = { requiresMultisim?: boolean dataVolume?: number | null includedMinutes?: number | null includedSMS?: number | null deviceModel?: string | null deviceImei?: string | null phoneNumber?: string | null simCardNumber?: string | null contract: ContractCreateNestedOneWithoutMobileDetailsInput } export type MobileContractDetailsUncheckedCreateWithoutSimCardsInput = { id?: number contractId: number requiresMultisim?: boolean dataVolume?: number | null includedMinutes?: number | null includedSMS?: number | null deviceModel?: string | null deviceImei?: string | null phoneNumber?: string | null simCardNumber?: string | null } export type MobileContractDetailsCreateOrConnectWithoutSimCardsInput = { where: MobileContractDetailsWhereUniqueInput create: XOR } export type MobileContractDetailsUpsertWithoutSimCardsInput = { update: XOR create: XOR where?: MobileContractDetailsWhereInput } export type MobileContractDetailsUpdateToOneWithWhereWithoutSimCardsInput = { where?: MobileContractDetailsWhereInput data: XOR } export type MobileContractDetailsUpdateWithoutSimCardsInput = { requiresMultisim?: BoolFieldUpdateOperationsInput | boolean dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null includedSMS?: NullableIntFieldUpdateOperationsInput | number | null deviceModel?: NullableStringFieldUpdateOperationsInput | string | null deviceImei?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutMobileDetailsNestedInput } export type MobileContractDetailsUncheckedUpdateWithoutSimCardsInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number requiresMultisim?: BoolFieldUpdateOperationsInput | boolean dataVolume?: NullableFloatFieldUpdateOperationsInput | number | null includedMinutes?: NullableIntFieldUpdateOperationsInput | number | null includedSMS?: NullableIntFieldUpdateOperationsInput | number | null deviceModel?: NullableStringFieldUpdateOperationsInput | string | null deviceImei?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type ContractCreateWithoutTvDetailsInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutTvDetailsInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput carInsuranceDetails?: CarInsuranceDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutTvDetailsInput = { where: ContractWhereUniqueInput create: XOR } export type ContractUpsertWithoutTvDetailsInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutTvDetailsInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutTvDetailsInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutTvDetailsInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractCreateWithoutCarInsuranceDetailsInput = { contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string customer: CustomerCreateNestedOneWithoutContractsInput contractCategory?: ContractCategoryCreateNestedOneWithoutContractsInput address?: AddressCreateNestedOneWithoutContractsAsDeliveryInput billingAddress?: AddressCreateNestedOneWithoutContractsAsBillingInput bankCard?: BankCardCreateNestedOneWithoutContractsInput identityDocument?: IdentityDocumentCreateNestedOneWithoutContractsInput salesPlatform?: SalesPlatformCreateNestedOneWithoutContractsInput cancellationPeriod?: CancellationPeriodCreateNestedOneWithoutContractsInput contractDuration?: ContractDurationCreateNestedOneWithoutContractsInput previousContract?: ContractCreateNestedOneWithoutFollowUpContractInput followUpContract?: ContractCreateNestedOneWithoutPreviousContractInput provider?: ProviderCreateNestedOneWithoutContractsInput tariff?: TariffCreateNestedOneWithoutContractsInput stressfreiEmail?: StressfreiEmailCreateNestedOneWithoutContractsInput energyDetails?: EnergyContractDetailsCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsCreateNestedOneWithoutContractInput tasks?: ContractTaskCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailCreateNestedManyWithoutContractInput } export type ContractUncheckedCreateWithoutCarInsuranceDetailsInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string followUpContract?: ContractUncheckedCreateNestedOneWithoutPreviousContractInput energyDetails?: EnergyContractDetailsUncheckedCreateNestedOneWithoutContractInput internetDetails?: InternetContractDetailsUncheckedCreateNestedOneWithoutContractInput mobileDetails?: MobileContractDetailsUncheckedCreateNestedOneWithoutContractInput tvDetails?: TvContractDetailsUncheckedCreateNestedOneWithoutContractInput tasks?: ContractTaskUncheckedCreateNestedManyWithoutContractInput assignedEmails?: CachedEmailUncheckedCreateNestedManyWithoutContractInput } export type ContractCreateOrConnectWithoutCarInsuranceDetailsInput = { where: ContractWhereUniqueInput create: XOR } export type ContractUpsertWithoutCarInsuranceDetailsInput = { update: XOR create: XOR where?: ContractWhereInput } export type ContractUpdateToOneWithWhereWithoutCarInsuranceDetailsInput = { where?: ContractWhereInput data: XOR } export type ContractUpdateWithoutCarInsuranceDetailsInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutCarInsuranceDetailsInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type UserRoleCreateManyUserInput = { roleId: number } export type UserRoleUpdateWithoutUserInput = { role?: RoleUpdateOneRequiredWithoutUsersNestedInput } export type UserRoleUncheckedUpdateWithoutUserInput = { roleId?: IntFieldUpdateOperationsInput | number } export type UserRoleUncheckedUpdateManyWithoutUserInput = { roleId?: IntFieldUpdateOperationsInput | number } export type RolePermissionCreateManyRoleInput = { permissionId: number } export type UserRoleCreateManyRoleInput = { userId: number } export type RolePermissionUpdateWithoutRoleInput = { permission?: PermissionUpdateOneRequiredWithoutRolesNestedInput } export type RolePermissionUncheckedUpdateWithoutRoleInput = { permissionId?: IntFieldUpdateOperationsInput | number } export type RolePermissionUncheckedUpdateManyWithoutRoleInput = { permissionId?: IntFieldUpdateOperationsInput | number } export type UserRoleUpdateWithoutRoleInput = { user?: UserUpdateOneRequiredWithoutRolesNestedInput } export type UserRoleUncheckedUpdateWithoutRoleInput = { userId?: IntFieldUpdateOperationsInput | number } export type UserRoleUncheckedUpdateManyWithoutRoleInput = { userId?: IntFieldUpdateOperationsInput | number } export type RolePermissionCreateManyPermissionInput = { roleId: number } export type RolePermissionUpdateWithoutPermissionInput = { role?: RoleUpdateOneRequiredWithoutPermissionsNestedInput } export type RolePermissionUncheckedUpdateWithoutPermissionInput = { roleId?: IntFieldUpdateOperationsInput | number } export type RolePermissionUncheckedUpdateManyWithoutPermissionInput = { roleId?: IntFieldUpdateOperationsInput | number } export type AddressCreateManyCustomerInput = { id?: number type?: $Enums.AddressType street: string houseNumber: string postalCode: string city: string country?: string isDefault?: boolean createdAt?: Date | string updatedAt?: Date | string } export type BankCardCreateManyCustomerInput = { id?: number accountHolder: string iban: string bic?: string | null bankName?: string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type IdentityDocumentCreateManyCustomerInput = { id?: number type?: $Enums.DocumentType documentNumber: string issuingAuthority?: string | null issueDate?: Date | string | null expiryDate?: Date | string | null documentPath?: string | null isActive?: boolean licenseClasses?: string | null licenseIssueDate?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type MeterCreateManyCustomerInput = { id?: number meterNumber: string type: $Enums.MeterType location?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type StressfreiEmailCreateManyCustomerInput = { id?: number email: string platform?: string | null notes?: string | null isActive?: boolean isProvisioned?: boolean provisionedAt?: Date | string | null provisionError?: string | null hasMailbox?: boolean emailPasswordEncrypted?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractCreateManyCustomerInput = { id?: number contractNumber: string type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CustomerRepresentativeCreateManyRepresentativeInput = { id?: number customerId: number notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CustomerRepresentativeCreateManyCustomerInput = { id?: number representativeId: number notes?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type AddressUpdateWithoutCustomerInput = { type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contractsAsDelivery?: ContractUpdateManyWithoutAddressNestedInput contractsAsBilling?: ContractUpdateManyWithoutBillingAddressNestedInput } export type AddressUncheckedUpdateWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contractsAsDelivery?: ContractUncheckedUpdateManyWithoutAddressNestedInput contractsAsBilling?: ContractUncheckedUpdateManyWithoutBillingAddressNestedInput } export type AddressUncheckedUpdateManyWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumAddressTypeFieldUpdateOperationsInput | $Enums.AddressType street?: StringFieldUpdateOperationsInput | string houseNumber?: StringFieldUpdateOperationsInput | string postalCode?: StringFieldUpdateOperationsInput | string city?: StringFieldUpdateOperationsInput | string country?: StringFieldUpdateOperationsInput | string isDefault?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BankCardUpdateWithoutCustomerInput = { accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutBankCardNestedInput } export type BankCardUncheckedUpdateWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutBankCardNestedInput } export type BankCardUncheckedUpdateManyWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number accountHolder?: StringFieldUpdateOperationsInput | string iban?: StringFieldUpdateOperationsInput | string bic?: NullableStringFieldUpdateOperationsInput | string | null bankName?: NullableStringFieldUpdateOperationsInput | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type IdentityDocumentUpdateWithoutCustomerInput = { type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutIdentityDocumentNestedInput } export type IdentityDocumentUncheckedUpdateWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutIdentityDocumentNestedInput } export type IdentityDocumentUncheckedUpdateManyWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumDocumentTypeFieldUpdateOperationsInput | $Enums.DocumentType documentNumber?: StringFieldUpdateOperationsInput | string issuingAuthority?: NullableStringFieldUpdateOperationsInput | string | null issueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expiryDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null documentPath?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean licenseClasses?: NullableStringFieldUpdateOperationsInput | string | null licenseIssueDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterUpdateWithoutCustomerInput = { meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readings?: MeterReadingUpdateManyWithoutMeterNestedInput energyDetails?: EnergyContractDetailsUpdateManyWithoutMeterNestedInput } export type MeterUncheckedUpdateWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readings?: MeterReadingUncheckedUpdateManyWithoutMeterNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateManyWithoutMeterNestedInput } export type MeterUncheckedUpdateManyWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number meterNumber?: StringFieldUpdateOperationsInput | string type?: EnumMeterTypeFieldUpdateOperationsInput | $Enums.MeterType location?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StressfreiEmailUpdateWithoutCustomerInput = { email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutStressfreiEmailNestedInput cachedEmails?: CachedEmailUpdateManyWithoutStressfreiEmailNestedInput } export type StressfreiEmailUncheckedUpdateWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutStressfreiEmailNestedInput cachedEmails?: CachedEmailUncheckedUpdateManyWithoutStressfreiEmailNestedInput } export type StressfreiEmailUncheckedUpdateManyWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string platform?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean isProvisioned?: BoolFieldUpdateOperationsInput | boolean provisionedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null provisionError?: NullableStringFieldUpdateOperationsInput | string | null hasMailbox?: BoolFieldUpdateOperationsInput | boolean emailPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractUpdateWithoutCustomerInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CustomerRepresentativeUpdateWithoutRepresentativeInput = { notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutRepresentedByNestedInput } export type CustomerRepresentativeUncheckedUpdateWithoutRepresentativeInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CustomerRepresentativeUncheckedUpdateManyWithoutRepresentativeInput = { id?: IntFieldUpdateOperationsInput | number customerId?: IntFieldUpdateOperationsInput | number notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CustomerRepresentativeUpdateWithoutCustomerInput = { notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string representative?: CustomerUpdateOneRequiredWithoutRepresentingForNestedInput } export type CustomerRepresentativeUncheckedUpdateWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number representativeId?: IntFieldUpdateOperationsInput | number notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CustomerRepresentativeUncheckedUpdateManyWithoutCustomerInput = { id?: IntFieldUpdateOperationsInput | number representativeId?: IntFieldUpdateOperationsInput | number notes?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateManyAddressInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractCreateManyBillingAddressInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutAddressInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutAddressInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutAddressInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractUpdateWithoutBillingAddressInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutBillingAddressInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutBillingAddressInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateManyBankCardInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutBankCardInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutBankCardInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutBankCardInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateManyIdentityDocumentInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutIdentityDocumentInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutIdentityDocumentInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutIdentityDocumentInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateManyStressfreiEmailInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CachedEmailCreateManyStressfreiEmailInput = { id?: number folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null contractId?: number | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutStressfreiEmailInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutStressfreiEmailInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutStressfreiEmailInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CachedEmailUpdateWithoutStressfreiEmailInput = { folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contract?: ContractUpdateOneWithoutAssignedEmailsNestedInput } export type CachedEmailUncheckedUpdateWithoutStressfreiEmailInput = { id?: IntFieldUpdateOperationsInput | number folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null contractId?: NullableIntFieldUpdateOperationsInput | number | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CachedEmailUncheckedUpdateManyWithoutStressfreiEmailInput = { id?: IntFieldUpdateOperationsInput | number folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null contractId?: NullableIntFieldUpdateOperationsInput | number | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterReadingCreateManyMeterInput = { id?: number readingDate: Date | string value: number unit?: string notes?: string | null createdAt?: Date | string } export type EnergyContractDetailsCreateManyMeterInput = { id?: number contractId: number maloId?: string | null annualConsumption?: number | null annualConsumptionKwh?: number | null basePrice?: number | null unitPrice?: number | null bonus?: number | null previousProviderName?: string | null previousCustomerNumber?: string | null } export type MeterReadingUpdateWithoutMeterInput = { readingDate?: DateTimeFieldUpdateOperationsInput | Date | string value?: FloatFieldUpdateOperationsInput | number unit?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterReadingUncheckedUpdateWithoutMeterInput = { id?: IntFieldUpdateOperationsInput | number readingDate?: DateTimeFieldUpdateOperationsInput | Date | string value?: FloatFieldUpdateOperationsInput | number unit?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MeterReadingUncheckedUpdateManyWithoutMeterInput = { id?: IntFieldUpdateOperationsInput | number readingDate?: DateTimeFieldUpdateOperationsInput | Date | string value?: FloatFieldUpdateOperationsInput | number unit?: StringFieldUpdateOperationsInput | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EnergyContractDetailsUpdateWithoutMeterInput = { maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null contract?: ContractUpdateOneRequiredWithoutEnergyDetailsNestedInput invoices?: InvoiceUpdateManyWithoutEnergyContractDetailsNestedInput } export type EnergyContractDetailsUncheckedUpdateWithoutMeterInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null invoices?: InvoiceUncheckedUpdateManyWithoutEnergyContractDetailsNestedInput } export type EnergyContractDetailsUncheckedUpdateManyWithoutMeterInput = { id?: IntFieldUpdateOperationsInput | number contractId?: IntFieldUpdateOperationsInput | number maloId?: NullableStringFieldUpdateOperationsInput | string | null annualConsumption?: NullableFloatFieldUpdateOperationsInput | number | null annualConsumptionKwh?: NullableFloatFieldUpdateOperationsInput | number | null basePrice?: NullableFloatFieldUpdateOperationsInput | number | null unitPrice?: NullableFloatFieldUpdateOperationsInput | number | null bonus?: NullableFloatFieldUpdateOperationsInput | number | null previousProviderName?: NullableStringFieldUpdateOperationsInput | string | null previousCustomerNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type ContractCreateManySalesPlatformInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutSalesPlatformInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutSalesPlatformInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutSalesPlatformInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateManyCancellationPeriodInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutCancellationPeriodInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutCancellationPeriodInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutCancellationPeriodInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateManyContractDurationInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutContractDurationInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutContractDurationInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutContractDurationInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TariffCreateManyProviderInput = { id?: number name: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type ContractCreateManyProviderInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type TariffUpdateWithoutProviderInput = { name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUpdateManyWithoutTariffNestedInput } export type TariffUncheckedUpdateWithoutProviderInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string contracts?: ContractUncheckedUpdateManyWithoutTariffNestedInput } export type TariffUncheckedUpdateManyWithoutProviderInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractUpdateWithoutProviderInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutProviderInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutProviderInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateManyTariffInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus contractCategoryId?: number | null addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutTariffInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput contractCategory?: ContractCategoryUpdateOneWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutTariffInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutTariffInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus contractCategoryId?: NullableIntFieldUpdateOperationsInput | number | null addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractCreateManyContractCategoryInput = { id?: number contractNumber: string customerId: number type: $Enums.ContractType status?: $Enums.ContractStatus addressId?: number | null billingAddressId?: number | null bankCardId?: number | null identityDocumentId?: number | null salesPlatformId?: number | null cancellationPeriodId?: number | null contractDurationId?: number | null previousContractId?: number | null providerId?: number | null tariffId?: number | null providerName?: string | null tariffName?: string | null customerNumberAtProvider?: string | null priceFirst12Months?: string | null priceFrom13Months?: string | null priceAfter24Months?: string | null startDate?: Date | string | null endDate?: Date | string | null commission?: number | null cancellationLetterPath?: string | null cancellationConfirmationPath?: string | null cancellationLetterOptionsPath?: string | null cancellationConfirmationOptionsPath?: string | null cancellationConfirmationDate?: Date | string | null cancellationConfirmationOptionsDate?: Date | string | null wasSpecialCancellation?: boolean portalUsername?: string | null portalPasswordEncrypted?: string | null stressfreiEmailId?: number | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractUpdateWithoutContractCategoryInput = { contractNumber?: StringFieldUpdateOperationsInput | string type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string customer?: CustomerUpdateOneRequiredWithoutContractsNestedInput address?: AddressUpdateOneWithoutContractsAsDeliveryNestedInput billingAddress?: AddressUpdateOneWithoutContractsAsBillingNestedInput bankCard?: BankCardUpdateOneWithoutContractsNestedInput identityDocument?: IdentityDocumentUpdateOneWithoutContractsNestedInput salesPlatform?: SalesPlatformUpdateOneWithoutContractsNestedInput cancellationPeriod?: CancellationPeriodUpdateOneWithoutContractsNestedInput contractDuration?: ContractDurationUpdateOneWithoutContractsNestedInput previousContract?: ContractUpdateOneWithoutFollowUpContractNestedInput followUpContract?: ContractUpdateOneWithoutPreviousContractNestedInput provider?: ProviderUpdateOneWithoutContractsNestedInput tariff?: TariffUpdateOneWithoutContractsNestedInput stressfreiEmail?: StressfreiEmailUpdateOneWithoutContractsNestedInput energyDetails?: EnergyContractDetailsUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUpdateOneWithoutContractNestedInput tasks?: ContractTaskUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateWithoutContractCategoryInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string followUpContract?: ContractUncheckedUpdateOneWithoutPreviousContractNestedInput energyDetails?: EnergyContractDetailsUncheckedUpdateOneWithoutContractNestedInput internetDetails?: InternetContractDetailsUncheckedUpdateOneWithoutContractNestedInput mobileDetails?: MobileContractDetailsUncheckedUpdateOneWithoutContractNestedInput tvDetails?: TvContractDetailsUncheckedUpdateOneWithoutContractNestedInput carInsuranceDetails?: CarInsuranceDetailsUncheckedUpdateOneWithoutContractNestedInput tasks?: ContractTaskUncheckedUpdateManyWithoutContractNestedInput assignedEmails?: CachedEmailUncheckedUpdateManyWithoutContractNestedInput } export type ContractUncheckedUpdateManyWithoutContractCategoryInput = { id?: IntFieldUpdateOperationsInput | number contractNumber?: StringFieldUpdateOperationsInput | string customerId?: IntFieldUpdateOperationsInput | number type?: EnumContractTypeFieldUpdateOperationsInput | $Enums.ContractType status?: EnumContractStatusFieldUpdateOperationsInput | $Enums.ContractStatus addressId?: NullableIntFieldUpdateOperationsInput | number | null billingAddressId?: NullableIntFieldUpdateOperationsInput | number | null bankCardId?: NullableIntFieldUpdateOperationsInput | number | null identityDocumentId?: NullableIntFieldUpdateOperationsInput | number | null salesPlatformId?: NullableIntFieldUpdateOperationsInput | number | null cancellationPeriodId?: NullableIntFieldUpdateOperationsInput | number | null contractDurationId?: NullableIntFieldUpdateOperationsInput | number | null previousContractId?: NullableIntFieldUpdateOperationsInput | number | null providerId?: NullableIntFieldUpdateOperationsInput | number | null tariffId?: NullableIntFieldUpdateOperationsInput | number | null providerName?: NullableStringFieldUpdateOperationsInput | string | null tariffName?: NullableStringFieldUpdateOperationsInput | string | null customerNumberAtProvider?: NullableStringFieldUpdateOperationsInput | string | null priceFirst12Months?: NullableStringFieldUpdateOperationsInput | string | null priceFrom13Months?: NullableStringFieldUpdateOperationsInput | string | null priceAfter24Months?: NullableStringFieldUpdateOperationsInput | string | null startDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null commission?: NullableFloatFieldUpdateOperationsInput | number | null cancellationLetterPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationLetterOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationOptionsPath?: NullableStringFieldUpdateOperationsInput | string | null cancellationConfirmationDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null cancellationConfirmationOptionsDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null wasSpecialCancellation?: BoolFieldUpdateOperationsInput | boolean portalUsername?: NullableStringFieldUpdateOperationsInput | string | null portalPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null stressfreiEmailId?: NullableIntFieldUpdateOperationsInput | number | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskCreateManyContractInput = { id?: number title: string description?: string | null status?: $Enums.ContractTaskStatus visibleInPortal?: boolean createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type CachedEmailCreateManyContractInput = { id?: number stressfreiEmailId: number folder?: $Enums.EmailFolder messageId: string uid: number subject?: string | null fromAddress: string fromName?: string | null toAddresses: string ccAddresses?: string | null receivedAt: Date | string textBody?: string | null htmlBody?: string | null hasAttachments?: boolean attachmentNames?: string | null assignedAt?: Date | string | null assignedBy?: number | null isAutoAssigned?: boolean isRead?: boolean isStarred?: boolean isDeleted?: boolean deletedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractTaskUpdateWithoutContractInput = { title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string subtasks?: ContractTaskSubtaskUpdateManyWithoutTaskNestedInput } export type ContractTaskUncheckedUpdateWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string subtasks?: ContractTaskSubtaskUncheckedUpdateManyWithoutTaskNestedInput } export type ContractTaskUncheckedUpdateManyWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus visibleInPortal?: BoolFieldUpdateOperationsInput | boolean createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CachedEmailUpdateWithoutContractInput = { folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string stressfreiEmail?: StressfreiEmailUpdateOneRequiredWithoutCachedEmailsNestedInput } export type CachedEmailUncheckedUpdateWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number stressfreiEmailId?: IntFieldUpdateOperationsInput | number folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CachedEmailUncheckedUpdateManyWithoutContractInput = { id?: IntFieldUpdateOperationsInput | number stressfreiEmailId?: IntFieldUpdateOperationsInput | number folder?: EnumEmailFolderFieldUpdateOperationsInput | $Enums.EmailFolder messageId?: StringFieldUpdateOperationsInput | string uid?: IntFieldUpdateOperationsInput | number subject?: NullableStringFieldUpdateOperationsInput | string | null fromAddress?: StringFieldUpdateOperationsInput | string fromName?: NullableStringFieldUpdateOperationsInput | string | null toAddresses?: StringFieldUpdateOperationsInput | string ccAddresses?: NullableStringFieldUpdateOperationsInput | string | null receivedAt?: DateTimeFieldUpdateOperationsInput | Date | string textBody?: NullableStringFieldUpdateOperationsInput | string | null htmlBody?: NullableStringFieldUpdateOperationsInput | string | null hasAttachments?: BoolFieldUpdateOperationsInput | boolean attachmentNames?: NullableStringFieldUpdateOperationsInput | string | null assignedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null assignedBy?: NullableIntFieldUpdateOperationsInput | number | null isAutoAssigned?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean isStarred?: BoolFieldUpdateOperationsInput | boolean isDeleted?: BoolFieldUpdateOperationsInput | boolean deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskSubtaskCreateManyTaskInput = { id?: number title: string status?: $Enums.ContractTaskStatus createdBy?: string | null completedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type ContractTaskSubtaskUpdateWithoutTaskInput = { title?: StringFieldUpdateOperationsInput | string status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskSubtaskUncheckedUpdateWithoutTaskInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ContractTaskSubtaskUncheckedUpdateManyWithoutTaskInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string status?: EnumContractTaskStatusFieldUpdateOperationsInput | $Enums.ContractTaskStatus createdBy?: NullableStringFieldUpdateOperationsInput | string | null completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvoiceCreateManyEnergyContractDetailsInput = { id?: number invoiceDate: Date | string invoiceType: $Enums.InvoiceType documentPath?: string | null notes?: string | null createdAt?: Date | string updatedAt?: Date | string } export type InvoiceUpdateWithoutEnergyContractDetailsInput = { invoiceDate?: DateTimeFieldUpdateOperationsInput | Date | string invoiceType?: EnumInvoiceTypeFieldUpdateOperationsInput | $Enums.InvoiceType documentPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvoiceUncheckedUpdateWithoutEnergyContractDetailsInput = { id?: IntFieldUpdateOperationsInput | number invoiceDate?: DateTimeFieldUpdateOperationsInput | Date | string invoiceType?: EnumInvoiceTypeFieldUpdateOperationsInput | $Enums.InvoiceType documentPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InvoiceUncheckedUpdateManyWithoutEnergyContractDetailsInput = { id?: IntFieldUpdateOperationsInput | number invoiceDate?: DateTimeFieldUpdateOperationsInput | Date | string invoiceType?: EnumInvoiceTypeFieldUpdateOperationsInput | $Enums.InvoiceType documentPath?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PhoneNumberCreateManyInternetDetailsInput = { id?: number phoneNumber: string isMain?: boolean sipUsername?: string | null sipPasswordEncrypted?: string | null sipServer?: string | null } export type PhoneNumberUpdateWithoutInternetDetailsInput = { phoneNumber?: StringFieldUpdateOperationsInput | string isMain?: BoolFieldUpdateOperationsInput | boolean sipUsername?: NullableStringFieldUpdateOperationsInput | string | null sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null sipServer?: NullableStringFieldUpdateOperationsInput | string | null } export type PhoneNumberUncheckedUpdateWithoutInternetDetailsInput = { id?: IntFieldUpdateOperationsInput | number phoneNumber?: StringFieldUpdateOperationsInput | string isMain?: BoolFieldUpdateOperationsInput | boolean sipUsername?: NullableStringFieldUpdateOperationsInput | string | null sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null sipServer?: NullableStringFieldUpdateOperationsInput | string | null } export type PhoneNumberUncheckedUpdateManyWithoutInternetDetailsInput = { id?: IntFieldUpdateOperationsInput | number phoneNumber?: StringFieldUpdateOperationsInput | string isMain?: BoolFieldUpdateOperationsInput | boolean sipUsername?: NullableStringFieldUpdateOperationsInput | string | null sipPasswordEncrypted?: NullableStringFieldUpdateOperationsInput | string | null sipServer?: NullableStringFieldUpdateOperationsInput | string | null } export type SimCardCreateManyMobileDetailsInput = { id?: number phoneNumber?: string | null simCardNumber?: string | null pin?: string | null puk?: string | null isMultisim?: boolean isMain?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SimCardUpdateWithoutMobileDetailsInput = { phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null pin?: NullableStringFieldUpdateOperationsInput | string | null puk?: NullableStringFieldUpdateOperationsInput | string | null isMultisim?: BoolFieldUpdateOperationsInput | boolean isMain?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SimCardUncheckedUpdateWithoutMobileDetailsInput = { id?: IntFieldUpdateOperationsInput | number phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null pin?: NullableStringFieldUpdateOperationsInput | string | null puk?: NullableStringFieldUpdateOperationsInput | string | null isMultisim?: BoolFieldUpdateOperationsInput | boolean isMain?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SimCardUncheckedUpdateManyWithoutMobileDetailsInput = { id?: IntFieldUpdateOperationsInput | number phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null simCardNumber?: NullableStringFieldUpdateOperationsInput | string | null pin?: NullableStringFieldUpdateOperationsInput | string | null puk?: NullableStringFieldUpdateOperationsInput | string | null isMultisim?: BoolFieldUpdateOperationsInput | boolean isMain?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Aliases for legacy arg types */ /** * @deprecated Use UserCountOutputTypeDefaultArgs instead */ export type UserCountOutputTypeArgs = UserCountOutputTypeDefaultArgs /** * @deprecated Use RoleCountOutputTypeDefaultArgs instead */ export type RoleCountOutputTypeArgs = RoleCountOutputTypeDefaultArgs /** * @deprecated Use PermissionCountOutputTypeDefaultArgs instead */ export type PermissionCountOutputTypeArgs = PermissionCountOutputTypeDefaultArgs /** * @deprecated Use CustomerCountOutputTypeDefaultArgs instead */ export type CustomerCountOutputTypeArgs = CustomerCountOutputTypeDefaultArgs /** * @deprecated Use AddressCountOutputTypeDefaultArgs instead */ export type AddressCountOutputTypeArgs = AddressCountOutputTypeDefaultArgs /** * @deprecated Use BankCardCountOutputTypeDefaultArgs instead */ export type BankCardCountOutputTypeArgs = BankCardCountOutputTypeDefaultArgs /** * @deprecated Use IdentityDocumentCountOutputTypeDefaultArgs instead */ export type IdentityDocumentCountOutputTypeArgs = IdentityDocumentCountOutputTypeDefaultArgs /** * @deprecated Use StressfreiEmailCountOutputTypeDefaultArgs instead */ export type StressfreiEmailCountOutputTypeArgs = StressfreiEmailCountOutputTypeDefaultArgs /** * @deprecated Use MeterCountOutputTypeDefaultArgs instead */ export type MeterCountOutputTypeArgs = MeterCountOutputTypeDefaultArgs /** * @deprecated Use SalesPlatformCountOutputTypeDefaultArgs instead */ export type SalesPlatformCountOutputTypeArgs = SalesPlatformCountOutputTypeDefaultArgs /** * @deprecated Use CancellationPeriodCountOutputTypeDefaultArgs instead */ export type CancellationPeriodCountOutputTypeArgs = CancellationPeriodCountOutputTypeDefaultArgs /** * @deprecated Use ContractDurationCountOutputTypeDefaultArgs instead */ export type ContractDurationCountOutputTypeArgs = ContractDurationCountOutputTypeDefaultArgs /** * @deprecated Use ProviderCountOutputTypeDefaultArgs instead */ export type ProviderCountOutputTypeArgs = ProviderCountOutputTypeDefaultArgs /** * @deprecated Use TariffCountOutputTypeDefaultArgs instead */ export type TariffCountOutputTypeArgs = TariffCountOutputTypeDefaultArgs /** * @deprecated Use ContractCategoryCountOutputTypeDefaultArgs instead */ export type ContractCategoryCountOutputTypeArgs = ContractCategoryCountOutputTypeDefaultArgs /** * @deprecated Use ContractCountOutputTypeDefaultArgs instead */ export type ContractCountOutputTypeArgs = ContractCountOutputTypeDefaultArgs /** * @deprecated Use ContractTaskCountOutputTypeDefaultArgs instead */ export type ContractTaskCountOutputTypeArgs = ContractTaskCountOutputTypeDefaultArgs /** * @deprecated Use EnergyContractDetailsCountOutputTypeDefaultArgs instead */ export type EnergyContractDetailsCountOutputTypeArgs = EnergyContractDetailsCountOutputTypeDefaultArgs /** * @deprecated Use InternetContractDetailsCountOutputTypeDefaultArgs instead */ export type InternetContractDetailsCountOutputTypeArgs = InternetContractDetailsCountOutputTypeDefaultArgs /** * @deprecated Use MobileContractDetailsCountOutputTypeDefaultArgs instead */ export type MobileContractDetailsCountOutputTypeArgs = MobileContractDetailsCountOutputTypeDefaultArgs /** * @deprecated Use AppSettingDefaultArgs instead */ export type AppSettingArgs = AppSettingDefaultArgs /** * @deprecated Use UserDefaultArgs instead */ export type UserArgs = UserDefaultArgs /** * @deprecated Use RoleDefaultArgs instead */ export type RoleArgs = RoleDefaultArgs /** * @deprecated Use PermissionDefaultArgs instead */ export type PermissionArgs = PermissionDefaultArgs /** * @deprecated Use RolePermissionDefaultArgs instead */ export type RolePermissionArgs = RolePermissionDefaultArgs /** * @deprecated Use UserRoleDefaultArgs instead */ export type UserRoleArgs = UserRoleDefaultArgs /** * @deprecated Use CustomerDefaultArgs instead */ export type CustomerArgs = CustomerDefaultArgs /** * @deprecated Use CustomerRepresentativeDefaultArgs instead */ export type CustomerRepresentativeArgs = CustomerRepresentativeDefaultArgs /** * @deprecated Use AddressDefaultArgs instead */ export type AddressArgs = AddressDefaultArgs /** * @deprecated Use BankCardDefaultArgs instead */ export type BankCardArgs = BankCardDefaultArgs /** * @deprecated Use IdentityDocumentDefaultArgs instead */ export type IdentityDocumentArgs = IdentityDocumentDefaultArgs /** * @deprecated Use EmailProviderConfigDefaultArgs instead */ export type EmailProviderConfigArgs = EmailProviderConfigDefaultArgs /** * @deprecated Use StressfreiEmailDefaultArgs instead */ export type StressfreiEmailArgs = StressfreiEmailDefaultArgs /** * @deprecated Use CachedEmailDefaultArgs instead */ export type CachedEmailArgs = CachedEmailDefaultArgs /** * @deprecated Use MeterDefaultArgs instead */ export type MeterArgs = MeterDefaultArgs /** * @deprecated Use MeterReadingDefaultArgs instead */ export type MeterReadingArgs = MeterReadingDefaultArgs /** * @deprecated Use SalesPlatformDefaultArgs instead */ export type SalesPlatformArgs = SalesPlatformDefaultArgs /** * @deprecated Use CancellationPeriodDefaultArgs instead */ export type CancellationPeriodArgs = CancellationPeriodDefaultArgs /** * @deprecated Use ContractDurationDefaultArgs instead */ export type ContractDurationArgs = ContractDurationDefaultArgs /** * @deprecated Use ProviderDefaultArgs instead */ export type ProviderArgs = ProviderDefaultArgs /** * @deprecated Use TariffDefaultArgs instead */ export type TariffArgs = TariffDefaultArgs /** * @deprecated Use ContractCategoryDefaultArgs instead */ export type ContractCategoryArgs = ContractCategoryDefaultArgs /** * @deprecated Use ContractDefaultArgs instead */ export type ContractArgs = ContractDefaultArgs /** * @deprecated Use ContractTaskDefaultArgs instead */ export type ContractTaskArgs = ContractTaskDefaultArgs /** * @deprecated Use ContractTaskSubtaskDefaultArgs instead */ export type ContractTaskSubtaskArgs = ContractTaskSubtaskDefaultArgs /** * @deprecated Use EnergyContractDetailsDefaultArgs instead */ export type EnergyContractDetailsArgs = EnergyContractDetailsDefaultArgs /** * @deprecated Use InvoiceDefaultArgs instead */ export type InvoiceArgs = InvoiceDefaultArgs /** * @deprecated Use InternetContractDetailsDefaultArgs instead */ export type InternetContractDetailsArgs = InternetContractDetailsDefaultArgs /** * @deprecated Use PhoneNumberDefaultArgs instead */ export type PhoneNumberArgs = PhoneNumberDefaultArgs /** * @deprecated Use MobileContractDetailsDefaultArgs instead */ export type MobileContractDetailsArgs = MobileContractDetailsDefaultArgs /** * @deprecated Use SimCardDefaultArgs instead */ export type SimCardArgs = SimCardDefaultArgs /** * @deprecated Use TvContractDetailsDefaultArgs instead */ export type TvContractDetailsArgs = TvContractDetailsDefaultArgs /** * @deprecated Use CarInsuranceDetailsDefaultArgs instead */ export type CarInsuranceDetailsArgs = CarInsuranceDetailsDefaultArgs /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }