/** * Client **/ import * as runtime from './runtime/client.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 User * */ export type User = $Result.DefaultSelection /** * Model Patient * */ export type Patient = $Result.DefaultSelection /** * Model Appointment * */ export type Appointment = $Result.DefaultSelection /** * Model AppointmentFile * */ export type AppointmentFile = $Result.DefaultSelection /** * Model Staff * */ export type Staff = $Result.DefaultSelection /** * Model NpiProvider * */ export type NpiProvider = $Result.DefaultSelection /** * Model AppointmentProcedure * */ export type AppointmentProcedure = $Result.DefaultSelection /** * Model Claim * */ export type Claim = $Result.DefaultSelection /** * Model ServiceLine * */ export type ServiceLine = $Result.DefaultSelection /** * Model ClaimFile * */ export type ClaimFile = $Result.DefaultSelection /** * Model InsuranceCredential * */ export type InsuranceCredential = $Result.DefaultSelection /** * Model ShoppingVendor * */ export type ShoppingVendor = $Result.DefaultSelection /** * Model PdfGroup * */ export type PdfGroup = $Result.DefaultSelection /** * Model PdfFile * */ export type PdfFile = $Result.DefaultSelection /** * Model Payment * */ export type Payment = $Result.DefaultSelection /** * Model ServiceLineTransaction * */ export type ServiceLineTransaction = $Result.DefaultSelection /** * Model DatabaseBackup * */ export type DatabaseBackup = $Result.DefaultSelection /** * Model BackupDestination * */ export type BackupDestination = $Result.DefaultSelection /** * Model Notification * */ export type Notification = $Result.DefaultSelection /** * Model CronJobLog * */ export type CronJobLog = $Result.DefaultSelection /** * Model CloudFolder * */ export type CloudFolder = $Result.DefaultSelection /** * Model CloudFile * */ export type CloudFile = $Result.DefaultSelection /** * Model CloudFileChunk * */ export type CloudFileChunk = $Result.DefaultSelection /** * Model Communication * */ export type Communication = $Result.DefaultSelection /** * Model PatientDocument * */ export type PatientDocument = $Result.DefaultSelection /** * Model TwilioSettings * */ export type TwilioSettings = $Result.DefaultSelection /** * Model AiSettings * */ export type AiSettings = $Result.DefaultSelection /** * Model OfficeHours * */ export type OfficeHours = $Result.DefaultSelection /** * Model OfficeContact * */ export type OfficeContact = $Result.DefaultSelection /** * Model InsuranceContact * */ export type InsuranceContact = $Result.DefaultSelection /** * Model ProcedureTimeslot * */ export type ProcedureTimeslot = $Result.DefaultSelection /** * Model PatientConversation * */ export type PatientConversation = $Result.DefaultSelection /** * Model CommissionBatch * */ export type CommissionBatch = $Result.DefaultSelection /** * Model CommissionBatchItem * */ export type CommissionBatchItem = $Result.DefaultSelection /** * Enums */ export namespace $Enums { export const PatientStatus: { ACTIVE: 'ACTIVE', INACTIVE: 'INACTIVE', UNKNOWN: 'UNKNOWN', PLAN_NOT_ACCEPTED: 'PLAN_NOT_ACCEPTED' }; export type PatientStatus = (typeof PatientStatus)[keyof typeof PatientStatus] export const ProcedureSource: { COMBO: 'COMBO', MANUAL: 'MANUAL' }; export type ProcedureSource = (typeof ProcedureSource)[keyof typeof ProcedureSource] export const ClaimStatus: { PENDING: 'PENDING', APPROVED: 'APPROVED', CANCELLED: 'CANCELLED', REVIEW: 'REVIEW', VOID: 'VOID', PREAUTH: 'PREAUTH' }; export type ClaimStatus = (typeof ClaimStatus)[keyof typeof ClaimStatus] export const MissingTeethStatus: { No_missing: 'No_missing', endentulous: 'endentulous', Yes_missing: 'Yes_missing' }; export type MissingTeethStatus = (typeof MissingTeethStatus)[keyof typeof MissingTeethStatus] export const ServiceLineStatus: { PENDING: 'PENDING', PARTIALLY_PAID: 'PARTIALLY_PAID', PAID: 'PAID', UNPAID: 'UNPAID', ADJUSTED: 'ADJUSTED', OVERPAID: 'OVERPAID', DENIED: 'DENIED' }; export type ServiceLineStatus = (typeof ServiceLineStatus)[keyof typeof ServiceLineStatus] export const PdfTitleKey: { INSURANCE_CLAIM: 'INSURANCE_CLAIM', INSURANCE_CLAIM_PREAUTH: 'INSURANCE_CLAIM_PREAUTH', ELIGIBILITY_STATUS: 'ELIGIBILITY_STATUS', CLAIM_STATUS: 'CLAIM_STATUS', OTHER: 'OTHER' }; export type PdfTitleKey = (typeof PdfTitleKey)[keyof typeof PdfTitleKey] export const PaymentStatus: { PENDING: 'PENDING', PARTIALLY_PAID: 'PARTIALLY_PAID', PAID: 'PAID', OVERPAID: 'OVERPAID', DENIED: 'DENIED', VOID: 'VOID' }; export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus] export const PaymentMethod: { EFT: 'EFT', CHECK: 'CHECK', CASH: 'CASH', CARD: 'CARD', OTHER: 'OTHER' }; export type PaymentMethod = (typeof PaymentMethod)[keyof typeof PaymentMethod] export const NotificationTypes: { BACKUP: 'BACKUP', CLAIM: 'CLAIM', PAYMENT: 'PAYMENT', ETC: 'ETC' }; export type NotificationTypes = (typeof NotificationTypes)[keyof typeof NotificationTypes] export const CommunicationChannel: { sms: 'sms', voice: 'voice' }; export type CommunicationChannel = (typeof CommunicationChannel)[keyof typeof CommunicationChannel] export const CommunicationDirection: { outbound: 'outbound', inbound: 'inbound' }; export type CommunicationDirection = (typeof CommunicationDirection)[keyof typeof CommunicationDirection] export const CommunicationStatus: { queued: 'queued', sent: 'sent', delivered: 'delivered', failed: 'failed', completed: 'completed', busy: 'busy', no_answer: 'no_answer' }; export type CommunicationStatus = (typeof CommunicationStatus)[keyof typeof CommunicationStatus] } export type PatientStatus = $Enums.PatientStatus export const PatientStatus: typeof $Enums.PatientStatus export type ProcedureSource = $Enums.ProcedureSource export const ProcedureSource: typeof $Enums.ProcedureSource export type ClaimStatus = $Enums.ClaimStatus export const ClaimStatus: typeof $Enums.ClaimStatus export type MissingTeethStatus = $Enums.MissingTeethStatus export const MissingTeethStatus: typeof $Enums.MissingTeethStatus export type ServiceLineStatus = $Enums.ServiceLineStatus export const ServiceLineStatus: typeof $Enums.ServiceLineStatus export type PdfTitleKey = $Enums.PdfTitleKey export const PdfTitleKey: typeof $Enums.PdfTitleKey export type PaymentStatus = $Enums.PaymentStatus export const PaymentStatus: typeof $Enums.PaymentStatus export type PaymentMethod = $Enums.PaymentMethod export const PaymentMethod: typeof $Enums.PaymentMethod export type NotificationTypes = $Enums.NotificationTypes export const NotificationTypes: typeof $Enums.NotificationTypes export type CommunicationChannel = $Enums.CommunicationChannel export const CommunicationChannel: typeof $Enums.CommunicationChannel export type CommunicationDirection = $Enums.CommunicationDirection export const CommunicationDirection: typeof $Enums.CommunicationDirection export type CommunicationStatus = $Enums.CommunicationStatus export const CommunicationStatus: typeof $Enums.CommunicationStatus /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://pris.ly/d/client). */ export class PrismaClient< ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, const 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 Users * const users = await prisma.user.findMany() * ``` * * * Read more in our [docs](https://pris.ly/d/client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * 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://pris.ly/d/raw-queries). */ $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://pris.ly/d/raw-queries). */ $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://pris.ly/d/raw-queries). */ $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://pris.ly/d/raw-queries). */ $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/orm/prisma-client/queries/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, $Utils.Call, { extArgs: ExtArgs }>> /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.patient`: Exposes CRUD operations for the **Patient** model. * Example usage: * ```ts * // Fetch zero or more Patients * const patients = await prisma.patient.findMany() * ``` */ get patient(): Prisma.PatientDelegate; /** * `prisma.appointment`: Exposes CRUD operations for the **Appointment** model. * Example usage: * ```ts * // Fetch zero or more Appointments * const appointments = await prisma.appointment.findMany() * ``` */ get appointment(): Prisma.AppointmentDelegate; /** * `prisma.appointmentFile`: Exposes CRUD operations for the **AppointmentFile** model. * Example usage: * ```ts * // Fetch zero or more AppointmentFiles * const appointmentFiles = await prisma.appointmentFile.findMany() * ``` */ get appointmentFile(): Prisma.AppointmentFileDelegate; /** * `prisma.staff`: Exposes CRUD operations for the **Staff** model. * Example usage: * ```ts * // Fetch zero or more Staff * const staff = await prisma.staff.findMany() * ``` */ get staff(): Prisma.StaffDelegate; /** * `prisma.npiProvider`: Exposes CRUD operations for the **NpiProvider** model. * Example usage: * ```ts * // Fetch zero or more NpiProviders * const npiProviders = await prisma.npiProvider.findMany() * ``` */ get npiProvider(): Prisma.NpiProviderDelegate; /** * `prisma.appointmentProcedure`: Exposes CRUD operations for the **AppointmentProcedure** model. * Example usage: * ```ts * // Fetch zero or more AppointmentProcedures * const appointmentProcedures = await prisma.appointmentProcedure.findMany() * ``` */ get appointmentProcedure(): Prisma.AppointmentProcedureDelegate; /** * `prisma.claim`: Exposes CRUD operations for the **Claim** model. * Example usage: * ```ts * // Fetch zero or more Claims * const claims = await prisma.claim.findMany() * ``` */ get claim(): Prisma.ClaimDelegate; /** * `prisma.serviceLine`: Exposes CRUD operations for the **ServiceLine** model. * Example usage: * ```ts * // Fetch zero or more ServiceLines * const serviceLines = await prisma.serviceLine.findMany() * ``` */ get serviceLine(): Prisma.ServiceLineDelegate; /** * `prisma.claimFile`: Exposes CRUD operations for the **ClaimFile** model. * Example usage: * ```ts * // Fetch zero or more ClaimFiles * const claimFiles = await prisma.claimFile.findMany() * ``` */ get claimFile(): Prisma.ClaimFileDelegate; /** * `prisma.insuranceCredential`: Exposes CRUD operations for the **InsuranceCredential** model. * Example usage: * ```ts * // Fetch zero or more InsuranceCredentials * const insuranceCredentials = await prisma.insuranceCredential.findMany() * ``` */ get insuranceCredential(): Prisma.InsuranceCredentialDelegate; /** * `prisma.shoppingVendor`: Exposes CRUD operations for the **ShoppingVendor** model. * Example usage: * ```ts * // Fetch zero or more ShoppingVendors * const shoppingVendors = await prisma.shoppingVendor.findMany() * ``` */ get shoppingVendor(): Prisma.ShoppingVendorDelegate; /** * `prisma.pdfGroup`: Exposes CRUD operations for the **PdfGroup** model. * Example usage: * ```ts * // Fetch zero or more PdfGroups * const pdfGroups = await prisma.pdfGroup.findMany() * ``` */ get pdfGroup(): Prisma.PdfGroupDelegate; /** * `prisma.pdfFile`: Exposes CRUD operations for the **PdfFile** model. * Example usage: * ```ts * // Fetch zero or more PdfFiles * const pdfFiles = await prisma.pdfFile.findMany() * ``` */ get pdfFile(): Prisma.PdfFileDelegate; /** * `prisma.payment`: Exposes CRUD operations for the **Payment** model. * Example usage: * ```ts * // Fetch zero or more Payments * const payments = await prisma.payment.findMany() * ``` */ get payment(): Prisma.PaymentDelegate; /** * `prisma.serviceLineTransaction`: Exposes CRUD operations for the **ServiceLineTransaction** model. * Example usage: * ```ts * // Fetch zero or more ServiceLineTransactions * const serviceLineTransactions = await prisma.serviceLineTransaction.findMany() * ``` */ get serviceLineTransaction(): Prisma.ServiceLineTransactionDelegate; /** * `prisma.databaseBackup`: Exposes CRUD operations for the **DatabaseBackup** model. * Example usage: * ```ts * // Fetch zero or more DatabaseBackups * const databaseBackups = await prisma.databaseBackup.findMany() * ``` */ get databaseBackup(): Prisma.DatabaseBackupDelegate; /** * `prisma.backupDestination`: Exposes CRUD operations for the **BackupDestination** model. * Example usage: * ```ts * // Fetch zero or more BackupDestinations * const backupDestinations = await prisma.backupDestination.findMany() * ``` */ get backupDestination(): Prisma.BackupDestinationDelegate; /** * `prisma.notification`: Exposes CRUD operations for the **Notification** model. * Example usage: * ```ts * // Fetch zero or more Notifications * const notifications = await prisma.notification.findMany() * ``` */ get notification(): Prisma.NotificationDelegate; /** * `prisma.cronJobLog`: Exposes CRUD operations for the **CronJobLog** model. * Example usage: * ```ts * // Fetch zero or more CronJobLogs * const cronJobLogs = await prisma.cronJobLog.findMany() * ``` */ get cronJobLog(): Prisma.CronJobLogDelegate; /** * `prisma.cloudFolder`: Exposes CRUD operations for the **CloudFolder** model. * Example usage: * ```ts * // Fetch zero or more CloudFolders * const cloudFolders = await prisma.cloudFolder.findMany() * ``` */ get cloudFolder(): Prisma.CloudFolderDelegate; /** * `prisma.cloudFile`: Exposes CRUD operations for the **CloudFile** model. * Example usage: * ```ts * // Fetch zero or more CloudFiles * const cloudFiles = await prisma.cloudFile.findMany() * ``` */ get cloudFile(): Prisma.CloudFileDelegate; /** * `prisma.cloudFileChunk`: Exposes CRUD operations for the **CloudFileChunk** model. * Example usage: * ```ts * // Fetch zero or more CloudFileChunks * const cloudFileChunks = await prisma.cloudFileChunk.findMany() * ``` */ get cloudFileChunk(): Prisma.CloudFileChunkDelegate; /** * `prisma.communication`: Exposes CRUD operations for the **Communication** model. * Example usage: * ```ts * // Fetch zero or more Communications * const communications = await prisma.communication.findMany() * ``` */ get communication(): Prisma.CommunicationDelegate; /** * `prisma.patientDocument`: Exposes CRUD operations for the **PatientDocument** model. * Example usage: * ```ts * // Fetch zero or more PatientDocuments * const patientDocuments = await prisma.patientDocument.findMany() * ``` */ get patientDocument(): Prisma.PatientDocumentDelegate; /** * `prisma.twilioSettings`: Exposes CRUD operations for the **TwilioSettings** model. * Example usage: * ```ts * // Fetch zero or more TwilioSettings * const twilioSettings = await prisma.twilioSettings.findMany() * ``` */ get twilioSettings(): Prisma.TwilioSettingsDelegate; /** * `prisma.aiSettings`: Exposes CRUD operations for the **AiSettings** model. * Example usage: * ```ts * // Fetch zero or more AiSettings * const aiSettings = await prisma.aiSettings.findMany() * ``` */ get aiSettings(): Prisma.AiSettingsDelegate; /** * `prisma.officeHours`: Exposes CRUD operations for the **OfficeHours** model. * Example usage: * ```ts * // Fetch zero or more OfficeHours * const officeHours = await prisma.officeHours.findMany() * ``` */ get officeHours(): Prisma.OfficeHoursDelegate; /** * `prisma.officeContact`: Exposes CRUD operations for the **OfficeContact** model. * Example usage: * ```ts * // Fetch zero or more OfficeContacts * const officeContacts = await prisma.officeContact.findMany() * ``` */ get officeContact(): Prisma.OfficeContactDelegate; /** * `prisma.insuranceContact`: Exposes CRUD operations for the **InsuranceContact** model. * Example usage: * ```ts * // Fetch zero or more InsuranceContacts * const insuranceContacts = await prisma.insuranceContact.findMany() * ``` */ get insuranceContact(): Prisma.InsuranceContactDelegate; /** * `prisma.procedureTimeslot`: Exposes CRUD operations for the **ProcedureTimeslot** model. * Example usage: * ```ts * // Fetch zero or more ProcedureTimeslots * const procedureTimeslots = await prisma.procedureTimeslot.findMany() * ``` */ get procedureTimeslot(): Prisma.ProcedureTimeslotDelegate; /** * `prisma.patientConversation`: Exposes CRUD operations for the **PatientConversation** model. * Example usage: * ```ts * // Fetch zero or more PatientConversations * const patientConversations = await prisma.patientConversation.findMany() * ``` */ get patientConversation(): Prisma.PatientConversationDelegate; /** * `prisma.commissionBatch`: Exposes CRUD operations for the **CommissionBatch** model. * Example usage: * ```ts * // Fetch zero or more CommissionBatches * const commissionBatches = await prisma.commissionBatch.findMany() * ``` */ get commissionBatch(): Prisma.CommissionBatchDelegate; /** * `prisma.commissionBatchItem`: Exposes CRUD operations for the **CommissionBatchItem** model. * Example usage: * ```ts * // Fetch zero or more CommissionBatchItems * const commissionBatchItems = await prisma.commissionBatchItem.findMany() * ``` */ get commissionBatchItem(): Prisma.CommissionBatchItemDelegate; } 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 /** * 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 /** * 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: 7.4.1 * Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3 */ export type PrismaVersion = { client: string engine: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import Bytes = runtime.Bytes 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 ? P : 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: { User: 'User', Patient: 'Patient', Appointment: 'Appointment', AppointmentFile: 'AppointmentFile', Staff: 'Staff', NpiProvider: 'NpiProvider', AppointmentProcedure: 'AppointmentProcedure', Claim: 'Claim', ServiceLine: 'ServiceLine', ClaimFile: 'ClaimFile', InsuranceCredential: 'InsuranceCredential', ShoppingVendor: 'ShoppingVendor', PdfGroup: 'PdfGroup', PdfFile: 'PdfFile', Payment: 'Payment', ServiceLineTransaction: 'ServiceLineTransaction', DatabaseBackup: 'DatabaseBackup', BackupDestination: 'BackupDestination', Notification: 'Notification', CronJobLog: 'CronJobLog', CloudFolder: 'CloudFolder', CloudFile: 'CloudFile', CloudFileChunk: 'CloudFileChunk', Communication: 'Communication', PatientDocument: 'PatientDocument', TwilioSettings: 'TwilioSettings', AiSettings: 'AiSettings', OfficeHours: 'OfficeHours', OfficeContact: 'OfficeContact', InsuranceContact: 'InsuranceContact', ProcedureTimeslot: 'ProcedureTimeslot', PatientConversation: 'PatientConversation', CommissionBatch: 'CommissionBatch', CommissionBatchItem: 'CommissionBatchItem' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "user" | "patient" | "appointment" | "appointmentFile" | "staff" | "npiProvider" | "appointmentProcedure" | "claim" | "serviceLine" | "claimFile" | "insuranceCredential" | "shoppingVendor" | "pdfGroup" | "pdfFile" | "payment" | "serviceLineTransaction" | "databaseBackup" | "backupDestination" | "notification" | "cronJobLog" | "cloudFolder" | "cloudFile" | "cloudFileChunk" | "communication" | "patientDocument" | "twilioSettings" | "aiSettings" | "officeHours" | "officeContact" | "insuranceContact" | "procedureTimeslot" | "patientConversation" | "commissionBatch" | "commissionBatchItem" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } 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 } } } Patient: { payload: Prisma.$PatientPayload fields: Prisma.PatientFieldRefs operations: { findUnique: { args: Prisma.PatientFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PatientFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PatientFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PatientFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PatientFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PatientCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PatientCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PatientCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PatientDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PatientUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PatientDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PatientUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PatientUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PatientUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PatientAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PatientGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PatientCountArgs result: $Utils.Optional | number } } } Appointment: { payload: Prisma.$AppointmentPayload fields: Prisma.AppointmentFieldRefs operations: { findUnique: { args: Prisma.AppointmentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AppointmentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AppointmentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AppointmentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AppointmentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AppointmentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AppointmentCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AppointmentCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AppointmentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AppointmentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AppointmentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AppointmentUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AppointmentUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AppointmentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AppointmentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AppointmentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AppointmentCountArgs result: $Utils.Optional | number } } } AppointmentFile: { payload: Prisma.$AppointmentFilePayload fields: Prisma.AppointmentFileFieldRefs operations: { findUnique: { args: Prisma.AppointmentFileFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AppointmentFileFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AppointmentFileFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AppointmentFileFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AppointmentFileFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AppointmentFileCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AppointmentFileCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AppointmentFileCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AppointmentFileDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AppointmentFileUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AppointmentFileDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AppointmentFileUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AppointmentFileUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AppointmentFileUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AppointmentFileAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AppointmentFileGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AppointmentFileCountArgs result: $Utils.Optional | number } } } Staff: { payload: Prisma.$StaffPayload fields: Prisma.StaffFieldRefs operations: { findUnique: { args: Prisma.StaffFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StaffFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StaffFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StaffFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StaffFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StaffCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StaffCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.StaffCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.StaffDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StaffUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StaffDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StaffUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.StaffUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.StaffUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StaffAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StaffGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StaffCountArgs result: $Utils.Optional | number } } } NpiProvider: { payload: Prisma.$NpiProviderPayload fields: Prisma.NpiProviderFieldRefs operations: { findUnique: { args: Prisma.NpiProviderFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.NpiProviderFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.NpiProviderFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.NpiProviderFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.NpiProviderFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.NpiProviderCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.NpiProviderCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.NpiProviderCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.NpiProviderDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.NpiProviderUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.NpiProviderDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.NpiProviderUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.NpiProviderUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.NpiProviderUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.NpiProviderAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.NpiProviderGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.NpiProviderCountArgs result: $Utils.Optional | number } } } AppointmentProcedure: { payload: Prisma.$AppointmentProcedurePayload fields: Prisma.AppointmentProcedureFieldRefs operations: { findUnique: { args: Prisma.AppointmentProcedureFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AppointmentProcedureFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AppointmentProcedureFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AppointmentProcedureFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AppointmentProcedureFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AppointmentProcedureCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AppointmentProcedureCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AppointmentProcedureCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AppointmentProcedureDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AppointmentProcedureUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AppointmentProcedureDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AppointmentProcedureUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AppointmentProcedureUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AppointmentProcedureUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AppointmentProcedureAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AppointmentProcedureGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AppointmentProcedureCountArgs result: $Utils.Optional | number } } } Claim: { payload: Prisma.$ClaimPayload fields: Prisma.ClaimFieldRefs operations: { findUnique: { args: Prisma.ClaimFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ClaimFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ClaimFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ClaimFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ClaimFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ClaimCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ClaimCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ClaimCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ClaimDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ClaimUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ClaimDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ClaimUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ClaimUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ClaimUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ClaimAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ClaimGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ClaimCountArgs result: $Utils.Optional | number } } } ServiceLine: { payload: Prisma.$ServiceLinePayload fields: Prisma.ServiceLineFieldRefs operations: { findUnique: { args: Prisma.ServiceLineFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ServiceLineFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ServiceLineFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ServiceLineFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ServiceLineFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ServiceLineCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ServiceLineCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ServiceLineCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ServiceLineDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ServiceLineUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ServiceLineDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ServiceLineUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ServiceLineUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ServiceLineUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ServiceLineAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ServiceLineGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ServiceLineCountArgs result: $Utils.Optional | number } } } ClaimFile: { payload: Prisma.$ClaimFilePayload fields: Prisma.ClaimFileFieldRefs operations: { findUnique: { args: Prisma.ClaimFileFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ClaimFileFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ClaimFileFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ClaimFileFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ClaimFileFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ClaimFileCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ClaimFileCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ClaimFileCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ClaimFileDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ClaimFileUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ClaimFileDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ClaimFileUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ClaimFileUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ClaimFileUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ClaimFileAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ClaimFileGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ClaimFileCountArgs result: $Utils.Optional | number } } } InsuranceCredential: { payload: Prisma.$InsuranceCredentialPayload fields: Prisma.InsuranceCredentialFieldRefs operations: { findUnique: { args: Prisma.InsuranceCredentialFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.InsuranceCredentialFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.InsuranceCredentialFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.InsuranceCredentialFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.InsuranceCredentialFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.InsuranceCredentialCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.InsuranceCredentialCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.InsuranceCredentialCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.InsuranceCredentialDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.InsuranceCredentialUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.InsuranceCredentialDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.InsuranceCredentialUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.InsuranceCredentialUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.InsuranceCredentialUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.InsuranceCredentialAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.InsuranceCredentialGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.InsuranceCredentialCountArgs result: $Utils.Optional | number } } } ShoppingVendor: { payload: Prisma.$ShoppingVendorPayload fields: Prisma.ShoppingVendorFieldRefs operations: { findUnique: { args: Prisma.ShoppingVendorFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ShoppingVendorFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ShoppingVendorFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ShoppingVendorFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ShoppingVendorFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ShoppingVendorCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ShoppingVendorCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ShoppingVendorCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ShoppingVendorDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ShoppingVendorUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ShoppingVendorDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ShoppingVendorUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ShoppingVendorUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ShoppingVendorUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ShoppingVendorAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ShoppingVendorGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ShoppingVendorCountArgs result: $Utils.Optional | number } } } PdfGroup: { payload: Prisma.$PdfGroupPayload fields: Prisma.PdfGroupFieldRefs operations: { findUnique: { args: Prisma.PdfGroupFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PdfGroupFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PdfGroupFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PdfGroupFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PdfGroupFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PdfGroupCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PdfGroupCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PdfGroupCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PdfGroupDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PdfGroupUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PdfGroupDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PdfGroupUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PdfGroupUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PdfGroupUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PdfGroupAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PdfGroupGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PdfGroupCountArgs result: $Utils.Optional | number } } } PdfFile: { payload: Prisma.$PdfFilePayload fields: Prisma.PdfFileFieldRefs operations: { findUnique: { args: Prisma.PdfFileFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PdfFileFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PdfFileFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PdfFileFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PdfFileFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PdfFileCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PdfFileCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PdfFileCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PdfFileDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PdfFileUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PdfFileDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PdfFileUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PdfFileUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PdfFileUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PdfFileAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PdfFileGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PdfFileCountArgs result: $Utils.Optional | number } } } Payment: { payload: Prisma.$PaymentPayload fields: Prisma.PaymentFieldRefs operations: { findUnique: { args: Prisma.PaymentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PaymentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PaymentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PaymentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PaymentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PaymentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PaymentCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PaymentCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PaymentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PaymentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PaymentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PaymentUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PaymentUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PaymentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PaymentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PaymentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PaymentCountArgs result: $Utils.Optional | number } } } ServiceLineTransaction: { payload: Prisma.$ServiceLineTransactionPayload fields: Prisma.ServiceLineTransactionFieldRefs operations: { findUnique: { args: Prisma.ServiceLineTransactionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ServiceLineTransactionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ServiceLineTransactionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ServiceLineTransactionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ServiceLineTransactionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ServiceLineTransactionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ServiceLineTransactionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ServiceLineTransactionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ServiceLineTransactionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ServiceLineTransactionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ServiceLineTransactionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ServiceLineTransactionUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ServiceLineTransactionUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ServiceLineTransactionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ServiceLineTransactionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ServiceLineTransactionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ServiceLineTransactionCountArgs result: $Utils.Optional | number } } } DatabaseBackup: { payload: Prisma.$DatabaseBackupPayload fields: Prisma.DatabaseBackupFieldRefs operations: { findUnique: { args: Prisma.DatabaseBackupFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.DatabaseBackupFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.DatabaseBackupFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.DatabaseBackupFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.DatabaseBackupFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.DatabaseBackupCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.DatabaseBackupCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.DatabaseBackupCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.DatabaseBackupDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.DatabaseBackupUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.DatabaseBackupDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.DatabaseBackupUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.DatabaseBackupUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.DatabaseBackupUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.DatabaseBackupAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.DatabaseBackupGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.DatabaseBackupCountArgs result: $Utils.Optional | number } } } BackupDestination: { payload: Prisma.$BackupDestinationPayload fields: Prisma.BackupDestinationFieldRefs operations: { findUnique: { args: Prisma.BackupDestinationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.BackupDestinationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.BackupDestinationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.BackupDestinationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.BackupDestinationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.BackupDestinationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.BackupDestinationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.BackupDestinationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.BackupDestinationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.BackupDestinationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.BackupDestinationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.BackupDestinationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.BackupDestinationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.BackupDestinationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.BackupDestinationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.BackupDestinationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.BackupDestinationCountArgs result: $Utils.Optional | number } } } Notification: { payload: Prisma.$NotificationPayload fields: Prisma.NotificationFieldRefs operations: { findUnique: { args: Prisma.NotificationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.NotificationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.NotificationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.NotificationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.NotificationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.NotificationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.NotificationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.NotificationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.NotificationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.NotificationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.NotificationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.NotificationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.NotificationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.NotificationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.NotificationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.NotificationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.NotificationCountArgs result: $Utils.Optional | number } } } CronJobLog: { payload: Prisma.$CronJobLogPayload fields: Prisma.CronJobLogFieldRefs operations: { findUnique: { args: Prisma.CronJobLogFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CronJobLogFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CronJobLogFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CronJobLogFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CronJobLogFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CronJobLogCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CronJobLogCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CronJobLogCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CronJobLogDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CronJobLogUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CronJobLogDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CronJobLogUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CronJobLogUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CronJobLogUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CronJobLogAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CronJobLogGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CronJobLogCountArgs result: $Utils.Optional | number } } } CloudFolder: { payload: Prisma.$CloudFolderPayload fields: Prisma.CloudFolderFieldRefs operations: { findUnique: { args: Prisma.CloudFolderFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CloudFolderFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CloudFolderFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CloudFolderFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CloudFolderFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CloudFolderCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CloudFolderCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CloudFolderCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CloudFolderDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CloudFolderUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CloudFolderDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CloudFolderUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CloudFolderUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CloudFolderUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CloudFolderAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CloudFolderGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CloudFolderCountArgs result: $Utils.Optional | number } } } CloudFile: { payload: Prisma.$CloudFilePayload fields: Prisma.CloudFileFieldRefs operations: { findUnique: { args: Prisma.CloudFileFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CloudFileFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CloudFileFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CloudFileFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CloudFileFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CloudFileCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CloudFileCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CloudFileCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CloudFileDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CloudFileUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CloudFileDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CloudFileUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CloudFileUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CloudFileUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CloudFileAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CloudFileGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CloudFileCountArgs result: $Utils.Optional | number } } } CloudFileChunk: { payload: Prisma.$CloudFileChunkPayload fields: Prisma.CloudFileChunkFieldRefs operations: { findUnique: { args: Prisma.CloudFileChunkFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CloudFileChunkFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CloudFileChunkFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CloudFileChunkFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CloudFileChunkFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CloudFileChunkCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CloudFileChunkCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CloudFileChunkCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CloudFileChunkDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CloudFileChunkUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CloudFileChunkDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CloudFileChunkUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CloudFileChunkUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CloudFileChunkUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CloudFileChunkAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CloudFileChunkGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CloudFileChunkCountArgs result: $Utils.Optional | number } } } Communication: { payload: Prisma.$CommunicationPayload fields: Prisma.CommunicationFieldRefs operations: { findUnique: { args: Prisma.CommunicationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CommunicationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CommunicationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CommunicationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CommunicationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CommunicationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CommunicationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CommunicationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CommunicationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CommunicationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CommunicationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CommunicationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CommunicationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CommunicationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CommunicationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CommunicationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CommunicationCountArgs result: $Utils.Optional | number } } } PatientDocument: { payload: Prisma.$PatientDocumentPayload fields: Prisma.PatientDocumentFieldRefs operations: { findUnique: { args: Prisma.PatientDocumentFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PatientDocumentFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PatientDocumentFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PatientDocumentFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PatientDocumentFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PatientDocumentCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PatientDocumentCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PatientDocumentCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PatientDocumentDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PatientDocumentUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PatientDocumentDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PatientDocumentUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PatientDocumentUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PatientDocumentUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PatientDocumentAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PatientDocumentGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PatientDocumentCountArgs result: $Utils.Optional | number } } } TwilioSettings: { payload: Prisma.$TwilioSettingsPayload fields: Prisma.TwilioSettingsFieldRefs operations: { findUnique: { args: Prisma.TwilioSettingsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TwilioSettingsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TwilioSettingsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TwilioSettingsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TwilioSettingsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TwilioSettingsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TwilioSettingsCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.TwilioSettingsCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.TwilioSettingsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TwilioSettingsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TwilioSettingsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TwilioSettingsUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.TwilioSettingsUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.TwilioSettingsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TwilioSettingsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TwilioSettingsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TwilioSettingsCountArgs result: $Utils.Optional | number } } } AiSettings: { payload: Prisma.$AiSettingsPayload fields: Prisma.AiSettingsFieldRefs operations: { findUnique: { args: Prisma.AiSettingsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AiSettingsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AiSettingsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AiSettingsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AiSettingsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AiSettingsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AiSettingsCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AiSettingsCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AiSettingsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AiSettingsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AiSettingsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AiSettingsUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AiSettingsUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AiSettingsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AiSettingsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AiSettingsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AiSettingsCountArgs result: $Utils.Optional | number } } } OfficeHours: { payload: Prisma.$OfficeHoursPayload fields: Prisma.OfficeHoursFieldRefs operations: { findUnique: { args: Prisma.OfficeHoursFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.OfficeHoursFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.OfficeHoursFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.OfficeHoursFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.OfficeHoursFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.OfficeHoursCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.OfficeHoursCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.OfficeHoursCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.OfficeHoursDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.OfficeHoursUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.OfficeHoursDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.OfficeHoursUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.OfficeHoursUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.OfficeHoursUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.OfficeHoursAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.OfficeHoursGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.OfficeHoursCountArgs result: $Utils.Optional | number } } } OfficeContact: { payload: Prisma.$OfficeContactPayload fields: Prisma.OfficeContactFieldRefs operations: { findUnique: { args: Prisma.OfficeContactFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.OfficeContactFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.OfficeContactFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.OfficeContactFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.OfficeContactFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.OfficeContactCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.OfficeContactCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.OfficeContactCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.OfficeContactDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.OfficeContactUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.OfficeContactDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.OfficeContactUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.OfficeContactUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.OfficeContactUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.OfficeContactAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.OfficeContactGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.OfficeContactCountArgs result: $Utils.Optional | number } } } InsuranceContact: { payload: Prisma.$InsuranceContactPayload fields: Prisma.InsuranceContactFieldRefs operations: { findUnique: { args: Prisma.InsuranceContactFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.InsuranceContactFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.InsuranceContactFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.InsuranceContactFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.InsuranceContactFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.InsuranceContactCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.InsuranceContactCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.InsuranceContactCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.InsuranceContactDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.InsuranceContactUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.InsuranceContactDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.InsuranceContactUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.InsuranceContactUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.InsuranceContactUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.InsuranceContactAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.InsuranceContactGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.InsuranceContactCountArgs result: $Utils.Optional | number } } } ProcedureTimeslot: { payload: Prisma.$ProcedureTimeslotPayload fields: Prisma.ProcedureTimeslotFieldRefs operations: { findUnique: { args: Prisma.ProcedureTimeslotFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ProcedureTimeslotFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ProcedureTimeslotFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ProcedureTimeslotFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ProcedureTimeslotFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ProcedureTimeslotCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ProcedureTimeslotCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ProcedureTimeslotCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ProcedureTimeslotDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ProcedureTimeslotUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ProcedureTimeslotDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ProcedureTimeslotUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ProcedureTimeslotUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ProcedureTimeslotUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ProcedureTimeslotAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ProcedureTimeslotGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ProcedureTimeslotCountArgs result: $Utils.Optional | number } } } PatientConversation: { payload: Prisma.$PatientConversationPayload fields: Prisma.PatientConversationFieldRefs operations: { findUnique: { args: Prisma.PatientConversationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PatientConversationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PatientConversationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PatientConversationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PatientConversationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PatientConversationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PatientConversationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PatientConversationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PatientConversationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PatientConversationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PatientConversationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PatientConversationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.PatientConversationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.PatientConversationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PatientConversationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PatientConversationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PatientConversationCountArgs result: $Utils.Optional | number } } } CommissionBatch: { payload: Prisma.$CommissionBatchPayload fields: Prisma.CommissionBatchFieldRefs operations: { findUnique: { args: Prisma.CommissionBatchFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CommissionBatchFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CommissionBatchFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CommissionBatchFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CommissionBatchFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CommissionBatchCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CommissionBatchCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CommissionBatchCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CommissionBatchDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CommissionBatchUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CommissionBatchDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CommissionBatchUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CommissionBatchUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CommissionBatchUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CommissionBatchAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CommissionBatchGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CommissionBatchCountArgs result: $Utils.Optional | number } } } CommissionBatchItem: { payload: Prisma.$CommissionBatchItemPayload fields: Prisma.CommissionBatchItemFieldRefs operations: { findUnique: { args: Prisma.CommissionBatchItemFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CommissionBatchItemFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CommissionBatchItemFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CommissionBatchItemFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CommissionBatchItemFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CommissionBatchItemCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CommissionBatchItemCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CommissionBatchItemCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CommissionBatchItemDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CommissionBatchItemUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CommissionBatchItemDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CommissionBatchItemUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CommissionBatchItemUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CommissionBatchItemUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CommissionBatchItemAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CommissionBatchItemGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CommissionBatchItemCountArgs 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 { /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Shorthand for `emit: 'stdout'` * log: ['query', 'info', 'warn', 'error'] * * // Emit as events only * log: [ * { emit: 'event', level: 'query' }, * { emit: 'event', level: 'info' }, * { emit: 'event', level: 'warn' } * { emit: 'event', level: 'error' } * ] * * / Emit as events and log to stdout * og: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * * ``` * Read more in our [docs](https://pris.ly/d/logging). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } /** * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` */ adapter?: runtime.SqlDriverAdapterFactory /** * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. */ accelerateUrl?: string /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig /** * SQL commenter plugins that add metadata to SQL queries as comments. * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/ * * @example * ``` * const prisma = new PrismaClient({ * adapter, * comments: [ * traceContext(), * queryInsights(), * ], * }) * ``` */ comments?: runtime.SqlCommenterPlugin[] } export type GlobalOmitConfig = { user?: UserOmit patient?: PatientOmit appointment?: AppointmentOmit appointmentFile?: AppointmentFileOmit staff?: StaffOmit npiProvider?: NpiProviderOmit appointmentProcedure?: AppointmentProcedureOmit claim?: ClaimOmit serviceLine?: ServiceLineOmit claimFile?: ClaimFileOmit insuranceCredential?: InsuranceCredentialOmit shoppingVendor?: ShoppingVendorOmit pdfGroup?: PdfGroupOmit pdfFile?: PdfFileOmit payment?: PaymentOmit serviceLineTransaction?: ServiceLineTransactionOmit databaseBackup?: DatabaseBackupOmit backupDestination?: BackupDestinationOmit notification?: NotificationOmit cronJobLog?: CronJobLogOmit cloudFolder?: CloudFolderOmit cloudFile?: CloudFileOmit cloudFileChunk?: CloudFileChunkOmit communication?: CommunicationOmit patientDocument?: PatientDocumentOmit twilioSettings?: TwilioSettingsOmit aiSettings?: AiSettingsOmit officeHours?: OfficeHoursOmit officeContact?: OfficeContactOmit insuranceContact?: InsuranceContactOmit procedureTimeslot?: ProcedureTimeslotOmit patientConversation?: PatientConversationOmit commissionBatch?: CommissionBatchOmit commissionBatchItem?: CommissionBatchItemOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type CheckIsLogLevel = T extends LogLevel ? T : never; export type GetLogType = CheckIsLogLevel< T extends LogDefinition ? T['level'] : T >; export type GetEvents = T extends Array ? 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' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' // 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 = { patients: number appointments: number staff: number npiProviders: number claims: number insuranceCredentials: number shoppingVendors: number updatedPayments: number backups: number backupDestinations: number notifications: number cloudFolders: number cloudFiles: number communications: number insuranceContacts: number patientConversations: number } export type UserCountOutputTypeSelect = { patients?: boolean | UserCountOutputTypeCountPatientsArgs appointments?: boolean | UserCountOutputTypeCountAppointmentsArgs staff?: boolean | UserCountOutputTypeCountStaffArgs npiProviders?: boolean | UserCountOutputTypeCountNpiProvidersArgs claims?: boolean | UserCountOutputTypeCountClaimsArgs insuranceCredentials?: boolean | UserCountOutputTypeCountInsuranceCredentialsArgs shoppingVendors?: boolean | UserCountOutputTypeCountShoppingVendorsArgs updatedPayments?: boolean | UserCountOutputTypeCountUpdatedPaymentsArgs backups?: boolean | UserCountOutputTypeCountBackupsArgs backupDestinations?: boolean | UserCountOutputTypeCountBackupDestinationsArgs notifications?: boolean | UserCountOutputTypeCountNotificationsArgs cloudFolders?: boolean | UserCountOutputTypeCountCloudFoldersArgs cloudFiles?: boolean | UserCountOutputTypeCountCloudFilesArgs communications?: boolean | UserCountOutputTypeCountCommunicationsArgs insuranceContacts?: boolean | UserCountOutputTypeCountInsuranceContactsArgs patientConversations?: boolean | UserCountOutputTypeCountPatientConversationsArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountPatientsArgs = { where?: PatientWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountAppointmentsArgs = { where?: AppointmentWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountStaffArgs = { where?: StaffWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountNpiProvidersArgs = { where?: NpiProviderWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountInsuranceCredentialsArgs = { where?: InsuranceCredentialWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountShoppingVendorsArgs = { where?: ShoppingVendorWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountUpdatedPaymentsArgs = { where?: PaymentWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountBackupsArgs = { where?: DatabaseBackupWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountBackupDestinationsArgs = { where?: BackupDestinationWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountNotificationsArgs = { where?: NotificationWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCloudFoldersArgs = { where?: CloudFolderWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCloudFilesArgs = { where?: CloudFileWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCommunicationsArgs = { where?: CommunicationWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountInsuranceContactsArgs = { where?: InsuranceContactWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountPatientConversationsArgs = { where?: PatientConversationWhereInput } /** * Count Type PatientCountOutputType */ export type PatientCountOutputType = { appointments: number procedures: number claims: number groups: number payment: number communications: number documents: number } export type PatientCountOutputTypeSelect = { appointments?: boolean | PatientCountOutputTypeCountAppointmentsArgs procedures?: boolean | PatientCountOutputTypeCountProceduresArgs claims?: boolean | PatientCountOutputTypeCountClaimsArgs groups?: boolean | PatientCountOutputTypeCountGroupsArgs payment?: boolean | PatientCountOutputTypeCountPaymentArgs communications?: boolean | PatientCountOutputTypeCountCommunicationsArgs documents?: boolean | PatientCountOutputTypeCountDocumentsArgs } // Custom InputTypes /** * PatientCountOutputType without action */ export type PatientCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PatientCountOutputType */ select?: PatientCountOutputTypeSelect | null } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountAppointmentsArgs = { where?: AppointmentWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountProceduresArgs = { where?: AppointmentProcedureWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountGroupsArgs = { where?: PdfGroupWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountPaymentArgs = { where?: PaymentWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountCommunicationsArgs = { where?: CommunicationWhereInput } /** * PatientCountOutputType without action */ export type PatientCountOutputTypeCountDocumentsArgs = { where?: PatientDocumentWhereInput } /** * Count Type AppointmentCountOutputType */ export type AppointmentCountOutputType = { procedures: number claims: number files: number } export type AppointmentCountOutputTypeSelect = { procedures?: boolean | AppointmentCountOutputTypeCountProceduresArgs claims?: boolean | AppointmentCountOutputTypeCountClaimsArgs files?: boolean | AppointmentCountOutputTypeCountFilesArgs } // Custom InputTypes /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AppointmentCountOutputType */ select?: AppointmentCountOutputTypeSelect | null } /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeCountProceduresArgs = { where?: AppointmentProcedureWhereInput } /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * AppointmentCountOutputType without action */ export type AppointmentCountOutputTypeCountFilesArgs = { where?: AppointmentFileWhereInput } /** * Count Type StaffCountOutputType */ export type StaffCountOutputType = { appointments: number claims: number } export type StaffCountOutputTypeSelect = { appointments?: boolean | StaffCountOutputTypeCountAppointmentsArgs claims?: boolean | StaffCountOutputTypeCountClaimsArgs } // Custom InputTypes /** * StaffCountOutputType without action */ export type StaffCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the StaffCountOutputType */ select?: StaffCountOutputTypeSelect | null } /** * StaffCountOutputType without action */ export type StaffCountOutputTypeCountAppointmentsArgs = { where?: AppointmentWhereInput } /** * StaffCountOutputType without action */ export type StaffCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * Count Type NpiProviderCountOutputType */ export type NpiProviderCountOutputType = { claims: number payments: number commissionBatches: number appointmentProcedures: number } export type NpiProviderCountOutputTypeSelect = { claims?: boolean | NpiProviderCountOutputTypeCountClaimsArgs payments?: boolean | NpiProviderCountOutputTypeCountPaymentsArgs commissionBatches?: boolean | NpiProviderCountOutputTypeCountCommissionBatchesArgs appointmentProcedures?: boolean | NpiProviderCountOutputTypeCountAppointmentProceduresArgs } // Custom InputTypes /** * NpiProviderCountOutputType without action */ export type NpiProviderCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the NpiProviderCountOutputType */ select?: NpiProviderCountOutputTypeSelect | null } /** * NpiProviderCountOutputType without action */ export type NpiProviderCountOutputTypeCountClaimsArgs = { where?: ClaimWhereInput } /** * NpiProviderCountOutputType without action */ export type NpiProviderCountOutputTypeCountPaymentsArgs = { where?: PaymentWhereInput } /** * NpiProviderCountOutputType without action */ export type NpiProviderCountOutputTypeCountCommissionBatchesArgs = { where?: CommissionBatchWhereInput } /** * NpiProviderCountOutputType without action */ export type NpiProviderCountOutputTypeCountAppointmentProceduresArgs = { where?: AppointmentProcedureWhereInput } /** * Count Type ClaimCountOutputType */ export type ClaimCountOutputType = { serviceLines: number claimFiles: number } export type ClaimCountOutputTypeSelect = { serviceLines?: boolean | ClaimCountOutputTypeCountServiceLinesArgs claimFiles?: boolean | ClaimCountOutputTypeCountClaimFilesArgs } // Custom InputTypes /** * ClaimCountOutputType without action */ export type ClaimCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ClaimCountOutputType */ select?: ClaimCountOutputTypeSelect | null } /** * ClaimCountOutputType without action */ export type ClaimCountOutputTypeCountServiceLinesArgs = { where?: ServiceLineWhereInput } /** * ClaimCountOutputType without action */ export type ClaimCountOutputTypeCountClaimFilesArgs = { where?: ClaimFileWhereInput } /** * Count Type ServiceLineCountOutputType */ export type ServiceLineCountOutputType = { serviceLineTransactions: number } export type ServiceLineCountOutputTypeSelect = { serviceLineTransactions?: boolean | ServiceLineCountOutputTypeCountServiceLineTransactionsArgs } // Custom InputTypes /** * ServiceLineCountOutputType without action */ export type ServiceLineCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ServiceLineCountOutputType */ select?: ServiceLineCountOutputTypeSelect | null } /** * ServiceLineCountOutputType without action */ export type ServiceLineCountOutputTypeCountServiceLineTransactionsArgs = { where?: ServiceLineTransactionWhereInput } /** * Count Type PdfGroupCountOutputType */ export type PdfGroupCountOutputType = { pdfs: number } export type PdfGroupCountOutputTypeSelect = { pdfs?: boolean | PdfGroupCountOutputTypeCountPdfsArgs } // Custom InputTypes /** * PdfGroupCountOutputType without action */ export type PdfGroupCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PdfGroupCountOutputType */ select?: PdfGroupCountOutputTypeSelect | null } /** * PdfGroupCountOutputType without action */ export type PdfGroupCountOutputTypeCountPdfsArgs = { where?: PdfFileWhereInput } /** * Count Type PaymentCountOutputType */ export type PaymentCountOutputType = { serviceLineTransactions: number serviceLines: number commissionBatchItems: number } export type PaymentCountOutputTypeSelect = { serviceLineTransactions?: boolean | PaymentCountOutputTypeCountServiceLineTransactionsArgs serviceLines?: boolean | PaymentCountOutputTypeCountServiceLinesArgs commissionBatchItems?: boolean | PaymentCountOutputTypeCountCommissionBatchItemsArgs } // Custom InputTypes /** * PaymentCountOutputType without action */ export type PaymentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PaymentCountOutputType */ select?: PaymentCountOutputTypeSelect | null } /** * PaymentCountOutputType without action */ export type PaymentCountOutputTypeCountServiceLineTransactionsArgs = { where?: ServiceLineTransactionWhereInput } /** * PaymentCountOutputType without action */ export type PaymentCountOutputTypeCountServiceLinesArgs = { where?: ServiceLineWhereInput } /** * PaymentCountOutputType without action */ export type PaymentCountOutputTypeCountCommissionBatchItemsArgs = { where?: CommissionBatchItemWhereInput } /** * Count Type CloudFolderCountOutputType */ export type CloudFolderCountOutputType = { children: number files: number } export type CloudFolderCountOutputTypeSelect = { children?: boolean | CloudFolderCountOutputTypeCountChildrenArgs files?: boolean | CloudFolderCountOutputTypeCountFilesArgs } // Custom InputTypes /** * CloudFolderCountOutputType without action */ export type CloudFolderCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CloudFolderCountOutputType */ select?: CloudFolderCountOutputTypeSelect | null } /** * CloudFolderCountOutputType without action */ export type CloudFolderCountOutputTypeCountChildrenArgs = { where?: CloudFolderWhereInput } /** * CloudFolderCountOutputType without action */ export type CloudFolderCountOutputTypeCountFilesArgs = { where?: CloudFileWhereInput } /** * Count Type CloudFileCountOutputType */ export type CloudFileCountOutputType = { chunks: number } export type CloudFileCountOutputTypeSelect = { chunks?: boolean | CloudFileCountOutputTypeCountChunksArgs } // Custom InputTypes /** * CloudFileCountOutputType without action */ export type CloudFileCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CloudFileCountOutputType */ select?: CloudFileCountOutputTypeSelect | null } /** * CloudFileCountOutputType without action */ export type CloudFileCountOutputTypeCountChunksArgs = { where?: CloudFileChunkWhereInput } /** * Count Type CommissionBatchCountOutputType */ export type CommissionBatchCountOutputType = { items: number } export type CommissionBatchCountOutputTypeSelect = { items?: boolean | CommissionBatchCountOutputTypeCountItemsArgs } // Custom InputTypes /** * CommissionBatchCountOutputType without action */ export type CommissionBatchCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CommissionBatchCountOutputType */ select?: CommissionBatchCountOutputTypeSelect | null } /** * CommissionBatchCountOutputType without action */ export type CommissionBatchCountOutputTypeCountItemsArgs = { where?: CommissionBatchItemWhereInput } /** * Models */ /** * 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 } export type UserSumAggregateOutputType = { id: number | null } export type UserMinAggregateOutputType = { id: number | null username: string | null password: string | null autoBackupEnabled: boolean | null usbBackupEnabled: boolean | null } export type UserMaxAggregateOutputType = { id: number | null username: string | null password: string | null autoBackupEnabled: boolean | null usbBackupEnabled: boolean | null } export type UserCountAggregateOutputType = { id: number username: number password: number autoBackupEnabled: number usbBackupEnabled: number _all: number } export type UserAvgAggregateInputType = { id?: true } export type UserSumAggregateInputType = { id?: true } export type UserMinAggregateInputType = { id?: true username?: true password?: true autoBackupEnabled?: true usbBackupEnabled?: true } export type UserMaxAggregateInputType = { id?: true username?: true password?: true autoBackupEnabled?: true usbBackupEnabled?: true } export type UserCountAggregateInputType = { id?: true username?: true password?: true autoBackupEnabled?: true usbBackupEnabled?: 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 username: string password: string autoBackupEnabled: boolean usbBackupEnabled: boolean _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 username?: boolean password?: boolean autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: boolean | User$patientsArgs appointments?: boolean | User$appointmentsArgs staff?: boolean | User$staffArgs npiProviders?: boolean | User$npiProvidersArgs claims?: boolean | User$claimsArgs insuranceCredentials?: boolean | User$insuranceCredentialsArgs shoppingVendors?: boolean | User$shoppingVendorsArgs updatedPayments?: boolean | User$updatedPaymentsArgs backups?: boolean | User$backupsArgs backupDestinations?: boolean | User$backupDestinationsArgs notifications?: boolean | User$notificationsArgs cloudFolders?: boolean | User$cloudFoldersArgs cloudFiles?: boolean | User$cloudFilesArgs communications?: boolean | User$communicationsArgs twilioSettings?: boolean | User$twilioSettingsArgs aiSettings?: boolean | User$aiSettingsArgs officeHours?: boolean | User$officeHoursArgs officeContact?: boolean | User$officeContactArgs procedureTimeslot?: boolean | User$procedureTimeslotArgs insuranceContacts?: boolean | User$insuranceContactsArgs patientConversations?: boolean | User$patientConversationsArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean username?: boolean password?: boolean autoBackupEnabled?: boolean usbBackupEnabled?: boolean }, ExtArgs["result"]["user"]> export type UserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean username?: boolean password?: boolean autoBackupEnabled?: boolean usbBackupEnabled?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean username?: boolean password?: boolean autoBackupEnabled?: boolean usbBackupEnabled?: boolean } export type UserOmit = $Extensions.GetOmit<"id" | "username" | "password" | "autoBackupEnabled" | "usbBackupEnabled", ExtArgs["result"]["user"]> export type UserInclude = { patients?: boolean | User$patientsArgs appointments?: boolean | User$appointmentsArgs staff?: boolean | User$staffArgs npiProviders?: boolean | User$npiProvidersArgs claims?: boolean | User$claimsArgs insuranceCredentials?: boolean | User$insuranceCredentialsArgs shoppingVendors?: boolean | User$shoppingVendorsArgs updatedPayments?: boolean | User$updatedPaymentsArgs backups?: boolean | User$backupsArgs backupDestinations?: boolean | User$backupDestinationsArgs notifications?: boolean | User$notificationsArgs cloudFolders?: boolean | User$cloudFoldersArgs cloudFiles?: boolean | User$cloudFilesArgs communications?: boolean | User$communicationsArgs twilioSettings?: boolean | User$twilioSettingsArgs aiSettings?: boolean | User$aiSettingsArgs officeHours?: boolean | User$officeHoursArgs officeContact?: boolean | User$officeContactArgs procedureTimeslot?: boolean | User$procedureTimeslotArgs insuranceContacts?: boolean | User$insuranceContactsArgs patientConversations?: boolean | User$patientConversationsArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} export type UserIncludeUpdateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { patients: Prisma.$PatientPayload[] appointments: Prisma.$AppointmentPayload[] staff: Prisma.$StaffPayload[] npiProviders: Prisma.$NpiProviderPayload[] claims: Prisma.$ClaimPayload[] insuranceCredentials: Prisma.$InsuranceCredentialPayload[] shoppingVendors: Prisma.$ShoppingVendorPayload[] updatedPayments: Prisma.$PaymentPayload[] backups: Prisma.$DatabaseBackupPayload[] backupDestinations: Prisma.$BackupDestinationPayload[] notifications: Prisma.$NotificationPayload[] cloudFolders: Prisma.$CloudFolderPayload[] cloudFiles: Prisma.$CloudFilePayload[] communications: Prisma.$CommunicationPayload[] twilioSettings: Prisma.$TwilioSettingsPayload | null aiSettings: Prisma.$AiSettingsPayload | null officeHours: Prisma.$OfficeHoursPayload | null officeContact: Prisma.$OfficeContactPayload | null procedureTimeslot: Prisma.$ProcedureTimeslotPayload | null insuranceContacts: Prisma.$InsuranceContactPayload[] patientConversations: Prisma.$PatientConversationPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number username: string password: string autoBackupEnabled: boolean usbBackupEnabled: boolean }, 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", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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 /** * Update zero or more Users and returns the data updated in the database. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const user = await prisma.user.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const userWithIdOnly = await prisma.user.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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" patients = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> appointments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> staff = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> npiProviders = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> insuranceCredentials = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> shoppingVendors = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> updatedPayments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> backups = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> backupDestinations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> notifications = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> cloudFolders = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> cloudFiles = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> communications = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> twilioSettings = {}>(args?: Subset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> aiSettings = {}>(args?: Subset>): Prisma__AiSettingsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> officeHours = {}>(args?: Subset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> officeContact = {}>(args?: Subset>): Prisma__OfficeContactClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> procedureTimeslot = {}>(args?: Subset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> insuranceContacts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> patientConversations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 username: FieldRef<"User", 'String'> readonly password: FieldRef<"User", 'String'> readonly autoBackupEnabled: FieldRef<"User", 'Boolean'> readonly usbBackupEnabled: FieldRef<"User", 'Boolean'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | 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 /** * Omit specific fields from the User */ omit?: UserOmit | 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 /** * Omit specific fields from the User */ omit?: UserOmit | 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 /** * Omit specific fields from the User */ omit?: UserOmit | 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 /** * Omit specific fields from the User */ omit?: UserOmit | 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 /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | 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 /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectUpdateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | 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 /** * Omit specific fields from the User */ omit?: UserOmit | 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 /** * Limit how many Users to delete. */ limit?: number } /** * User.patients */ export type User$patientsArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null where?: PatientWhereInput orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] cursor?: PatientWhereUniqueInput take?: number skip?: number distinct?: PatientScalarFieldEnum | PatientScalarFieldEnum[] } /** * User.appointments */ export type User$appointmentsArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null where?: AppointmentWhereInput orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] cursor?: AppointmentWhereUniqueInput take?: number skip?: number distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * User.staff */ export type User$staffArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null where?: StaffWhereInput orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] cursor?: StaffWhereUniqueInput take?: number skip?: number distinct?: StaffScalarFieldEnum | StaffScalarFieldEnum[] } /** * User.npiProviders */ export type User$npiProvidersArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null where?: NpiProviderWhereInput orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] cursor?: NpiProviderWhereUniqueInput take?: number skip?: number distinct?: NpiProviderScalarFieldEnum | NpiProviderScalarFieldEnum[] } /** * User.claims */ export type User$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * User.insuranceCredentials */ export type User$insuranceCredentialsArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null where?: InsuranceCredentialWhereInput orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] cursor?: InsuranceCredentialWhereUniqueInput take?: number skip?: number distinct?: InsuranceCredentialScalarFieldEnum | InsuranceCredentialScalarFieldEnum[] } /** * User.shoppingVendors */ export type User$shoppingVendorsArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null where?: ShoppingVendorWhereInput orderBy?: ShoppingVendorOrderByWithRelationInput | ShoppingVendorOrderByWithRelationInput[] cursor?: ShoppingVendorWhereUniqueInput take?: number skip?: number distinct?: ShoppingVendorScalarFieldEnum | ShoppingVendorScalarFieldEnum[] } /** * User.updatedPayments */ export type User$updatedPaymentsArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] cursor?: PaymentWhereUniqueInput take?: number skip?: number distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * User.backups */ export type User$backupsArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null where?: DatabaseBackupWhereInput orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] cursor?: DatabaseBackupWhereUniqueInput take?: number skip?: number distinct?: DatabaseBackupScalarFieldEnum | DatabaseBackupScalarFieldEnum[] } /** * User.backupDestinations */ export type User$backupDestinationsArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null where?: BackupDestinationWhereInput orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] cursor?: BackupDestinationWhereUniqueInput take?: number skip?: number distinct?: BackupDestinationScalarFieldEnum | BackupDestinationScalarFieldEnum[] } /** * User.notifications */ export type User$notificationsArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null where?: NotificationWhereInput orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] cursor?: NotificationWhereUniqueInput take?: number skip?: number distinct?: NotificationScalarFieldEnum | NotificationScalarFieldEnum[] } /** * User.cloudFolders */ export type User$cloudFoldersArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null where?: CloudFolderWhereInput orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] cursor?: CloudFolderWhereUniqueInput take?: number skip?: number distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * User.cloudFiles */ export type User$cloudFilesArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null where?: CloudFileWhereInput orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] cursor?: CloudFileWhereUniqueInput take?: number skip?: number distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * User.communications */ export type User$communicationsArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null where?: CommunicationWhereInput orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] cursor?: CommunicationWhereUniqueInput take?: number skip?: number distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * User.twilioSettings */ export type User$twilioSettingsArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null where?: TwilioSettingsWhereInput } /** * User.aiSettings */ export type User$aiSettingsArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null where?: AiSettingsWhereInput } /** * User.officeHours */ export type User$officeHoursArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null where?: OfficeHoursWhereInput } /** * User.officeContact */ export type User$officeContactArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null where?: OfficeContactWhereInput } /** * User.procedureTimeslot */ export type User$procedureTimeslotArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null where?: ProcedureTimeslotWhereInput } /** * User.insuranceContacts */ export type User$insuranceContactsArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null where?: InsuranceContactWhereInput orderBy?: InsuranceContactOrderByWithRelationInput | InsuranceContactOrderByWithRelationInput[] cursor?: InsuranceContactWhereUniqueInput take?: number skip?: number distinct?: InsuranceContactScalarFieldEnum | InsuranceContactScalarFieldEnum[] } /** * User.patientConversations */ export type User$patientConversationsArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null where?: PatientConversationWhereInput orderBy?: PatientConversationOrderByWithRelationInput | PatientConversationOrderByWithRelationInput[] cursor?: PatientConversationWhereUniqueInput take?: number skip?: number distinct?: PatientConversationScalarFieldEnum | PatientConversationScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model Patient */ export type AggregatePatient = { _count: PatientCountAggregateOutputType | null _avg: PatientAvgAggregateOutputType | null _sum: PatientSumAggregateOutputType | null _min: PatientMinAggregateOutputType | null _max: PatientMaxAggregateOutputType | null } export type PatientAvgAggregateOutputType = { id: number | null userId: number | null } export type PatientSumAggregateOutputType = { id: number | null userId: number | null } export type PatientMinAggregateOutputType = { id: number | null firstName: string | null lastName: string | null dateOfBirth: Date | null gender: string | null phone: string | null email: string | null address: string | null city: string | null zipCode: string | null insuranceProvider: string | null insuranceId: string | null groupNumber: string | null policyHolder: string | null allergies: string | null medicalConditions: string | null preferredLanguage: string | null status: $Enums.PatientStatus | null userId: number | null createdAt: Date | null updatedAt: Date | null } export type PatientMaxAggregateOutputType = { id: number | null firstName: string | null lastName: string | null dateOfBirth: Date | null gender: string | null phone: string | null email: string | null address: string | null city: string | null zipCode: string | null insuranceProvider: string | null insuranceId: string | null groupNumber: string | null policyHolder: string | null allergies: string | null medicalConditions: string | null preferredLanguage: string | null status: $Enums.PatientStatus | null userId: number | null createdAt: Date | null updatedAt: Date | null } export type PatientCountAggregateOutputType = { id: number firstName: number lastName: number dateOfBirth: number gender: number phone: number email: number address: number city: number zipCode: number insuranceProvider: number insuranceId: number groupNumber: number policyHolder: number allergies: number medicalConditions: number preferredLanguage: number status: number userId: number createdAt: number updatedAt: number _all: number } export type PatientAvgAggregateInputType = { id?: true userId?: true } export type PatientSumAggregateInputType = { id?: true userId?: true } export type PatientMinAggregateInputType = { id?: true firstName?: true lastName?: true dateOfBirth?: true gender?: true phone?: true email?: true address?: true city?: true zipCode?: true insuranceProvider?: true insuranceId?: true groupNumber?: true policyHolder?: true allergies?: true medicalConditions?: true preferredLanguage?: true status?: true userId?: true createdAt?: true updatedAt?: true } export type PatientMaxAggregateInputType = { id?: true firstName?: true lastName?: true dateOfBirth?: true gender?: true phone?: true email?: true address?: true city?: true zipCode?: true insuranceProvider?: true insuranceId?: true groupNumber?: true policyHolder?: true allergies?: true medicalConditions?: true preferredLanguage?: true status?: true userId?: true createdAt?: true updatedAt?: true } export type PatientCountAggregateInputType = { id?: true firstName?: true lastName?: true dateOfBirth?: true gender?: true phone?: true email?: true address?: true city?: true zipCode?: true insuranceProvider?: true insuranceId?: true groupNumber?: true policyHolder?: true allergies?: true medicalConditions?: true preferredLanguage?: true status?: true userId?: true createdAt?: true updatedAt?: true _all?: true } export type PatientAggregateArgs = { /** * Filter which Patient to aggregate. */ where?: PatientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Patients to fetch. */ orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PatientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Patients from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Patients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Patients **/ _count?: true | PatientCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PatientAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PatientSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PatientMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PatientMaxAggregateInputType } export type GetPatientAggregateType = { [P in keyof T & keyof AggregatePatient]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PatientGroupByArgs = { where?: PatientWhereInput orderBy?: PatientOrderByWithAggregationInput | PatientOrderByWithAggregationInput[] by: PatientScalarFieldEnum[] | PatientScalarFieldEnum having?: PatientScalarWhereWithAggregatesInput take?: number skip?: number _count?: PatientCountAggregateInputType | true _avg?: PatientAvgAggregateInputType _sum?: PatientSumAggregateInputType _min?: PatientMinAggregateInputType _max?: PatientMaxAggregateInputType } export type PatientGroupByOutputType = { id: number firstName: string lastName: string dateOfBirth: Date | null gender: string phone: string email: string | null address: string | null city: string | null zipCode: string | null insuranceProvider: string | null insuranceId: string | null groupNumber: string | null policyHolder: string | null allergies: string | null medicalConditions: string | null preferredLanguage: string | null status: $Enums.PatientStatus userId: number createdAt: Date updatedAt: Date _count: PatientCountAggregateOutputType | null _avg: PatientAvgAggregateOutputType | null _sum: PatientSumAggregateOutputType | null _min: PatientMinAggregateOutputType | null _max: PatientMaxAggregateOutputType | null } type GetPatientGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PatientGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PatientSelect = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean dateOfBirth?: boolean gender?: boolean phone?: boolean email?: boolean address?: boolean city?: boolean zipCode?: boolean insuranceProvider?: boolean insuranceId?: boolean groupNumber?: boolean policyHolder?: boolean allergies?: boolean medicalConditions?: boolean preferredLanguage?: boolean status?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs appointments?: boolean | Patient$appointmentsArgs procedures?: boolean | Patient$proceduresArgs claims?: boolean | Patient$claimsArgs groups?: boolean | Patient$groupsArgs payment?: boolean | Patient$paymentArgs communications?: boolean | Patient$communicationsArgs documents?: boolean | Patient$documentsArgs conversation?: boolean | Patient$conversationArgs _count?: boolean | PatientCountOutputTypeDefaultArgs }, ExtArgs["result"]["patient"]> export type PatientSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean dateOfBirth?: boolean gender?: boolean phone?: boolean email?: boolean address?: boolean city?: boolean zipCode?: boolean insuranceProvider?: boolean insuranceId?: boolean groupNumber?: boolean policyHolder?: boolean allergies?: boolean medicalConditions?: boolean preferredLanguage?: boolean status?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["patient"]> export type PatientSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean firstName?: boolean lastName?: boolean dateOfBirth?: boolean gender?: boolean phone?: boolean email?: boolean address?: boolean city?: boolean zipCode?: boolean insuranceProvider?: boolean insuranceId?: boolean groupNumber?: boolean policyHolder?: boolean allergies?: boolean medicalConditions?: boolean preferredLanguage?: boolean status?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["patient"]> export type PatientSelectScalar = { id?: boolean firstName?: boolean lastName?: boolean dateOfBirth?: boolean gender?: boolean phone?: boolean email?: boolean address?: boolean city?: boolean zipCode?: boolean insuranceProvider?: boolean insuranceId?: boolean groupNumber?: boolean policyHolder?: boolean allergies?: boolean medicalConditions?: boolean preferredLanguage?: boolean status?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean } export type PatientOmit = $Extensions.GetOmit<"id" | "firstName" | "lastName" | "dateOfBirth" | "gender" | "phone" | "email" | "address" | "city" | "zipCode" | "insuranceProvider" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "status" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["patient"]> export type PatientInclude = { user?: boolean | UserDefaultArgs appointments?: boolean | Patient$appointmentsArgs procedures?: boolean | Patient$proceduresArgs claims?: boolean | Patient$claimsArgs groups?: boolean | Patient$groupsArgs payment?: boolean | Patient$paymentArgs communications?: boolean | Patient$communicationsArgs documents?: boolean | Patient$documentsArgs conversation?: boolean | Patient$conversationArgs _count?: boolean | PatientCountOutputTypeDefaultArgs } export type PatientIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type PatientIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $PatientPayload = { name: "Patient" objects: { user: Prisma.$UserPayload appointments: Prisma.$AppointmentPayload[] procedures: Prisma.$AppointmentProcedurePayload[] claims: Prisma.$ClaimPayload[] groups: Prisma.$PdfGroupPayload[] payment: Prisma.$PaymentPayload[] communications: Prisma.$CommunicationPayload[] documents: Prisma.$PatientDocumentPayload[] conversation: Prisma.$PatientConversationPayload | null } scalars: $Extensions.GetPayloadResult<{ id: number firstName: string lastName: string dateOfBirth: Date | null gender: string phone: string email: string | null address: string | null city: string | null zipCode: string | null insuranceProvider: string | null insuranceId: string | null groupNumber: string | null policyHolder: string | null allergies: string | null medicalConditions: string | null preferredLanguage: string | null status: $Enums.PatientStatus userId: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["patient"]> composites: {} } type PatientGetPayload = $Result.GetResult type PatientCountArgs = Omit & { select?: PatientCountAggregateInputType | true } export interface PatientDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Patient'], meta: { name: 'Patient' } } /** * Find zero or one Patient that matches the filter. * @param {PatientFindUniqueArgs} args - Arguments to find a Patient * @example * // Get one Patient * const patient = await prisma.patient.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Patient that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PatientFindUniqueOrThrowArgs} args - Arguments to find a Patient * @example * // Get one Patient * const patient = await prisma.patient.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Patient 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 {PatientFindFirstArgs} args - Arguments to find a Patient * @example * // Get one Patient * const patient = await prisma.patient.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Patient 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 {PatientFindFirstOrThrowArgs} args - Arguments to find a Patient * @example * // Get one Patient * const patient = await prisma.patient.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Patients 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 {PatientFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Patients * const patients = await prisma.patient.findMany() * * // Get first 10 Patients * const patients = await prisma.patient.findMany({ take: 10 }) * * // Only select the `id` * const patientWithIdOnly = await prisma.patient.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Patient. * @param {PatientCreateArgs} args - Arguments to create a Patient. * @example * // Create one Patient * const Patient = await prisma.patient.create({ * data: { * // ... data to create a Patient * } * }) * */ create(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Patients. * @param {PatientCreateManyArgs} args - Arguments to create many Patients. * @example * // Create many Patients * const patient = await prisma.patient.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Patients and returns the data saved in the database. * @param {PatientCreateManyAndReturnArgs} args - Arguments to create many Patients. * @example * // Create many Patients * const patient = await prisma.patient.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Patients and only return the `id` * const patientWithIdOnly = await prisma.patient.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Patient. * @param {PatientDeleteArgs} args - Arguments to delete one Patient. * @example * // Delete one Patient * const Patient = await prisma.patient.delete({ * where: { * // ... filter to delete one Patient * } * }) * */ delete(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Patient. * @param {PatientUpdateArgs} args - Arguments to update one Patient. * @example * // Update one Patient * const patient = await prisma.patient.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Patients. * @param {PatientDeleteManyArgs} args - Arguments to filter Patients to delete. * @example * // Delete a few Patients * const { count } = await prisma.patient.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Patients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Patients * const patient = await prisma.patient.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Patients and returns the data updated in the database. * @param {PatientUpdateManyAndReturnArgs} args - Arguments to update many Patients. * @example * // Update many Patients * const patient = await prisma.patient.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Patients and only return the `id` * const patientWithIdOnly = await prisma.patient.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Patient. * @param {PatientUpsertArgs} args - Arguments to update or create a Patient. * @example * // Update or create a Patient * const patient = await prisma.patient.upsert({ * create: { * // ... data to create a Patient * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Patient we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PatientClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Patients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientCountArgs} args - Arguments to filter Patients to count. * @example * // Count the number of Patients * const count = await prisma.patient.count({ * where: { * // ... the filter for the Patients 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 Patient. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientAggregateArgs} 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 Patient. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientGroupByArgs} 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 PatientGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PatientGroupByArgs['orderBy'] } : { orderBy?: PatientGroupByArgs['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 ? GetPatientGroupByPayload : Prisma.PrismaPromise /** * Fields of the Patient model */ readonly fields: PatientFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Patient. * 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__PatientClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> appointments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> procedures = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> groups = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> payment = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> communications = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> documents = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> conversation = {}>(args?: Subset>): Prisma__PatientConversationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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 Patient model */ interface PatientFieldRefs { readonly id: FieldRef<"Patient", 'Int'> readonly firstName: FieldRef<"Patient", 'String'> readonly lastName: FieldRef<"Patient", 'String'> readonly dateOfBirth: FieldRef<"Patient", 'DateTime'> readonly gender: FieldRef<"Patient", 'String'> readonly phone: FieldRef<"Patient", 'String'> readonly email: FieldRef<"Patient", 'String'> readonly address: FieldRef<"Patient", 'String'> readonly city: FieldRef<"Patient", 'String'> readonly zipCode: FieldRef<"Patient", 'String'> readonly insuranceProvider: FieldRef<"Patient", 'String'> readonly insuranceId: FieldRef<"Patient", 'String'> readonly groupNumber: FieldRef<"Patient", 'String'> readonly policyHolder: FieldRef<"Patient", 'String'> readonly allergies: FieldRef<"Patient", 'String'> readonly medicalConditions: FieldRef<"Patient", 'String'> readonly preferredLanguage: FieldRef<"Patient", 'String'> readonly status: FieldRef<"Patient", 'PatientStatus'> readonly userId: FieldRef<"Patient", 'Int'> readonly createdAt: FieldRef<"Patient", 'DateTime'> readonly updatedAt: FieldRef<"Patient", 'DateTime'> } // Custom InputTypes /** * Patient findUnique */ export type PatientFindUniqueArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patient to fetch. */ where: PatientWhereUniqueInput } /** * Patient findUniqueOrThrow */ export type PatientFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patient to fetch. */ where: PatientWhereUniqueInput } /** * Patient findFirst */ export type PatientFindFirstArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patient to fetch. */ where?: PatientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Patients to fetch. */ orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Patients. */ cursor?: PatientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Patients from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Patients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Patients. */ distinct?: PatientScalarFieldEnum | PatientScalarFieldEnum[] } /** * Patient findFirstOrThrow */ export type PatientFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patient to fetch. */ where?: PatientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Patients to fetch. */ orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Patients. */ cursor?: PatientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Patients from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Patients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Patients. */ distinct?: PatientScalarFieldEnum | PatientScalarFieldEnum[] } /** * Patient findMany */ export type PatientFindManyArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter, which Patients to fetch. */ where?: PatientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Patients to fetch. */ orderBy?: PatientOrderByWithRelationInput | PatientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Patients. */ cursor?: PatientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Patients from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Patients. */ skip?: number distinct?: PatientScalarFieldEnum | PatientScalarFieldEnum[] } /** * Patient create */ export type PatientCreateArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * The data needed to create a Patient. */ data: XOR } /** * Patient createMany */ export type PatientCreateManyArgs = { /** * The data used to create many Patients. */ data: PatientCreateManyInput | PatientCreateManyInput[] skipDuplicates?: boolean } /** * Patient createManyAndReturn */ export type PatientCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelectCreateManyAndReturn | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * The data used to create many Patients. */ data: PatientCreateManyInput | PatientCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PatientIncludeCreateManyAndReturn | null } /** * Patient update */ export type PatientUpdateArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * The data needed to update a Patient. */ data: XOR /** * Choose, which Patient to update. */ where: PatientWhereUniqueInput } /** * Patient updateMany */ export type PatientUpdateManyArgs = { /** * The data used to update Patients. */ data: XOR /** * Filter which Patients to update */ where?: PatientWhereInput /** * Limit how many Patients to update. */ limit?: number } /** * Patient updateManyAndReturn */ export type PatientUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelectUpdateManyAndReturn | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * The data used to update Patients. */ data: XOR /** * Filter which Patients to update */ where?: PatientWhereInput /** * Limit how many Patients to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PatientIncludeUpdateManyAndReturn | null } /** * Patient upsert */ export type PatientUpsertArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * The filter to search for the Patient to update in case it exists. */ where: PatientWhereUniqueInput /** * In case the Patient found by the `where` argument doesn't exist, create a new Patient with this data. */ create: XOR /** * In case the Patient was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Patient delete */ export type PatientDeleteArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null /** * Filter which Patient to delete. */ where: PatientWhereUniqueInput } /** * Patient deleteMany */ export type PatientDeleteManyArgs = { /** * Filter which Patients to delete */ where?: PatientWhereInput /** * Limit how many Patients to delete. */ limit?: number } /** * Patient.appointments */ export type Patient$appointmentsArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null where?: AppointmentWhereInput orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] cursor?: AppointmentWhereUniqueInput take?: number skip?: number distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Patient.procedures */ export type Patient$proceduresArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null where?: AppointmentProcedureWhereInput orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] cursor?: AppointmentProcedureWhereUniqueInput take?: number skip?: number distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * Patient.claims */ export type Patient$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Patient.groups */ export type Patient$groupsArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null where?: PdfGroupWhereInput orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] cursor?: PdfGroupWhereUniqueInput take?: number skip?: number distinct?: PdfGroupScalarFieldEnum | PdfGroupScalarFieldEnum[] } /** * Patient.payment */ export type Patient$paymentArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] cursor?: PaymentWhereUniqueInput take?: number skip?: number distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * Patient.communications */ export type Patient$communicationsArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null where?: CommunicationWhereInput orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] cursor?: CommunicationWhereUniqueInput take?: number skip?: number distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * Patient.documents */ export type Patient$documentsArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null where?: PatientDocumentWhereInput orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] cursor?: PatientDocumentWhereUniqueInput take?: number skip?: number distinct?: PatientDocumentScalarFieldEnum | PatientDocumentScalarFieldEnum[] } /** * Patient.conversation */ export type Patient$conversationArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null where?: PatientConversationWhereInput } /** * Patient without action */ export type PatientDefaultArgs = { /** * Select specific fields to fetch from the Patient */ select?: PatientSelect | null /** * Omit specific fields from the Patient */ omit?: PatientOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientInclude | null } /** * Model Appointment */ export type AggregateAppointment = { _count: AppointmentCountAggregateOutputType | null _avg: AppointmentAvgAggregateOutputType | null _sum: AppointmentSumAggregateOutputType | null _min: AppointmentMinAggregateOutputType | null _max: AppointmentMaxAggregateOutputType | null } export type AppointmentAvgAggregateOutputType = { id: number | null patientId: number | null userId: number | null staffId: number | null } export type AppointmentSumAggregateOutputType = { id: number | null patientId: number | null userId: number | null staffId: number | null } export type AppointmentMinAggregateOutputType = { id: number | null patientId: number | null userId: number | null staffId: number | null title: string | null date: Date | null startTime: string | null endTime: string | null type: string | null typeLocked: boolean | null notes: string | null procedureCodeNotes: string | null status: string | null movedByAi: boolean | null createdAt: Date | null eligibilityStatus: $Enums.PatientStatus | null } export type AppointmentMaxAggregateOutputType = { id: number | null patientId: number | null userId: number | null staffId: number | null title: string | null date: Date | null startTime: string | null endTime: string | null type: string | null typeLocked: boolean | null notes: string | null procedureCodeNotes: string | null status: string | null movedByAi: boolean | null createdAt: Date | null eligibilityStatus: $Enums.PatientStatus | null } export type AppointmentCountAggregateOutputType = { id: number patientId: number userId: number staffId: number title: number date: number startTime: number endTime: number type: number typeLocked: number notes: number procedureCodeNotes: number status: number movedByAi: number createdAt: number eligibilityStatus: number _all: number } export type AppointmentAvgAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true } export type AppointmentSumAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true } export type AppointmentMinAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true title?: true date?: true startTime?: true endTime?: true type?: true typeLocked?: true notes?: true procedureCodeNotes?: true status?: true movedByAi?: true createdAt?: true eligibilityStatus?: true } export type AppointmentMaxAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true title?: true date?: true startTime?: true endTime?: true type?: true typeLocked?: true notes?: true procedureCodeNotes?: true status?: true movedByAi?: true createdAt?: true eligibilityStatus?: true } export type AppointmentCountAggregateInputType = { id?: true patientId?: true userId?: true staffId?: true title?: true date?: true startTime?: true endTime?: true type?: true typeLocked?: true notes?: true procedureCodeNotes?: true status?: true movedByAi?: true createdAt?: true eligibilityStatus?: true _all?: true } export type AppointmentAggregateArgs = { /** * Filter which Appointment to aggregate. */ where?: AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Appointments **/ _count?: true | AppointmentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AppointmentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AppointmentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppointmentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppointmentMaxAggregateInputType } export type GetAppointmentAggregateType = { [P in keyof T & keyof AggregateAppointment]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AppointmentGroupByArgs = { where?: AppointmentWhereInput orderBy?: AppointmentOrderByWithAggregationInput | AppointmentOrderByWithAggregationInput[] by: AppointmentScalarFieldEnum[] | AppointmentScalarFieldEnum having?: AppointmentScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppointmentCountAggregateInputType | true _avg?: AppointmentAvgAggregateInputType _sum?: AppointmentSumAggregateInputType _min?: AppointmentMinAggregateInputType _max?: AppointmentMaxAggregateInputType } export type AppointmentGroupByOutputType = { id: number patientId: number userId: number staffId: number title: string date: Date startTime: string endTime: string type: string typeLocked: boolean notes: string | null procedureCodeNotes: string | null status: string movedByAi: boolean createdAt: Date eligibilityStatus: $Enums.PatientStatus _count: AppointmentCountAggregateOutputType | null _avg: AppointmentAvgAggregateOutputType | null _sum: AppointmentSumAggregateOutputType | null _min: AppointmentMinAggregateOutputType | null _max: AppointmentMaxAggregateOutputType | null } type GetAppointmentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AppointmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AppointmentSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean staffId?: boolean title?: boolean date?: boolean startTime?: boolean endTime?: boolean type?: boolean typeLocked?: boolean notes?: boolean procedureCodeNotes?: boolean status?: boolean movedByAi?: boolean createdAt?: boolean eligibilityStatus?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs procedures?: boolean | Appointment$proceduresArgs claims?: boolean | Appointment$claimsArgs files?: boolean | Appointment$filesArgs _count?: boolean | AppointmentCountOutputTypeDefaultArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean staffId?: boolean title?: boolean date?: boolean startTime?: boolean endTime?: boolean type?: boolean typeLocked?: boolean notes?: boolean procedureCodeNotes?: boolean status?: boolean movedByAi?: boolean createdAt?: boolean eligibilityStatus?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean staffId?: boolean title?: boolean date?: boolean startTime?: boolean endTime?: boolean type?: boolean typeLocked?: boolean notes?: boolean procedureCodeNotes?: boolean status?: boolean movedByAi?: boolean createdAt?: boolean eligibilityStatus?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs }, ExtArgs["result"]["appointment"]> export type AppointmentSelectScalar = { id?: boolean patientId?: boolean userId?: boolean staffId?: boolean title?: boolean date?: boolean startTime?: boolean endTime?: boolean type?: boolean typeLocked?: boolean notes?: boolean procedureCodeNotes?: boolean status?: boolean movedByAi?: boolean createdAt?: boolean eligibilityStatus?: boolean } export type AppointmentOmit = $Extensions.GetOmit<"id" | "patientId" | "userId" | "staffId" | "title" | "date" | "startTime" | "endTime" | "type" | "typeLocked" | "notes" | "procedureCodeNotes" | "status" | "movedByAi" | "createdAt" | "eligibilityStatus", ExtArgs["result"]["appointment"]> export type AppointmentInclude = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs procedures?: boolean | Appointment$proceduresArgs claims?: boolean | Appointment$claimsArgs files?: boolean | Appointment$filesArgs _count?: boolean | AppointmentCountOutputTypeDefaultArgs } export type AppointmentIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs } export type AppointmentIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs staff?: boolean | Appointment$staffArgs } export type $AppointmentPayload = { name: "Appointment" objects: { patient: Prisma.$PatientPayload user: Prisma.$UserPayload staff: Prisma.$StaffPayload | null procedures: Prisma.$AppointmentProcedurePayload[] claims: Prisma.$ClaimPayload[] files: Prisma.$AppointmentFilePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number userId: number staffId: number title: string date: Date startTime: string endTime: string type: string typeLocked: boolean notes: string | null procedureCodeNotes: string | null status: string movedByAi: boolean createdAt: Date eligibilityStatus: $Enums.PatientStatus }, ExtArgs["result"]["appointment"]> composites: {} } type AppointmentGetPayload = $Result.GetResult type AppointmentCountArgs = Omit & { select?: AppointmentCountAggregateInputType | true } export interface AppointmentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Appointment'], meta: { name: 'Appointment' } } /** * Find zero or one Appointment that matches the filter. * @param {AppointmentFindUniqueArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Appointment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppointmentFindUniqueOrThrowArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Appointment 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 {AppointmentFindFirstArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Appointment 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 {AppointmentFindFirstOrThrowArgs} args - Arguments to find a Appointment * @example * // Get one Appointment * const appointment = await prisma.appointment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Appointments 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 {AppointmentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Appointments * const appointments = await prisma.appointment.findMany() * * // Get first 10 Appointments * const appointments = await prisma.appointment.findMany({ take: 10 }) * * // Only select the `id` * const appointmentWithIdOnly = await prisma.appointment.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Appointment. * @param {AppointmentCreateArgs} args - Arguments to create a Appointment. * @example * // Create one Appointment * const Appointment = await prisma.appointment.create({ * data: { * // ... data to create a Appointment * } * }) * */ create(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Appointments. * @param {AppointmentCreateManyArgs} args - Arguments to create many Appointments. * @example * // Create many Appointments * const appointment = await prisma.appointment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Appointments and returns the data saved in the database. * @param {AppointmentCreateManyAndReturnArgs} args - Arguments to create many Appointments. * @example * // Create many Appointments * const appointment = await prisma.appointment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Appointments and only return the `id` * const appointmentWithIdOnly = await prisma.appointment.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Appointment. * @param {AppointmentDeleteArgs} args - Arguments to delete one Appointment. * @example * // Delete one Appointment * const Appointment = await prisma.appointment.delete({ * where: { * // ... filter to delete one Appointment * } * }) * */ delete(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Appointment. * @param {AppointmentUpdateArgs} args - Arguments to update one Appointment. * @example * // Update one Appointment * const appointment = await prisma.appointment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Appointments. * @param {AppointmentDeleteManyArgs} args - Arguments to filter Appointments to delete. * @example * // Delete a few Appointments * const { count } = await prisma.appointment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Appointments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Appointments * const appointment = await prisma.appointment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Appointments and returns the data updated in the database. * @param {AppointmentUpdateManyAndReturnArgs} args - Arguments to update many Appointments. * @example * // Update many Appointments * const appointment = await prisma.appointment.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Appointments and only return the `id` * const appointmentWithIdOnly = await prisma.appointment.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Appointment. * @param {AppointmentUpsertArgs} args - Arguments to update or create a Appointment. * @example * // Update or create a Appointment * const appointment = await prisma.appointment.upsert({ * create: { * // ... data to create a Appointment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Appointment we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AppointmentClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Appointments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentCountArgs} args - Arguments to filter Appointments to count. * @example * // Count the number of Appointments * const count = await prisma.appointment.count({ * where: { * // ... the filter for the Appointments 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 Appointment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentAggregateArgs} 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 Appointment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentGroupByArgs} 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 AppointmentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AppointmentGroupByArgs['orderBy'] } : { orderBy?: AppointmentGroupByArgs['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 ? GetAppointmentGroupByPayload : Prisma.PrismaPromise /** * Fields of the Appointment model */ readonly fields: AppointmentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Appointment. * 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__AppointmentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> staff = {}>(args?: Subset>): Prisma__StaffClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> procedures = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> files = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 Appointment model */ interface AppointmentFieldRefs { readonly id: FieldRef<"Appointment", 'Int'> readonly patientId: FieldRef<"Appointment", 'Int'> readonly userId: FieldRef<"Appointment", 'Int'> readonly staffId: FieldRef<"Appointment", 'Int'> readonly title: FieldRef<"Appointment", 'String'> readonly date: FieldRef<"Appointment", 'DateTime'> readonly startTime: FieldRef<"Appointment", 'String'> readonly endTime: FieldRef<"Appointment", 'String'> readonly type: FieldRef<"Appointment", 'String'> readonly typeLocked: FieldRef<"Appointment", 'Boolean'> readonly notes: FieldRef<"Appointment", 'String'> readonly procedureCodeNotes: FieldRef<"Appointment", 'String'> readonly status: FieldRef<"Appointment", 'String'> readonly movedByAi: FieldRef<"Appointment", 'Boolean'> readonly createdAt: FieldRef<"Appointment", 'DateTime'> readonly eligibilityStatus: FieldRef<"Appointment", 'PatientStatus'> } // Custom InputTypes /** * Appointment findUnique */ export type AppointmentFindUniqueArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where: AppointmentWhereUniqueInput } /** * Appointment findUniqueOrThrow */ export type AppointmentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where: AppointmentWhereUniqueInput } /** * Appointment findFirst */ export type AppointmentFindFirstArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where?: AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Appointments. */ cursor?: AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Appointments. */ distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Appointment findFirstOrThrow */ export type AppointmentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointment to fetch. */ where?: AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Appointments. */ cursor?: AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Appointments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Appointments. */ distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Appointment findMany */ export type AppointmentFindManyArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter, which Appointments to fetch. */ where?: AppointmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Appointments to fetch. */ orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Appointments. */ cursor?: AppointmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Appointments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Appointments. */ skip?: number distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Appointment create */ export type AppointmentCreateArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * The data needed to create a Appointment. */ data: XOR } /** * Appointment createMany */ export type AppointmentCreateManyArgs = { /** * The data used to create many Appointments. */ data: AppointmentCreateManyInput | AppointmentCreateManyInput[] skipDuplicates?: boolean } /** * Appointment createManyAndReturn */ export type AppointmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelectCreateManyAndReturn | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * The data used to create many Appointments. */ data: AppointmentCreateManyInput | AppointmentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AppointmentIncludeCreateManyAndReturn | null } /** * Appointment update */ export type AppointmentUpdateArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * The data needed to update a Appointment. */ data: XOR /** * Choose, which Appointment to update. */ where: AppointmentWhereUniqueInput } /** * Appointment updateMany */ export type AppointmentUpdateManyArgs = { /** * The data used to update Appointments. */ data: XOR /** * Filter which Appointments to update */ where?: AppointmentWhereInput /** * Limit how many Appointments to update. */ limit?: number } /** * Appointment updateManyAndReturn */ export type AppointmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelectUpdateManyAndReturn | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * The data used to update Appointments. */ data: XOR /** * Filter which Appointments to update */ where?: AppointmentWhereInput /** * Limit how many Appointments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AppointmentIncludeUpdateManyAndReturn | null } /** * Appointment upsert */ export type AppointmentUpsertArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * The filter to search for the Appointment to update in case it exists. */ where: AppointmentWhereUniqueInput /** * In case the Appointment found by the `where` argument doesn't exist, create a new Appointment with this data. */ create: XOR /** * In case the Appointment was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Appointment delete */ export type AppointmentDeleteArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null /** * Filter which Appointment to delete. */ where: AppointmentWhereUniqueInput } /** * Appointment deleteMany */ export type AppointmentDeleteManyArgs = { /** * Filter which Appointments to delete */ where?: AppointmentWhereInput /** * Limit how many Appointments to delete. */ limit?: number } /** * Appointment.staff */ export type Appointment$staffArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null where?: StaffWhereInput } /** * Appointment.procedures */ export type Appointment$proceduresArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null where?: AppointmentProcedureWhereInput orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] cursor?: AppointmentProcedureWhereUniqueInput take?: number skip?: number distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * Appointment.claims */ export type Appointment$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Appointment.files */ export type Appointment$filesArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null where?: AppointmentFileWhereInput orderBy?: AppointmentFileOrderByWithRelationInput | AppointmentFileOrderByWithRelationInput[] cursor?: AppointmentFileWhereUniqueInput take?: number skip?: number distinct?: AppointmentFileScalarFieldEnum | AppointmentFileScalarFieldEnum[] } /** * Appointment without action */ export type AppointmentDefaultArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null } /** * Model AppointmentFile */ export type AggregateAppointmentFile = { _count: AppointmentFileCountAggregateOutputType | null _avg: AppointmentFileAvgAggregateOutputType | null _sum: AppointmentFileSumAggregateOutputType | null _min: AppointmentFileMinAggregateOutputType | null _max: AppointmentFileMaxAggregateOutputType | null } export type AppointmentFileAvgAggregateOutputType = { id: number | null appointmentId: number | null } export type AppointmentFileSumAggregateOutputType = { id: number | null appointmentId: number | null } export type AppointmentFileMinAggregateOutputType = { id: number | null appointmentId: number | null filename: string | null mimeType: string | null filePath: string | null } export type AppointmentFileMaxAggregateOutputType = { id: number | null appointmentId: number | null filename: string | null mimeType: string | null filePath: string | null } export type AppointmentFileCountAggregateOutputType = { id: number appointmentId: number filename: number mimeType: number filePath: number _all: number } export type AppointmentFileAvgAggregateInputType = { id?: true appointmentId?: true } export type AppointmentFileSumAggregateInputType = { id?: true appointmentId?: true } export type AppointmentFileMinAggregateInputType = { id?: true appointmentId?: true filename?: true mimeType?: true filePath?: true } export type AppointmentFileMaxAggregateInputType = { id?: true appointmentId?: true filename?: true mimeType?: true filePath?: true } export type AppointmentFileCountAggregateInputType = { id?: true appointmentId?: true filename?: true mimeType?: true filePath?: true _all?: true } export type AppointmentFileAggregateArgs = { /** * Filter which AppointmentFile to aggregate. */ where?: AppointmentFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentFiles to fetch. */ orderBy?: AppointmentFileOrderByWithRelationInput | AppointmentFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AppointmentFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AppointmentFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AppointmentFiles **/ _count?: true | AppointmentFileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AppointmentFileAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AppointmentFileSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppointmentFileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppointmentFileMaxAggregateInputType } export type GetAppointmentFileAggregateType = { [P in keyof T & keyof AggregateAppointmentFile]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AppointmentFileGroupByArgs = { where?: AppointmentFileWhereInput orderBy?: AppointmentFileOrderByWithAggregationInput | AppointmentFileOrderByWithAggregationInput[] by: AppointmentFileScalarFieldEnum[] | AppointmentFileScalarFieldEnum having?: AppointmentFileScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppointmentFileCountAggregateInputType | true _avg?: AppointmentFileAvgAggregateInputType _sum?: AppointmentFileSumAggregateInputType _min?: AppointmentFileMinAggregateInputType _max?: AppointmentFileMaxAggregateInputType } export type AppointmentFileGroupByOutputType = { id: number appointmentId: number filename: string mimeType: string | null filePath: string | null _count: AppointmentFileCountAggregateOutputType | null _avg: AppointmentFileAvgAggregateOutputType | null _sum: AppointmentFileSumAggregateOutputType | null _min: AppointmentFileMinAggregateOutputType | null _max: AppointmentFileMaxAggregateOutputType | null } type GetAppointmentFileGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AppointmentFileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AppointmentFileSelect = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean filename?: boolean mimeType?: boolean filePath?: boolean appointment?: boolean | AppointmentDefaultArgs }, ExtArgs["result"]["appointmentFile"]> export type AppointmentFileSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean filename?: boolean mimeType?: boolean filePath?: boolean appointment?: boolean | AppointmentDefaultArgs }, ExtArgs["result"]["appointmentFile"]> export type AppointmentFileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean filename?: boolean mimeType?: boolean filePath?: boolean appointment?: boolean | AppointmentDefaultArgs }, ExtArgs["result"]["appointmentFile"]> export type AppointmentFileSelectScalar = { id?: boolean appointmentId?: boolean filename?: boolean mimeType?: boolean filePath?: boolean } export type AppointmentFileOmit = $Extensions.GetOmit<"id" | "appointmentId" | "filename" | "mimeType" | "filePath", ExtArgs["result"]["appointmentFile"]> export type AppointmentFileInclude = { appointment?: boolean | AppointmentDefaultArgs } export type AppointmentFileIncludeCreateManyAndReturn = { appointment?: boolean | AppointmentDefaultArgs } export type AppointmentFileIncludeUpdateManyAndReturn = { appointment?: boolean | AppointmentDefaultArgs } export type $AppointmentFilePayload = { name: "AppointmentFile" objects: { appointment: Prisma.$AppointmentPayload } scalars: $Extensions.GetPayloadResult<{ id: number appointmentId: number filename: string mimeType: string | null filePath: string | null }, ExtArgs["result"]["appointmentFile"]> composites: {} } type AppointmentFileGetPayload = $Result.GetResult type AppointmentFileCountArgs = Omit & { select?: AppointmentFileCountAggregateInputType | true } export interface AppointmentFileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AppointmentFile'], meta: { name: 'AppointmentFile' } } /** * Find zero or one AppointmentFile that matches the filter. * @param {AppointmentFileFindUniqueArgs} args - Arguments to find a AppointmentFile * @example * // Get one AppointmentFile * const appointmentFile = await prisma.appointmentFile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AppointmentFileClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AppointmentFile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppointmentFileFindUniqueOrThrowArgs} args - Arguments to find a AppointmentFile * @example * // Get one AppointmentFile * const appointmentFile = await prisma.appointmentFile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AppointmentFileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AppointmentFile 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 {AppointmentFileFindFirstArgs} args - Arguments to find a AppointmentFile * @example * // Get one AppointmentFile * const appointmentFile = await prisma.appointmentFile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AppointmentFileClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AppointmentFile 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 {AppointmentFileFindFirstOrThrowArgs} args - Arguments to find a AppointmentFile * @example * // Get one AppointmentFile * const appointmentFile = await prisma.appointmentFile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AppointmentFileClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AppointmentFiles 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 {AppointmentFileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AppointmentFiles * const appointmentFiles = await prisma.appointmentFile.findMany() * * // Get first 10 AppointmentFiles * const appointmentFiles = await prisma.appointmentFile.findMany({ take: 10 }) * * // Only select the `id` * const appointmentFileWithIdOnly = await prisma.appointmentFile.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AppointmentFile. * @param {AppointmentFileCreateArgs} args - Arguments to create a AppointmentFile. * @example * // Create one AppointmentFile * const AppointmentFile = await prisma.appointmentFile.create({ * data: { * // ... data to create a AppointmentFile * } * }) * */ create(args: SelectSubset>): Prisma__AppointmentFileClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AppointmentFiles. * @param {AppointmentFileCreateManyArgs} args - Arguments to create many AppointmentFiles. * @example * // Create many AppointmentFiles * const appointmentFile = await prisma.appointmentFile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AppointmentFiles and returns the data saved in the database. * @param {AppointmentFileCreateManyAndReturnArgs} args - Arguments to create many AppointmentFiles. * @example * // Create many AppointmentFiles * const appointmentFile = await prisma.appointmentFile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AppointmentFiles and only return the `id` * const appointmentFileWithIdOnly = await prisma.appointmentFile.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AppointmentFile. * @param {AppointmentFileDeleteArgs} args - Arguments to delete one AppointmentFile. * @example * // Delete one AppointmentFile * const AppointmentFile = await prisma.appointmentFile.delete({ * where: { * // ... filter to delete one AppointmentFile * } * }) * */ delete(args: SelectSubset>): Prisma__AppointmentFileClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AppointmentFile. * @param {AppointmentFileUpdateArgs} args - Arguments to update one AppointmentFile. * @example * // Update one AppointmentFile * const appointmentFile = await prisma.appointmentFile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AppointmentFileClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AppointmentFiles. * @param {AppointmentFileDeleteManyArgs} args - Arguments to filter AppointmentFiles to delete. * @example * // Delete a few AppointmentFiles * const { count } = await prisma.appointmentFile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppointmentFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentFileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AppointmentFiles * const appointmentFile = await prisma.appointmentFile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppointmentFiles and returns the data updated in the database. * @param {AppointmentFileUpdateManyAndReturnArgs} args - Arguments to update many AppointmentFiles. * @example * // Update many AppointmentFiles * const appointmentFile = await prisma.appointmentFile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AppointmentFiles and only return the `id` * const appointmentFileWithIdOnly = await prisma.appointmentFile.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AppointmentFile. * @param {AppointmentFileUpsertArgs} args - Arguments to update or create a AppointmentFile. * @example * // Update or create a AppointmentFile * const appointmentFile = await prisma.appointmentFile.upsert({ * create: { * // ... data to create a AppointmentFile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AppointmentFile we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AppointmentFileClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AppointmentFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentFileCountArgs} args - Arguments to filter AppointmentFiles to count. * @example * // Count the number of AppointmentFiles * const count = await prisma.appointmentFile.count({ * where: { * // ... the filter for the AppointmentFiles 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 AppointmentFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentFileAggregateArgs} 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 AppointmentFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentFileGroupByArgs} 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 AppointmentFileGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AppointmentFileGroupByArgs['orderBy'] } : { orderBy?: AppointmentFileGroupByArgs['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 ? GetAppointmentFileGroupByPayload : Prisma.PrismaPromise /** * Fields of the AppointmentFile model */ readonly fields: AppointmentFileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AppointmentFile. * 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__AppointmentFileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" appointment = {}>(args?: Subset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 AppointmentFile model */ interface AppointmentFileFieldRefs { readonly id: FieldRef<"AppointmentFile", 'Int'> readonly appointmentId: FieldRef<"AppointmentFile", 'Int'> readonly filename: FieldRef<"AppointmentFile", 'String'> readonly mimeType: FieldRef<"AppointmentFile", 'String'> readonly filePath: FieldRef<"AppointmentFile", 'String'> } // Custom InputTypes /** * AppointmentFile findUnique */ export type AppointmentFileFindUniqueArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * Filter, which AppointmentFile to fetch. */ where: AppointmentFileWhereUniqueInput } /** * AppointmentFile findUniqueOrThrow */ export type AppointmentFileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * Filter, which AppointmentFile to fetch. */ where: AppointmentFileWhereUniqueInput } /** * AppointmentFile findFirst */ export type AppointmentFileFindFirstArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * Filter, which AppointmentFile to fetch. */ where?: AppointmentFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentFiles to fetch. */ orderBy?: AppointmentFileOrderByWithRelationInput | AppointmentFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppointmentFiles. */ cursor?: AppointmentFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AppointmentFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppointmentFiles. */ distinct?: AppointmentFileScalarFieldEnum | AppointmentFileScalarFieldEnum[] } /** * AppointmentFile findFirstOrThrow */ export type AppointmentFileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * Filter, which AppointmentFile to fetch. */ where?: AppointmentFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentFiles to fetch. */ orderBy?: AppointmentFileOrderByWithRelationInput | AppointmentFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppointmentFiles. */ cursor?: AppointmentFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AppointmentFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppointmentFiles. */ distinct?: AppointmentFileScalarFieldEnum | AppointmentFileScalarFieldEnum[] } /** * AppointmentFile findMany */ export type AppointmentFileFindManyArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * Filter, which AppointmentFiles to fetch. */ where?: AppointmentFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentFiles to fetch. */ orderBy?: AppointmentFileOrderByWithRelationInput | AppointmentFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AppointmentFiles. */ cursor?: AppointmentFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AppointmentFiles. */ skip?: number distinct?: AppointmentFileScalarFieldEnum | AppointmentFileScalarFieldEnum[] } /** * AppointmentFile create */ export type AppointmentFileCreateArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * The data needed to create a AppointmentFile. */ data: XOR } /** * AppointmentFile createMany */ export type AppointmentFileCreateManyArgs = { /** * The data used to create many AppointmentFiles. */ data: AppointmentFileCreateManyInput | AppointmentFileCreateManyInput[] skipDuplicates?: boolean } /** * AppointmentFile createManyAndReturn */ export type AppointmentFileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelectCreateManyAndReturn | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * The data used to create many AppointmentFiles. */ data: AppointmentFileCreateManyInput | AppointmentFileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileIncludeCreateManyAndReturn | null } /** * AppointmentFile update */ export type AppointmentFileUpdateArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * The data needed to update a AppointmentFile. */ data: XOR /** * Choose, which AppointmentFile to update. */ where: AppointmentFileWhereUniqueInput } /** * AppointmentFile updateMany */ export type AppointmentFileUpdateManyArgs = { /** * The data used to update AppointmentFiles. */ data: XOR /** * Filter which AppointmentFiles to update */ where?: AppointmentFileWhereInput /** * Limit how many AppointmentFiles to update. */ limit?: number } /** * AppointmentFile updateManyAndReturn */ export type AppointmentFileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelectUpdateManyAndReturn | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * The data used to update AppointmentFiles. */ data: XOR /** * Filter which AppointmentFiles to update */ where?: AppointmentFileWhereInput /** * Limit how many AppointmentFiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileIncludeUpdateManyAndReturn | null } /** * AppointmentFile upsert */ export type AppointmentFileUpsertArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * The filter to search for the AppointmentFile to update in case it exists. */ where: AppointmentFileWhereUniqueInput /** * In case the AppointmentFile found by the `where` argument doesn't exist, create a new AppointmentFile with this data. */ create: XOR /** * In case the AppointmentFile was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AppointmentFile delete */ export type AppointmentFileDeleteArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null /** * Filter which AppointmentFile to delete. */ where: AppointmentFileWhereUniqueInput } /** * AppointmentFile deleteMany */ export type AppointmentFileDeleteManyArgs = { /** * Filter which AppointmentFiles to delete */ where?: AppointmentFileWhereInput /** * Limit how many AppointmentFiles to delete. */ limit?: number } /** * AppointmentFile without action */ export type AppointmentFileDefaultArgs = { /** * Select specific fields to fetch from the AppointmentFile */ select?: AppointmentFileSelect | null /** * Omit specific fields from the AppointmentFile */ omit?: AppointmentFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentFileInclude | null } /** * Model Staff */ export type AggregateStaff = { _count: StaffCountAggregateOutputType | null _avg: StaffAvgAggregateOutputType | null _sum: StaffSumAggregateOutputType | null _min: StaffMinAggregateOutputType | null _max: StaffMaxAggregateOutputType | null } export type StaffAvgAggregateOutputType = { id: number | null userId: number | null } export type StaffSumAggregateOutputType = { id: number | null userId: number | null } export type StaffMinAggregateOutputType = { id: number | null userId: number | null name: string | null email: string | null role: string | null phone: string | null createdAt: Date | null } export type StaffMaxAggregateOutputType = { id: number | null userId: number | null name: string | null email: string | null role: string | null phone: string | null createdAt: Date | null } export type StaffCountAggregateOutputType = { id: number userId: number name: number email: number role: number phone: number createdAt: number _all: number } export type StaffAvgAggregateInputType = { id?: true userId?: true } export type StaffSumAggregateInputType = { id?: true userId?: true } export type StaffMinAggregateInputType = { id?: true userId?: true name?: true email?: true role?: true phone?: true createdAt?: true } export type StaffMaxAggregateInputType = { id?: true userId?: true name?: true email?: true role?: true phone?: true createdAt?: true } export type StaffCountAggregateInputType = { id?: true userId?: true name?: true email?: true role?: true phone?: true createdAt?: true _all?: true } export type StaffAggregateArgs = { /** * Filter which Staff to aggregate. */ where?: StaffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Staff to fetch. */ orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StaffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Staff from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Staff **/ _count?: true | StaffCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StaffAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StaffSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StaffMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StaffMaxAggregateInputType } export type GetStaffAggregateType = { [P in keyof T & keyof AggregateStaff]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StaffGroupByArgs = { where?: StaffWhereInput orderBy?: StaffOrderByWithAggregationInput | StaffOrderByWithAggregationInput[] by: StaffScalarFieldEnum[] | StaffScalarFieldEnum having?: StaffScalarWhereWithAggregatesInput take?: number skip?: number _count?: StaffCountAggregateInputType | true _avg?: StaffAvgAggregateInputType _sum?: StaffSumAggregateInputType _min?: StaffMinAggregateInputType _max?: StaffMaxAggregateInputType } export type StaffGroupByOutputType = { id: number userId: number name: string email: string | null role: string phone: string | null createdAt: Date _count: StaffCountAggregateOutputType | null _avg: StaffAvgAggregateOutputType | null _sum: StaffSumAggregateOutputType | null _min: StaffMinAggregateOutputType | null _max: StaffMaxAggregateOutputType | null } type GetStaffGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StaffGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StaffSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean email?: boolean role?: boolean phone?: boolean createdAt?: boolean user?: boolean | Staff$userArgs appointments?: boolean | Staff$appointmentsArgs claims?: boolean | Staff$claimsArgs _count?: boolean | StaffCountOutputTypeDefaultArgs }, ExtArgs["result"]["staff"]> export type StaffSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean email?: boolean role?: boolean phone?: boolean createdAt?: boolean user?: boolean | Staff$userArgs }, ExtArgs["result"]["staff"]> export type StaffSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean email?: boolean role?: boolean phone?: boolean createdAt?: boolean user?: boolean | Staff$userArgs }, ExtArgs["result"]["staff"]> export type StaffSelectScalar = { id?: boolean userId?: boolean name?: boolean email?: boolean role?: boolean phone?: boolean createdAt?: boolean } export type StaffOmit = $Extensions.GetOmit<"id" | "userId" | "name" | "email" | "role" | "phone" | "createdAt", ExtArgs["result"]["staff"]> export type StaffInclude = { user?: boolean | Staff$userArgs appointments?: boolean | Staff$appointmentsArgs claims?: boolean | Staff$claimsArgs _count?: boolean | StaffCountOutputTypeDefaultArgs } export type StaffIncludeCreateManyAndReturn = { user?: boolean | Staff$userArgs } export type StaffIncludeUpdateManyAndReturn = { user?: boolean | Staff$userArgs } export type $StaffPayload = { name: "Staff" objects: { user: Prisma.$UserPayload | null appointments: Prisma.$AppointmentPayload[] claims: Prisma.$ClaimPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: number name: string email: string | null role: string phone: string | null createdAt: Date }, ExtArgs["result"]["staff"]> composites: {} } type StaffGetPayload = $Result.GetResult type StaffCountArgs = Omit & { select?: StaffCountAggregateInputType | true } export interface StaffDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Staff'], meta: { name: 'Staff' } } /** * Find zero or one Staff that matches the filter. * @param {StaffFindUniqueArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Staff that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StaffFindUniqueOrThrowArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Staff 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 {StaffFindFirstArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Staff 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 {StaffFindFirstOrThrowArgs} args - Arguments to find a Staff * @example * // Get one Staff * const staff = await prisma.staff.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Staff 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 {StaffFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Staff * const staff = await prisma.staff.findMany() * * // Get first 10 Staff * const staff = await prisma.staff.findMany({ take: 10 }) * * // Only select the `id` * const staffWithIdOnly = await prisma.staff.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Staff. * @param {StaffCreateArgs} args - Arguments to create a Staff. * @example * // Create one Staff * const Staff = await prisma.staff.create({ * data: { * // ... data to create a Staff * } * }) * */ create(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Staff. * @param {StaffCreateManyArgs} args - Arguments to create many Staff. * @example * // Create many Staff * const staff = await prisma.staff.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Staff and returns the data saved in the database. * @param {StaffCreateManyAndReturnArgs} args - Arguments to create many Staff. * @example * // Create many Staff * const staff = await prisma.staff.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Staff and only return the `id` * const staffWithIdOnly = await prisma.staff.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Staff. * @param {StaffDeleteArgs} args - Arguments to delete one Staff. * @example * // Delete one Staff * const Staff = await prisma.staff.delete({ * where: { * // ... filter to delete one Staff * } * }) * */ delete(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Staff. * @param {StaffUpdateArgs} args - Arguments to update one Staff. * @example * // Update one Staff * const staff = await prisma.staff.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Staff. * @param {StaffDeleteManyArgs} args - Arguments to filter Staff to delete. * @example * // Delete a few Staff * const { count } = await prisma.staff.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Staff * const staff = await prisma.staff.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Staff and returns the data updated in the database. * @param {StaffUpdateManyAndReturnArgs} args - Arguments to update many Staff. * @example * // Update many Staff * const staff = await prisma.staff.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Staff and only return the `id` * const staffWithIdOnly = await prisma.staff.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Staff. * @param {StaffUpsertArgs} args - Arguments to update or create a Staff. * @example * // Update or create a Staff * const staff = await prisma.staff.upsert({ * create: { * // ... data to create a Staff * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Staff we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StaffClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffCountArgs} args - Arguments to filter Staff to count. * @example * // Count the number of Staff * const count = await prisma.staff.count({ * where: { * // ... the filter for the Staff 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 Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffAggregateArgs} 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 Staff. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StaffGroupByArgs} 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 StaffGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StaffGroupByArgs['orderBy'] } : { orderBy?: StaffGroupByArgs['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 ? GetStaffGroupByPayload : Prisma.PrismaPromise /** * Fields of the Staff model */ readonly fields: StaffFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Staff. * 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__StaffClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> appointments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claims = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 Staff model */ interface StaffFieldRefs { readonly id: FieldRef<"Staff", 'Int'> readonly userId: FieldRef<"Staff", 'Int'> readonly name: FieldRef<"Staff", 'String'> readonly email: FieldRef<"Staff", 'String'> readonly role: FieldRef<"Staff", 'String'> readonly phone: FieldRef<"Staff", 'String'> readonly createdAt: FieldRef<"Staff", 'DateTime'> } // Custom InputTypes /** * Staff findUnique */ export type StaffFindUniqueArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where: StaffWhereUniqueInput } /** * Staff findUniqueOrThrow */ export type StaffFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where: StaffWhereUniqueInput } /** * Staff findFirst */ export type StaffFindFirstArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where?: StaffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Staff to fetch. */ orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Staff. */ cursor?: StaffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Staff from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Staff. */ distinct?: StaffScalarFieldEnum | StaffScalarFieldEnum[] } /** * Staff findFirstOrThrow */ export type StaffFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where?: StaffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Staff to fetch. */ orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Staff. */ cursor?: StaffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Staff from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Staff. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Staff. */ distinct?: StaffScalarFieldEnum | StaffScalarFieldEnum[] } /** * Staff findMany */ export type StaffFindManyArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter, which Staff to fetch. */ where?: StaffWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Staff to fetch. */ orderBy?: StaffOrderByWithRelationInput | StaffOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Staff. */ cursor?: StaffWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Staff from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Staff. */ skip?: number distinct?: StaffScalarFieldEnum | StaffScalarFieldEnum[] } /** * Staff create */ export type StaffCreateArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * The data needed to create a Staff. */ data: XOR } /** * Staff createMany */ export type StaffCreateManyArgs = { /** * The data used to create many Staff. */ data: StaffCreateManyInput | StaffCreateManyInput[] skipDuplicates?: boolean } /** * Staff createManyAndReturn */ export type StaffCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelectCreateManyAndReturn | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * The data used to create many Staff. */ data: StaffCreateManyInput | StaffCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: StaffIncludeCreateManyAndReturn | null } /** * Staff update */ export type StaffUpdateArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * The data needed to update a Staff. */ data: XOR /** * Choose, which Staff to update. */ where: StaffWhereUniqueInput } /** * Staff updateMany */ export type StaffUpdateManyArgs = { /** * The data used to update Staff. */ data: XOR /** * Filter which Staff to update */ where?: StaffWhereInput /** * Limit how many Staff to update. */ limit?: number } /** * Staff updateManyAndReturn */ export type StaffUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelectUpdateManyAndReturn | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * The data used to update Staff. */ data: XOR /** * Filter which Staff to update */ where?: StaffWhereInput /** * Limit how many Staff to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: StaffIncludeUpdateManyAndReturn | null } /** * Staff upsert */ export type StaffUpsertArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * The filter to search for the Staff to update in case it exists. */ where: StaffWhereUniqueInput /** * In case the Staff found by the `where` argument doesn't exist, create a new Staff with this data. */ create: XOR /** * In case the Staff was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Staff delete */ export type StaffDeleteArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null /** * Filter which Staff to delete. */ where: StaffWhereUniqueInput } /** * Staff deleteMany */ export type StaffDeleteManyArgs = { /** * Filter which Staff to delete */ where?: StaffWhereInput /** * Limit how many Staff to delete. */ limit?: number } /** * Staff.user */ export type Staff$userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Staff.appointments */ export type Staff$appointmentsArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null where?: AppointmentWhereInput orderBy?: AppointmentOrderByWithRelationInput | AppointmentOrderByWithRelationInput[] cursor?: AppointmentWhereUniqueInput take?: number skip?: number distinct?: AppointmentScalarFieldEnum | AppointmentScalarFieldEnum[] } /** * Staff.claims */ export type Staff$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Staff without action */ export type StaffDefaultArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null } /** * Model NpiProvider */ export type AggregateNpiProvider = { _count: NpiProviderCountAggregateOutputType | null _avg: NpiProviderAvgAggregateOutputType | null _sum: NpiProviderSumAggregateOutputType | null _min: NpiProviderMinAggregateOutputType | null _max: NpiProviderMaxAggregateOutputType | null } export type NpiProviderAvgAggregateOutputType = { id: number | null userId: number | null } export type NpiProviderSumAggregateOutputType = { id: number | null userId: number | null } export type NpiProviderMinAggregateOutputType = { id: number | null userId: number | null npiNumber: string | null providerName: string | null createdAt: Date | null } export type NpiProviderMaxAggregateOutputType = { id: number | null userId: number | null npiNumber: string | null providerName: string | null createdAt: Date | null } export type NpiProviderCountAggregateOutputType = { id: number userId: number npiNumber: number providerName: number createdAt: number _all: number } export type NpiProviderAvgAggregateInputType = { id?: true userId?: true } export type NpiProviderSumAggregateInputType = { id?: true userId?: true } export type NpiProviderMinAggregateInputType = { id?: true userId?: true npiNumber?: true providerName?: true createdAt?: true } export type NpiProviderMaxAggregateInputType = { id?: true userId?: true npiNumber?: true providerName?: true createdAt?: true } export type NpiProviderCountAggregateInputType = { id?: true userId?: true npiNumber?: true providerName?: true createdAt?: true _all?: true } export type NpiProviderAggregateArgs = { /** * Filter which NpiProvider to aggregate. */ where?: NpiProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NpiProviders to fetch. */ orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: NpiProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NpiProviders from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NpiProviders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned NpiProviders **/ _count?: true | NpiProviderCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: NpiProviderAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: NpiProviderSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NpiProviderMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NpiProviderMaxAggregateInputType } export type GetNpiProviderAggregateType = { [P in keyof T & keyof AggregateNpiProvider]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type NpiProviderGroupByArgs = { where?: NpiProviderWhereInput orderBy?: NpiProviderOrderByWithAggregationInput | NpiProviderOrderByWithAggregationInput[] by: NpiProviderScalarFieldEnum[] | NpiProviderScalarFieldEnum having?: NpiProviderScalarWhereWithAggregatesInput take?: number skip?: number _count?: NpiProviderCountAggregateInputType | true _avg?: NpiProviderAvgAggregateInputType _sum?: NpiProviderSumAggregateInputType _min?: NpiProviderMinAggregateInputType _max?: NpiProviderMaxAggregateInputType } export type NpiProviderGroupByOutputType = { id: number userId: number npiNumber: string providerName: string createdAt: Date _count: NpiProviderCountAggregateOutputType | null _avg: NpiProviderAvgAggregateOutputType | null _sum: NpiProviderSumAggregateOutputType | null _min: NpiProviderMinAggregateOutputType | null _max: NpiProviderMaxAggregateOutputType | null } type GetNpiProviderGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof NpiProviderGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type NpiProviderSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean npiNumber?: boolean providerName?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs claims?: boolean | NpiProvider$claimsArgs payments?: boolean | NpiProvider$paymentsArgs commissionBatches?: boolean | NpiProvider$commissionBatchesArgs appointmentProcedures?: boolean | NpiProvider$appointmentProceduresArgs _count?: boolean | NpiProviderCountOutputTypeDefaultArgs }, ExtArgs["result"]["npiProvider"]> export type NpiProviderSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean npiNumber?: boolean providerName?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["npiProvider"]> export type NpiProviderSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean npiNumber?: boolean providerName?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["npiProvider"]> export type NpiProviderSelectScalar = { id?: boolean userId?: boolean npiNumber?: boolean providerName?: boolean createdAt?: boolean } export type NpiProviderOmit = $Extensions.GetOmit<"id" | "userId" | "npiNumber" | "providerName" | "createdAt", ExtArgs["result"]["npiProvider"]> export type NpiProviderInclude = { user?: boolean | UserDefaultArgs claims?: boolean | NpiProvider$claimsArgs payments?: boolean | NpiProvider$paymentsArgs commissionBatches?: boolean | NpiProvider$commissionBatchesArgs appointmentProcedures?: boolean | NpiProvider$appointmentProceduresArgs _count?: boolean | NpiProviderCountOutputTypeDefaultArgs } export type NpiProviderIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type NpiProviderIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $NpiProviderPayload = { name: "NpiProvider" objects: { user: Prisma.$UserPayload claims: Prisma.$ClaimPayload[] payments: Prisma.$PaymentPayload[] commissionBatches: Prisma.$CommissionBatchPayload[] appointmentProcedures: Prisma.$AppointmentProcedurePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: number npiNumber: string providerName: string createdAt: Date }, ExtArgs["result"]["npiProvider"]> composites: {} } type NpiProviderGetPayload = $Result.GetResult type NpiProviderCountArgs = Omit & { select?: NpiProviderCountAggregateInputType | true } export interface NpiProviderDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['NpiProvider'], meta: { name: 'NpiProvider' } } /** * Find zero or one NpiProvider that matches the filter. * @param {NpiProviderFindUniqueArgs} args - Arguments to find a NpiProvider * @example * // Get one NpiProvider * const npiProvider = await prisma.npiProvider.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one NpiProvider that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NpiProviderFindUniqueOrThrowArgs} args - Arguments to find a NpiProvider * @example * // Get one NpiProvider * const npiProvider = await prisma.npiProvider.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first NpiProvider 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 {NpiProviderFindFirstArgs} args - Arguments to find a NpiProvider * @example * // Get one NpiProvider * const npiProvider = await prisma.npiProvider.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first NpiProvider 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 {NpiProviderFindFirstOrThrowArgs} args - Arguments to find a NpiProvider * @example * // Get one NpiProvider * const npiProvider = await prisma.npiProvider.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more NpiProviders 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 {NpiProviderFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all NpiProviders * const npiProviders = await prisma.npiProvider.findMany() * * // Get first 10 NpiProviders * const npiProviders = await prisma.npiProvider.findMany({ take: 10 }) * * // Only select the `id` * const npiProviderWithIdOnly = await prisma.npiProvider.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a NpiProvider. * @param {NpiProviderCreateArgs} args - Arguments to create a NpiProvider. * @example * // Create one NpiProvider * const NpiProvider = await prisma.npiProvider.create({ * data: { * // ... data to create a NpiProvider * } * }) * */ create(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many NpiProviders. * @param {NpiProviderCreateManyArgs} args - Arguments to create many NpiProviders. * @example * // Create many NpiProviders * const npiProvider = await prisma.npiProvider.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many NpiProviders and returns the data saved in the database. * @param {NpiProviderCreateManyAndReturnArgs} args - Arguments to create many NpiProviders. * @example * // Create many NpiProviders * const npiProvider = await prisma.npiProvider.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many NpiProviders and only return the `id` * const npiProviderWithIdOnly = await prisma.npiProvider.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a NpiProvider. * @param {NpiProviderDeleteArgs} args - Arguments to delete one NpiProvider. * @example * // Delete one NpiProvider * const NpiProvider = await prisma.npiProvider.delete({ * where: { * // ... filter to delete one NpiProvider * } * }) * */ delete(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one NpiProvider. * @param {NpiProviderUpdateArgs} args - Arguments to update one NpiProvider. * @example * // Update one NpiProvider * const npiProvider = await prisma.npiProvider.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more NpiProviders. * @param {NpiProviderDeleteManyArgs} args - Arguments to filter NpiProviders to delete. * @example * // Delete a few NpiProviders * const { count } = await prisma.npiProvider.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NpiProviders. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NpiProviderUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many NpiProviders * const npiProvider = await prisma.npiProvider.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NpiProviders and returns the data updated in the database. * @param {NpiProviderUpdateManyAndReturnArgs} args - Arguments to update many NpiProviders. * @example * // Update many NpiProviders * const npiProvider = await prisma.npiProvider.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more NpiProviders and only return the `id` * const npiProviderWithIdOnly = await prisma.npiProvider.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one NpiProvider. * @param {NpiProviderUpsertArgs} args - Arguments to update or create a NpiProvider. * @example * // Update or create a NpiProvider * const npiProvider = await prisma.npiProvider.upsert({ * create: { * // ... data to create a NpiProvider * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the NpiProvider we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__NpiProviderClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of NpiProviders. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NpiProviderCountArgs} args - Arguments to filter NpiProviders to count. * @example * // Count the number of NpiProviders * const count = await prisma.npiProvider.count({ * where: { * // ... the filter for the NpiProviders 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 NpiProvider. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NpiProviderAggregateArgs} 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 NpiProvider. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NpiProviderGroupByArgs} 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 NpiProviderGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: NpiProviderGroupByArgs['orderBy'] } : { orderBy?: NpiProviderGroupByArgs['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 ? GetNpiProviderGroupByPayload : Prisma.PrismaPromise /** * Fields of the NpiProvider model */ readonly fields: NpiProviderFieldRefs; } /** * The delegate class that acts as a "Promise-like" for NpiProvider. * 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__NpiProviderClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> claims = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> payments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> commissionBatches = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> appointmentProcedures = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 NpiProvider model */ interface NpiProviderFieldRefs { readonly id: FieldRef<"NpiProvider", 'Int'> readonly userId: FieldRef<"NpiProvider", 'Int'> readonly npiNumber: FieldRef<"NpiProvider", 'String'> readonly providerName: FieldRef<"NpiProvider", 'String'> readonly createdAt: FieldRef<"NpiProvider", 'DateTime'> } // Custom InputTypes /** * NpiProvider findUnique */ export type NpiProviderFindUniqueArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProvider to fetch. */ where: NpiProviderWhereUniqueInput } /** * NpiProvider findUniqueOrThrow */ export type NpiProviderFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProvider to fetch. */ where: NpiProviderWhereUniqueInput } /** * NpiProvider findFirst */ export type NpiProviderFindFirstArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProvider to fetch. */ where?: NpiProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NpiProviders to fetch. */ orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NpiProviders. */ cursor?: NpiProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NpiProviders from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NpiProviders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NpiProviders. */ distinct?: NpiProviderScalarFieldEnum | NpiProviderScalarFieldEnum[] } /** * NpiProvider findFirstOrThrow */ export type NpiProviderFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProvider to fetch. */ where?: NpiProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NpiProviders to fetch. */ orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NpiProviders. */ cursor?: NpiProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NpiProviders from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NpiProviders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NpiProviders. */ distinct?: NpiProviderScalarFieldEnum | NpiProviderScalarFieldEnum[] } /** * NpiProvider findMany */ export type NpiProviderFindManyArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter, which NpiProviders to fetch. */ where?: NpiProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NpiProviders to fetch. */ orderBy?: NpiProviderOrderByWithRelationInput | NpiProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing NpiProviders. */ cursor?: NpiProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NpiProviders from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NpiProviders. */ skip?: number distinct?: NpiProviderScalarFieldEnum | NpiProviderScalarFieldEnum[] } /** * NpiProvider create */ export type NpiProviderCreateArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * The data needed to create a NpiProvider. */ data: XOR } /** * NpiProvider createMany */ export type NpiProviderCreateManyArgs = { /** * The data used to create many NpiProviders. */ data: NpiProviderCreateManyInput | NpiProviderCreateManyInput[] skipDuplicates?: boolean } /** * NpiProvider createManyAndReturn */ export type NpiProviderCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelectCreateManyAndReturn | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * The data used to create many NpiProviders. */ data: NpiProviderCreateManyInput | NpiProviderCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: NpiProviderIncludeCreateManyAndReturn | null } /** * NpiProvider update */ export type NpiProviderUpdateArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * The data needed to update a NpiProvider. */ data: XOR /** * Choose, which NpiProvider to update. */ where: NpiProviderWhereUniqueInput } /** * NpiProvider updateMany */ export type NpiProviderUpdateManyArgs = { /** * The data used to update NpiProviders. */ data: XOR /** * Filter which NpiProviders to update */ where?: NpiProviderWhereInput /** * Limit how many NpiProviders to update. */ limit?: number } /** * NpiProvider updateManyAndReturn */ export type NpiProviderUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelectUpdateManyAndReturn | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * The data used to update NpiProviders. */ data: XOR /** * Filter which NpiProviders to update */ where?: NpiProviderWhereInput /** * Limit how many NpiProviders to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: NpiProviderIncludeUpdateManyAndReturn | null } /** * NpiProvider upsert */ export type NpiProviderUpsertArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * The filter to search for the NpiProvider to update in case it exists. */ where: NpiProviderWhereUniqueInput /** * In case the NpiProvider found by the `where` argument doesn't exist, create a new NpiProvider with this data. */ create: XOR /** * In case the NpiProvider was found with the provided `where` argument, update it with this data. */ update: XOR } /** * NpiProvider delete */ export type NpiProviderDeleteArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null /** * Filter which NpiProvider to delete. */ where: NpiProviderWhereUniqueInput } /** * NpiProvider deleteMany */ export type NpiProviderDeleteManyArgs = { /** * Filter which NpiProviders to delete */ where?: NpiProviderWhereInput /** * Limit how many NpiProviders to delete. */ limit?: number } /** * NpiProvider.claims */ export type NpiProvider$claimsArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] cursor?: ClaimWhereUniqueInput take?: number skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * NpiProvider.payments */ export type NpiProvider$paymentsArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] cursor?: PaymentWhereUniqueInput take?: number skip?: number distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * NpiProvider.commissionBatches */ export type NpiProvider$commissionBatchesArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null where?: CommissionBatchWhereInput orderBy?: CommissionBatchOrderByWithRelationInput | CommissionBatchOrderByWithRelationInput[] cursor?: CommissionBatchWhereUniqueInput take?: number skip?: number distinct?: CommissionBatchScalarFieldEnum | CommissionBatchScalarFieldEnum[] } /** * NpiProvider.appointmentProcedures */ export type NpiProvider$appointmentProceduresArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null where?: AppointmentProcedureWhereInput orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] cursor?: AppointmentProcedureWhereUniqueInput take?: number skip?: number distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * NpiProvider without action */ export type NpiProviderDefaultArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null } /** * Model AppointmentProcedure */ export type AggregateAppointmentProcedure = { _count: AppointmentProcedureCountAggregateOutputType | null _avg: AppointmentProcedureAvgAggregateOutputType | null _sum: AppointmentProcedureSumAggregateOutputType | null _min: AppointmentProcedureMinAggregateOutputType | null _max: AppointmentProcedureMaxAggregateOutputType | null } export type AppointmentProcedureAvgAggregateOutputType = { id: number | null appointmentId: number | null patientId: number | null npiProviderId: number | null fee: Decimal | null } export type AppointmentProcedureSumAggregateOutputType = { id: number | null appointmentId: number | null patientId: number | null npiProviderId: number | null fee: Decimal | null } export type AppointmentProcedureMinAggregateOutputType = { id: number | null appointmentId: number | null patientId: number | null npiProviderId: number | null procedureCode: string | null procedureLabel: string | null fee: Decimal | null category: string | null toothNumber: string | null toothSurface: string | null oralCavityArea: string | null source: $Enums.ProcedureSource | null comboKey: string | null createdAt: Date | null } export type AppointmentProcedureMaxAggregateOutputType = { id: number | null appointmentId: number | null patientId: number | null npiProviderId: number | null procedureCode: string | null procedureLabel: string | null fee: Decimal | null category: string | null toothNumber: string | null toothSurface: string | null oralCavityArea: string | null source: $Enums.ProcedureSource | null comboKey: string | null createdAt: Date | null } export type AppointmentProcedureCountAggregateOutputType = { id: number appointmentId: number patientId: number npiProviderId: number procedureCode: number procedureLabel: number fee: number category: number toothNumber: number toothSurface: number oralCavityArea: number source: number comboKey: number createdAt: number _all: number } export type AppointmentProcedureAvgAggregateInputType = { id?: true appointmentId?: true patientId?: true npiProviderId?: true fee?: true } export type AppointmentProcedureSumAggregateInputType = { id?: true appointmentId?: true patientId?: true npiProviderId?: true fee?: true } export type AppointmentProcedureMinAggregateInputType = { id?: true appointmentId?: true patientId?: true npiProviderId?: true procedureCode?: true procedureLabel?: true fee?: true category?: true toothNumber?: true toothSurface?: true oralCavityArea?: true source?: true comboKey?: true createdAt?: true } export type AppointmentProcedureMaxAggregateInputType = { id?: true appointmentId?: true patientId?: true npiProviderId?: true procedureCode?: true procedureLabel?: true fee?: true category?: true toothNumber?: true toothSurface?: true oralCavityArea?: true source?: true comboKey?: true createdAt?: true } export type AppointmentProcedureCountAggregateInputType = { id?: true appointmentId?: true patientId?: true npiProviderId?: true procedureCode?: true procedureLabel?: true fee?: true category?: true toothNumber?: true toothSurface?: true oralCavityArea?: true source?: true comboKey?: true createdAt?: true _all?: true } export type AppointmentProcedureAggregateArgs = { /** * Filter which AppointmentProcedure to aggregate. */ where?: AppointmentProcedureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentProcedures to fetch. */ orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AppointmentProcedureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentProcedures from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AppointmentProcedures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AppointmentProcedures **/ _count?: true | AppointmentProcedureCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AppointmentProcedureAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AppointmentProcedureSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppointmentProcedureMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppointmentProcedureMaxAggregateInputType } export type GetAppointmentProcedureAggregateType = { [P in keyof T & keyof AggregateAppointmentProcedure]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AppointmentProcedureGroupByArgs = { where?: AppointmentProcedureWhereInput orderBy?: AppointmentProcedureOrderByWithAggregationInput | AppointmentProcedureOrderByWithAggregationInput[] by: AppointmentProcedureScalarFieldEnum[] | AppointmentProcedureScalarFieldEnum having?: AppointmentProcedureScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppointmentProcedureCountAggregateInputType | true _avg?: AppointmentProcedureAvgAggregateInputType _sum?: AppointmentProcedureSumAggregateInputType _min?: AppointmentProcedureMinAggregateInputType _max?: AppointmentProcedureMaxAggregateInputType } export type AppointmentProcedureGroupByOutputType = { id: number appointmentId: number patientId: number npiProviderId: number | null procedureCode: string procedureLabel: string | null fee: Decimal | null category: string | null toothNumber: string | null toothSurface: string | null oralCavityArea: string | null source: $Enums.ProcedureSource comboKey: string | null createdAt: Date _count: AppointmentProcedureCountAggregateOutputType | null _avg: AppointmentProcedureAvgAggregateOutputType | null _sum: AppointmentProcedureSumAggregateOutputType | null _min: AppointmentProcedureMinAggregateOutputType | null _max: AppointmentProcedureMaxAggregateOutputType | null } type GetAppointmentProcedureGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AppointmentProcedureGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AppointmentProcedureSelect = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean patientId?: boolean npiProviderId?: boolean procedureCode?: boolean procedureLabel?: boolean fee?: boolean category?: boolean toothNumber?: boolean toothSurface?: boolean oralCavityArea?: boolean source?: boolean comboKey?: boolean createdAt?: boolean appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs npiProvider?: boolean | AppointmentProcedure$npiProviderArgs }, ExtArgs["result"]["appointmentProcedure"]> export type AppointmentProcedureSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean patientId?: boolean npiProviderId?: boolean procedureCode?: boolean procedureLabel?: boolean fee?: boolean category?: boolean toothNumber?: boolean toothSurface?: boolean oralCavityArea?: boolean source?: boolean comboKey?: boolean createdAt?: boolean appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs npiProvider?: boolean | AppointmentProcedure$npiProviderArgs }, ExtArgs["result"]["appointmentProcedure"]> export type AppointmentProcedureSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean appointmentId?: boolean patientId?: boolean npiProviderId?: boolean procedureCode?: boolean procedureLabel?: boolean fee?: boolean category?: boolean toothNumber?: boolean toothSurface?: boolean oralCavityArea?: boolean source?: boolean comboKey?: boolean createdAt?: boolean appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs npiProvider?: boolean | AppointmentProcedure$npiProviderArgs }, ExtArgs["result"]["appointmentProcedure"]> export type AppointmentProcedureSelectScalar = { id?: boolean appointmentId?: boolean patientId?: boolean npiProviderId?: boolean procedureCode?: boolean procedureLabel?: boolean fee?: boolean category?: boolean toothNumber?: boolean toothSurface?: boolean oralCavityArea?: boolean source?: boolean comboKey?: boolean createdAt?: boolean } export type AppointmentProcedureOmit = $Extensions.GetOmit<"id" | "appointmentId" | "patientId" | "npiProviderId" | "procedureCode" | "procedureLabel" | "fee" | "category" | "toothNumber" | "toothSurface" | "oralCavityArea" | "source" | "comboKey" | "createdAt", ExtArgs["result"]["appointmentProcedure"]> export type AppointmentProcedureInclude = { appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs npiProvider?: boolean | AppointmentProcedure$npiProviderArgs } export type AppointmentProcedureIncludeCreateManyAndReturn = { appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs npiProvider?: boolean | AppointmentProcedure$npiProviderArgs } export type AppointmentProcedureIncludeUpdateManyAndReturn = { appointment?: boolean | AppointmentDefaultArgs patient?: boolean | PatientDefaultArgs npiProvider?: boolean | AppointmentProcedure$npiProviderArgs } export type $AppointmentProcedurePayload = { name: "AppointmentProcedure" objects: { appointment: Prisma.$AppointmentPayload patient: Prisma.$PatientPayload npiProvider: Prisma.$NpiProviderPayload | null } scalars: $Extensions.GetPayloadResult<{ id: number appointmentId: number patientId: number npiProviderId: number | null procedureCode: string procedureLabel: string | null fee: Prisma.Decimal | null category: string | null toothNumber: string | null toothSurface: string | null oralCavityArea: string | null source: $Enums.ProcedureSource comboKey: string | null createdAt: Date }, ExtArgs["result"]["appointmentProcedure"]> composites: {} } type AppointmentProcedureGetPayload = $Result.GetResult type AppointmentProcedureCountArgs = Omit & { select?: AppointmentProcedureCountAggregateInputType | true } export interface AppointmentProcedureDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AppointmentProcedure'], meta: { name: 'AppointmentProcedure' } } /** * Find zero or one AppointmentProcedure that matches the filter. * @param {AppointmentProcedureFindUniqueArgs} args - Arguments to find a AppointmentProcedure * @example * // Get one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AppointmentProcedure that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppointmentProcedureFindUniqueOrThrowArgs} args - Arguments to find a AppointmentProcedure * @example * // Get one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AppointmentProcedure 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 {AppointmentProcedureFindFirstArgs} args - Arguments to find a AppointmentProcedure * @example * // Get one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AppointmentProcedure 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 {AppointmentProcedureFindFirstOrThrowArgs} args - Arguments to find a AppointmentProcedure * @example * // Get one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AppointmentProcedures 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 {AppointmentProcedureFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AppointmentProcedures * const appointmentProcedures = await prisma.appointmentProcedure.findMany() * * // Get first 10 AppointmentProcedures * const appointmentProcedures = await prisma.appointmentProcedure.findMany({ take: 10 }) * * // Only select the `id` * const appointmentProcedureWithIdOnly = await prisma.appointmentProcedure.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AppointmentProcedure. * @param {AppointmentProcedureCreateArgs} args - Arguments to create a AppointmentProcedure. * @example * // Create one AppointmentProcedure * const AppointmentProcedure = await prisma.appointmentProcedure.create({ * data: { * // ... data to create a AppointmentProcedure * } * }) * */ create(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AppointmentProcedures. * @param {AppointmentProcedureCreateManyArgs} args - Arguments to create many AppointmentProcedures. * @example * // Create many AppointmentProcedures * const appointmentProcedure = await prisma.appointmentProcedure.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AppointmentProcedures and returns the data saved in the database. * @param {AppointmentProcedureCreateManyAndReturnArgs} args - Arguments to create many AppointmentProcedures. * @example * // Create many AppointmentProcedures * const appointmentProcedure = await prisma.appointmentProcedure.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AppointmentProcedures and only return the `id` * const appointmentProcedureWithIdOnly = await prisma.appointmentProcedure.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AppointmentProcedure. * @param {AppointmentProcedureDeleteArgs} args - Arguments to delete one AppointmentProcedure. * @example * // Delete one AppointmentProcedure * const AppointmentProcedure = await prisma.appointmentProcedure.delete({ * where: { * // ... filter to delete one AppointmentProcedure * } * }) * */ delete(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AppointmentProcedure. * @param {AppointmentProcedureUpdateArgs} args - Arguments to update one AppointmentProcedure. * @example * // Update one AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AppointmentProcedures. * @param {AppointmentProcedureDeleteManyArgs} args - Arguments to filter AppointmentProcedures to delete. * @example * // Delete a few AppointmentProcedures * const { count } = await prisma.appointmentProcedure.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppointmentProcedures. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentProcedureUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AppointmentProcedures * const appointmentProcedure = await prisma.appointmentProcedure.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppointmentProcedures and returns the data updated in the database. * @param {AppointmentProcedureUpdateManyAndReturnArgs} args - Arguments to update many AppointmentProcedures. * @example * // Update many AppointmentProcedures * const appointmentProcedure = await prisma.appointmentProcedure.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AppointmentProcedures and only return the `id` * const appointmentProcedureWithIdOnly = await prisma.appointmentProcedure.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AppointmentProcedure. * @param {AppointmentProcedureUpsertArgs} args - Arguments to update or create a AppointmentProcedure. * @example * // Update or create a AppointmentProcedure * const appointmentProcedure = await prisma.appointmentProcedure.upsert({ * create: { * // ... data to create a AppointmentProcedure * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AppointmentProcedure we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AppointmentProcedureClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AppointmentProcedures. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentProcedureCountArgs} args - Arguments to filter AppointmentProcedures to count. * @example * // Count the number of AppointmentProcedures * const count = await prisma.appointmentProcedure.count({ * where: { * // ... the filter for the AppointmentProcedures 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 AppointmentProcedure. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentProcedureAggregateArgs} 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 AppointmentProcedure. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppointmentProcedureGroupByArgs} 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 AppointmentProcedureGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AppointmentProcedureGroupByArgs['orderBy'] } : { orderBy?: AppointmentProcedureGroupByArgs['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 ? GetAppointmentProcedureGroupByPayload : Prisma.PrismaPromise /** * Fields of the AppointmentProcedure model */ readonly fields: AppointmentProcedureFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AppointmentProcedure. * 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__AppointmentProcedureClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" appointment = {}>(args?: Subset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> npiProvider = {}>(args?: Subset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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 AppointmentProcedure model */ interface AppointmentProcedureFieldRefs { readonly id: FieldRef<"AppointmentProcedure", 'Int'> readonly appointmentId: FieldRef<"AppointmentProcedure", 'Int'> readonly patientId: FieldRef<"AppointmentProcedure", 'Int'> readonly npiProviderId: FieldRef<"AppointmentProcedure", 'Int'> readonly procedureCode: FieldRef<"AppointmentProcedure", 'String'> readonly procedureLabel: FieldRef<"AppointmentProcedure", 'String'> readonly fee: FieldRef<"AppointmentProcedure", 'Decimal'> readonly category: FieldRef<"AppointmentProcedure", 'String'> readonly toothNumber: FieldRef<"AppointmentProcedure", 'String'> readonly toothSurface: FieldRef<"AppointmentProcedure", 'String'> readonly oralCavityArea: FieldRef<"AppointmentProcedure", 'String'> readonly source: FieldRef<"AppointmentProcedure", 'ProcedureSource'> readonly comboKey: FieldRef<"AppointmentProcedure", 'String'> readonly createdAt: FieldRef<"AppointmentProcedure", 'DateTime'> } // Custom InputTypes /** * AppointmentProcedure findUnique */ export type AppointmentProcedureFindUniqueArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedure to fetch. */ where: AppointmentProcedureWhereUniqueInput } /** * AppointmentProcedure findUniqueOrThrow */ export type AppointmentProcedureFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedure to fetch. */ where: AppointmentProcedureWhereUniqueInput } /** * AppointmentProcedure findFirst */ export type AppointmentProcedureFindFirstArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedure to fetch. */ where?: AppointmentProcedureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentProcedures to fetch. */ orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppointmentProcedures. */ cursor?: AppointmentProcedureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentProcedures from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AppointmentProcedures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppointmentProcedures. */ distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * AppointmentProcedure findFirstOrThrow */ export type AppointmentProcedureFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedure to fetch. */ where?: AppointmentProcedureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentProcedures to fetch. */ orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppointmentProcedures. */ cursor?: AppointmentProcedureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentProcedures from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AppointmentProcedures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppointmentProcedures. */ distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * AppointmentProcedure findMany */ export type AppointmentProcedureFindManyArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter, which AppointmentProcedures to fetch. */ where?: AppointmentProcedureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppointmentProcedures to fetch. */ orderBy?: AppointmentProcedureOrderByWithRelationInput | AppointmentProcedureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AppointmentProcedures. */ cursor?: AppointmentProcedureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppointmentProcedures from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AppointmentProcedures. */ skip?: number distinct?: AppointmentProcedureScalarFieldEnum | AppointmentProcedureScalarFieldEnum[] } /** * AppointmentProcedure create */ export type AppointmentProcedureCreateArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * The data needed to create a AppointmentProcedure. */ data: XOR } /** * AppointmentProcedure createMany */ export type AppointmentProcedureCreateManyArgs = { /** * The data used to create many AppointmentProcedures. */ data: AppointmentProcedureCreateManyInput | AppointmentProcedureCreateManyInput[] skipDuplicates?: boolean } /** * AppointmentProcedure createManyAndReturn */ export type AppointmentProcedureCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelectCreateManyAndReturn | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * The data used to create many AppointmentProcedures. */ data: AppointmentProcedureCreateManyInput | AppointmentProcedureCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureIncludeCreateManyAndReturn | null } /** * AppointmentProcedure update */ export type AppointmentProcedureUpdateArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * The data needed to update a AppointmentProcedure. */ data: XOR /** * Choose, which AppointmentProcedure to update. */ where: AppointmentProcedureWhereUniqueInput } /** * AppointmentProcedure updateMany */ export type AppointmentProcedureUpdateManyArgs = { /** * The data used to update AppointmentProcedures. */ data: XOR /** * Filter which AppointmentProcedures to update */ where?: AppointmentProcedureWhereInput /** * Limit how many AppointmentProcedures to update. */ limit?: number } /** * AppointmentProcedure updateManyAndReturn */ export type AppointmentProcedureUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelectUpdateManyAndReturn | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * The data used to update AppointmentProcedures. */ data: XOR /** * Filter which AppointmentProcedures to update */ where?: AppointmentProcedureWhereInput /** * Limit how many AppointmentProcedures to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureIncludeUpdateManyAndReturn | null } /** * AppointmentProcedure upsert */ export type AppointmentProcedureUpsertArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * The filter to search for the AppointmentProcedure to update in case it exists. */ where: AppointmentProcedureWhereUniqueInput /** * In case the AppointmentProcedure found by the `where` argument doesn't exist, create a new AppointmentProcedure with this data. */ create: XOR /** * In case the AppointmentProcedure was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AppointmentProcedure delete */ export type AppointmentProcedureDeleteArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null /** * Filter which AppointmentProcedure to delete. */ where: AppointmentProcedureWhereUniqueInput } /** * AppointmentProcedure deleteMany */ export type AppointmentProcedureDeleteManyArgs = { /** * Filter which AppointmentProcedures to delete */ where?: AppointmentProcedureWhereInput /** * Limit how many AppointmentProcedures to delete. */ limit?: number } /** * AppointmentProcedure.npiProvider */ export type AppointmentProcedure$npiProviderArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null where?: NpiProviderWhereInput } /** * AppointmentProcedure without action */ export type AppointmentProcedureDefaultArgs = { /** * Select specific fields to fetch from the AppointmentProcedure */ select?: AppointmentProcedureSelect | null /** * Omit specific fields from the AppointmentProcedure */ omit?: AppointmentProcedureOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentProcedureInclude | null } /** * Model Claim */ export type AggregateClaim = { _count: ClaimCountAggregateOutputType | null _avg: ClaimAvgAggregateOutputType | null _sum: ClaimSumAggregateOutputType | null _min: ClaimMinAggregateOutputType | null _max: ClaimMaxAggregateOutputType | null } export type ClaimAvgAggregateOutputType = { id: number | null patientId: number | null appointmentId: number | null userId: number | null staffId: number | null npiProviderId: number | null } export type ClaimSumAggregateOutputType = { id: number | null patientId: number | null appointmentId: number | null userId: number | null staffId: number | null npiProviderId: number | null } export type ClaimMinAggregateOutputType = { id: number | null patientId: number | null appointmentId: number | null userId: number | null staffId: number | null patientName: string | null memberId: string | null dateOfBirth: Date | null remarks: string | null missingTeethStatus: $Enums.MissingTeethStatus | null serviceDate: Date | null insuranceProvider: string | null createdAt: Date | null updatedAt: Date | null status: $Enums.ClaimStatus | null claimNumber: string | null preAuthNumber: string | null npiProviderId: number | null } export type ClaimMaxAggregateOutputType = { id: number | null patientId: number | null appointmentId: number | null userId: number | null staffId: number | null patientName: string | null memberId: string | null dateOfBirth: Date | null remarks: string | null missingTeethStatus: $Enums.MissingTeethStatus | null serviceDate: Date | null insuranceProvider: string | null createdAt: Date | null updatedAt: Date | null status: $Enums.ClaimStatus | null claimNumber: string | null preAuthNumber: string | null npiProviderId: number | null } export type ClaimCountAggregateOutputType = { id: number patientId: number appointmentId: number userId: number staffId: number patientName: number memberId: number dateOfBirth: number remarks: number missingTeethStatus: number missingTeeth: number serviceDate: number insuranceProvider: number createdAt: number updatedAt: number status: number claimNumber: number preAuthNumber: number npiProviderId: number _all: number } export type ClaimAvgAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true npiProviderId?: true } export type ClaimSumAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true npiProviderId?: true } export type ClaimMinAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true patientName?: true memberId?: true dateOfBirth?: true remarks?: true missingTeethStatus?: true serviceDate?: true insuranceProvider?: true createdAt?: true updatedAt?: true status?: true claimNumber?: true preAuthNumber?: true npiProviderId?: true } export type ClaimMaxAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true patientName?: true memberId?: true dateOfBirth?: true remarks?: true missingTeethStatus?: true serviceDate?: true insuranceProvider?: true createdAt?: true updatedAt?: true status?: true claimNumber?: true preAuthNumber?: true npiProviderId?: true } export type ClaimCountAggregateInputType = { id?: true patientId?: true appointmentId?: true userId?: true staffId?: true patientName?: true memberId?: true dateOfBirth?: true remarks?: true missingTeethStatus?: true missingTeeth?: true serviceDate?: true insuranceProvider?: true createdAt?: true updatedAt?: true status?: true claimNumber?: true preAuthNumber?: true npiProviderId?: true _all?: true } export type ClaimAggregateArgs = { /** * Filter which Claim to aggregate. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Claims **/ _count?: true | ClaimCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ClaimAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ClaimSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ClaimMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ClaimMaxAggregateInputType } export type GetClaimAggregateType = { [P in keyof T & keyof AggregateClaim]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ClaimGroupByArgs = { where?: ClaimWhereInput orderBy?: ClaimOrderByWithAggregationInput | ClaimOrderByWithAggregationInput[] by: ClaimScalarFieldEnum[] | ClaimScalarFieldEnum having?: ClaimScalarWhereWithAggregatesInput take?: number skip?: number _count?: ClaimCountAggregateInputType | true _avg?: ClaimAvgAggregateInputType _sum?: ClaimSumAggregateInputType _min?: ClaimMinAggregateInputType _max?: ClaimMaxAggregateInputType } export type ClaimGroupByOutputType = { id: number patientId: number appointmentId: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date remarks: string missingTeethStatus: $Enums.MissingTeethStatus missingTeeth: JsonValue | null serviceDate: Date insuranceProvider: string createdAt: Date updatedAt: Date status: $Enums.ClaimStatus claimNumber: string | null preAuthNumber: string | null npiProviderId: number | null _count: ClaimCountAggregateOutputType | null _avg: ClaimAvgAggregateOutputType | null _sum: ClaimSumAggregateOutputType | null _min: ClaimMinAggregateOutputType | null _max: ClaimMaxAggregateOutputType | null } type GetClaimGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ClaimGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ClaimSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean appointmentId?: boolean userId?: boolean staffId?: boolean patientName?: boolean memberId?: boolean dateOfBirth?: boolean remarks?: boolean missingTeethStatus?: boolean missingTeeth?: boolean serviceDate?: boolean insuranceProvider?: boolean createdAt?: boolean updatedAt?: boolean status?: boolean claimNumber?: boolean preAuthNumber?: boolean npiProviderId?: boolean patient?: boolean | PatientDefaultArgs appointment?: boolean | Claim$appointmentArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs npiProvider?: boolean | Claim$npiProviderArgs serviceLines?: boolean | Claim$serviceLinesArgs claimFiles?: boolean | Claim$claimFilesArgs payment?: boolean | Claim$paymentArgs _count?: boolean | ClaimCountOutputTypeDefaultArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean appointmentId?: boolean userId?: boolean staffId?: boolean patientName?: boolean memberId?: boolean dateOfBirth?: boolean remarks?: boolean missingTeethStatus?: boolean missingTeeth?: boolean serviceDate?: boolean insuranceProvider?: boolean createdAt?: boolean updatedAt?: boolean status?: boolean claimNumber?: boolean preAuthNumber?: boolean npiProviderId?: boolean patient?: boolean | PatientDefaultArgs appointment?: boolean | Claim$appointmentArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs npiProvider?: boolean | Claim$npiProviderArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean appointmentId?: boolean userId?: boolean staffId?: boolean patientName?: boolean memberId?: boolean dateOfBirth?: boolean remarks?: boolean missingTeethStatus?: boolean missingTeeth?: boolean serviceDate?: boolean insuranceProvider?: boolean createdAt?: boolean updatedAt?: boolean status?: boolean claimNumber?: boolean preAuthNumber?: boolean npiProviderId?: boolean patient?: boolean | PatientDefaultArgs appointment?: boolean | Claim$appointmentArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs npiProvider?: boolean | Claim$npiProviderArgs }, ExtArgs["result"]["claim"]> export type ClaimSelectScalar = { id?: boolean patientId?: boolean appointmentId?: boolean userId?: boolean staffId?: boolean patientName?: boolean memberId?: boolean dateOfBirth?: boolean remarks?: boolean missingTeethStatus?: boolean missingTeeth?: boolean serviceDate?: boolean insuranceProvider?: boolean createdAt?: boolean updatedAt?: boolean status?: boolean claimNumber?: boolean preAuthNumber?: boolean npiProviderId?: boolean } export type ClaimOmit = $Extensions.GetOmit<"id" | "patientId" | "appointmentId" | "userId" | "staffId" | "patientName" | "memberId" | "dateOfBirth" | "remarks" | "missingTeethStatus" | "missingTeeth" | "serviceDate" | "insuranceProvider" | "createdAt" | "updatedAt" | "status" | "claimNumber" | "preAuthNumber" | "npiProviderId", ExtArgs["result"]["claim"]> export type ClaimInclude = { patient?: boolean | PatientDefaultArgs appointment?: boolean | Claim$appointmentArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs npiProvider?: boolean | Claim$npiProviderArgs serviceLines?: boolean | Claim$serviceLinesArgs claimFiles?: boolean | Claim$claimFilesArgs payment?: boolean | Claim$paymentArgs _count?: boolean | ClaimCountOutputTypeDefaultArgs } export type ClaimIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs appointment?: boolean | Claim$appointmentArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs npiProvider?: boolean | Claim$npiProviderArgs } export type ClaimIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs appointment?: boolean | Claim$appointmentArgs user?: boolean | Claim$userArgs staff?: boolean | Claim$staffArgs npiProvider?: boolean | Claim$npiProviderArgs } export type $ClaimPayload = { name: "Claim" objects: { patient: Prisma.$PatientPayload appointment: Prisma.$AppointmentPayload | null user: Prisma.$UserPayload | null staff: Prisma.$StaffPayload | null npiProvider: Prisma.$NpiProviderPayload | null serviceLines: Prisma.$ServiceLinePayload[] claimFiles: Prisma.$ClaimFilePayload[] payment: Prisma.$PaymentPayload | null } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number appointmentId: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date remarks: string missingTeethStatus: $Enums.MissingTeethStatus missingTeeth: Prisma.JsonValue | null serviceDate: Date insuranceProvider: string createdAt: Date updatedAt: Date status: $Enums.ClaimStatus claimNumber: string | null preAuthNumber: string | null npiProviderId: number | null }, ExtArgs["result"]["claim"]> composites: {} } type ClaimGetPayload = $Result.GetResult type ClaimCountArgs = Omit & { select?: ClaimCountAggregateInputType | true } export interface ClaimDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Claim'], meta: { name: 'Claim' } } /** * Find zero or one Claim that matches the filter. * @param {ClaimFindUniqueArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Claim that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ClaimFindUniqueOrThrowArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Claim 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 {ClaimFindFirstArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Claim 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 {ClaimFindFirstOrThrowArgs} args - Arguments to find a Claim * @example * // Get one Claim * const claim = await prisma.claim.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Claims 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 {ClaimFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Claims * const claims = await prisma.claim.findMany() * * // Get first 10 Claims * const claims = await prisma.claim.findMany({ take: 10 }) * * // Only select the `id` * const claimWithIdOnly = await prisma.claim.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Claim. * @param {ClaimCreateArgs} args - Arguments to create a Claim. * @example * // Create one Claim * const Claim = await prisma.claim.create({ * data: { * // ... data to create a Claim * } * }) * */ create(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Claims. * @param {ClaimCreateManyArgs} args - Arguments to create many Claims. * @example * // Create many Claims * const claim = await prisma.claim.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Claims and returns the data saved in the database. * @param {ClaimCreateManyAndReturnArgs} args - Arguments to create many Claims. * @example * // Create many Claims * const claim = await prisma.claim.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Claims and only return the `id` * const claimWithIdOnly = await prisma.claim.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Claim. * @param {ClaimDeleteArgs} args - Arguments to delete one Claim. * @example * // Delete one Claim * const Claim = await prisma.claim.delete({ * where: { * // ... filter to delete one Claim * } * }) * */ delete(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Claim. * @param {ClaimUpdateArgs} args - Arguments to update one Claim. * @example * // Update one Claim * const claim = await prisma.claim.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Claims. * @param {ClaimDeleteManyArgs} args - Arguments to filter Claims to delete. * @example * // Delete a few Claims * const { count } = await prisma.claim.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Claims. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Claims * const claim = await prisma.claim.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Claims and returns the data updated in the database. * @param {ClaimUpdateManyAndReturnArgs} args - Arguments to update many Claims. * @example * // Update many Claims * const claim = await prisma.claim.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Claims and only return the `id` * const claimWithIdOnly = await prisma.claim.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Claim. * @param {ClaimUpsertArgs} args - Arguments to update or create a Claim. * @example * // Update or create a Claim * const claim = await prisma.claim.upsert({ * create: { * // ... data to create a Claim * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Claim we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ClaimClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Claims. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimCountArgs} args - Arguments to filter Claims to count. * @example * // Count the number of Claims * const count = await prisma.claim.count({ * where: { * // ... the filter for the Claims 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 Claim. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimAggregateArgs} 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 Claim. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimGroupByArgs} 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 ClaimGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ClaimGroupByArgs['orderBy'] } : { orderBy?: ClaimGroupByArgs['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 ? GetClaimGroupByPayload : Prisma.PrismaPromise /** * Fields of the Claim model */ readonly fields: ClaimFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Claim. * 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__ClaimClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> appointment = {}>(args?: Subset>): Prisma__AppointmentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> staff = {}>(args?: Subset>): Prisma__StaffClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> npiProvider = {}>(args?: Subset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> serviceLines = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> claimFiles = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> payment = {}>(args?: Subset>): Prisma__PaymentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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 Claim model */ interface ClaimFieldRefs { readonly id: FieldRef<"Claim", 'Int'> readonly patientId: FieldRef<"Claim", 'Int'> readonly appointmentId: FieldRef<"Claim", 'Int'> readonly userId: FieldRef<"Claim", 'Int'> readonly staffId: FieldRef<"Claim", 'Int'> readonly patientName: FieldRef<"Claim", 'String'> readonly memberId: FieldRef<"Claim", 'String'> readonly dateOfBirth: FieldRef<"Claim", 'DateTime'> readonly remarks: FieldRef<"Claim", 'String'> readonly missingTeethStatus: FieldRef<"Claim", 'MissingTeethStatus'> readonly missingTeeth: FieldRef<"Claim", 'Json'> readonly serviceDate: FieldRef<"Claim", 'DateTime'> readonly insuranceProvider: FieldRef<"Claim", 'String'> readonly createdAt: FieldRef<"Claim", 'DateTime'> readonly updatedAt: FieldRef<"Claim", 'DateTime'> readonly status: FieldRef<"Claim", 'ClaimStatus'> readonly claimNumber: FieldRef<"Claim", 'String'> readonly preAuthNumber: FieldRef<"Claim", 'String'> readonly npiProviderId: FieldRef<"Claim", 'Int'> } // Custom InputTypes /** * Claim findUnique */ export type ClaimFindUniqueArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where: ClaimWhereUniqueInput } /** * Claim findUniqueOrThrow */ export type ClaimFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where: ClaimWhereUniqueInput } /** * Claim findFirst */ export type ClaimFindFirstArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Claims. */ distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim findFirstOrThrow */ export type ClaimFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claim to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Claims. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Claims. */ distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim findMany */ export type ClaimFindManyArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter, which Claims to fetch. */ where?: ClaimWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Claims to fetch. */ orderBy?: ClaimOrderByWithRelationInput | ClaimOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Claims. */ cursor?: ClaimWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Claims from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Claims. */ skip?: number distinct?: ClaimScalarFieldEnum | ClaimScalarFieldEnum[] } /** * Claim create */ export type ClaimCreateArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The data needed to create a Claim. */ data: XOR } /** * Claim createMany */ export type ClaimCreateManyArgs = { /** * The data used to create many Claims. */ data: ClaimCreateManyInput | ClaimCreateManyInput[] skipDuplicates?: boolean } /** * Claim createManyAndReturn */ export type ClaimCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelectCreateManyAndReturn | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * The data used to create many Claims. */ data: ClaimCreateManyInput | ClaimCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ClaimIncludeCreateManyAndReturn | null } /** * Claim update */ export type ClaimUpdateArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The data needed to update a Claim. */ data: XOR /** * Choose, which Claim to update. */ where: ClaimWhereUniqueInput } /** * Claim updateMany */ export type ClaimUpdateManyArgs = { /** * The data used to update Claims. */ data: XOR /** * Filter which Claims to update */ where?: ClaimWhereInput /** * Limit how many Claims to update. */ limit?: number } /** * Claim updateManyAndReturn */ export type ClaimUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelectUpdateManyAndReturn | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * The data used to update Claims. */ data: XOR /** * Filter which Claims to update */ where?: ClaimWhereInput /** * Limit how many Claims to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ClaimIncludeUpdateManyAndReturn | null } /** * Claim upsert */ export type ClaimUpsertArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * The filter to search for the Claim to update in case it exists. */ where: ClaimWhereUniqueInput /** * In case the Claim found by the `where` argument doesn't exist, create a new Claim with this data. */ create: XOR /** * In case the Claim was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Claim delete */ export type ClaimDeleteArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null /** * Filter which Claim to delete. */ where: ClaimWhereUniqueInput } /** * Claim deleteMany */ export type ClaimDeleteManyArgs = { /** * Filter which Claims to delete */ where?: ClaimWhereInput /** * Limit how many Claims to delete. */ limit?: number } /** * Claim.appointment */ export type Claim$appointmentArgs = { /** * Select specific fields to fetch from the Appointment */ select?: AppointmentSelect | null /** * Omit specific fields from the Appointment */ omit?: AppointmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppointmentInclude | null where?: AppointmentWhereInput } /** * Claim.user */ export type Claim$userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Claim.staff */ export type Claim$staffArgs = { /** * Select specific fields to fetch from the Staff */ select?: StaffSelect | null /** * Omit specific fields from the Staff */ omit?: StaffOmit | null /** * Choose, which related nodes to fetch as well */ include?: StaffInclude | null where?: StaffWhereInput } /** * Claim.npiProvider */ export type Claim$npiProviderArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null where?: NpiProviderWhereInput } /** * Claim.serviceLines */ export type Claim$serviceLinesArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null where?: ServiceLineWhereInput orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] cursor?: ServiceLineWhereUniqueInput take?: number skip?: number distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * Claim.claimFiles */ export type Claim$claimFilesArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null where?: ClaimFileWhereInput orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] cursor?: ClaimFileWhereUniqueInput take?: number skip?: number distinct?: ClaimFileScalarFieldEnum | ClaimFileScalarFieldEnum[] } /** * Claim.payment */ export type Claim$paymentArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput } /** * Claim without action */ export type ClaimDefaultArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null } /** * Model ServiceLine */ export type AggregateServiceLine = { _count: ServiceLineCountAggregateOutputType | null _avg: ServiceLineAvgAggregateOutputType | null _sum: ServiceLineSumAggregateOutputType | null _min: ServiceLineMinAggregateOutputType | null _max: ServiceLineMaxAggregateOutputType | null } export type ServiceLineAvgAggregateOutputType = { id: number | null claimId: number | null paymentId: number | null allowedAmount: Decimal | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null } export type ServiceLineSumAggregateOutputType = { id: number | null claimId: number | null paymentId: number | null allowedAmount: Decimal | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null } export type ServiceLineMinAggregateOutputType = { id: number | null claimId: number | null paymentId: number | null procedureCode: string | null procedureDate: Date | null quad: string | null arch: string | null toothNumber: string | null toothSurface: string | null icn: string | null paidCode: string | null allowedAmount: Decimal | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null status: $Enums.ServiceLineStatus | null } export type ServiceLineMaxAggregateOutputType = { id: number | null claimId: number | null paymentId: number | null procedureCode: string | null procedureDate: Date | null quad: string | null arch: string | null toothNumber: string | null toothSurface: string | null icn: string | null paidCode: string | null allowedAmount: Decimal | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null status: $Enums.ServiceLineStatus | null } export type ServiceLineCountAggregateOutputType = { id: number claimId: number paymentId: number procedureCode: number procedureDate: number quad: number arch: number toothNumber: number toothSurface: number icn: number paidCode: number allowedAmount: number totalBilled: number totalPaid: number totalAdjusted: number totalDue: number status: number _all: number } export type ServiceLineAvgAggregateInputType = { id?: true claimId?: true paymentId?: true allowedAmount?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true } export type ServiceLineSumAggregateInputType = { id?: true claimId?: true paymentId?: true allowedAmount?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true } export type ServiceLineMinAggregateInputType = { id?: true claimId?: true paymentId?: true procedureCode?: true procedureDate?: true quad?: true arch?: true toothNumber?: true toothSurface?: true icn?: true paidCode?: true allowedAmount?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true } export type ServiceLineMaxAggregateInputType = { id?: true claimId?: true paymentId?: true procedureCode?: true procedureDate?: true quad?: true arch?: true toothNumber?: true toothSurface?: true icn?: true paidCode?: true allowedAmount?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true } export type ServiceLineCountAggregateInputType = { id?: true claimId?: true paymentId?: true procedureCode?: true procedureDate?: true quad?: true arch?: true toothNumber?: true toothSurface?: true icn?: true paidCode?: true allowedAmount?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true status?: true _all?: true } export type ServiceLineAggregateArgs = { /** * Filter which ServiceLine to aggregate. */ where?: ServiceLineWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLines to fetch. */ orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ServiceLineWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLines from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ServiceLines. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ServiceLines **/ _count?: true | ServiceLineCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ServiceLineAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ServiceLineSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ServiceLineMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ServiceLineMaxAggregateInputType } export type GetServiceLineAggregateType = { [P in keyof T & keyof AggregateServiceLine]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ServiceLineGroupByArgs = { where?: ServiceLineWhereInput orderBy?: ServiceLineOrderByWithAggregationInput | ServiceLineOrderByWithAggregationInput[] by: ServiceLineScalarFieldEnum[] | ServiceLineScalarFieldEnum having?: ServiceLineScalarWhereWithAggregatesInput take?: number skip?: number _count?: ServiceLineCountAggregateInputType | true _avg?: ServiceLineAvgAggregateInputType _sum?: ServiceLineSumAggregateInputType _min?: ServiceLineMinAggregateInputType _max?: ServiceLineMaxAggregateInputType } export type ServiceLineGroupByOutputType = { id: number claimId: number | null paymentId: number | null procedureCode: string procedureDate: Date quad: string | null arch: string | null toothNumber: string | null toothSurface: string | null icn: string | null paidCode: string | null allowedAmount: Decimal | null totalBilled: Decimal totalPaid: Decimal totalAdjusted: Decimal totalDue: Decimal status: $Enums.ServiceLineStatus _count: ServiceLineCountAggregateOutputType | null _avg: ServiceLineAvgAggregateOutputType | null _sum: ServiceLineSumAggregateOutputType | null _min: ServiceLineMinAggregateOutputType | null _max: ServiceLineMaxAggregateOutputType | null } type GetServiceLineGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ServiceLineGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ServiceLineSelect = $Extensions.GetSelect<{ id?: boolean claimId?: boolean paymentId?: boolean procedureCode?: boolean procedureDate?: boolean quad?: boolean arch?: boolean toothNumber?: boolean toothSurface?: boolean icn?: boolean paidCode?: boolean allowedAmount?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs serviceLineTransactions?: boolean | ServiceLine$serviceLineTransactionsArgs _count?: boolean | ServiceLineCountOutputTypeDefaultArgs }, ExtArgs["result"]["serviceLine"]> export type ServiceLineSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean paymentId?: boolean procedureCode?: boolean procedureDate?: boolean quad?: boolean arch?: boolean toothNumber?: boolean toothSurface?: boolean icn?: boolean paidCode?: boolean allowedAmount?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs }, ExtArgs["result"]["serviceLine"]> export type ServiceLineSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean paymentId?: boolean procedureCode?: boolean procedureDate?: boolean quad?: boolean arch?: boolean toothNumber?: boolean toothSurface?: boolean icn?: boolean paidCode?: boolean allowedAmount?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs }, ExtArgs["result"]["serviceLine"]> export type ServiceLineSelectScalar = { id?: boolean claimId?: boolean paymentId?: boolean procedureCode?: boolean procedureDate?: boolean quad?: boolean arch?: boolean toothNumber?: boolean toothSurface?: boolean icn?: boolean paidCode?: boolean allowedAmount?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean status?: boolean } export type ServiceLineOmit = $Extensions.GetOmit<"id" | "claimId" | "paymentId" | "procedureCode" | "procedureDate" | "quad" | "arch" | "toothNumber" | "toothSurface" | "icn" | "paidCode" | "allowedAmount" | "totalBilled" | "totalPaid" | "totalAdjusted" | "totalDue" | "status", ExtArgs["result"]["serviceLine"]> export type ServiceLineInclude = { claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs serviceLineTransactions?: boolean | ServiceLine$serviceLineTransactionsArgs _count?: boolean | ServiceLineCountOutputTypeDefaultArgs } export type ServiceLineIncludeCreateManyAndReturn = { claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs } export type ServiceLineIncludeUpdateManyAndReturn = { claim?: boolean | ServiceLine$claimArgs payment?: boolean | ServiceLine$paymentArgs } export type $ServiceLinePayload = { name: "ServiceLine" objects: { claim: Prisma.$ClaimPayload | null payment: Prisma.$PaymentPayload | null serviceLineTransactions: Prisma.$ServiceLineTransactionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number claimId: number | null paymentId: number | null procedureCode: string procedureDate: Date quad: string | null arch: string | null toothNumber: string | null toothSurface: string | null icn: string | null paidCode: string | null allowedAmount: Prisma.Decimal | null totalBilled: Prisma.Decimal totalPaid: Prisma.Decimal totalAdjusted: Prisma.Decimal totalDue: Prisma.Decimal status: $Enums.ServiceLineStatus }, ExtArgs["result"]["serviceLine"]> composites: {} } type ServiceLineGetPayload = $Result.GetResult type ServiceLineCountArgs = Omit & { select?: ServiceLineCountAggregateInputType | true } export interface ServiceLineDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ServiceLine'], meta: { name: 'ServiceLine' } } /** * Find zero or one ServiceLine that matches the filter. * @param {ServiceLineFindUniqueArgs} args - Arguments to find a ServiceLine * @example * // Get one ServiceLine * const serviceLine = await prisma.serviceLine.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ServiceLine that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ServiceLineFindUniqueOrThrowArgs} args - Arguments to find a ServiceLine * @example * // Get one ServiceLine * const serviceLine = await prisma.serviceLine.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceLine 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 {ServiceLineFindFirstArgs} args - Arguments to find a ServiceLine * @example * // Get one ServiceLine * const serviceLine = await prisma.serviceLine.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceLine 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 {ServiceLineFindFirstOrThrowArgs} args - Arguments to find a ServiceLine * @example * // Get one ServiceLine * const serviceLine = await prisma.serviceLine.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ServiceLines 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 {ServiceLineFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ServiceLines * const serviceLines = await prisma.serviceLine.findMany() * * // Get first 10 ServiceLines * const serviceLines = await prisma.serviceLine.findMany({ take: 10 }) * * // Only select the `id` * const serviceLineWithIdOnly = await prisma.serviceLine.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ServiceLine. * @param {ServiceLineCreateArgs} args - Arguments to create a ServiceLine. * @example * // Create one ServiceLine * const ServiceLine = await prisma.serviceLine.create({ * data: { * // ... data to create a ServiceLine * } * }) * */ create(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ServiceLines. * @param {ServiceLineCreateManyArgs} args - Arguments to create many ServiceLines. * @example * // Create many ServiceLines * const serviceLine = await prisma.serviceLine.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ServiceLines and returns the data saved in the database. * @param {ServiceLineCreateManyAndReturnArgs} args - Arguments to create many ServiceLines. * @example * // Create many ServiceLines * const serviceLine = await prisma.serviceLine.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ServiceLines and only return the `id` * const serviceLineWithIdOnly = await prisma.serviceLine.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ServiceLine. * @param {ServiceLineDeleteArgs} args - Arguments to delete one ServiceLine. * @example * // Delete one ServiceLine * const ServiceLine = await prisma.serviceLine.delete({ * where: { * // ... filter to delete one ServiceLine * } * }) * */ delete(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ServiceLine. * @param {ServiceLineUpdateArgs} args - Arguments to update one ServiceLine. * @example * // Update one ServiceLine * const serviceLine = await prisma.serviceLine.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ServiceLines. * @param {ServiceLineDeleteManyArgs} args - Arguments to filter ServiceLines to delete. * @example * // Delete a few ServiceLines * const { count } = await prisma.serviceLine.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceLines. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ServiceLines * const serviceLine = await prisma.serviceLine.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceLines and returns the data updated in the database. * @param {ServiceLineUpdateManyAndReturnArgs} args - Arguments to update many ServiceLines. * @example * // Update many ServiceLines * const serviceLine = await prisma.serviceLine.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ServiceLines and only return the `id` * const serviceLineWithIdOnly = await prisma.serviceLine.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ServiceLine. * @param {ServiceLineUpsertArgs} args - Arguments to update or create a ServiceLine. * @example * // Update or create a ServiceLine * const serviceLine = await prisma.serviceLine.upsert({ * create: { * // ... data to create a ServiceLine * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ServiceLine we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ServiceLineClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ServiceLines. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineCountArgs} args - Arguments to filter ServiceLines to count. * @example * // Count the number of ServiceLines * const count = await prisma.serviceLine.count({ * where: { * // ... the filter for the ServiceLines 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 ServiceLine. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineAggregateArgs} 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 ServiceLine. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineGroupByArgs} 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 ServiceLineGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ServiceLineGroupByArgs['orderBy'] } : { orderBy?: ServiceLineGroupByArgs['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 ? GetServiceLineGroupByPayload : Prisma.PrismaPromise /** * Fields of the ServiceLine model */ readonly fields: ServiceLineFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ServiceLine. * 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__ServiceLineClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" claim = {}>(args?: Subset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> payment = {}>(args?: Subset>): Prisma__PaymentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> serviceLineTransactions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 ServiceLine model */ interface ServiceLineFieldRefs { readonly id: FieldRef<"ServiceLine", 'Int'> readonly claimId: FieldRef<"ServiceLine", 'Int'> readonly paymentId: FieldRef<"ServiceLine", 'Int'> readonly procedureCode: FieldRef<"ServiceLine", 'String'> readonly procedureDate: FieldRef<"ServiceLine", 'DateTime'> readonly quad: FieldRef<"ServiceLine", 'String'> readonly arch: FieldRef<"ServiceLine", 'String'> readonly toothNumber: FieldRef<"ServiceLine", 'String'> readonly toothSurface: FieldRef<"ServiceLine", 'String'> readonly icn: FieldRef<"ServiceLine", 'String'> readonly paidCode: FieldRef<"ServiceLine", 'String'> readonly allowedAmount: FieldRef<"ServiceLine", 'Decimal'> readonly totalBilled: FieldRef<"ServiceLine", 'Decimal'> readonly totalPaid: FieldRef<"ServiceLine", 'Decimal'> readonly totalAdjusted: FieldRef<"ServiceLine", 'Decimal'> readonly totalDue: FieldRef<"ServiceLine", 'Decimal'> readonly status: FieldRef<"ServiceLine", 'ServiceLineStatus'> } // Custom InputTypes /** * ServiceLine findUnique */ export type ServiceLineFindUniqueArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLine to fetch. */ where: ServiceLineWhereUniqueInput } /** * ServiceLine findUniqueOrThrow */ export type ServiceLineFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLine to fetch. */ where: ServiceLineWhereUniqueInput } /** * ServiceLine findFirst */ export type ServiceLineFindFirstArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLine to fetch. */ where?: ServiceLineWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLines to fetch. */ orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceLines. */ cursor?: ServiceLineWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLines from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ServiceLines. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceLines. */ distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * ServiceLine findFirstOrThrow */ export type ServiceLineFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLine to fetch. */ where?: ServiceLineWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLines to fetch. */ orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceLines. */ cursor?: ServiceLineWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLines from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ServiceLines. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceLines. */ distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * ServiceLine findMany */ export type ServiceLineFindManyArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter, which ServiceLines to fetch. */ where?: ServiceLineWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLines to fetch. */ orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ServiceLines. */ cursor?: ServiceLineWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLines from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ServiceLines. */ skip?: number distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * ServiceLine create */ export type ServiceLineCreateArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * The data needed to create a ServiceLine. */ data: XOR } /** * ServiceLine createMany */ export type ServiceLineCreateManyArgs = { /** * The data used to create many ServiceLines. */ data: ServiceLineCreateManyInput | ServiceLineCreateManyInput[] skipDuplicates?: boolean } /** * ServiceLine createManyAndReturn */ export type ServiceLineCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelectCreateManyAndReturn | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * The data used to create many ServiceLines. */ data: ServiceLineCreateManyInput | ServiceLineCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ServiceLineIncludeCreateManyAndReturn | null } /** * ServiceLine update */ export type ServiceLineUpdateArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * The data needed to update a ServiceLine. */ data: XOR /** * Choose, which ServiceLine to update. */ where: ServiceLineWhereUniqueInput } /** * ServiceLine updateMany */ export type ServiceLineUpdateManyArgs = { /** * The data used to update ServiceLines. */ data: XOR /** * Filter which ServiceLines to update */ where?: ServiceLineWhereInput /** * Limit how many ServiceLines to update. */ limit?: number } /** * ServiceLine updateManyAndReturn */ export type ServiceLineUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelectUpdateManyAndReturn | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * The data used to update ServiceLines. */ data: XOR /** * Filter which ServiceLines to update */ where?: ServiceLineWhereInput /** * Limit how many ServiceLines to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ServiceLineIncludeUpdateManyAndReturn | null } /** * ServiceLine upsert */ export type ServiceLineUpsertArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * The filter to search for the ServiceLine to update in case it exists. */ where: ServiceLineWhereUniqueInput /** * In case the ServiceLine found by the `where` argument doesn't exist, create a new ServiceLine with this data. */ create: XOR /** * In case the ServiceLine was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ServiceLine delete */ export type ServiceLineDeleteArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null /** * Filter which ServiceLine to delete. */ where: ServiceLineWhereUniqueInput } /** * ServiceLine deleteMany */ export type ServiceLineDeleteManyArgs = { /** * Filter which ServiceLines to delete */ where?: ServiceLineWhereInput /** * Limit how many ServiceLines to delete. */ limit?: number } /** * ServiceLine.claim */ export type ServiceLine$claimArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput } /** * ServiceLine.payment */ export type ServiceLine$paymentArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null where?: PaymentWhereInput } /** * ServiceLine.serviceLineTransactions */ export type ServiceLine$serviceLineTransactionsArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null where?: ServiceLineTransactionWhereInput orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] cursor?: ServiceLineTransactionWhereUniqueInput take?: number skip?: number distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * ServiceLine without action */ export type ServiceLineDefaultArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null } /** * Model ClaimFile */ export type AggregateClaimFile = { _count: ClaimFileCountAggregateOutputType | null _avg: ClaimFileAvgAggregateOutputType | null _sum: ClaimFileSumAggregateOutputType | null _min: ClaimFileMinAggregateOutputType | null _max: ClaimFileMaxAggregateOutputType | null } export type ClaimFileAvgAggregateOutputType = { id: number | null claimId: number | null } export type ClaimFileSumAggregateOutputType = { id: number | null claimId: number | null } export type ClaimFileMinAggregateOutputType = { id: number | null claimId: number | null filename: string | null mimeType: string | null filePath: string | null } export type ClaimFileMaxAggregateOutputType = { id: number | null claimId: number | null filename: string | null mimeType: string | null filePath: string | null } export type ClaimFileCountAggregateOutputType = { id: number claimId: number filename: number mimeType: number filePath: number _all: number } export type ClaimFileAvgAggregateInputType = { id?: true claimId?: true } export type ClaimFileSumAggregateInputType = { id?: true claimId?: true } export type ClaimFileMinAggregateInputType = { id?: true claimId?: true filename?: true mimeType?: true filePath?: true } export type ClaimFileMaxAggregateInputType = { id?: true claimId?: true filename?: true mimeType?: true filePath?: true } export type ClaimFileCountAggregateInputType = { id?: true claimId?: true filename?: true mimeType?: true filePath?: true _all?: true } export type ClaimFileAggregateArgs = { /** * Filter which ClaimFile to aggregate. */ where?: ClaimFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ClaimFiles to fetch. */ orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ClaimFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ClaimFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ClaimFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ClaimFiles **/ _count?: true | ClaimFileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ClaimFileAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ClaimFileSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ClaimFileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ClaimFileMaxAggregateInputType } export type GetClaimFileAggregateType = { [P in keyof T & keyof AggregateClaimFile]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ClaimFileGroupByArgs = { where?: ClaimFileWhereInput orderBy?: ClaimFileOrderByWithAggregationInput | ClaimFileOrderByWithAggregationInput[] by: ClaimFileScalarFieldEnum[] | ClaimFileScalarFieldEnum having?: ClaimFileScalarWhereWithAggregatesInput take?: number skip?: number _count?: ClaimFileCountAggregateInputType | true _avg?: ClaimFileAvgAggregateInputType _sum?: ClaimFileSumAggregateInputType _min?: ClaimFileMinAggregateInputType _max?: ClaimFileMaxAggregateInputType } export type ClaimFileGroupByOutputType = { id: number claimId: number filename: string mimeType: string filePath: string | null _count: ClaimFileCountAggregateOutputType | null _avg: ClaimFileAvgAggregateOutputType | null _sum: ClaimFileSumAggregateOutputType | null _min: ClaimFileMinAggregateOutputType | null _max: ClaimFileMaxAggregateOutputType | null } type GetClaimFileGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ClaimFileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ClaimFileSelect = $Extensions.GetSelect<{ id?: boolean claimId?: boolean filename?: boolean mimeType?: boolean filePath?: boolean claim?: boolean | ClaimDefaultArgs }, ExtArgs["result"]["claimFile"]> export type ClaimFileSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean filename?: boolean mimeType?: boolean filePath?: boolean claim?: boolean | ClaimDefaultArgs }, ExtArgs["result"]["claimFile"]> export type ClaimFileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean filename?: boolean mimeType?: boolean filePath?: boolean claim?: boolean | ClaimDefaultArgs }, ExtArgs["result"]["claimFile"]> export type ClaimFileSelectScalar = { id?: boolean claimId?: boolean filename?: boolean mimeType?: boolean filePath?: boolean } export type ClaimFileOmit = $Extensions.GetOmit<"id" | "claimId" | "filename" | "mimeType" | "filePath", ExtArgs["result"]["claimFile"]> export type ClaimFileInclude = { claim?: boolean | ClaimDefaultArgs } export type ClaimFileIncludeCreateManyAndReturn = { claim?: boolean | ClaimDefaultArgs } export type ClaimFileIncludeUpdateManyAndReturn = { claim?: boolean | ClaimDefaultArgs } export type $ClaimFilePayload = { name: "ClaimFile" objects: { claim: Prisma.$ClaimPayload } scalars: $Extensions.GetPayloadResult<{ id: number claimId: number filename: string mimeType: string filePath: string | null }, ExtArgs["result"]["claimFile"]> composites: {} } type ClaimFileGetPayload = $Result.GetResult type ClaimFileCountArgs = Omit & { select?: ClaimFileCountAggregateInputType | true } export interface ClaimFileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ClaimFile'], meta: { name: 'ClaimFile' } } /** * Find zero or one ClaimFile that matches the filter. * @param {ClaimFileFindUniqueArgs} args - Arguments to find a ClaimFile * @example * // Get one ClaimFile * const claimFile = await prisma.claimFile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ClaimFile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ClaimFileFindUniqueOrThrowArgs} args - Arguments to find a ClaimFile * @example * // Get one ClaimFile * const claimFile = await prisma.claimFile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ClaimFile 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 {ClaimFileFindFirstArgs} args - Arguments to find a ClaimFile * @example * // Get one ClaimFile * const claimFile = await prisma.claimFile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ClaimFile 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 {ClaimFileFindFirstOrThrowArgs} args - Arguments to find a ClaimFile * @example * // Get one ClaimFile * const claimFile = await prisma.claimFile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ClaimFiles 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 {ClaimFileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ClaimFiles * const claimFiles = await prisma.claimFile.findMany() * * // Get first 10 ClaimFiles * const claimFiles = await prisma.claimFile.findMany({ take: 10 }) * * // Only select the `id` * const claimFileWithIdOnly = await prisma.claimFile.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ClaimFile. * @param {ClaimFileCreateArgs} args - Arguments to create a ClaimFile. * @example * // Create one ClaimFile * const ClaimFile = await prisma.claimFile.create({ * data: { * // ... data to create a ClaimFile * } * }) * */ create(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ClaimFiles. * @param {ClaimFileCreateManyArgs} args - Arguments to create many ClaimFiles. * @example * // Create many ClaimFiles * const claimFile = await prisma.claimFile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ClaimFiles and returns the data saved in the database. * @param {ClaimFileCreateManyAndReturnArgs} args - Arguments to create many ClaimFiles. * @example * // Create many ClaimFiles * const claimFile = await prisma.claimFile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ClaimFiles and only return the `id` * const claimFileWithIdOnly = await prisma.claimFile.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ClaimFile. * @param {ClaimFileDeleteArgs} args - Arguments to delete one ClaimFile. * @example * // Delete one ClaimFile * const ClaimFile = await prisma.claimFile.delete({ * where: { * // ... filter to delete one ClaimFile * } * }) * */ delete(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ClaimFile. * @param {ClaimFileUpdateArgs} args - Arguments to update one ClaimFile. * @example * // Update one ClaimFile * const claimFile = await prisma.claimFile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ClaimFiles. * @param {ClaimFileDeleteManyArgs} args - Arguments to filter ClaimFiles to delete. * @example * // Delete a few ClaimFiles * const { count } = await prisma.claimFile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ClaimFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimFileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ClaimFiles * const claimFile = await prisma.claimFile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ClaimFiles and returns the data updated in the database. * @param {ClaimFileUpdateManyAndReturnArgs} args - Arguments to update many ClaimFiles. * @example * // Update many ClaimFiles * const claimFile = await prisma.claimFile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ClaimFiles and only return the `id` * const claimFileWithIdOnly = await prisma.claimFile.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ClaimFile. * @param {ClaimFileUpsertArgs} args - Arguments to update or create a ClaimFile. * @example * // Update or create a ClaimFile * const claimFile = await prisma.claimFile.upsert({ * create: { * // ... data to create a ClaimFile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ClaimFile we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ClaimFileClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ClaimFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimFileCountArgs} args - Arguments to filter ClaimFiles to count. * @example * // Count the number of ClaimFiles * const count = await prisma.claimFile.count({ * where: { * // ... the filter for the ClaimFiles 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 ClaimFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimFileAggregateArgs} 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 ClaimFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ClaimFileGroupByArgs} 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 ClaimFileGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ClaimFileGroupByArgs['orderBy'] } : { orderBy?: ClaimFileGroupByArgs['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 ? GetClaimFileGroupByPayload : Prisma.PrismaPromise /** * Fields of the ClaimFile model */ readonly fields: ClaimFileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ClaimFile. * 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__ClaimFileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" claim = {}>(args?: Subset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 ClaimFile model */ interface ClaimFileFieldRefs { readonly id: FieldRef<"ClaimFile", 'Int'> readonly claimId: FieldRef<"ClaimFile", 'Int'> readonly filename: FieldRef<"ClaimFile", 'String'> readonly mimeType: FieldRef<"ClaimFile", 'String'> readonly filePath: FieldRef<"ClaimFile", 'String'> } // Custom InputTypes /** * ClaimFile findUnique */ export type ClaimFileFindUniqueArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFile to fetch. */ where: ClaimFileWhereUniqueInput } /** * ClaimFile findUniqueOrThrow */ export type ClaimFileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFile to fetch. */ where: ClaimFileWhereUniqueInput } /** * ClaimFile findFirst */ export type ClaimFileFindFirstArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFile to fetch. */ where?: ClaimFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ClaimFiles to fetch. */ orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ClaimFiles. */ cursor?: ClaimFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ClaimFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ClaimFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ClaimFiles. */ distinct?: ClaimFileScalarFieldEnum | ClaimFileScalarFieldEnum[] } /** * ClaimFile findFirstOrThrow */ export type ClaimFileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFile to fetch. */ where?: ClaimFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ClaimFiles to fetch. */ orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ClaimFiles. */ cursor?: ClaimFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ClaimFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ClaimFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ClaimFiles. */ distinct?: ClaimFileScalarFieldEnum | ClaimFileScalarFieldEnum[] } /** * ClaimFile findMany */ export type ClaimFileFindManyArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter, which ClaimFiles to fetch. */ where?: ClaimFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ClaimFiles to fetch. */ orderBy?: ClaimFileOrderByWithRelationInput | ClaimFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ClaimFiles. */ cursor?: ClaimFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ClaimFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ClaimFiles. */ skip?: number distinct?: ClaimFileScalarFieldEnum | ClaimFileScalarFieldEnum[] } /** * ClaimFile create */ export type ClaimFileCreateArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * The data needed to create a ClaimFile. */ data: XOR } /** * ClaimFile createMany */ export type ClaimFileCreateManyArgs = { /** * The data used to create many ClaimFiles. */ data: ClaimFileCreateManyInput | ClaimFileCreateManyInput[] skipDuplicates?: boolean } /** * ClaimFile createManyAndReturn */ export type ClaimFileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelectCreateManyAndReturn | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * The data used to create many ClaimFiles. */ data: ClaimFileCreateManyInput | ClaimFileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ClaimFileIncludeCreateManyAndReturn | null } /** * ClaimFile update */ export type ClaimFileUpdateArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * The data needed to update a ClaimFile. */ data: XOR /** * Choose, which ClaimFile to update. */ where: ClaimFileWhereUniqueInput } /** * ClaimFile updateMany */ export type ClaimFileUpdateManyArgs = { /** * The data used to update ClaimFiles. */ data: XOR /** * Filter which ClaimFiles to update */ where?: ClaimFileWhereInput /** * Limit how many ClaimFiles to update. */ limit?: number } /** * ClaimFile updateManyAndReturn */ export type ClaimFileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelectUpdateManyAndReturn | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * The data used to update ClaimFiles. */ data: XOR /** * Filter which ClaimFiles to update */ where?: ClaimFileWhereInput /** * Limit how many ClaimFiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ClaimFileIncludeUpdateManyAndReturn | null } /** * ClaimFile upsert */ export type ClaimFileUpsertArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * The filter to search for the ClaimFile to update in case it exists. */ where: ClaimFileWhereUniqueInput /** * In case the ClaimFile found by the `where` argument doesn't exist, create a new ClaimFile with this data. */ create: XOR /** * In case the ClaimFile was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ClaimFile delete */ export type ClaimFileDeleteArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null /** * Filter which ClaimFile to delete. */ where: ClaimFileWhereUniqueInput } /** * ClaimFile deleteMany */ export type ClaimFileDeleteManyArgs = { /** * Filter which ClaimFiles to delete */ where?: ClaimFileWhereInput /** * Limit how many ClaimFiles to delete. */ limit?: number } /** * ClaimFile without action */ export type ClaimFileDefaultArgs = { /** * Select specific fields to fetch from the ClaimFile */ select?: ClaimFileSelect | null /** * Omit specific fields from the ClaimFile */ omit?: ClaimFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimFileInclude | null } /** * Model InsuranceCredential */ export type AggregateInsuranceCredential = { _count: InsuranceCredentialCountAggregateOutputType | null _avg: InsuranceCredentialAvgAggregateOutputType | null _sum: InsuranceCredentialSumAggregateOutputType | null _min: InsuranceCredentialMinAggregateOutputType | null _max: InsuranceCredentialMaxAggregateOutputType | null } export type InsuranceCredentialAvgAggregateOutputType = { id: number | null userId: number | null } export type InsuranceCredentialSumAggregateOutputType = { id: number | null userId: number | null } export type InsuranceCredentialMinAggregateOutputType = { id: number | null userId: number | null siteKey: string | null username: string | null password: string | null } export type InsuranceCredentialMaxAggregateOutputType = { id: number | null userId: number | null siteKey: string | null username: string | null password: string | null } export type InsuranceCredentialCountAggregateOutputType = { id: number userId: number siteKey: number username: number password: number _all: number } export type InsuranceCredentialAvgAggregateInputType = { id?: true userId?: true } export type InsuranceCredentialSumAggregateInputType = { id?: true userId?: true } export type InsuranceCredentialMinAggregateInputType = { id?: true userId?: true siteKey?: true username?: true password?: true } export type InsuranceCredentialMaxAggregateInputType = { id?: true userId?: true siteKey?: true username?: true password?: true } export type InsuranceCredentialCountAggregateInputType = { id?: true userId?: true siteKey?: true username?: true password?: true _all?: true } export type InsuranceCredentialAggregateArgs = { /** * Filter which InsuranceCredential to aggregate. */ where?: InsuranceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceCredentials to fetch. */ orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: InsuranceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceCredentials from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` InsuranceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned InsuranceCredentials **/ _count?: true | InsuranceCredentialCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: InsuranceCredentialAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: InsuranceCredentialSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InsuranceCredentialMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InsuranceCredentialMaxAggregateInputType } export type GetInsuranceCredentialAggregateType = { [P in keyof T & keyof AggregateInsuranceCredential]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type InsuranceCredentialGroupByArgs = { where?: InsuranceCredentialWhereInput orderBy?: InsuranceCredentialOrderByWithAggregationInput | InsuranceCredentialOrderByWithAggregationInput[] by: InsuranceCredentialScalarFieldEnum[] | InsuranceCredentialScalarFieldEnum having?: InsuranceCredentialScalarWhereWithAggregatesInput take?: number skip?: number _count?: InsuranceCredentialCountAggregateInputType | true _avg?: InsuranceCredentialAvgAggregateInputType _sum?: InsuranceCredentialSumAggregateInputType _min?: InsuranceCredentialMinAggregateInputType _max?: InsuranceCredentialMaxAggregateInputType } export type InsuranceCredentialGroupByOutputType = { id: number userId: number siteKey: string username: string password: string _count: InsuranceCredentialCountAggregateOutputType | null _avg: InsuranceCredentialAvgAggregateOutputType | null _sum: InsuranceCredentialSumAggregateOutputType | null _min: InsuranceCredentialMinAggregateOutputType | null _max: InsuranceCredentialMaxAggregateOutputType | null } type GetInsuranceCredentialGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof InsuranceCredentialGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type InsuranceCredentialSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean siteKey?: boolean username?: boolean password?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceCredential"]> export type InsuranceCredentialSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean siteKey?: boolean username?: boolean password?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceCredential"]> export type InsuranceCredentialSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean siteKey?: boolean username?: boolean password?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceCredential"]> export type InsuranceCredentialSelectScalar = { id?: boolean userId?: boolean siteKey?: boolean username?: boolean password?: boolean } export type InsuranceCredentialOmit = $Extensions.GetOmit<"id" | "userId" | "siteKey" | "username" | "password", ExtArgs["result"]["insuranceCredential"]> export type InsuranceCredentialInclude = { user?: boolean | UserDefaultArgs } export type InsuranceCredentialIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type InsuranceCredentialIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $InsuranceCredentialPayload = { name: "InsuranceCredential" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number siteKey: string username: string password: string }, ExtArgs["result"]["insuranceCredential"]> composites: {} } type InsuranceCredentialGetPayload = $Result.GetResult type InsuranceCredentialCountArgs = Omit & { select?: InsuranceCredentialCountAggregateInputType | true } export interface InsuranceCredentialDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['InsuranceCredential'], meta: { name: 'InsuranceCredential' } } /** * Find zero or one InsuranceCredential that matches the filter. * @param {InsuranceCredentialFindUniqueArgs} args - Arguments to find a InsuranceCredential * @example * // Get one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one InsuranceCredential that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InsuranceCredentialFindUniqueOrThrowArgs} args - Arguments to find a InsuranceCredential * @example * // Get one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first InsuranceCredential 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 {InsuranceCredentialFindFirstArgs} args - Arguments to find a InsuranceCredential * @example * // Get one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first InsuranceCredential 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 {InsuranceCredentialFindFirstOrThrowArgs} args - Arguments to find a InsuranceCredential * @example * // Get one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more InsuranceCredentials 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 {InsuranceCredentialFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all InsuranceCredentials * const insuranceCredentials = await prisma.insuranceCredential.findMany() * * // Get first 10 InsuranceCredentials * const insuranceCredentials = await prisma.insuranceCredential.findMany({ take: 10 }) * * // Only select the `id` * const insuranceCredentialWithIdOnly = await prisma.insuranceCredential.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a InsuranceCredential. * @param {InsuranceCredentialCreateArgs} args - Arguments to create a InsuranceCredential. * @example * // Create one InsuranceCredential * const InsuranceCredential = await prisma.insuranceCredential.create({ * data: { * // ... data to create a InsuranceCredential * } * }) * */ create(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many InsuranceCredentials. * @param {InsuranceCredentialCreateManyArgs} args - Arguments to create many InsuranceCredentials. * @example * // Create many InsuranceCredentials * const insuranceCredential = await prisma.insuranceCredential.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many InsuranceCredentials and returns the data saved in the database. * @param {InsuranceCredentialCreateManyAndReturnArgs} args - Arguments to create many InsuranceCredentials. * @example * // Create many InsuranceCredentials * const insuranceCredential = await prisma.insuranceCredential.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many InsuranceCredentials and only return the `id` * const insuranceCredentialWithIdOnly = await prisma.insuranceCredential.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a InsuranceCredential. * @param {InsuranceCredentialDeleteArgs} args - Arguments to delete one InsuranceCredential. * @example * // Delete one InsuranceCredential * const InsuranceCredential = await prisma.insuranceCredential.delete({ * where: { * // ... filter to delete one InsuranceCredential * } * }) * */ delete(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one InsuranceCredential. * @param {InsuranceCredentialUpdateArgs} args - Arguments to update one InsuranceCredential. * @example * // Update one InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more InsuranceCredentials. * @param {InsuranceCredentialDeleteManyArgs} args - Arguments to filter InsuranceCredentials to delete. * @example * // Delete a few InsuranceCredentials * const { count } = await prisma.insuranceCredential.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more InsuranceCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceCredentialUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many InsuranceCredentials * const insuranceCredential = await prisma.insuranceCredential.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more InsuranceCredentials and returns the data updated in the database. * @param {InsuranceCredentialUpdateManyAndReturnArgs} args - Arguments to update many InsuranceCredentials. * @example * // Update many InsuranceCredentials * const insuranceCredential = await prisma.insuranceCredential.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more InsuranceCredentials and only return the `id` * const insuranceCredentialWithIdOnly = await prisma.insuranceCredential.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one InsuranceCredential. * @param {InsuranceCredentialUpsertArgs} args - Arguments to update or create a InsuranceCredential. * @example * // Update or create a InsuranceCredential * const insuranceCredential = await prisma.insuranceCredential.upsert({ * create: { * // ... data to create a InsuranceCredential * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the InsuranceCredential we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__InsuranceCredentialClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of InsuranceCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceCredentialCountArgs} args - Arguments to filter InsuranceCredentials to count. * @example * // Count the number of InsuranceCredentials * const count = await prisma.insuranceCredential.count({ * where: { * // ... the filter for the InsuranceCredentials 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 InsuranceCredential. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceCredentialAggregateArgs} 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 InsuranceCredential. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceCredentialGroupByArgs} 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 InsuranceCredentialGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: InsuranceCredentialGroupByArgs['orderBy'] } : { orderBy?: InsuranceCredentialGroupByArgs['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 ? GetInsuranceCredentialGroupByPayload : Prisma.PrismaPromise /** * Fields of the InsuranceCredential model */ readonly fields: InsuranceCredentialFieldRefs; } /** * The delegate class that acts as a "Promise-like" for InsuranceCredential. * 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__InsuranceCredentialClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 InsuranceCredential model */ interface InsuranceCredentialFieldRefs { readonly id: FieldRef<"InsuranceCredential", 'Int'> readonly userId: FieldRef<"InsuranceCredential", 'Int'> readonly siteKey: FieldRef<"InsuranceCredential", 'String'> readonly username: FieldRef<"InsuranceCredential", 'String'> readonly password: FieldRef<"InsuranceCredential", 'String'> } // Custom InputTypes /** * InsuranceCredential findUnique */ export type InsuranceCredentialFindUniqueArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredential to fetch. */ where: InsuranceCredentialWhereUniqueInput } /** * InsuranceCredential findUniqueOrThrow */ export type InsuranceCredentialFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredential to fetch. */ where: InsuranceCredentialWhereUniqueInput } /** * InsuranceCredential findFirst */ export type InsuranceCredentialFindFirstArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredential to fetch. */ where?: InsuranceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceCredentials to fetch. */ orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InsuranceCredentials. */ cursor?: InsuranceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceCredentials from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` InsuranceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InsuranceCredentials. */ distinct?: InsuranceCredentialScalarFieldEnum | InsuranceCredentialScalarFieldEnum[] } /** * InsuranceCredential findFirstOrThrow */ export type InsuranceCredentialFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredential to fetch. */ where?: InsuranceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceCredentials to fetch. */ orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InsuranceCredentials. */ cursor?: InsuranceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceCredentials from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` InsuranceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InsuranceCredentials. */ distinct?: InsuranceCredentialScalarFieldEnum | InsuranceCredentialScalarFieldEnum[] } /** * InsuranceCredential findMany */ export type InsuranceCredentialFindManyArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter, which InsuranceCredentials to fetch. */ where?: InsuranceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceCredentials to fetch. */ orderBy?: InsuranceCredentialOrderByWithRelationInput | InsuranceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing InsuranceCredentials. */ cursor?: InsuranceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceCredentials from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` InsuranceCredentials. */ skip?: number distinct?: InsuranceCredentialScalarFieldEnum | InsuranceCredentialScalarFieldEnum[] } /** * InsuranceCredential create */ export type InsuranceCredentialCreateArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * The data needed to create a InsuranceCredential. */ data: XOR } /** * InsuranceCredential createMany */ export type InsuranceCredentialCreateManyArgs = { /** * The data used to create many InsuranceCredentials. */ data: InsuranceCredentialCreateManyInput | InsuranceCredentialCreateManyInput[] skipDuplicates?: boolean } /** * InsuranceCredential createManyAndReturn */ export type InsuranceCredentialCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelectCreateManyAndReturn | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * The data used to create many InsuranceCredentials. */ data: InsuranceCredentialCreateManyInput | InsuranceCredentialCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialIncludeCreateManyAndReturn | null } /** * InsuranceCredential update */ export type InsuranceCredentialUpdateArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * The data needed to update a InsuranceCredential. */ data: XOR /** * Choose, which InsuranceCredential to update. */ where: InsuranceCredentialWhereUniqueInput } /** * InsuranceCredential updateMany */ export type InsuranceCredentialUpdateManyArgs = { /** * The data used to update InsuranceCredentials. */ data: XOR /** * Filter which InsuranceCredentials to update */ where?: InsuranceCredentialWhereInput /** * Limit how many InsuranceCredentials to update. */ limit?: number } /** * InsuranceCredential updateManyAndReturn */ export type InsuranceCredentialUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelectUpdateManyAndReturn | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * The data used to update InsuranceCredentials. */ data: XOR /** * Filter which InsuranceCredentials to update */ where?: InsuranceCredentialWhereInput /** * Limit how many InsuranceCredentials to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialIncludeUpdateManyAndReturn | null } /** * InsuranceCredential upsert */ export type InsuranceCredentialUpsertArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * The filter to search for the InsuranceCredential to update in case it exists. */ where: InsuranceCredentialWhereUniqueInput /** * In case the InsuranceCredential found by the `where` argument doesn't exist, create a new InsuranceCredential with this data. */ create: XOR /** * In case the InsuranceCredential was found with the provided `where` argument, update it with this data. */ update: XOR } /** * InsuranceCredential delete */ export type InsuranceCredentialDeleteArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null /** * Filter which InsuranceCredential to delete. */ where: InsuranceCredentialWhereUniqueInput } /** * InsuranceCredential deleteMany */ export type InsuranceCredentialDeleteManyArgs = { /** * Filter which InsuranceCredentials to delete */ where?: InsuranceCredentialWhereInput /** * Limit how many InsuranceCredentials to delete. */ limit?: number } /** * InsuranceCredential without action */ export type InsuranceCredentialDefaultArgs = { /** * Select specific fields to fetch from the InsuranceCredential */ select?: InsuranceCredentialSelect | null /** * Omit specific fields from the InsuranceCredential */ omit?: InsuranceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceCredentialInclude | null } /** * Model ShoppingVendor */ export type AggregateShoppingVendor = { _count: ShoppingVendorCountAggregateOutputType | null _avg: ShoppingVendorAvgAggregateOutputType | null _sum: ShoppingVendorSumAggregateOutputType | null _min: ShoppingVendorMinAggregateOutputType | null _max: ShoppingVendorMaxAggregateOutputType | null } export type ShoppingVendorAvgAggregateOutputType = { id: number | null userId: number | null } export type ShoppingVendorSumAggregateOutputType = { id: number | null userId: number | null } export type ShoppingVendorMinAggregateOutputType = { id: number | null userId: number | null vendorName: string | null websiteUrl: string | null loginUsername: string | null loginPassword: string | null } export type ShoppingVendorMaxAggregateOutputType = { id: number | null userId: number | null vendorName: string | null websiteUrl: string | null loginUsername: string | null loginPassword: string | null } export type ShoppingVendorCountAggregateOutputType = { id: number userId: number vendorName: number websiteUrl: number loginUsername: number loginPassword: number _all: number } export type ShoppingVendorAvgAggregateInputType = { id?: true userId?: true } export type ShoppingVendorSumAggregateInputType = { id?: true userId?: true } export type ShoppingVendorMinAggregateInputType = { id?: true userId?: true vendorName?: true websiteUrl?: true loginUsername?: true loginPassword?: true } export type ShoppingVendorMaxAggregateInputType = { id?: true userId?: true vendorName?: true websiteUrl?: true loginUsername?: true loginPassword?: true } export type ShoppingVendorCountAggregateInputType = { id?: true userId?: true vendorName?: true websiteUrl?: true loginUsername?: true loginPassword?: true _all?: true } export type ShoppingVendorAggregateArgs = { /** * Filter which ShoppingVendor to aggregate. */ where?: ShoppingVendorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ShoppingVendors to fetch. */ orderBy?: ShoppingVendorOrderByWithRelationInput | ShoppingVendorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ShoppingVendorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ShoppingVendors from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ShoppingVendors. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ShoppingVendors **/ _count?: true | ShoppingVendorCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ShoppingVendorAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ShoppingVendorSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ShoppingVendorMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ShoppingVendorMaxAggregateInputType } export type GetShoppingVendorAggregateType = { [P in keyof T & keyof AggregateShoppingVendor]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ShoppingVendorGroupByArgs = { where?: ShoppingVendorWhereInput orderBy?: ShoppingVendorOrderByWithAggregationInput | ShoppingVendorOrderByWithAggregationInput[] by: ShoppingVendorScalarFieldEnum[] | ShoppingVendorScalarFieldEnum having?: ShoppingVendorScalarWhereWithAggregatesInput take?: number skip?: number _count?: ShoppingVendorCountAggregateInputType | true _avg?: ShoppingVendorAvgAggregateInputType _sum?: ShoppingVendorSumAggregateInputType _min?: ShoppingVendorMinAggregateInputType _max?: ShoppingVendorMaxAggregateInputType } export type ShoppingVendorGroupByOutputType = { id: number userId: number vendorName: string websiteUrl: string loginUsername: string loginPassword: string _count: ShoppingVendorCountAggregateOutputType | null _avg: ShoppingVendorAvgAggregateOutputType | null _sum: ShoppingVendorSumAggregateOutputType | null _min: ShoppingVendorMinAggregateOutputType | null _max: ShoppingVendorMaxAggregateOutputType | null } type GetShoppingVendorGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ShoppingVendorGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ShoppingVendorSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean vendorName?: boolean websiteUrl?: boolean loginUsername?: boolean loginPassword?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["shoppingVendor"]> export type ShoppingVendorSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean vendorName?: boolean websiteUrl?: boolean loginUsername?: boolean loginPassword?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["shoppingVendor"]> export type ShoppingVendorSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean vendorName?: boolean websiteUrl?: boolean loginUsername?: boolean loginPassword?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["shoppingVendor"]> export type ShoppingVendorSelectScalar = { id?: boolean userId?: boolean vendorName?: boolean websiteUrl?: boolean loginUsername?: boolean loginPassword?: boolean } export type ShoppingVendorOmit = $Extensions.GetOmit<"id" | "userId" | "vendorName" | "websiteUrl" | "loginUsername" | "loginPassword", ExtArgs["result"]["shoppingVendor"]> export type ShoppingVendorInclude = { user?: boolean | UserDefaultArgs } export type ShoppingVendorIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type ShoppingVendorIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $ShoppingVendorPayload = { name: "ShoppingVendor" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number vendorName: string websiteUrl: string loginUsername: string loginPassword: string }, ExtArgs["result"]["shoppingVendor"]> composites: {} } type ShoppingVendorGetPayload = $Result.GetResult type ShoppingVendorCountArgs = Omit & { select?: ShoppingVendorCountAggregateInputType | true } export interface ShoppingVendorDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ShoppingVendor'], meta: { name: 'ShoppingVendor' } } /** * Find zero or one ShoppingVendor that matches the filter. * @param {ShoppingVendorFindUniqueArgs} args - Arguments to find a ShoppingVendor * @example * // Get one ShoppingVendor * const shoppingVendor = await prisma.shoppingVendor.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ShoppingVendorClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ShoppingVendor that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ShoppingVendorFindUniqueOrThrowArgs} args - Arguments to find a ShoppingVendor * @example * // Get one ShoppingVendor * const shoppingVendor = await prisma.shoppingVendor.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ShoppingVendorClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ShoppingVendor 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 {ShoppingVendorFindFirstArgs} args - Arguments to find a ShoppingVendor * @example * // Get one ShoppingVendor * const shoppingVendor = await prisma.shoppingVendor.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ShoppingVendorClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ShoppingVendor 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 {ShoppingVendorFindFirstOrThrowArgs} args - Arguments to find a ShoppingVendor * @example * // Get one ShoppingVendor * const shoppingVendor = await prisma.shoppingVendor.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ShoppingVendorClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ShoppingVendors 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 {ShoppingVendorFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ShoppingVendors * const shoppingVendors = await prisma.shoppingVendor.findMany() * * // Get first 10 ShoppingVendors * const shoppingVendors = await prisma.shoppingVendor.findMany({ take: 10 }) * * // Only select the `id` * const shoppingVendorWithIdOnly = await prisma.shoppingVendor.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ShoppingVendor. * @param {ShoppingVendorCreateArgs} args - Arguments to create a ShoppingVendor. * @example * // Create one ShoppingVendor * const ShoppingVendor = await prisma.shoppingVendor.create({ * data: { * // ... data to create a ShoppingVendor * } * }) * */ create(args: SelectSubset>): Prisma__ShoppingVendorClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ShoppingVendors. * @param {ShoppingVendorCreateManyArgs} args - Arguments to create many ShoppingVendors. * @example * // Create many ShoppingVendors * const shoppingVendor = await prisma.shoppingVendor.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ShoppingVendors and returns the data saved in the database. * @param {ShoppingVendorCreateManyAndReturnArgs} args - Arguments to create many ShoppingVendors. * @example * // Create many ShoppingVendors * const shoppingVendor = await prisma.shoppingVendor.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ShoppingVendors and only return the `id` * const shoppingVendorWithIdOnly = await prisma.shoppingVendor.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ShoppingVendor. * @param {ShoppingVendorDeleteArgs} args - Arguments to delete one ShoppingVendor. * @example * // Delete one ShoppingVendor * const ShoppingVendor = await prisma.shoppingVendor.delete({ * where: { * // ... filter to delete one ShoppingVendor * } * }) * */ delete(args: SelectSubset>): Prisma__ShoppingVendorClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ShoppingVendor. * @param {ShoppingVendorUpdateArgs} args - Arguments to update one ShoppingVendor. * @example * // Update one ShoppingVendor * const shoppingVendor = await prisma.shoppingVendor.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ShoppingVendorClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ShoppingVendors. * @param {ShoppingVendorDeleteManyArgs} args - Arguments to filter ShoppingVendors to delete. * @example * // Delete a few ShoppingVendors * const { count } = await prisma.shoppingVendor.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ShoppingVendors. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShoppingVendorUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ShoppingVendors * const shoppingVendor = await prisma.shoppingVendor.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ShoppingVendors and returns the data updated in the database. * @param {ShoppingVendorUpdateManyAndReturnArgs} args - Arguments to update many ShoppingVendors. * @example * // Update many ShoppingVendors * const shoppingVendor = await prisma.shoppingVendor.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ShoppingVendors and only return the `id` * const shoppingVendorWithIdOnly = await prisma.shoppingVendor.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ShoppingVendor. * @param {ShoppingVendorUpsertArgs} args - Arguments to update or create a ShoppingVendor. * @example * // Update or create a ShoppingVendor * const shoppingVendor = await prisma.shoppingVendor.upsert({ * create: { * // ... data to create a ShoppingVendor * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ShoppingVendor we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ShoppingVendorClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ShoppingVendors. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShoppingVendorCountArgs} args - Arguments to filter ShoppingVendors to count. * @example * // Count the number of ShoppingVendors * const count = await prisma.shoppingVendor.count({ * where: { * // ... the filter for the ShoppingVendors 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 ShoppingVendor. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShoppingVendorAggregateArgs} 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 ShoppingVendor. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ShoppingVendorGroupByArgs} 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 ShoppingVendorGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ShoppingVendorGroupByArgs['orderBy'] } : { orderBy?: ShoppingVendorGroupByArgs['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 ? GetShoppingVendorGroupByPayload : Prisma.PrismaPromise /** * Fields of the ShoppingVendor model */ readonly fields: ShoppingVendorFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ShoppingVendor. * 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__ShoppingVendorClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 ShoppingVendor model */ interface ShoppingVendorFieldRefs { readonly id: FieldRef<"ShoppingVendor", 'Int'> readonly userId: FieldRef<"ShoppingVendor", 'Int'> readonly vendorName: FieldRef<"ShoppingVendor", 'String'> readonly websiteUrl: FieldRef<"ShoppingVendor", 'String'> readonly loginUsername: FieldRef<"ShoppingVendor", 'String'> readonly loginPassword: FieldRef<"ShoppingVendor", 'String'> } // Custom InputTypes /** * ShoppingVendor findUnique */ export type ShoppingVendorFindUniqueArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * Filter, which ShoppingVendor to fetch. */ where: ShoppingVendorWhereUniqueInput } /** * ShoppingVendor findUniqueOrThrow */ export type ShoppingVendorFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * Filter, which ShoppingVendor to fetch. */ where: ShoppingVendorWhereUniqueInput } /** * ShoppingVendor findFirst */ export type ShoppingVendorFindFirstArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * Filter, which ShoppingVendor to fetch. */ where?: ShoppingVendorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ShoppingVendors to fetch. */ orderBy?: ShoppingVendorOrderByWithRelationInput | ShoppingVendorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ShoppingVendors. */ cursor?: ShoppingVendorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ShoppingVendors from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ShoppingVendors. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ShoppingVendors. */ distinct?: ShoppingVendorScalarFieldEnum | ShoppingVendorScalarFieldEnum[] } /** * ShoppingVendor findFirstOrThrow */ export type ShoppingVendorFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * Filter, which ShoppingVendor to fetch. */ where?: ShoppingVendorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ShoppingVendors to fetch. */ orderBy?: ShoppingVendorOrderByWithRelationInput | ShoppingVendorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ShoppingVendors. */ cursor?: ShoppingVendorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ShoppingVendors from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ShoppingVendors. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ShoppingVendors. */ distinct?: ShoppingVendorScalarFieldEnum | ShoppingVendorScalarFieldEnum[] } /** * ShoppingVendor findMany */ export type ShoppingVendorFindManyArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * Filter, which ShoppingVendors to fetch. */ where?: ShoppingVendorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ShoppingVendors to fetch. */ orderBy?: ShoppingVendorOrderByWithRelationInput | ShoppingVendorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ShoppingVendors. */ cursor?: ShoppingVendorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ShoppingVendors from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ShoppingVendors. */ skip?: number distinct?: ShoppingVendorScalarFieldEnum | ShoppingVendorScalarFieldEnum[] } /** * ShoppingVendor create */ export type ShoppingVendorCreateArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * The data needed to create a ShoppingVendor. */ data: XOR } /** * ShoppingVendor createMany */ export type ShoppingVendorCreateManyArgs = { /** * The data used to create many ShoppingVendors. */ data: ShoppingVendorCreateManyInput | ShoppingVendorCreateManyInput[] skipDuplicates?: boolean } /** * ShoppingVendor createManyAndReturn */ export type ShoppingVendorCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelectCreateManyAndReturn | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * The data used to create many ShoppingVendors. */ data: ShoppingVendorCreateManyInput | ShoppingVendorCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorIncludeCreateManyAndReturn | null } /** * ShoppingVendor update */ export type ShoppingVendorUpdateArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * The data needed to update a ShoppingVendor. */ data: XOR /** * Choose, which ShoppingVendor to update. */ where: ShoppingVendorWhereUniqueInput } /** * ShoppingVendor updateMany */ export type ShoppingVendorUpdateManyArgs = { /** * The data used to update ShoppingVendors. */ data: XOR /** * Filter which ShoppingVendors to update */ where?: ShoppingVendorWhereInput /** * Limit how many ShoppingVendors to update. */ limit?: number } /** * ShoppingVendor updateManyAndReturn */ export type ShoppingVendorUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelectUpdateManyAndReturn | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * The data used to update ShoppingVendors. */ data: XOR /** * Filter which ShoppingVendors to update */ where?: ShoppingVendorWhereInput /** * Limit how many ShoppingVendors to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorIncludeUpdateManyAndReturn | null } /** * ShoppingVendor upsert */ export type ShoppingVendorUpsertArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * The filter to search for the ShoppingVendor to update in case it exists. */ where: ShoppingVendorWhereUniqueInput /** * In case the ShoppingVendor found by the `where` argument doesn't exist, create a new ShoppingVendor with this data. */ create: XOR /** * In case the ShoppingVendor was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ShoppingVendor delete */ export type ShoppingVendorDeleteArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null /** * Filter which ShoppingVendor to delete. */ where: ShoppingVendorWhereUniqueInput } /** * ShoppingVendor deleteMany */ export type ShoppingVendorDeleteManyArgs = { /** * Filter which ShoppingVendors to delete */ where?: ShoppingVendorWhereInput /** * Limit how many ShoppingVendors to delete. */ limit?: number } /** * ShoppingVendor without action */ export type ShoppingVendorDefaultArgs = { /** * Select specific fields to fetch from the ShoppingVendor */ select?: ShoppingVendorSelect | null /** * Omit specific fields from the ShoppingVendor */ omit?: ShoppingVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: ShoppingVendorInclude | null } /** * Model PdfGroup */ export type AggregatePdfGroup = { _count: PdfGroupCountAggregateOutputType | null _avg: PdfGroupAvgAggregateOutputType | null _sum: PdfGroupSumAggregateOutputType | null _min: PdfGroupMinAggregateOutputType | null _max: PdfGroupMaxAggregateOutputType | null } export type PdfGroupAvgAggregateOutputType = { id: number | null patientId: number | null } export type PdfGroupSumAggregateOutputType = { id: number | null patientId: number | null } export type PdfGroupMinAggregateOutputType = { id: number | null title: string | null titleKey: $Enums.PdfTitleKey | null createdAt: Date | null patientId: number | null } export type PdfGroupMaxAggregateOutputType = { id: number | null title: string | null titleKey: $Enums.PdfTitleKey | null createdAt: Date | null patientId: number | null } export type PdfGroupCountAggregateOutputType = { id: number title: number titleKey: number createdAt: number patientId: number _all: number } export type PdfGroupAvgAggregateInputType = { id?: true patientId?: true } export type PdfGroupSumAggregateInputType = { id?: true patientId?: true } export type PdfGroupMinAggregateInputType = { id?: true title?: true titleKey?: true createdAt?: true patientId?: true } export type PdfGroupMaxAggregateInputType = { id?: true title?: true titleKey?: true createdAt?: true patientId?: true } export type PdfGroupCountAggregateInputType = { id?: true title?: true titleKey?: true createdAt?: true patientId?: true _all?: true } export type PdfGroupAggregateArgs = { /** * Filter which PdfGroup to aggregate. */ where?: PdfGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfGroups to fetch. */ orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PdfGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfGroups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PdfGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PdfGroups **/ _count?: true | PdfGroupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PdfGroupAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PdfGroupSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PdfGroupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PdfGroupMaxAggregateInputType } export type GetPdfGroupAggregateType = { [P in keyof T & keyof AggregatePdfGroup]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PdfGroupGroupByArgs = { where?: PdfGroupWhereInput orderBy?: PdfGroupOrderByWithAggregationInput | PdfGroupOrderByWithAggregationInput[] by: PdfGroupScalarFieldEnum[] | PdfGroupScalarFieldEnum having?: PdfGroupScalarWhereWithAggregatesInput take?: number skip?: number _count?: PdfGroupCountAggregateInputType | true _avg?: PdfGroupAvgAggregateInputType _sum?: PdfGroupSumAggregateInputType _min?: PdfGroupMinAggregateInputType _max?: PdfGroupMaxAggregateInputType } export type PdfGroupGroupByOutputType = { id: number title: string titleKey: $Enums.PdfTitleKey createdAt: Date patientId: number _count: PdfGroupCountAggregateOutputType | null _avg: PdfGroupAvgAggregateOutputType | null _sum: PdfGroupSumAggregateOutputType | null _min: PdfGroupMinAggregateOutputType | null _max: PdfGroupMaxAggregateOutputType | null } type GetPdfGroupGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PdfGroupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PdfGroupSelect = $Extensions.GetSelect<{ id?: boolean title?: boolean titleKey?: boolean createdAt?: boolean patientId?: boolean patient?: boolean | PatientDefaultArgs pdfs?: boolean | PdfGroup$pdfsArgs _count?: boolean | PdfGroupCountOutputTypeDefaultArgs }, ExtArgs["result"]["pdfGroup"]> export type PdfGroupSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean titleKey?: boolean createdAt?: boolean patientId?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["pdfGroup"]> export type PdfGroupSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean titleKey?: boolean createdAt?: boolean patientId?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["pdfGroup"]> export type PdfGroupSelectScalar = { id?: boolean title?: boolean titleKey?: boolean createdAt?: boolean patientId?: boolean } export type PdfGroupOmit = $Extensions.GetOmit<"id" | "title" | "titleKey" | "createdAt" | "patientId", ExtArgs["result"]["pdfGroup"]> export type PdfGroupInclude = { patient?: boolean | PatientDefaultArgs pdfs?: boolean | PdfGroup$pdfsArgs _count?: boolean | PdfGroupCountOutputTypeDefaultArgs } export type PdfGroupIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs } export type PdfGroupIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs } export type $PdfGroupPayload = { name: "PdfGroup" objects: { patient: Prisma.$PatientPayload pdfs: Prisma.$PdfFilePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number title: string titleKey: $Enums.PdfTitleKey createdAt: Date patientId: number }, ExtArgs["result"]["pdfGroup"]> composites: {} } type PdfGroupGetPayload = $Result.GetResult type PdfGroupCountArgs = Omit & { select?: PdfGroupCountAggregateInputType | true } export interface PdfGroupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PdfGroup'], meta: { name: 'PdfGroup' } } /** * Find zero or one PdfGroup that matches the filter. * @param {PdfGroupFindUniqueArgs} args - Arguments to find a PdfGroup * @example * // Get one PdfGroup * const pdfGroup = await prisma.pdfGroup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PdfGroup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PdfGroupFindUniqueOrThrowArgs} args - Arguments to find a PdfGroup * @example * // Get one PdfGroup * const pdfGroup = await prisma.pdfGroup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PdfGroup 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 {PdfGroupFindFirstArgs} args - Arguments to find a PdfGroup * @example * // Get one PdfGroup * const pdfGroup = await prisma.pdfGroup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PdfGroup 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 {PdfGroupFindFirstOrThrowArgs} args - Arguments to find a PdfGroup * @example * // Get one PdfGroup * const pdfGroup = await prisma.pdfGroup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PdfGroups 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 {PdfGroupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PdfGroups * const pdfGroups = await prisma.pdfGroup.findMany() * * // Get first 10 PdfGroups * const pdfGroups = await prisma.pdfGroup.findMany({ take: 10 }) * * // Only select the `id` * const pdfGroupWithIdOnly = await prisma.pdfGroup.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a PdfGroup. * @param {PdfGroupCreateArgs} args - Arguments to create a PdfGroup. * @example * // Create one PdfGroup * const PdfGroup = await prisma.pdfGroup.create({ * data: { * // ... data to create a PdfGroup * } * }) * */ create(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PdfGroups. * @param {PdfGroupCreateManyArgs} args - Arguments to create many PdfGroups. * @example * // Create many PdfGroups * const pdfGroup = await prisma.pdfGroup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PdfGroups and returns the data saved in the database. * @param {PdfGroupCreateManyAndReturnArgs} args - Arguments to create many PdfGroups. * @example * // Create many PdfGroups * const pdfGroup = await prisma.pdfGroup.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PdfGroups and only return the `id` * const pdfGroupWithIdOnly = await prisma.pdfGroup.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PdfGroup. * @param {PdfGroupDeleteArgs} args - Arguments to delete one PdfGroup. * @example * // Delete one PdfGroup * const PdfGroup = await prisma.pdfGroup.delete({ * where: { * // ... filter to delete one PdfGroup * } * }) * */ delete(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PdfGroup. * @param {PdfGroupUpdateArgs} args - Arguments to update one PdfGroup. * @example * // Update one PdfGroup * const pdfGroup = await prisma.pdfGroup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PdfGroups. * @param {PdfGroupDeleteManyArgs} args - Arguments to filter PdfGroups to delete. * @example * // Delete a few PdfGroups * const { count } = await prisma.pdfGroup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PdfGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfGroupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PdfGroups * const pdfGroup = await prisma.pdfGroup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PdfGroups and returns the data updated in the database. * @param {PdfGroupUpdateManyAndReturnArgs} args - Arguments to update many PdfGroups. * @example * // Update many PdfGroups * const pdfGroup = await prisma.pdfGroup.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PdfGroups and only return the `id` * const pdfGroupWithIdOnly = await prisma.pdfGroup.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PdfGroup. * @param {PdfGroupUpsertArgs} args - Arguments to update or create a PdfGroup. * @example * // Update or create a PdfGroup * const pdfGroup = await prisma.pdfGroup.upsert({ * create: { * // ... data to create a PdfGroup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PdfGroup we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PdfGroupClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PdfGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfGroupCountArgs} args - Arguments to filter PdfGroups to count. * @example * // Count the number of PdfGroups * const count = await prisma.pdfGroup.count({ * where: { * // ... the filter for the PdfGroups 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 PdfGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfGroupAggregateArgs} 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 PdfGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfGroupGroupByArgs} 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 PdfGroupGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PdfGroupGroupByArgs['orderBy'] } : { orderBy?: PdfGroupGroupByArgs['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 ? GetPdfGroupGroupByPayload : Prisma.PrismaPromise /** * Fields of the PdfGroup model */ readonly fields: PdfGroupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PdfGroup. * 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__PdfGroupClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> pdfs = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 PdfGroup model */ interface PdfGroupFieldRefs { readonly id: FieldRef<"PdfGroup", 'Int'> readonly title: FieldRef<"PdfGroup", 'String'> readonly titleKey: FieldRef<"PdfGroup", 'PdfTitleKey'> readonly createdAt: FieldRef<"PdfGroup", 'DateTime'> readonly patientId: FieldRef<"PdfGroup", 'Int'> } // Custom InputTypes /** * PdfGroup findUnique */ export type PdfGroupFindUniqueArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroup to fetch. */ where: PdfGroupWhereUniqueInput } /** * PdfGroup findUniqueOrThrow */ export type PdfGroupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroup to fetch. */ where: PdfGroupWhereUniqueInput } /** * PdfGroup findFirst */ export type PdfGroupFindFirstArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroup to fetch. */ where?: PdfGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfGroups to fetch. */ orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PdfGroups. */ cursor?: PdfGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfGroups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PdfGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PdfGroups. */ distinct?: PdfGroupScalarFieldEnum | PdfGroupScalarFieldEnum[] } /** * PdfGroup findFirstOrThrow */ export type PdfGroupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroup to fetch. */ where?: PdfGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfGroups to fetch. */ orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PdfGroups. */ cursor?: PdfGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfGroups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PdfGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PdfGroups. */ distinct?: PdfGroupScalarFieldEnum | PdfGroupScalarFieldEnum[] } /** * PdfGroup findMany */ export type PdfGroupFindManyArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter, which PdfGroups to fetch. */ where?: PdfGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfGroups to fetch. */ orderBy?: PdfGroupOrderByWithRelationInput | PdfGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PdfGroups. */ cursor?: PdfGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfGroups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PdfGroups. */ skip?: number distinct?: PdfGroupScalarFieldEnum | PdfGroupScalarFieldEnum[] } /** * PdfGroup create */ export type PdfGroupCreateArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * The data needed to create a PdfGroup. */ data: XOR } /** * PdfGroup createMany */ export type PdfGroupCreateManyArgs = { /** * The data used to create many PdfGroups. */ data: PdfGroupCreateManyInput | PdfGroupCreateManyInput[] skipDuplicates?: boolean } /** * PdfGroup createManyAndReturn */ export type PdfGroupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelectCreateManyAndReturn | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * The data used to create many PdfGroups. */ data: PdfGroupCreateManyInput | PdfGroupCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PdfGroupIncludeCreateManyAndReturn | null } /** * PdfGroup update */ export type PdfGroupUpdateArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * The data needed to update a PdfGroup. */ data: XOR /** * Choose, which PdfGroup to update. */ where: PdfGroupWhereUniqueInput } /** * PdfGroup updateMany */ export type PdfGroupUpdateManyArgs = { /** * The data used to update PdfGroups. */ data: XOR /** * Filter which PdfGroups to update */ where?: PdfGroupWhereInput /** * Limit how many PdfGroups to update. */ limit?: number } /** * PdfGroup updateManyAndReturn */ export type PdfGroupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelectUpdateManyAndReturn | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * The data used to update PdfGroups. */ data: XOR /** * Filter which PdfGroups to update */ where?: PdfGroupWhereInput /** * Limit how many PdfGroups to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PdfGroupIncludeUpdateManyAndReturn | null } /** * PdfGroup upsert */ export type PdfGroupUpsertArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * The filter to search for the PdfGroup to update in case it exists. */ where: PdfGroupWhereUniqueInput /** * In case the PdfGroup found by the `where` argument doesn't exist, create a new PdfGroup with this data. */ create: XOR /** * In case the PdfGroup was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PdfGroup delete */ export type PdfGroupDeleteArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null /** * Filter which PdfGroup to delete. */ where: PdfGroupWhereUniqueInput } /** * PdfGroup deleteMany */ export type PdfGroupDeleteManyArgs = { /** * Filter which PdfGroups to delete */ where?: PdfGroupWhereInput /** * Limit how many PdfGroups to delete. */ limit?: number } /** * PdfGroup.pdfs */ export type PdfGroup$pdfsArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null where?: PdfFileWhereInput orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] cursor?: PdfFileWhereUniqueInput take?: number skip?: number distinct?: PdfFileScalarFieldEnum | PdfFileScalarFieldEnum[] } /** * PdfGroup without action */ export type PdfGroupDefaultArgs = { /** * Select specific fields to fetch from the PdfGroup */ select?: PdfGroupSelect | null /** * Omit specific fields from the PdfGroup */ omit?: PdfGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfGroupInclude | null } /** * Model PdfFile */ export type AggregatePdfFile = { _count: PdfFileCountAggregateOutputType | null _avg: PdfFileAvgAggregateOutputType | null _sum: PdfFileSumAggregateOutputType | null _min: PdfFileMinAggregateOutputType | null _max: PdfFileMaxAggregateOutputType | null } export type PdfFileAvgAggregateOutputType = { id: number | null groupId: number | null } export type PdfFileSumAggregateOutputType = { id: number | null groupId: number | null } export type PdfFileMinAggregateOutputType = { id: number | null filename: string | null pdfData: Bytes | null uploadedAt: Date | null groupId: number | null } export type PdfFileMaxAggregateOutputType = { id: number | null filename: string | null pdfData: Bytes | null uploadedAt: Date | null groupId: number | null } export type PdfFileCountAggregateOutputType = { id: number filename: number pdfData: number uploadedAt: number groupId: number _all: number } export type PdfFileAvgAggregateInputType = { id?: true groupId?: true } export type PdfFileSumAggregateInputType = { id?: true groupId?: true } export type PdfFileMinAggregateInputType = { id?: true filename?: true pdfData?: true uploadedAt?: true groupId?: true } export type PdfFileMaxAggregateInputType = { id?: true filename?: true pdfData?: true uploadedAt?: true groupId?: true } export type PdfFileCountAggregateInputType = { id?: true filename?: true pdfData?: true uploadedAt?: true groupId?: true _all?: true } export type PdfFileAggregateArgs = { /** * Filter which PdfFile to aggregate. */ where?: PdfFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfFiles to fetch. */ orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PdfFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PdfFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PdfFiles **/ _count?: true | PdfFileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PdfFileAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PdfFileSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PdfFileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PdfFileMaxAggregateInputType } export type GetPdfFileAggregateType = { [P in keyof T & keyof AggregatePdfFile]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PdfFileGroupByArgs = { where?: PdfFileWhereInput orderBy?: PdfFileOrderByWithAggregationInput | PdfFileOrderByWithAggregationInput[] by: PdfFileScalarFieldEnum[] | PdfFileScalarFieldEnum having?: PdfFileScalarWhereWithAggregatesInput take?: number skip?: number _count?: PdfFileCountAggregateInputType | true _avg?: PdfFileAvgAggregateInputType _sum?: PdfFileSumAggregateInputType _min?: PdfFileMinAggregateInputType _max?: PdfFileMaxAggregateInputType } export type PdfFileGroupByOutputType = { id: number filename: string pdfData: Bytes uploadedAt: Date groupId: number _count: PdfFileCountAggregateOutputType | null _avg: PdfFileAvgAggregateOutputType | null _sum: PdfFileSumAggregateOutputType | null _min: PdfFileMinAggregateOutputType | null _max: PdfFileMaxAggregateOutputType | null } type GetPdfFileGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PdfFileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PdfFileSelect = $Extensions.GetSelect<{ id?: boolean filename?: boolean pdfData?: boolean uploadedAt?: boolean groupId?: boolean group?: boolean | PdfGroupDefaultArgs }, ExtArgs["result"]["pdfFile"]> export type PdfFileSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean filename?: boolean pdfData?: boolean uploadedAt?: boolean groupId?: boolean group?: boolean | PdfGroupDefaultArgs }, ExtArgs["result"]["pdfFile"]> export type PdfFileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean filename?: boolean pdfData?: boolean uploadedAt?: boolean groupId?: boolean group?: boolean | PdfGroupDefaultArgs }, ExtArgs["result"]["pdfFile"]> export type PdfFileSelectScalar = { id?: boolean filename?: boolean pdfData?: boolean uploadedAt?: boolean groupId?: boolean } export type PdfFileOmit = $Extensions.GetOmit<"id" | "filename" | "pdfData" | "uploadedAt" | "groupId", ExtArgs["result"]["pdfFile"]> export type PdfFileInclude = { group?: boolean | PdfGroupDefaultArgs } export type PdfFileIncludeCreateManyAndReturn = { group?: boolean | PdfGroupDefaultArgs } export type PdfFileIncludeUpdateManyAndReturn = { group?: boolean | PdfGroupDefaultArgs } export type $PdfFilePayload = { name: "PdfFile" objects: { group: Prisma.$PdfGroupPayload } scalars: $Extensions.GetPayloadResult<{ id: number filename: string pdfData: Prisma.Bytes uploadedAt: Date groupId: number }, ExtArgs["result"]["pdfFile"]> composites: {} } type PdfFileGetPayload = $Result.GetResult type PdfFileCountArgs = Omit & { select?: PdfFileCountAggregateInputType | true } export interface PdfFileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PdfFile'], meta: { name: 'PdfFile' } } /** * Find zero or one PdfFile that matches the filter. * @param {PdfFileFindUniqueArgs} args - Arguments to find a PdfFile * @example * // Get one PdfFile * const pdfFile = await prisma.pdfFile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PdfFile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PdfFileFindUniqueOrThrowArgs} args - Arguments to find a PdfFile * @example * // Get one PdfFile * const pdfFile = await prisma.pdfFile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PdfFile 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 {PdfFileFindFirstArgs} args - Arguments to find a PdfFile * @example * // Get one PdfFile * const pdfFile = await prisma.pdfFile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PdfFile 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 {PdfFileFindFirstOrThrowArgs} args - Arguments to find a PdfFile * @example * // Get one PdfFile * const pdfFile = await prisma.pdfFile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PdfFiles 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 {PdfFileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PdfFiles * const pdfFiles = await prisma.pdfFile.findMany() * * // Get first 10 PdfFiles * const pdfFiles = await prisma.pdfFile.findMany({ take: 10 }) * * // Only select the `id` * const pdfFileWithIdOnly = await prisma.pdfFile.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a PdfFile. * @param {PdfFileCreateArgs} args - Arguments to create a PdfFile. * @example * // Create one PdfFile * const PdfFile = await prisma.pdfFile.create({ * data: { * // ... data to create a PdfFile * } * }) * */ create(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PdfFiles. * @param {PdfFileCreateManyArgs} args - Arguments to create many PdfFiles. * @example * // Create many PdfFiles * const pdfFile = await prisma.pdfFile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PdfFiles and returns the data saved in the database. * @param {PdfFileCreateManyAndReturnArgs} args - Arguments to create many PdfFiles. * @example * // Create many PdfFiles * const pdfFile = await prisma.pdfFile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PdfFiles and only return the `id` * const pdfFileWithIdOnly = await prisma.pdfFile.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PdfFile. * @param {PdfFileDeleteArgs} args - Arguments to delete one PdfFile. * @example * // Delete one PdfFile * const PdfFile = await prisma.pdfFile.delete({ * where: { * // ... filter to delete one PdfFile * } * }) * */ delete(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PdfFile. * @param {PdfFileUpdateArgs} args - Arguments to update one PdfFile. * @example * // Update one PdfFile * const pdfFile = await prisma.pdfFile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PdfFiles. * @param {PdfFileDeleteManyArgs} args - Arguments to filter PdfFiles to delete. * @example * // Delete a few PdfFiles * const { count } = await prisma.pdfFile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PdfFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfFileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PdfFiles * const pdfFile = await prisma.pdfFile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PdfFiles and returns the data updated in the database. * @param {PdfFileUpdateManyAndReturnArgs} args - Arguments to update many PdfFiles. * @example * // Update many PdfFiles * const pdfFile = await prisma.pdfFile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PdfFiles and only return the `id` * const pdfFileWithIdOnly = await prisma.pdfFile.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PdfFile. * @param {PdfFileUpsertArgs} args - Arguments to update or create a PdfFile. * @example * // Update or create a PdfFile * const pdfFile = await prisma.pdfFile.upsert({ * create: { * // ... data to create a PdfFile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PdfFile we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PdfFileClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PdfFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfFileCountArgs} args - Arguments to filter PdfFiles to count. * @example * // Count the number of PdfFiles * const count = await prisma.pdfFile.count({ * where: { * // ... the filter for the PdfFiles 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 PdfFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfFileAggregateArgs} 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 PdfFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PdfFileGroupByArgs} 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 PdfFileGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PdfFileGroupByArgs['orderBy'] } : { orderBy?: PdfFileGroupByArgs['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 ? GetPdfFileGroupByPayload : Prisma.PrismaPromise /** * Fields of the PdfFile model */ readonly fields: PdfFileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PdfFile. * 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__PdfFileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" group = {}>(args?: Subset>): Prisma__PdfGroupClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 PdfFile model */ interface PdfFileFieldRefs { readonly id: FieldRef<"PdfFile", 'Int'> readonly filename: FieldRef<"PdfFile", 'String'> readonly pdfData: FieldRef<"PdfFile", 'Bytes'> readonly uploadedAt: FieldRef<"PdfFile", 'DateTime'> readonly groupId: FieldRef<"PdfFile", 'Int'> } // Custom InputTypes /** * PdfFile findUnique */ export type PdfFileFindUniqueArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFile to fetch. */ where: PdfFileWhereUniqueInput } /** * PdfFile findUniqueOrThrow */ export type PdfFileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFile to fetch. */ where: PdfFileWhereUniqueInput } /** * PdfFile findFirst */ export type PdfFileFindFirstArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFile to fetch. */ where?: PdfFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfFiles to fetch. */ orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PdfFiles. */ cursor?: PdfFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PdfFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PdfFiles. */ distinct?: PdfFileScalarFieldEnum | PdfFileScalarFieldEnum[] } /** * PdfFile findFirstOrThrow */ export type PdfFileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFile to fetch. */ where?: PdfFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfFiles to fetch. */ orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PdfFiles. */ cursor?: PdfFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PdfFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PdfFiles. */ distinct?: PdfFileScalarFieldEnum | PdfFileScalarFieldEnum[] } /** * PdfFile findMany */ export type PdfFileFindManyArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter, which PdfFiles to fetch. */ where?: PdfFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PdfFiles to fetch. */ orderBy?: PdfFileOrderByWithRelationInput | PdfFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PdfFiles. */ cursor?: PdfFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PdfFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PdfFiles. */ skip?: number distinct?: PdfFileScalarFieldEnum | PdfFileScalarFieldEnum[] } /** * PdfFile create */ export type PdfFileCreateArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * The data needed to create a PdfFile. */ data: XOR } /** * PdfFile createMany */ export type PdfFileCreateManyArgs = { /** * The data used to create many PdfFiles. */ data: PdfFileCreateManyInput | PdfFileCreateManyInput[] skipDuplicates?: boolean } /** * PdfFile createManyAndReturn */ export type PdfFileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelectCreateManyAndReturn | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * The data used to create many PdfFiles. */ data: PdfFileCreateManyInput | PdfFileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PdfFileIncludeCreateManyAndReturn | null } /** * PdfFile update */ export type PdfFileUpdateArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * The data needed to update a PdfFile. */ data: XOR /** * Choose, which PdfFile to update. */ where: PdfFileWhereUniqueInput } /** * PdfFile updateMany */ export type PdfFileUpdateManyArgs = { /** * The data used to update PdfFiles. */ data: XOR /** * Filter which PdfFiles to update */ where?: PdfFileWhereInput /** * Limit how many PdfFiles to update. */ limit?: number } /** * PdfFile updateManyAndReturn */ export type PdfFileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelectUpdateManyAndReturn | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * The data used to update PdfFiles. */ data: XOR /** * Filter which PdfFiles to update */ where?: PdfFileWhereInput /** * Limit how many PdfFiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PdfFileIncludeUpdateManyAndReturn | null } /** * PdfFile upsert */ export type PdfFileUpsertArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * The filter to search for the PdfFile to update in case it exists. */ where: PdfFileWhereUniqueInput /** * In case the PdfFile found by the `where` argument doesn't exist, create a new PdfFile with this data. */ create: XOR /** * In case the PdfFile was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PdfFile delete */ export type PdfFileDeleteArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null /** * Filter which PdfFile to delete. */ where: PdfFileWhereUniqueInput } /** * PdfFile deleteMany */ export type PdfFileDeleteManyArgs = { /** * Filter which PdfFiles to delete */ where?: PdfFileWhereInput /** * Limit how many PdfFiles to delete. */ limit?: number } /** * PdfFile without action */ export type PdfFileDefaultArgs = { /** * Select specific fields to fetch from the PdfFile */ select?: PdfFileSelect | null /** * Omit specific fields from the PdfFile */ omit?: PdfFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: PdfFileInclude | null } /** * Model Payment */ export type AggregatePayment = { _count: PaymentCountAggregateOutputType | null _avg: PaymentAvgAggregateOutputType | null _sum: PaymentSumAggregateOutputType | null _min: PaymentMinAggregateOutputType | null _max: PaymentMaxAggregateOutputType | null } export type PaymentAvgAggregateOutputType = { id: number | null claimId: number | null patientId: number | null userId: number | null updatedById: number | null npiProviderId: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null mhPaidAmount: Decimal | null copayment: Decimal | null adjustment: Decimal | null } export type PaymentSumAggregateOutputType = { id: number | null claimId: number | null patientId: number | null userId: number | null updatedById: number | null npiProviderId: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null mhPaidAmount: Decimal | null copayment: Decimal | null adjustment: Decimal | null } export type PaymentMinAggregateOutputType = { id: number | null claimId: number | null patientId: number | null userId: number | null updatedById: number | null npiProviderId: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null mhPaidAmount: Decimal | null copayment: Decimal | null adjustment: Decimal | null status: $Enums.PaymentStatus | null notes: string | null icn: string | null createdAt: Date | null updatedAt: Date | null } export type PaymentMaxAggregateOutputType = { id: number | null claimId: number | null patientId: number | null userId: number | null updatedById: number | null npiProviderId: number | null totalBilled: Decimal | null totalPaid: Decimal | null totalAdjusted: Decimal | null totalDue: Decimal | null mhPaidAmount: Decimal | null copayment: Decimal | null adjustment: Decimal | null status: $Enums.PaymentStatus | null notes: string | null icn: string | null createdAt: Date | null updatedAt: Date | null } export type PaymentCountAggregateOutputType = { id: number claimId: number patientId: number userId: number updatedById: number npiProviderId: number totalBilled: number totalPaid: number totalAdjusted: number totalDue: number mhPaidAmount: number copayment: number adjustment: number status: number notes: number icn: number createdAt: number updatedAt: number _all: number } export type PaymentAvgAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true npiProviderId?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true mhPaidAmount?: true copayment?: true adjustment?: true } export type PaymentSumAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true npiProviderId?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true mhPaidAmount?: true copayment?: true adjustment?: true } export type PaymentMinAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true npiProviderId?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true mhPaidAmount?: true copayment?: true adjustment?: true status?: true notes?: true icn?: true createdAt?: true updatedAt?: true } export type PaymentMaxAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true npiProviderId?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true mhPaidAmount?: true copayment?: true adjustment?: true status?: true notes?: true icn?: true createdAt?: true updatedAt?: true } export type PaymentCountAggregateInputType = { id?: true claimId?: true patientId?: true userId?: true updatedById?: true npiProviderId?: true totalBilled?: true totalPaid?: true totalAdjusted?: true totalDue?: true mhPaidAmount?: true copayment?: true adjustment?: true status?: true notes?: true icn?: true createdAt?: true updatedAt?: true _all?: true } export type PaymentAggregateArgs = { /** * Filter which Payment to aggregate. */ where?: PaymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Payments to fetch. */ orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PaymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Payments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Payments **/ _count?: true | PaymentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PaymentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PaymentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PaymentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PaymentMaxAggregateInputType } export type GetPaymentAggregateType = { [P in keyof T & keyof AggregatePayment]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PaymentGroupByArgs = { where?: PaymentWhereInput orderBy?: PaymentOrderByWithAggregationInput | PaymentOrderByWithAggregationInput[] by: PaymentScalarFieldEnum[] | PaymentScalarFieldEnum having?: PaymentScalarWhereWithAggregatesInput take?: number skip?: number _count?: PaymentCountAggregateInputType | true _avg?: PaymentAvgAggregateInputType _sum?: PaymentSumAggregateInputType _min?: PaymentMinAggregateInputType _max?: PaymentMaxAggregateInputType } export type PaymentGroupByOutputType = { id: number claimId: number | null patientId: number userId: number updatedById: number | null npiProviderId: number | null totalBilled: Decimal totalPaid: Decimal totalAdjusted: Decimal totalDue: Decimal mhPaidAmount: Decimal | null copayment: Decimal adjustment: Decimal status: $Enums.PaymentStatus notes: string | null icn: string | null createdAt: Date updatedAt: Date _count: PaymentCountAggregateOutputType | null _avg: PaymentAvgAggregateOutputType | null _sum: PaymentSumAggregateOutputType | null _min: PaymentMinAggregateOutputType | null _max: PaymentMaxAggregateOutputType | null } type GetPaymentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PaymentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PaymentSelect = $Extensions.GetSelect<{ id?: boolean claimId?: boolean patientId?: boolean userId?: boolean updatedById?: boolean npiProviderId?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean mhPaidAmount?: boolean copayment?: boolean adjustment?: boolean status?: boolean notes?: boolean icn?: boolean createdAt?: boolean updatedAt?: boolean claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs npiProvider?: boolean | Payment$npiProviderArgs serviceLineTransactions?: boolean | Payment$serviceLineTransactionsArgs serviceLines?: boolean | Payment$serviceLinesArgs commissionBatchItems?: boolean | Payment$commissionBatchItemsArgs _count?: boolean | PaymentCountOutputTypeDefaultArgs }, ExtArgs["result"]["payment"]> export type PaymentSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean patientId?: boolean userId?: boolean updatedById?: boolean npiProviderId?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean mhPaidAmount?: boolean copayment?: boolean adjustment?: boolean status?: boolean notes?: boolean icn?: boolean createdAt?: boolean updatedAt?: boolean claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs npiProvider?: boolean | Payment$npiProviderArgs }, ExtArgs["result"]["payment"]> export type PaymentSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean claimId?: boolean patientId?: boolean userId?: boolean updatedById?: boolean npiProviderId?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean mhPaidAmount?: boolean copayment?: boolean adjustment?: boolean status?: boolean notes?: boolean icn?: boolean createdAt?: boolean updatedAt?: boolean claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs npiProvider?: boolean | Payment$npiProviderArgs }, ExtArgs["result"]["payment"]> export type PaymentSelectScalar = { id?: boolean claimId?: boolean patientId?: boolean userId?: boolean updatedById?: boolean npiProviderId?: boolean totalBilled?: boolean totalPaid?: boolean totalAdjusted?: boolean totalDue?: boolean mhPaidAmount?: boolean copayment?: boolean adjustment?: boolean status?: boolean notes?: boolean icn?: boolean createdAt?: boolean updatedAt?: boolean } export type PaymentOmit = $Extensions.GetOmit<"id" | "claimId" | "patientId" | "userId" | "updatedById" | "npiProviderId" | "totalBilled" | "totalPaid" | "totalAdjusted" | "totalDue" | "mhPaidAmount" | "copayment" | "adjustment" | "status" | "notes" | "icn" | "createdAt" | "updatedAt", ExtArgs["result"]["payment"]> export type PaymentInclude = { claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs npiProvider?: boolean | Payment$npiProviderArgs serviceLineTransactions?: boolean | Payment$serviceLineTransactionsArgs serviceLines?: boolean | Payment$serviceLinesArgs commissionBatchItems?: boolean | Payment$commissionBatchItemsArgs _count?: boolean | PaymentCountOutputTypeDefaultArgs } export type PaymentIncludeCreateManyAndReturn = { claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs npiProvider?: boolean | Payment$npiProviderArgs } export type PaymentIncludeUpdateManyAndReturn = { claim?: boolean | Payment$claimArgs patient?: boolean | PatientDefaultArgs updatedBy?: boolean | Payment$updatedByArgs npiProvider?: boolean | Payment$npiProviderArgs } export type $PaymentPayload = { name: "Payment" objects: { claim: Prisma.$ClaimPayload | null patient: Prisma.$PatientPayload updatedBy: Prisma.$UserPayload | null npiProvider: Prisma.$NpiProviderPayload | null serviceLineTransactions: Prisma.$ServiceLineTransactionPayload[] serviceLines: Prisma.$ServiceLinePayload[] commissionBatchItems: Prisma.$CommissionBatchItemPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number claimId: number | null patientId: number userId: number updatedById: number | null npiProviderId: number | null totalBilled: Prisma.Decimal totalPaid: Prisma.Decimal totalAdjusted: Prisma.Decimal totalDue: Prisma.Decimal mhPaidAmount: Prisma.Decimal | null copayment: Prisma.Decimal adjustment: Prisma.Decimal status: $Enums.PaymentStatus notes: string | null icn: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["payment"]> composites: {} } type PaymentGetPayload = $Result.GetResult type PaymentCountArgs = Omit & { select?: PaymentCountAggregateInputType | true } export interface PaymentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Payment'], meta: { name: 'Payment' } } /** * Find zero or one Payment that matches the filter. * @param {PaymentFindUniqueArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Payment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PaymentFindUniqueOrThrowArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Payment 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 {PaymentFindFirstArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Payment 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 {PaymentFindFirstOrThrowArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Payments 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 {PaymentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Payments * const payments = await prisma.payment.findMany() * * // Get first 10 Payments * const payments = await prisma.payment.findMany({ take: 10 }) * * // Only select the `id` * const paymentWithIdOnly = await prisma.payment.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Payment. * @param {PaymentCreateArgs} args - Arguments to create a Payment. * @example * // Create one Payment * const Payment = await prisma.payment.create({ * data: { * // ... data to create a Payment * } * }) * */ create(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Payments. * @param {PaymentCreateManyArgs} args - Arguments to create many Payments. * @example * // Create many Payments * const payment = await prisma.payment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Payments and returns the data saved in the database. * @param {PaymentCreateManyAndReturnArgs} args - Arguments to create many Payments. * @example * // Create many Payments * const payment = await prisma.payment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Payments and only return the `id` * const paymentWithIdOnly = await prisma.payment.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Payment. * @param {PaymentDeleteArgs} args - Arguments to delete one Payment. * @example * // Delete one Payment * const Payment = await prisma.payment.delete({ * where: { * // ... filter to delete one Payment * } * }) * */ delete(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Payment. * @param {PaymentUpdateArgs} args - Arguments to update one Payment. * @example * // Update one Payment * const payment = await prisma.payment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Payments. * @param {PaymentDeleteManyArgs} args - Arguments to filter Payments to delete. * @example * // Delete a few Payments * const { count } = await prisma.payment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Payments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Payments * const payment = await prisma.payment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Payments and returns the data updated in the database. * @param {PaymentUpdateManyAndReturnArgs} args - Arguments to update many Payments. * @example * // Update many Payments * const payment = await prisma.payment.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Payments and only return the `id` * const paymentWithIdOnly = await prisma.payment.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Payment. * @param {PaymentUpsertArgs} args - Arguments to update or create a Payment. * @example * // Update or create a Payment * const payment = await prisma.payment.upsert({ * create: { * // ... data to create a Payment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Payment we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PaymentClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Payments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentCountArgs} args - Arguments to filter Payments to count. * @example * // Count the number of Payments * const count = await prisma.payment.count({ * where: { * // ... the filter for the Payments 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 Payment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentAggregateArgs} 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 Payment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentGroupByArgs} 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 PaymentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PaymentGroupByArgs['orderBy'] } : { orderBy?: PaymentGroupByArgs['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 ? GetPaymentGroupByPayload : Prisma.PrismaPromise /** * Fields of the Payment model */ readonly fields: PaymentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Payment. * 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__PaymentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" claim = {}>(args?: Subset>): Prisma__ClaimClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> updatedBy = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> npiProvider = {}>(args?: Subset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> serviceLineTransactions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> serviceLines = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> commissionBatchItems = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 Payment model */ interface PaymentFieldRefs { readonly id: FieldRef<"Payment", 'Int'> readonly claimId: FieldRef<"Payment", 'Int'> readonly patientId: FieldRef<"Payment", 'Int'> readonly userId: FieldRef<"Payment", 'Int'> readonly updatedById: FieldRef<"Payment", 'Int'> readonly npiProviderId: FieldRef<"Payment", 'Int'> readonly totalBilled: FieldRef<"Payment", 'Decimal'> readonly totalPaid: FieldRef<"Payment", 'Decimal'> readonly totalAdjusted: FieldRef<"Payment", 'Decimal'> readonly totalDue: FieldRef<"Payment", 'Decimal'> readonly mhPaidAmount: FieldRef<"Payment", 'Decimal'> readonly copayment: FieldRef<"Payment", 'Decimal'> readonly adjustment: FieldRef<"Payment", 'Decimal'> readonly status: FieldRef<"Payment", 'PaymentStatus'> readonly notes: FieldRef<"Payment", 'String'> readonly icn: FieldRef<"Payment", 'String'> readonly createdAt: FieldRef<"Payment", 'DateTime'> readonly updatedAt: FieldRef<"Payment", 'DateTime'> } // Custom InputTypes /** * Payment findUnique */ export type PaymentFindUniqueArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payment to fetch. */ where: PaymentWhereUniqueInput } /** * Payment findUniqueOrThrow */ export type PaymentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payment to fetch. */ where: PaymentWhereUniqueInput } /** * Payment findFirst */ export type PaymentFindFirstArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payment to fetch. */ where?: PaymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Payments to fetch. */ orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Payments. */ cursor?: PaymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Payments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Payments. */ distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * Payment findFirstOrThrow */ export type PaymentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payment to fetch. */ where?: PaymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Payments to fetch. */ orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Payments. */ cursor?: PaymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Payments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Payments. */ distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * Payment findMany */ export type PaymentFindManyArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter, which Payments to fetch. */ where?: PaymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Payments to fetch. */ orderBy?: PaymentOrderByWithRelationInput | PaymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Payments. */ cursor?: PaymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Payments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Payments. */ skip?: number distinct?: PaymentScalarFieldEnum | PaymentScalarFieldEnum[] } /** * Payment create */ export type PaymentCreateArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * The data needed to create a Payment. */ data: XOR } /** * Payment createMany */ export type PaymentCreateManyArgs = { /** * The data used to create many Payments. */ data: PaymentCreateManyInput | PaymentCreateManyInput[] skipDuplicates?: boolean } /** * Payment createManyAndReturn */ export type PaymentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelectCreateManyAndReturn | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * The data used to create many Payments. */ data: PaymentCreateManyInput | PaymentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PaymentIncludeCreateManyAndReturn | null } /** * Payment update */ export type PaymentUpdateArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * The data needed to update a Payment. */ data: XOR /** * Choose, which Payment to update. */ where: PaymentWhereUniqueInput } /** * Payment updateMany */ export type PaymentUpdateManyArgs = { /** * The data used to update Payments. */ data: XOR /** * Filter which Payments to update */ where?: PaymentWhereInput /** * Limit how many Payments to update. */ limit?: number } /** * Payment updateManyAndReturn */ export type PaymentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelectUpdateManyAndReturn | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * The data used to update Payments. */ data: XOR /** * Filter which Payments to update */ where?: PaymentWhereInput /** * Limit how many Payments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PaymentIncludeUpdateManyAndReturn | null } /** * Payment upsert */ export type PaymentUpsertArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * The filter to search for the Payment to update in case it exists. */ where: PaymentWhereUniqueInput /** * In case the Payment found by the `where` argument doesn't exist, create a new Payment with this data. */ create: XOR /** * In case the Payment was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Payment delete */ export type PaymentDeleteArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null /** * Filter which Payment to delete. */ where: PaymentWhereUniqueInput } /** * Payment deleteMany */ export type PaymentDeleteManyArgs = { /** * Filter which Payments to delete */ where?: PaymentWhereInput /** * Limit how many Payments to delete. */ limit?: number } /** * Payment.claim */ export type Payment$claimArgs = { /** * Select specific fields to fetch from the Claim */ select?: ClaimSelect | null /** * Omit specific fields from the Claim */ omit?: ClaimOmit | null /** * Choose, which related nodes to fetch as well */ include?: ClaimInclude | null where?: ClaimWhereInput } /** * Payment.updatedBy */ export type Payment$updatedByArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Payment.npiProvider */ export type Payment$npiProviderArgs = { /** * Select specific fields to fetch from the NpiProvider */ select?: NpiProviderSelect | null /** * Omit specific fields from the NpiProvider */ omit?: NpiProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: NpiProviderInclude | null where?: NpiProviderWhereInput } /** * Payment.serviceLineTransactions */ export type Payment$serviceLineTransactionsArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null where?: ServiceLineTransactionWhereInput orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] cursor?: ServiceLineTransactionWhereUniqueInput take?: number skip?: number distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * Payment.serviceLines */ export type Payment$serviceLinesArgs = { /** * Select specific fields to fetch from the ServiceLine */ select?: ServiceLineSelect | null /** * Omit specific fields from the ServiceLine */ omit?: ServiceLineOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineInclude | null where?: ServiceLineWhereInput orderBy?: ServiceLineOrderByWithRelationInput | ServiceLineOrderByWithRelationInput[] cursor?: ServiceLineWhereUniqueInput take?: number skip?: number distinct?: ServiceLineScalarFieldEnum | ServiceLineScalarFieldEnum[] } /** * Payment.commissionBatchItems */ export type Payment$commissionBatchItemsArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null where?: CommissionBatchItemWhereInput orderBy?: CommissionBatchItemOrderByWithRelationInput | CommissionBatchItemOrderByWithRelationInput[] cursor?: CommissionBatchItemWhereUniqueInput take?: number skip?: number distinct?: CommissionBatchItemScalarFieldEnum | CommissionBatchItemScalarFieldEnum[] } /** * Payment without action */ export type PaymentDefaultArgs = { /** * Select specific fields to fetch from the Payment */ select?: PaymentSelect | null /** * Omit specific fields from the Payment */ omit?: PaymentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PaymentInclude | null } /** * Model ServiceLineTransaction */ export type AggregateServiceLineTransaction = { _count: ServiceLineTransactionCountAggregateOutputType | null _avg: ServiceLineTransactionAvgAggregateOutputType | null _sum: ServiceLineTransactionSumAggregateOutputType | null _min: ServiceLineTransactionMinAggregateOutputType | null _max: ServiceLineTransactionMaxAggregateOutputType | null } export type ServiceLineTransactionAvgAggregateOutputType = { id: number | null paymentId: number | null serviceLineId: number | null paidAmount: Decimal | null adjustedAmount: Decimal | null } export type ServiceLineTransactionSumAggregateOutputType = { id: number | null paymentId: number | null serviceLineId: number | null paidAmount: Decimal | null adjustedAmount: Decimal | null } export type ServiceLineTransactionMinAggregateOutputType = { id: number | null paymentId: number | null serviceLineId: number | null transactionId: string | null paidAmount: Decimal | null adjustedAmount: Decimal | null method: $Enums.PaymentMethod | null receivedDate: Date | null payerName: string | null notes: string | null createdAt: Date | null } export type ServiceLineTransactionMaxAggregateOutputType = { id: number | null paymentId: number | null serviceLineId: number | null transactionId: string | null paidAmount: Decimal | null adjustedAmount: Decimal | null method: $Enums.PaymentMethod | null receivedDate: Date | null payerName: string | null notes: string | null createdAt: Date | null } export type ServiceLineTransactionCountAggregateOutputType = { id: number paymentId: number serviceLineId: number transactionId: number paidAmount: number adjustedAmount: number method: number receivedDate: number payerName: number notes: number createdAt: number _all: number } export type ServiceLineTransactionAvgAggregateInputType = { id?: true paymentId?: true serviceLineId?: true paidAmount?: true adjustedAmount?: true } export type ServiceLineTransactionSumAggregateInputType = { id?: true paymentId?: true serviceLineId?: true paidAmount?: true adjustedAmount?: true } export type ServiceLineTransactionMinAggregateInputType = { id?: true paymentId?: true serviceLineId?: true transactionId?: true paidAmount?: true adjustedAmount?: true method?: true receivedDate?: true payerName?: true notes?: true createdAt?: true } export type ServiceLineTransactionMaxAggregateInputType = { id?: true paymentId?: true serviceLineId?: true transactionId?: true paidAmount?: true adjustedAmount?: true method?: true receivedDate?: true payerName?: true notes?: true createdAt?: true } export type ServiceLineTransactionCountAggregateInputType = { id?: true paymentId?: true serviceLineId?: true transactionId?: true paidAmount?: true adjustedAmount?: true method?: true receivedDate?: true payerName?: true notes?: true createdAt?: true _all?: true } export type ServiceLineTransactionAggregateArgs = { /** * Filter which ServiceLineTransaction to aggregate. */ where?: ServiceLineTransactionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLineTransactions to fetch. */ orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ServiceLineTransactionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLineTransactions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ServiceLineTransactions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ServiceLineTransactions **/ _count?: true | ServiceLineTransactionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ServiceLineTransactionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ServiceLineTransactionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ServiceLineTransactionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ServiceLineTransactionMaxAggregateInputType } export type GetServiceLineTransactionAggregateType = { [P in keyof T & keyof AggregateServiceLineTransaction]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ServiceLineTransactionGroupByArgs = { where?: ServiceLineTransactionWhereInput orderBy?: ServiceLineTransactionOrderByWithAggregationInput | ServiceLineTransactionOrderByWithAggregationInput[] by: ServiceLineTransactionScalarFieldEnum[] | ServiceLineTransactionScalarFieldEnum having?: ServiceLineTransactionScalarWhereWithAggregatesInput take?: number skip?: number _count?: ServiceLineTransactionCountAggregateInputType | true _avg?: ServiceLineTransactionAvgAggregateInputType _sum?: ServiceLineTransactionSumAggregateInputType _min?: ServiceLineTransactionMinAggregateInputType _max?: ServiceLineTransactionMaxAggregateInputType } export type ServiceLineTransactionGroupByOutputType = { id: number paymentId: number serviceLineId: number transactionId: string | null paidAmount: Decimal adjustedAmount: Decimal method: $Enums.PaymentMethod receivedDate: Date payerName: string | null notes: string | null createdAt: Date _count: ServiceLineTransactionCountAggregateOutputType | null _avg: ServiceLineTransactionAvgAggregateOutputType | null _sum: ServiceLineTransactionSumAggregateOutputType | null _min: ServiceLineTransactionMinAggregateOutputType | null _max: ServiceLineTransactionMaxAggregateOutputType | null } type GetServiceLineTransactionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ServiceLineTransactionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ServiceLineTransactionSelect = $Extensions.GetSelect<{ id?: boolean paymentId?: boolean serviceLineId?: boolean transactionId?: boolean paidAmount?: boolean adjustedAmount?: boolean method?: boolean receivedDate?: boolean payerName?: boolean notes?: boolean createdAt?: boolean payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs }, ExtArgs["result"]["serviceLineTransaction"]> export type ServiceLineTransactionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean paymentId?: boolean serviceLineId?: boolean transactionId?: boolean paidAmount?: boolean adjustedAmount?: boolean method?: boolean receivedDate?: boolean payerName?: boolean notes?: boolean createdAt?: boolean payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs }, ExtArgs["result"]["serviceLineTransaction"]> export type ServiceLineTransactionSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean paymentId?: boolean serviceLineId?: boolean transactionId?: boolean paidAmount?: boolean adjustedAmount?: boolean method?: boolean receivedDate?: boolean payerName?: boolean notes?: boolean createdAt?: boolean payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs }, ExtArgs["result"]["serviceLineTransaction"]> export type ServiceLineTransactionSelectScalar = { id?: boolean paymentId?: boolean serviceLineId?: boolean transactionId?: boolean paidAmount?: boolean adjustedAmount?: boolean method?: boolean receivedDate?: boolean payerName?: boolean notes?: boolean createdAt?: boolean } export type ServiceLineTransactionOmit = $Extensions.GetOmit<"id" | "paymentId" | "serviceLineId" | "transactionId" | "paidAmount" | "adjustedAmount" | "method" | "receivedDate" | "payerName" | "notes" | "createdAt", ExtArgs["result"]["serviceLineTransaction"]> export type ServiceLineTransactionInclude = { payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs } export type ServiceLineTransactionIncludeCreateManyAndReturn = { payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs } export type ServiceLineTransactionIncludeUpdateManyAndReturn = { payment?: boolean | PaymentDefaultArgs serviceLine?: boolean | ServiceLineDefaultArgs } export type $ServiceLineTransactionPayload = { name: "ServiceLineTransaction" objects: { payment: Prisma.$PaymentPayload serviceLine: Prisma.$ServiceLinePayload } scalars: $Extensions.GetPayloadResult<{ id: number paymentId: number serviceLineId: number transactionId: string | null paidAmount: Prisma.Decimal adjustedAmount: Prisma.Decimal method: $Enums.PaymentMethod receivedDate: Date payerName: string | null notes: string | null createdAt: Date }, ExtArgs["result"]["serviceLineTransaction"]> composites: {} } type ServiceLineTransactionGetPayload = $Result.GetResult type ServiceLineTransactionCountArgs = Omit & { select?: ServiceLineTransactionCountAggregateInputType | true } export interface ServiceLineTransactionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ServiceLineTransaction'], meta: { name: 'ServiceLineTransaction' } } /** * Find zero or one ServiceLineTransaction that matches the filter. * @param {ServiceLineTransactionFindUniqueArgs} args - Arguments to find a ServiceLineTransaction * @example * // Get one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ServiceLineTransaction that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ServiceLineTransactionFindUniqueOrThrowArgs} args - Arguments to find a ServiceLineTransaction * @example * // Get one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceLineTransaction 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 {ServiceLineTransactionFindFirstArgs} args - Arguments to find a ServiceLineTransaction * @example * // Get one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceLineTransaction 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 {ServiceLineTransactionFindFirstOrThrowArgs} args - Arguments to find a ServiceLineTransaction * @example * // Get one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ServiceLineTransactions 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 {ServiceLineTransactionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ServiceLineTransactions * const serviceLineTransactions = await prisma.serviceLineTransaction.findMany() * * // Get first 10 ServiceLineTransactions * const serviceLineTransactions = await prisma.serviceLineTransaction.findMany({ take: 10 }) * * // Only select the `id` * const serviceLineTransactionWithIdOnly = await prisma.serviceLineTransaction.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ServiceLineTransaction. * @param {ServiceLineTransactionCreateArgs} args - Arguments to create a ServiceLineTransaction. * @example * // Create one ServiceLineTransaction * const ServiceLineTransaction = await prisma.serviceLineTransaction.create({ * data: { * // ... data to create a ServiceLineTransaction * } * }) * */ create(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ServiceLineTransactions. * @param {ServiceLineTransactionCreateManyArgs} args - Arguments to create many ServiceLineTransactions. * @example * // Create many ServiceLineTransactions * const serviceLineTransaction = await prisma.serviceLineTransaction.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ServiceLineTransactions and returns the data saved in the database. * @param {ServiceLineTransactionCreateManyAndReturnArgs} args - Arguments to create many ServiceLineTransactions. * @example * // Create many ServiceLineTransactions * const serviceLineTransaction = await prisma.serviceLineTransaction.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ServiceLineTransactions and only return the `id` * const serviceLineTransactionWithIdOnly = await prisma.serviceLineTransaction.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ServiceLineTransaction. * @param {ServiceLineTransactionDeleteArgs} args - Arguments to delete one ServiceLineTransaction. * @example * // Delete one ServiceLineTransaction * const ServiceLineTransaction = await prisma.serviceLineTransaction.delete({ * where: { * // ... filter to delete one ServiceLineTransaction * } * }) * */ delete(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ServiceLineTransaction. * @param {ServiceLineTransactionUpdateArgs} args - Arguments to update one ServiceLineTransaction. * @example * // Update one ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ServiceLineTransactions. * @param {ServiceLineTransactionDeleteManyArgs} args - Arguments to filter ServiceLineTransactions to delete. * @example * // Delete a few ServiceLineTransactions * const { count } = await prisma.serviceLineTransaction.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceLineTransactions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineTransactionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ServiceLineTransactions * const serviceLineTransaction = await prisma.serviceLineTransaction.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceLineTransactions and returns the data updated in the database. * @param {ServiceLineTransactionUpdateManyAndReturnArgs} args - Arguments to update many ServiceLineTransactions. * @example * // Update many ServiceLineTransactions * const serviceLineTransaction = await prisma.serviceLineTransaction.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ServiceLineTransactions and only return the `id` * const serviceLineTransactionWithIdOnly = await prisma.serviceLineTransaction.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ServiceLineTransaction. * @param {ServiceLineTransactionUpsertArgs} args - Arguments to update or create a ServiceLineTransaction. * @example * // Update or create a ServiceLineTransaction * const serviceLineTransaction = await prisma.serviceLineTransaction.upsert({ * create: { * // ... data to create a ServiceLineTransaction * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ServiceLineTransaction we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ServiceLineTransactionClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ServiceLineTransactions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineTransactionCountArgs} args - Arguments to filter ServiceLineTransactions to count. * @example * // Count the number of ServiceLineTransactions * const count = await prisma.serviceLineTransaction.count({ * where: { * // ... the filter for the ServiceLineTransactions 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 ServiceLineTransaction. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineTransactionAggregateArgs} 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 ServiceLineTransaction. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceLineTransactionGroupByArgs} 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 ServiceLineTransactionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ServiceLineTransactionGroupByArgs['orderBy'] } : { orderBy?: ServiceLineTransactionGroupByArgs['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 ? GetServiceLineTransactionGroupByPayload : Prisma.PrismaPromise /** * Fields of the ServiceLineTransaction model */ readonly fields: ServiceLineTransactionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ServiceLineTransaction. * 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__ServiceLineTransactionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" payment = {}>(args?: Subset>): Prisma__PaymentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> serviceLine = {}>(args?: Subset>): Prisma__ServiceLineClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 ServiceLineTransaction model */ interface ServiceLineTransactionFieldRefs { readonly id: FieldRef<"ServiceLineTransaction", 'Int'> readonly paymentId: FieldRef<"ServiceLineTransaction", 'Int'> readonly serviceLineId: FieldRef<"ServiceLineTransaction", 'Int'> readonly transactionId: FieldRef<"ServiceLineTransaction", 'String'> readonly paidAmount: FieldRef<"ServiceLineTransaction", 'Decimal'> readonly adjustedAmount: FieldRef<"ServiceLineTransaction", 'Decimal'> readonly method: FieldRef<"ServiceLineTransaction", 'PaymentMethod'> readonly receivedDate: FieldRef<"ServiceLineTransaction", 'DateTime'> readonly payerName: FieldRef<"ServiceLineTransaction", 'String'> readonly notes: FieldRef<"ServiceLineTransaction", 'String'> readonly createdAt: FieldRef<"ServiceLineTransaction", 'DateTime'> } // Custom InputTypes /** * ServiceLineTransaction findUnique */ export type ServiceLineTransactionFindUniqueArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransaction to fetch. */ where: ServiceLineTransactionWhereUniqueInput } /** * ServiceLineTransaction findUniqueOrThrow */ export type ServiceLineTransactionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransaction to fetch. */ where: ServiceLineTransactionWhereUniqueInput } /** * ServiceLineTransaction findFirst */ export type ServiceLineTransactionFindFirstArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransaction to fetch. */ where?: ServiceLineTransactionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLineTransactions to fetch. */ orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceLineTransactions. */ cursor?: ServiceLineTransactionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLineTransactions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ServiceLineTransactions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceLineTransactions. */ distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * ServiceLineTransaction findFirstOrThrow */ export type ServiceLineTransactionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransaction to fetch. */ where?: ServiceLineTransactionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLineTransactions to fetch. */ orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceLineTransactions. */ cursor?: ServiceLineTransactionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLineTransactions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ServiceLineTransactions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceLineTransactions. */ distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * ServiceLineTransaction findMany */ export type ServiceLineTransactionFindManyArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter, which ServiceLineTransactions to fetch. */ where?: ServiceLineTransactionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceLineTransactions to fetch. */ orderBy?: ServiceLineTransactionOrderByWithRelationInput | ServiceLineTransactionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ServiceLineTransactions. */ cursor?: ServiceLineTransactionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceLineTransactions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ServiceLineTransactions. */ skip?: number distinct?: ServiceLineTransactionScalarFieldEnum | ServiceLineTransactionScalarFieldEnum[] } /** * ServiceLineTransaction create */ export type ServiceLineTransactionCreateArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * The data needed to create a ServiceLineTransaction. */ data: XOR } /** * ServiceLineTransaction createMany */ export type ServiceLineTransactionCreateManyArgs = { /** * The data used to create many ServiceLineTransactions. */ data: ServiceLineTransactionCreateManyInput | ServiceLineTransactionCreateManyInput[] skipDuplicates?: boolean } /** * ServiceLineTransaction createManyAndReturn */ export type ServiceLineTransactionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelectCreateManyAndReturn | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * The data used to create many ServiceLineTransactions. */ data: ServiceLineTransactionCreateManyInput | ServiceLineTransactionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionIncludeCreateManyAndReturn | null } /** * ServiceLineTransaction update */ export type ServiceLineTransactionUpdateArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * The data needed to update a ServiceLineTransaction. */ data: XOR /** * Choose, which ServiceLineTransaction to update. */ where: ServiceLineTransactionWhereUniqueInput } /** * ServiceLineTransaction updateMany */ export type ServiceLineTransactionUpdateManyArgs = { /** * The data used to update ServiceLineTransactions. */ data: XOR /** * Filter which ServiceLineTransactions to update */ where?: ServiceLineTransactionWhereInput /** * Limit how many ServiceLineTransactions to update. */ limit?: number } /** * ServiceLineTransaction updateManyAndReturn */ export type ServiceLineTransactionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelectUpdateManyAndReturn | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * The data used to update ServiceLineTransactions. */ data: XOR /** * Filter which ServiceLineTransactions to update */ where?: ServiceLineTransactionWhereInput /** * Limit how many ServiceLineTransactions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionIncludeUpdateManyAndReturn | null } /** * ServiceLineTransaction upsert */ export type ServiceLineTransactionUpsertArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * The filter to search for the ServiceLineTransaction to update in case it exists. */ where: ServiceLineTransactionWhereUniqueInput /** * In case the ServiceLineTransaction found by the `where` argument doesn't exist, create a new ServiceLineTransaction with this data. */ create: XOR /** * In case the ServiceLineTransaction was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ServiceLineTransaction delete */ export type ServiceLineTransactionDeleteArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null /** * Filter which ServiceLineTransaction to delete. */ where: ServiceLineTransactionWhereUniqueInput } /** * ServiceLineTransaction deleteMany */ export type ServiceLineTransactionDeleteManyArgs = { /** * Filter which ServiceLineTransactions to delete */ where?: ServiceLineTransactionWhereInput /** * Limit how many ServiceLineTransactions to delete. */ limit?: number } /** * ServiceLineTransaction without action */ export type ServiceLineTransactionDefaultArgs = { /** * Select specific fields to fetch from the ServiceLineTransaction */ select?: ServiceLineTransactionSelect | null /** * Omit specific fields from the ServiceLineTransaction */ omit?: ServiceLineTransactionOmit | null /** * Choose, which related nodes to fetch as well */ include?: ServiceLineTransactionInclude | null } /** * Model DatabaseBackup */ export type AggregateDatabaseBackup = { _count: DatabaseBackupCountAggregateOutputType | null _avg: DatabaseBackupAvgAggregateOutputType | null _sum: DatabaseBackupSumAggregateOutputType | null _min: DatabaseBackupMinAggregateOutputType | null _max: DatabaseBackupMaxAggregateOutputType | null } export type DatabaseBackupAvgAggregateOutputType = { id: number | null userId: number | null } export type DatabaseBackupSumAggregateOutputType = { id: number | null userId: number | null } export type DatabaseBackupMinAggregateOutputType = { id: number | null userId: number | null createdAt: Date | null } export type DatabaseBackupMaxAggregateOutputType = { id: number | null userId: number | null createdAt: Date | null } export type DatabaseBackupCountAggregateOutputType = { id: number userId: number createdAt: number _all: number } export type DatabaseBackupAvgAggregateInputType = { id?: true userId?: true } export type DatabaseBackupSumAggregateInputType = { id?: true userId?: true } export type DatabaseBackupMinAggregateInputType = { id?: true userId?: true createdAt?: true } export type DatabaseBackupMaxAggregateInputType = { id?: true userId?: true createdAt?: true } export type DatabaseBackupCountAggregateInputType = { id?: true userId?: true createdAt?: true _all?: true } export type DatabaseBackupAggregateArgs = { /** * Filter which DatabaseBackup to aggregate. */ where?: DatabaseBackupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DatabaseBackups to fetch. */ orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: DatabaseBackupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DatabaseBackups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DatabaseBackups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DatabaseBackups **/ _count?: true | DatabaseBackupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DatabaseBackupAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DatabaseBackupSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DatabaseBackupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DatabaseBackupMaxAggregateInputType } export type GetDatabaseBackupAggregateType = { [P in keyof T & keyof AggregateDatabaseBackup]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type DatabaseBackupGroupByArgs = { where?: DatabaseBackupWhereInput orderBy?: DatabaseBackupOrderByWithAggregationInput | DatabaseBackupOrderByWithAggregationInput[] by: DatabaseBackupScalarFieldEnum[] | DatabaseBackupScalarFieldEnum having?: DatabaseBackupScalarWhereWithAggregatesInput take?: number skip?: number _count?: DatabaseBackupCountAggregateInputType | true _avg?: DatabaseBackupAvgAggregateInputType _sum?: DatabaseBackupSumAggregateInputType _min?: DatabaseBackupMinAggregateInputType _max?: DatabaseBackupMaxAggregateInputType } export type DatabaseBackupGroupByOutputType = { id: number userId: number createdAt: Date _count: DatabaseBackupCountAggregateOutputType | null _avg: DatabaseBackupAvgAggregateOutputType | null _sum: DatabaseBackupSumAggregateOutputType | null _min: DatabaseBackupMinAggregateOutputType | null _max: DatabaseBackupMaxAggregateOutputType | null } type GetDatabaseBackupGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof DatabaseBackupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type DatabaseBackupSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["databaseBackup"]> export type DatabaseBackupSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["databaseBackup"]> export type DatabaseBackupSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["databaseBackup"]> export type DatabaseBackupSelectScalar = { id?: boolean userId?: boolean createdAt?: boolean } export type DatabaseBackupOmit = $Extensions.GetOmit<"id" | "userId" | "createdAt", ExtArgs["result"]["databaseBackup"]> export type DatabaseBackupInclude = { user?: boolean | UserDefaultArgs } export type DatabaseBackupIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type DatabaseBackupIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $DatabaseBackupPayload = { name: "DatabaseBackup" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number createdAt: Date }, ExtArgs["result"]["databaseBackup"]> composites: {} } type DatabaseBackupGetPayload = $Result.GetResult type DatabaseBackupCountArgs = Omit & { select?: DatabaseBackupCountAggregateInputType | true } export interface DatabaseBackupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DatabaseBackup'], meta: { name: 'DatabaseBackup' } } /** * Find zero or one DatabaseBackup that matches the filter. * @param {DatabaseBackupFindUniqueArgs} args - Arguments to find a DatabaseBackup * @example * // Get one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one DatabaseBackup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DatabaseBackupFindUniqueOrThrowArgs} args - Arguments to find a DatabaseBackup * @example * // Get one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first DatabaseBackup 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 {DatabaseBackupFindFirstArgs} args - Arguments to find a DatabaseBackup * @example * // Get one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first DatabaseBackup 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 {DatabaseBackupFindFirstOrThrowArgs} args - Arguments to find a DatabaseBackup * @example * // Get one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more DatabaseBackups 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 {DatabaseBackupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DatabaseBackups * const databaseBackups = await prisma.databaseBackup.findMany() * * // Get first 10 DatabaseBackups * const databaseBackups = await prisma.databaseBackup.findMany({ take: 10 }) * * // Only select the `id` * const databaseBackupWithIdOnly = await prisma.databaseBackup.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a DatabaseBackup. * @param {DatabaseBackupCreateArgs} args - Arguments to create a DatabaseBackup. * @example * // Create one DatabaseBackup * const DatabaseBackup = await prisma.databaseBackup.create({ * data: { * // ... data to create a DatabaseBackup * } * }) * */ create(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many DatabaseBackups. * @param {DatabaseBackupCreateManyArgs} args - Arguments to create many DatabaseBackups. * @example * // Create many DatabaseBackups * const databaseBackup = await prisma.databaseBackup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many DatabaseBackups and returns the data saved in the database. * @param {DatabaseBackupCreateManyAndReturnArgs} args - Arguments to create many DatabaseBackups. * @example * // Create many DatabaseBackups * const databaseBackup = await prisma.databaseBackup.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DatabaseBackups and only return the `id` * const databaseBackupWithIdOnly = await prisma.databaseBackup.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a DatabaseBackup. * @param {DatabaseBackupDeleteArgs} args - Arguments to delete one DatabaseBackup. * @example * // Delete one DatabaseBackup * const DatabaseBackup = await prisma.databaseBackup.delete({ * where: { * // ... filter to delete one DatabaseBackup * } * }) * */ delete(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one DatabaseBackup. * @param {DatabaseBackupUpdateArgs} args - Arguments to update one DatabaseBackup. * @example * // Update one DatabaseBackup * const databaseBackup = await prisma.databaseBackup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more DatabaseBackups. * @param {DatabaseBackupDeleteManyArgs} args - Arguments to filter DatabaseBackups to delete. * @example * // Delete a few DatabaseBackups * const { count } = await prisma.databaseBackup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DatabaseBackups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DatabaseBackupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DatabaseBackups * const databaseBackup = await prisma.databaseBackup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DatabaseBackups and returns the data updated in the database. * @param {DatabaseBackupUpdateManyAndReturnArgs} args - Arguments to update many DatabaseBackups. * @example * // Update many DatabaseBackups * const databaseBackup = await prisma.databaseBackup.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DatabaseBackups and only return the `id` * const databaseBackupWithIdOnly = await prisma.databaseBackup.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one DatabaseBackup. * @param {DatabaseBackupUpsertArgs} args - Arguments to update or create a DatabaseBackup. * @example * // Update or create a DatabaseBackup * const databaseBackup = await prisma.databaseBackup.upsert({ * create: { * // ... data to create a DatabaseBackup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DatabaseBackup we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__DatabaseBackupClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of DatabaseBackups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DatabaseBackupCountArgs} args - Arguments to filter DatabaseBackups to count. * @example * // Count the number of DatabaseBackups * const count = await prisma.databaseBackup.count({ * where: { * // ... the filter for the DatabaseBackups 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 DatabaseBackup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DatabaseBackupAggregateArgs} 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 DatabaseBackup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DatabaseBackupGroupByArgs} 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 DatabaseBackupGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: DatabaseBackupGroupByArgs['orderBy'] } : { orderBy?: DatabaseBackupGroupByArgs['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 ? GetDatabaseBackupGroupByPayload : Prisma.PrismaPromise /** * Fields of the DatabaseBackup model */ readonly fields: DatabaseBackupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DatabaseBackup. * 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__DatabaseBackupClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 DatabaseBackup model */ interface DatabaseBackupFieldRefs { readonly id: FieldRef<"DatabaseBackup", 'Int'> readonly userId: FieldRef<"DatabaseBackup", 'Int'> readonly createdAt: FieldRef<"DatabaseBackup", 'DateTime'> } // Custom InputTypes /** * DatabaseBackup findUnique */ export type DatabaseBackupFindUniqueArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackup to fetch. */ where: DatabaseBackupWhereUniqueInput } /** * DatabaseBackup findUniqueOrThrow */ export type DatabaseBackupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackup to fetch. */ where: DatabaseBackupWhereUniqueInput } /** * DatabaseBackup findFirst */ export type DatabaseBackupFindFirstArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackup to fetch. */ where?: DatabaseBackupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DatabaseBackups to fetch. */ orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DatabaseBackups. */ cursor?: DatabaseBackupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DatabaseBackups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DatabaseBackups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DatabaseBackups. */ distinct?: DatabaseBackupScalarFieldEnum | DatabaseBackupScalarFieldEnum[] } /** * DatabaseBackup findFirstOrThrow */ export type DatabaseBackupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackup to fetch. */ where?: DatabaseBackupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DatabaseBackups to fetch. */ orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DatabaseBackups. */ cursor?: DatabaseBackupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DatabaseBackups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DatabaseBackups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DatabaseBackups. */ distinct?: DatabaseBackupScalarFieldEnum | DatabaseBackupScalarFieldEnum[] } /** * DatabaseBackup findMany */ export type DatabaseBackupFindManyArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter, which DatabaseBackups to fetch. */ where?: DatabaseBackupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DatabaseBackups to fetch. */ orderBy?: DatabaseBackupOrderByWithRelationInput | DatabaseBackupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DatabaseBackups. */ cursor?: DatabaseBackupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DatabaseBackups from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DatabaseBackups. */ skip?: number distinct?: DatabaseBackupScalarFieldEnum | DatabaseBackupScalarFieldEnum[] } /** * DatabaseBackup create */ export type DatabaseBackupCreateArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * The data needed to create a DatabaseBackup. */ data: XOR } /** * DatabaseBackup createMany */ export type DatabaseBackupCreateManyArgs = { /** * The data used to create many DatabaseBackups. */ data: DatabaseBackupCreateManyInput | DatabaseBackupCreateManyInput[] skipDuplicates?: boolean } /** * DatabaseBackup createManyAndReturn */ export type DatabaseBackupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelectCreateManyAndReturn | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * The data used to create many DatabaseBackups. */ data: DatabaseBackupCreateManyInput | DatabaseBackupCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupIncludeCreateManyAndReturn | null } /** * DatabaseBackup update */ export type DatabaseBackupUpdateArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * The data needed to update a DatabaseBackup. */ data: XOR /** * Choose, which DatabaseBackup to update. */ where: DatabaseBackupWhereUniqueInput } /** * DatabaseBackup updateMany */ export type DatabaseBackupUpdateManyArgs = { /** * The data used to update DatabaseBackups. */ data: XOR /** * Filter which DatabaseBackups to update */ where?: DatabaseBackupWhereInput /** * Limit how many DatabaseBackups to update. */ limit?: number } /** * DatabaseBackup updateManyAndReturn */ export type DatabaseBackupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelectUpdateManyAndReturn | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * The data used to update DatabaseBackups. */ data: XOR /** * Filter which DatabaseBackups to update */ where?: DatabaseBackupWhereInput /** * Limit how many DatabaseBackups to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupIncludeUpdateManyAndReturn | null } /** * DatabaseBackup upsert */ export type DatabaseBackupUpsertArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * The filter to search for the DatabaseBackup to update in case it exists. */ where: DatabaseBackupWhereUniqueInput /** * In case the DatabaseBackup found by the `where` argument doesn't exist, create a new DatabaseBackup with this data. */ create: XOR /** * In case the DatabaseBackup was found with the provided `where` argument, update it with this data. */ update: XOR } /** * DatabaseBackup delete */ export type DatabaseBackupDeleteArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null /** * Filter which DatabaseBackup to delete. */ where: DatabaseBackupWhereUniqueInput } /** * DatabaseBackup deleteMany */ export type DatabaseBackupDeleteManyArgs = { /** * Filter which DatabaseBackups to delete */ where?: DatabaseBackupWhereInput /** * Limit how many DatabaseBackups to delete. */ limit?: number } /** * DatabaseBackup without action */ export type DatabaseBackupDefaultArgs = { /** * Select specific fields to fetch from the DatabaseBackup */ select?: DatabaseBackupSelect | null /** * Omit specific fields from the DatabaseBackup */ omit?: DatabaseBackupOmit | null /** * Choose, which related nodes to fetch as well */ include?: DatabaseBackupInclude | null } /** * Model BackupDestination */ export type AggregateBackupDestination = { _count: BackupDestinationCountAggregateOutputType | null _avg: BackupDestinationAvgAggregateOutputType | null _sum: BackupDestinationSumAggregateOutputType | null _min: BackupDestinationMinAggregateOutputType | null _max: BackupDestinationMaxAggregateOutputType | null } export type BackupDestinationAvgAggregateOutputType = { id: number | null userId: number | null } export type BackupDestinationSumAggregateOutputType = { id: number | null userId: number | null } export type BackupDestinationMinAggregateOutputType = { id: number | null userId: number | null path: string | null isActive: boolean | null createdAt: Date | null } export type BackupDestinationMaxAggregateOutputType = { id: number | null userId: number | null path: string | null isActive: boolean | null createdAt: Date | null } export type BackupDestinationCountAggregateOutputType = { id: number userId: number path: number isActive: number createdAt: number _all: number } export type BackupDestinationAvgAggregateInputType = { id?: true userId?: true } export type BackupDestinationSumAggregateInputType = { id?: true userId?: true } export type BackupDestinationMinAggregateInputType = { id?: true userId?: true path?: true isActive?: true createdAt?: true } export type BackupDestinationMaxAggregateInputType = { id?: true userId?: true path?: true isActive?: true createdAt?: true } export type BackupDestinationCountAggregateInputType = { id?: true userId?: true path?: true isActive?: true createdAt?: true _all?: true } export type BackupDestinationAggregateArgs = { /** * Filter which BackupDestination to aggregate. */ where?: BackupDestinationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BackupDestinations to fetch. */ orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: BackupDestinationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BackupDestinations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` BackupDestinations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned BackupDestinations **/ _count?: true | BackupDestinationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: BackupDestinationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: BackupDestinationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: BackupDestinationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: BackupDestinationMaxAggregateInputType } export type GetBackupDestinationAggregateType = { [P in keyof T & keyof AggregateBackupDestination]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type BackupDestinationGroupByArgs = { where?: BackupDestinationWhereInput orderBy?: BackupDestinationOrderByWithAggregationInput | BackupDestinationOrderByWithAggregationInput[] by: BackupDestinationScalarFieldEnum[] | BackupDestinationScalarFieldEnum having?: BackupDestinationScalarWhereWithAggregatesInput take?: number skip?: number _count?: BackupDestinationCountAggregateInputType | true _avg?: BackupDestinationAvgAggregateInputType _sum?: BackupDestinationSumAggregateInputType _min?: BackupDestinationMinAggregateInputType _max?: BackupDestinationMaxAggregateInputType } export type BackupDestinationGroupByOutputType = { id: number userId: number path: string isActive: boolean createdAt: Date _count: BackupDestinationCountAggregateOutputType | null _avg: BackupDestinationAvgAggregateOutputType | null _sum: BackupDestinationSumAggregateOutputType | null _min: BackupDestinationMinAggregateOutputType | null _max: BackupDestinationMaxAggregateOutputType | null } type GetBackupDestinationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof BackupDestinationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type BackupDestinationSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean path?: boolean isActive?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["backupDestination"]> export type BackupDestinationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean path?: boolean isActive?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["backupDestination"]> export type BackupDestinationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean path?: boolean isActive?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["backupDestination"]> export type BackupDestinationSelectScalar = { id?: boolean userId?: boolean path?: boolean isActive?: boolean createdAt?: boolean } export type BackupDestinationOmit = $Extensions.GetOmit<"id" | "userId" | "path" | "isActive" | "createdAt", ExtArgs["result"]["backupDestination"]> export type BackupDestinationInclude = { user?: boolean | UserDefaultArgs } export type BackupDestinationIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type BackupDestinationIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $BackupDestinationPayload = { name: "BackupDestination" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number path: string isActive: boolean createdAt: Date }, ExtArgs["result"]["backupDestination"]> composites: {} } type BackupDestinationGetPayload = $Result.GetResult type BackupDestinationCountArgs = Omit & { select?: BackupDestinationCountAggregateInputType | true } export interface BackupDestinationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['BackupDestination'], meta: { name: 'BackupDestination' } } /** * Find zero or one BackupDestination that matches the filter. * @param {BackupDestinationFindUniqueArgs} args - Arguments to find a BackupDestination * @example * // Get one BackupDestination * const backupDestination = await prisma.backupDestination.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one BackupDestination that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {BackupDestinationFindUniqueOrThrowArgs} args - Arguments to find a BackupDestination * @example * // Get one BackupDestination * const backupDestination = await prisma.backupDestination.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first BackupDestination 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 {BackupDestinationFindFirstArgs} args - Arguments to find a BackupDestination * @example * // Get one BackupDestination * const backupDestination = await prisma.backupDestination.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first BackupDestination 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 {BackupDestinationFindFirstOrThrowArgs} args - Arguments to find a BackupDestination * @example * // Get one BackupDestination * const backupDestination = await prisma.backupDestination.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more BackupDestinations 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 {BackupDestinationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all BackupDestinations * const backupDestinations = await prisma.backupDestination.findMany() * * // Get first 10 BackupDestinations * const backupDestinations = await prisma.backupDestination.findMany({ take: 10 }) * * // Only select the `id` * const backupDestinationWithIdOnly = await prisma.backupDestination.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a BackupDestination. * @param {BackupDestinationCreateArgs} args - Arguments to create a BackupDestination. * @example * // Create one BackupDestination * const BackupDestination = await prisma.backupDestination.create({ * data: { * // ... data to create a BackupDestination * } * }) * */ create(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many BackupDestinations. * @param {BackupDestinationCreateManyArgs} args - Arguments to create many BackupDestinations. * @example * // Create many BackupDestinations * const backupDestination = await prisma.backupDestination.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many BackupDestinations and returns the data saved in the database. * @param {BackupDestinationCreateManyAndReturnArgs} args - Arguments to create many BackupDestinations. * @example * // Create many BackupDestinations * const backupDestination = await prisma.backupDestination.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many BackupDestinations and only return the `id` * const backupDestinationWithIdOnly = await prisma.backupDestination.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a BackupDestination. * @param {BackupDestinationDeleteArgs} args - Arguments to delete one BackupDestination. * @example * // Delete one BackupDestination * const BackupDestination = await prisma.backupDestination.delete({ * where: { * // ... filter to delete one BackupDestination * } * }) * */ delete(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one BackupDestination. * @param {BackupDestinationUpdateArgs} args - Arguments to update one BackupDestination. * @example * // Update one BackupDestination * const backupDestination = await prisma.backupDestination.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more BackupDestinations. * @param {BackupDestinationDeleteManyArgs} args - Arguments to filter BackupDestinations to delete. * @example * // Delete a few BackupDestinations * const { count } = await prisma.backupDestination.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BackupDestinations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BackupDestinationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many BackupDestinations * const backupDestination = await prisma.backupDestination.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BackupDestinations and returns the data updated in the database. * @param {BackupDestinationUpdateManyAndReturnArgs} args - Arguments to update many BackupDestinations. * @example * // Update many BackupDestinations * const backupDestination = await prisma.backupDestination.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more BackupDestinations and only return the `id` * const backupDestinationWithIdOnly = await prisma.backupDestination.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one BackupDestination. * @param {BackupDestinationUpsertArgs} args - Arguments to update or create a BackupDestination. * @example * // Update or create a BackupDestination * const backupDestination = await prisma.backupDestination.upsert({ * create: { * // ... data to create a BackupDestination * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the BackupDestination we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__BackupDestinationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of BackupDestinations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BackupDestinationCountArgs} args - Arguments to filter BackupDestinations to count. * @example * // Count the number of BackupDestinations * const count = await prisma.backupDestination.count({ * where: { * // ... the filter for the BackupDestinations 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 BackupDestination. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BackupDestinationAggregateArgs} 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 BackupDestination. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BackupDestinationGroupByArgs} 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 BackupDestinationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: BackupDestinationGroupByArgs['orderBy'] } : { orderBy?: BackupDestinationGroupByArgs['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 ? GetBackupDestinationGroupByPayload : Prisma.PrismaPromise /** * Fields of the BackupDestination model */ readonly fields: BackupDestinationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for BackupDestination. * 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__BackupDestinationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 BackupDestination model */ interface BackupDestinationFieldRefs { readonly id: FieldRef<"BackupDestination", 'Int'> readonly userId: FieldRef<"BackupDestination", 'Int'> readonly path: FieldRef<"BackupDestination", 'String'> readonly isActive: FieldRef<"BackupDestination", 'Boolean'> readonly createdAt: FieldRef<"BackupDestination", 'DateTime'> } // Custom InputTypes /** * BackupDestination findUnique */ export type BackupDestinationFindUniqueArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestination to fetch. */ where: BackupDestinationWhereUniqueInput } /** * BackupDestination findUniqueOrThrow */ export type BackupDestinationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestination to fetch. */ where: BackupDestinationWhereUniqueInput } /** * BackupDestination findFirst */ export type BackupDestinationFindFirstArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestination to fetch. */ where?: BackupDestinationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BackupDestinations to fetch. */ orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BackupDestinations. */ cursor?: BackupDestinationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BackupDestinations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` BackupDestinations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BackupDestinations. */ distinct?: BackupDestinationScalarFieldEnum | BackupDestinationScalarFieldEnum[] } /** * BackupDestination findFirstOrThrow */ export type BackupDestinationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestination to fetch. */ where?: BackupDestinationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BackupDestinations to fetch. */ orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BackupDestinations. */ cursor?: BackupDestinationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BackupDestinations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` BackupDestinations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BackupDestinations. */ distinct?: BackupDestinationScalarFieldEnum | BackupDestinationScalarFieldEnum[] } /** * BackupDestination findMany */ export type BackupDestinationFindManyArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter, which BackupDestinations to fetch. */ where?: BackupDestinationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BackupDestinations to fetch. */ orderBy?: BackupDestinationOrderByWithRelationInput | BackupDestinationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing BackupDestinations. */ cursor?: BackupDestinationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BackupDestinations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` BackupDestinations. */ skip?: number distinct?: BackupDestinationScalarFieldEnum | BackupDestinationScalarFieldEnum[] } /** * BackupDestination create */ export type BackupDestinationCreateArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * The data needed to create a BackupDestination. */ data: XOR } /** * BackupDestination createMany */ export type BackupDestinationCreateManyArgs = { /** * The data used to create many BackupDestinations. */ data: BackupDestinationCreateManyInput | BackupDestinationCreateManyInput[] skipDuplicates?: boolean } /** * BackupDestination createManyAndReturn */ export type BackupDestinationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelectCreateManyAndReturn | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * The data used to create many BackupDestinations. */ data: BackupDestinationCreateManyInput | BackupDestinationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationIncludeCreateManyAndReturn | null } /** * BackupDestination update */ export type BackupDestinationUpdateArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * The data needed to update a BackupDestination. */ data: XOR /** * Choose, which BackupDestination to update. */ where: BackupDestinationWhereUniqueInput } /** * BackupDestination updateMany */ export type BackupDestinationUpdateManyArgs = { /** * The data used to update BackupDestinations. */ data: XOR /** * Filter which BackupDestinations to update */ where?: BackupDestinationWhereInput /** * Limit how many BackupDestinations to update. */ limit?: number } /** * BackupDestination updateManyAndReturn */ export type BackupDestinationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelectUpdateManyAndReturn | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * The data used to update BackupDestinations. */ data: XOR /** * Filter which BackupDestinations to update */ where?: BackupDestinationWhereInput /** * Limit how many BackupDestinations to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationIncludeUpdateManyAndReturn | null } /** * BackupDestination upsert */ export type BackupDestinationUpsertArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * The filter to search for the BackupDestination to update in case it exists. */ where: BackupDestinationWhereUniqueInput /** * In case the BackupDestination found by the `where` argument doesn't exist, create a new BackupDestination with this data. */ create: XOR /** * In case the BackupDestination was found with the provided `where` argument, update it with this data. */ update: XOR } /** * BackupDestination delete */ export type BackupDestinationDeleteArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null /** * Filter which BackupDestination to delete. */ where: BackupDestinationWhereUniqueInput } /** * BackupDestination deleteMany */ export type BackupDestinationDeleteManyArgs = { /** * Filter which BackupDestinations to delete */ where?: BackupDestinationWhereInput /** * Limit how many BackupDestinations to delete. */ limit?: number } /** * BackupDestination without action */ export type BackupDestinationDefaultArgs = { /** * Select specific fields to fetch from the BackupDestination */ select?: BackupDestinationSelect | null /** * Omit specific fields from the BackupDestination */ omit?: BackupDestinationOmit | null /** * Choose, which related nodes to fetch as well */ include?: BackupDestinationInclude | null } /** * Model Notification */ export type AggregateNotification = { _count: NotificationCountAggregateOutputType | null _avg: NotificationAvgAggregateOutputType | null _sum: NotificationSumAggregateOutputType | null _min: NotificationMinAggregateOutputType | null _max: NotificationMaxAggregateOutputType | null } export type NotificationAvgAggregateOutputType = { id: number | null userId: number | null } export type NotificationSumAggregateOutputType = { id: number | null userId: number | null } export type NotificationMinAggregateOutputType = { id: number | null userId: number | null type: $Enums.NotificationTypes | null message: string | null createdAt: Date | null read: boolean | null } export type NotificationMaxAggregateOutputType = { id: number | null userId: number | null type: $Enums.NotificationTypes | null message: string | null createdAt: Date | null read: boolean | null } export type NotificationCountAggregateOutputType = { id: number userId: number type: number message: number createdAt: number read: number _all: number } export type NotificationAvgAggregateInputType = { id?: true userId?: true } export type NotificationSumAggregateInputType = { id?: true userId?: true } export type NotificationMinAggregateInputType = { id?: true userId?: true type?: true message?: true createdAt?: true read?: true } export type NotificationMaxAggregateInputType = { id?: true userId?: true type?: true message?: true createdAt?: true read?: true } export type NotificationCountAggregateInputType = { id?: true userId?: true type?: true message?: true createdAt?: true read?: true _all?: true } export type NotificationAggregateArgs = { /** * Filter which Notification to aggregate. */ where?: NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Notifications **/ _count?: true | NotificationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: NotificationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: NotificationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NotificationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NotificationMaxAggregateInputType } export type GetNotificationAggregateType = { [P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type NotificationGroupByArgs = { where?: NotificationWhereInput orderBy?: NotificationOrderByWithAggregationInput | NotificationOrderByWithAggregationInput[] by: NotificationScalarFieldEnum[] | NotificationScalarFieldEnum having?: NotificationScalarWhereWithAggregatesInput take?: number skip?: number _count?: NotificationCountAggregateInputType | true _avg?: NotificationAvgAggregateInputType _sum?: NotificationSumAggregateInputType _min?: NotificationMinAggregateInputType _max?: NotificationMaxAggregateInputType } export type NotificationGroupByOutputType = { id: number userId: number type: $Enums.NotificationTypes message: string createdAt: Date read: boolean _count: NotificationCountAggregateOutputType | null _avg: NotificationAvgAggregateOutputType | null _sum: NotificationSumAggregateOutputType | null _min: NotificationMinAggregateOutputType | null _max: NotificationMaxAggregateOutputType | null } type GetNotificationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof NotificationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type NotificationSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean type?: boolean message?: boolean createdAt?: boolean read?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean type?: boolean message?: boolean createdAt?: boolean read?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean type?: boolean message?: boolean createdAt?: boolean read?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["notification"]> export type NotificationSelectScalar = { id?: boolean userId?: boolean type?: boolean message?: boolean createdAt?: boolean read?: boolean } export type NotificationOmit = $Extensions.GetOmit<"id" | "userId" | "type" | "message" | "createdAt" | "read", ExtArgs["result"]["notification"]> export type NotificationInclude = { user?: boolean | UserDefaultArgs } export type NotificationIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type NotificationIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $NotificationPayload = { name: "Notification" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number type: $Enums.NotificationTypes message: string createdAt: Date read: boolean }, ExtArgs["result"]["notification"]> composites: {} } type NotificationGetPayload = $Result.GetResult type NotificationCountArgs = Omit & { select?: NotificationCountAggregateInputType | true } export interface NotificationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Notification'], meta: { name: 'Notification' } } /** * Find zero or one Notification that matches the filter. * @param {NotificationFindUniqueArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Notification that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NotificationFindUniqueOrThrowArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Notification 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 {NotificationFindFirstArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Notification 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 {NotificationFindFirstOrThrowArgs} args - Arguments to find a Notification * @example * // Get one Notification * const notification = await prisma.notification.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Notifications 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 {NotificationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Notifications * const notifications = await prisma.notification.findMany() * * // Get first 10 Notifications * const notifications = await prisma.notification.findMany({ take: 10 }) * * // Only select the `id` * const notificationWithIdOnly = await prisma.notification.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Notification. * @param {NotificationCreateArgs} args - Arguments to create a Notification. * @example * // Create one Notification * const Notification = await prisma.notification.create({ * data: { * // ... data to create a Notification * } * }) * */ create(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Notifications. * @param {NotificationCreateManyArgs} args - Arguments to create many Notifications. * @example * // Create many Notifications * const notification = await prisma.notification.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Notifications and returns the data saved in the database. * @param {NotificationCreateManyAndReturnArgs} args - Arguments to create many Notifications. * @example * // Create many Notifications * const notification = await prisma.notification.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Notifications and only return the `id` * const notificationWithIdOnly = await prisma.notification.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Notification. * @param {NotificationDeleteArgs} args - Arguments to delete one Notification. * @example * // Delete one Notification * const Notification = await prisma.notification.delete({ * where: { * // ... filter to delete one Notification * } * }) * */ delete(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Notification. * @param {NotificationUpdateArgs} args - Arguments to update one Notification. * @example * // Update one Notification * const notification = await prisma.notification.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Notifications. * @param {NotificationDeleteManyArgs} args - Arguments to filter Notifications to delete. * @example * // Delete a few Notifications * const { count } = await prisma.notification.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Notifications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Notifications * const notification = await prisma.notification.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Notifications and returns the data updated in the database. * @param {NotificationUpdateManyAndReturnArgs} args - Arguments to update many Notifications. * @example * // Update many Notifications * const notification = await prisma.notification.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Notifications and only return the `id` * const notificationWithIdOnly = await prisma.notification.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Notification. * @param {NotificationUpsertArgs} args - Arguments to update or create a Notification. * @example * // Update or create a Notification * const notification = await prisma.notification.upsert({ * create: { * // ... data to create a Notification * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Notification we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__NotificationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Notifications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationCountArgs} args - Arguments to filter Notifications to count. * @example * // Count the number of Notifications * const count = await prisma.notification.count({ * where: { * // ... the filter for the Notifications 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 Notification. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationAggregateArgs} 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 Notification. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationGroupByArgs} 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 NotificationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: NotificationGroupByArgs['orderBy'] } : { orderBy?: NotificationGroupByArgs['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 ? GetNotificationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Notification model */ readonly fields: NotificationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Notification. * 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__NotificationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 Notification model */ interface NotificationFieldRefs { readonly id: FieldRef<"Notification", 'Int'> readonly userId: FieldRef<"Notification", 'Int'> readonly type: FieldRef<"Notification", 'NotificationTypes'> readonly message: FieldRef<"Notification", 'String'> readonly createdAt: FieldRef<"Notification", 'DateTime'> readonly read: FieldRef<"Notification", 'Boolean'> } // Custom InputTypes /** * Notification findUnique */ export type NotificationFindUniqueArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notification to fetch. */ where: NotificationWhereUniqueInput } /** * Notification findUniqueOrThrow */ export type NotificationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notification to fetch. */ where: NotificationWhereUniqueInput } /** * Notification findFirst */ export type NotificationFindFirstArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notification to fetch. */ where?: NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Notifications. */ cursor?: NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Notifications. */ distinct?: NotificationScalarFieldEnum | NotificationScalarFieldEnum[] } /** * Notification findFirstOrThrow */ export type NotificationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notification to fetch. */ where?: NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Notifications. */ cursor?: NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Notifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Notifications. */ distinct?: NotificationScalarFieldEnum | NotificationScalarFieldEnum[] } /** * Notification findMany */ export type NotificationFindManyArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter, which Notifications to fetch. */ where?: NotificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Notifications to fetch. */ orderBy?: NotificationOrderByWithRelationInput | NotificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Notifications. */ cursor?: NotificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Notifications from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Notifications. */ skip?: number distinct?: NotificationScalarFieldEnum | NotificationScalarFieldEnum[] } /** * Notification create */ export type NotificationCreateArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * The data needed to create a Notification. */ data: XOR } /** * Notification createMany */ export type NotificationCreateManyArgs = { /** * The data used to create many Notifications. */ data: NotificationCreateManyInput | NotificationCreateManyInput[] skipDuplicates?: boolean } /** * Notification createManyAndReturn */ export type NotificationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelectCreateManyAndReturn | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * The data used to create many Notifications. */ data: NotificationCreateManyInput | NotificationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: NotificationIncludeCreateManyAndReturn | null } /** * Notification update */ export type NotificationUpdateArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * The data needed to update a Notification. */ data: XOR /** * Choose, which Notification to update. */ where: NotificationWhereUniqueInput } /** * Notification updateMany */ export type NotificationUpdateManyArgs = { /** * The data used to update Notifications. */ data: XOR /** * Filter which Notifications to update */ where?: NotificationWhereInput /** * Limit how many Notifications to update. */ limit?: number } /** * Notification updateManyAndReturn */ export type NotificationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * The data used to update Notifications. */ data: XOR /** * Filter which Notifications to update */ where?: NotificationWhereInput /** * Limit how many Notifications to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: NotificationIncludeUpdateManyAndReturn | null } /** * Notification upsert */ export type NotificationUpsertArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * The filter to search for the Notification to update in case it exists. */ where: NotificationWhereUniqueInput /** * In case the Notification found by the `where` argument doesn't exist, create a new Notification with this data. */ create: XOR /** * In case the Notification was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Notification delete */ export type NotificationDeleteArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null /** * Filter which Notification to delete. */ where: NotificationWhereUniqueInput } /** * Notification deleteMany */ export type NotificationDeleteManyArgs = { /** * Filter which Notifications to delete */ where?: NotificationWhereInput /** * Limit how many Notifications to delete. */ limit?: number } /** * Notification without action */ export type NotificationDefaultArgs = { /** * Select specific fields to fetch from the Notification */ select?: NotificationSelect | null /** * Omit specific fields from the Notification */ omit?: NotificationOmit | null /** * Choose, which related nodes to fetch as well */ include?: NotificationInclude | null } /** * Model CronJobLog */ export type AggregateCronJobLog = { _count: CronJobLogCountAggregateOutputType | null _avg: CronJobLogAvgAggregateOutputType | null _sum: CronJobLogSumAggregateOutputType | null _min: CronJobLogMinAggregateOutputType | null _max: CronJobLogMaxAggregateOutputType | null } export type CronJobLogAvgAggregateOutputType = { id: number | null durationMs: number | null } export type CronJobLogSumAggregateOutputType = { id: number | null durationMs: number | null } export type CronJobLogMinAggregateOutputType = { id: number | null jobName: string | null status: string | null startedAt: Date | null completedAt: Date | null durationMs: number | null errorMessage: string | null } export type CronJobLogMaxAggregateOutputType = { id: number | null jobName: string | null status: string | null startedAt: Date | null completedAt: Date | null durationMs: number | null errorMessage: string | null } export type CronJobLogCountAggregateOutputType = { id: number jobName: number status: number startedAt: number completedAt: number durationMs: number errorMessage: number _all: number } export type CronJobLogAvgAggregateInputType = { id?: true durationMs?: true } export type CronJobLogSumAggregateInputType = { id?: true durationMs?: true } export type CronJobLogMinAggregateInputType = { id?: true jobName?: true status?: true startedAt?: true completedAt?: true durationMs?: true errorMessage?: true } export type CronJobLogMaxAggregateInputType = { id?: true jobName?: true status?: true startedAt?: true completedAt?: true durationMs?: true errorMessage?: true } export type CronJobLogCountAggregateInputType = { id?: true jobName?: true status?: true startedAt?: true completedAt?: true durationMs?: true errorMessage?: true _all?: true } export type CronJobLogAggregateArgs = { /** * Filter which CronJobLog to aggregate. */ where?: CronJobLogWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CronJobLogs to fetch. */ orderBy?: CronJobLogOrderByWithRelationInput | CronJobLogOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CronJobLogWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CronJobLogs from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CronJobLogs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CronJobLogs **/ _count?: true | CronJobLogCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CronJobLogAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CronJobLogSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CronJobLogMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CronJobLogMaxAggregateInputType } export type GetCronJobLogAggregateType = { [P in keyof T & keyof AggregateCronJobLog]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CronJobLogGroupByArgs = { where?: CronJobLogWhereInput orderBy?: CronJobLogOrderByWithAggregationInput | CronJobLogOrderByWithAggregationInput[] by: CronJobLogScalarFieldEnum[] | CronJobLogScalarFieldEnum having?: CronJobLogScalarWhereWithAggregatesInput take?: number skip?: number _count?: CronJobLogCountAggregateInputType | true _avg?: CronJobLogAvgAggregateInputType _sum?: CronJobLogSumAggregateInputType _min?: CronJobLogMinAggregateInputType _max?: CronJobLogMaxAggregateInputType } export type CronJobLogGroupByOutputType = { id: number jobName: string status: string startedAt: Date completedAt: Date | null durationMs: number | null errorMessage: string | null _count: CronJobLogCountAggregateOutputType | null _avg: CronJobLogAvgAggregateOutputType | null _sum: CronJobLogSumAggregateOutputType | null _min: CronJobLogMinAggregateOutputType | null _max: CronJobLogMaxAggregateOutputType | null } type GetCronJobLogGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CronJobLogGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CronJobLogSelect = $Extensions.GetSelect<{ id?: boolean jobName?: boolean status?: boolean startedAt?: boolean completedAt?: boolean durationMs?: boolean errorMessage?: boolean }, ExtArgs["result"]["cronJobLog"]> export type CronJobLogSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean jobName?: boolean status?: boolean startedAt?: boolean completedAt?: boolean durationMs?: boolean errorMessage?: boolean }, ExtArgs["result"]["cronJobLog"]> export type CronJobLogSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean jobName?: boolean status?: boolean startedAt?: boolean completedAt?: boolean durationMs?: boolean errorMessage?: boolean }, ExtArgs["result"]["cronJobLog"]> export type CronJobLogSelectScalar = { id?: boolean jobName?: boolean status?: boolean startedAt?: boolean completedAt?: boolean durationMs?: boolean errorMessage?: boolean } export type CronJobLogOmit = $Extensions.GetOmit<"id" | "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "errorMessage", ExtArgs["result"]["cronJobLog"]> export type $CronJobLogPayload = { name: "CronJobLog" objects: {} scalars: $Extensions.GetPayloadResult<{ id: number jobName: string status: string startedAt: Date completedAt: Date | null durationMs: number | null errorMessage: string | null }, ExtArgs["result"]["cronJobLog"]> composites: {} } type CronJobLogGetPayload = $Result.GetResult type CronJobLogCountArgs = Omit & { select?: CronJobLogCountAggregateInputType | true } export interface CronJobLogDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CronJobLog'], meta: { name: 'CronJobLog' } } /** * Find zero or one CronJobLog that matches the filter. * @param {CronJobLogFindUniqueArgs} args - Arguments to find a CronJobLog * @example * // Get one CronJobLog * const cronJobLog = await prisma.cronJobLog.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CronJobLogClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CronJobLog that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CronJobLogFindUniqueOrThrowArgs} args - Arguments to find a CronJobLog * @example * // Get one CronJobLog * const cronJobLog = await prisma.cronJobLog.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CronJobLogClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CronJobLog 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 {CronJobLogFindFirstArgs} args - Arguments to find a CronJobLog * @example * // Get one CronJobLog * const cronJobLog = await prisma.cronJobLog.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CronJobLogClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CronJobLog 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 {CronJobLogFindFirstOrThrowArgs} args - Arguments to find a CronJobLog * @example * // Get one CronJobLog * const cronJobLog = await prisma.cronJobLog.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CronJobLogClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CronJobLogs 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 {CronJobLogFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CronJobLogs * const cronJobLogs = await prisma.cronJobLog.findMany() * * // Get first 10 CronJobLogs * const cronJobLogs = await prisma.cronJobLog.findMany({ take: 10 }) * * // Only select the `id` * const cronJobLogWithIdOnly = await prisma.cronJobLog.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CronJobLog. * @param {CronJobLogCreateArgs} args - Arguments to create a CronJobLog. * @example * // Create one CronJobLog * const CronJobLog = await prisma.cronJobLog.create({ * data: { * // ... data to create a CronJobLog * } * }) * */ create(args: SelectSubset>): Prisma__CronJobLogClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CronJobLogs. * @param {CronJobLogCreateManyArgs} args - Arguments to create many CronJobLogs. * @example * // Create many CronJobLogs * const cronJobLog = await prisma.cronJobLog.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CronJobLogs and returns the data saved in the database. * @param {CronJobLogCreateManyAndReturnArgs} args - Arguments to create many CronJobLogs. * @example * // Create many CronJobLogs * const cronJobLog = await prisma.cronJobLog.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CronJobLogs and only return the `id` * const cronJobLogWithIdOnly = await prisma.cronJobLog.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CronJobLog. * @param {CronJobLogDeleteArgs} args - Arguments to delete one CronJobLog. * @example * // Delete one CronJobLog * const CronJobLog = await prisma.cronJobLog.delete({ * where: { * // ... filter to delete one CronJobLog * } * }) * */ delete(args: SelectSubset>): Prisma__CronJobLogClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CronJobLog. * @param {CronJobLogUpdateArgs} args - Arguments to update one CronJobLog. * @example * // Update one CronJobLog * const cronJobLog = await prisma.cronJobLog.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CronJobLogClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CronJobLogs. * @param {CronJobLogDeleteManyArgs} args - Arguments to filter CronJobLogs to delete. * @example * // Delete a few CronJobLogs * const { count } = await prisma.cronJobLog.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CronJobLogs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CronJobLogUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CronJobLogs * const cronJobLog = await prisma.cronJobLog.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CronJobLogs and returns the data updated in the database. * @param {CronJobLogUpdateManyAndReturnArgs} args - Arguments to update many CronJobLogs. * @example * // Update many CronJobLogs * const cronJobLog = await prisma.cronJobLog.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CronJobLogs and only return the `id` * const cronJobLogWithIdOnly = await prisma.cronJobLog.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CronJobLog. * @param {CronJobLogUpsertArgs} args - Arguments to update or create a CronJobLog. * @example * // Update or create a CronJobLog * const cronJobLog = await prisma.cronJobLog.upsert({ * create: { * // ... data to create a CronJobLog * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CronJobLog we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CronJobLogClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CronJobLogs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CronJobLogCountArgs} args - Arguments to filter CronJobLogs to count. * @example * // Count the number of CronJobLogs * const count = await prisma.cronJobLog.count({ * where: { * // ... the filter for the CronJobLogs 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 CronJobLog. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CronJobLogAggregateArgs} 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 CronJobLog. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CronJobLogGroupByArgs} 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 CronJobLogGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CronJobLogGroupByArgs['orderBy'] } : { orderBy?: CronJobLogGroupByArgs['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 ? GetCronJobLogGroupByPayload : Prisma.PrismaPromise /** * Fields of the CronJobLog model */ readonly fields: CronJobLogFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CronJobLog. * 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__CronJobLogClient 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 CronJobLog model */ interface CronJobLogFieldRefs { readonly id: FieldRef<"CronJobLog", 'Int'> readonly jobName: FieldRef<"CronJobLog", 'String'> readonly status: FieldRef<"CronJobLog", 'String'> readonly startedAt: FieldRef<"CronJobLog", 'DateTime'> readonly completedAt: FieldRef<"CronJobLog", 'DateTime'> readonly durationMs: FieldRef<"CronJobLog", 'Int'> readonly errorMessage: FieldRef<"CronJobLog", 'String'> } // Custom InputTypes /** * CronJobLog findUnique */ export type CronJobLogFindUniqueArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * Filter, which CronJobLog to fetch. */ where: CronJobLogWhereUniqueInput } /** * CronJobLog findUniqueOrThrow */ export type CronJobLogFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * Filter, which CronJobLog to fetch. */ where: CronJobLogWhereUniqueInput } /** * CronJobLog findFirst */ export type CronJobLogFindFirstArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * Filter, which CronJobLog to fetch. */ where?: CronJobLogWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CronJobLogs to fetch. */ orderBy?: CronJobLogOrderByWithRelationInput | CronJobLogOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CronJobLogs. */ cursor?: CronJobLogWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CronJobLogs from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CronJobLogs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CronJobLogs. */ distinct?: CronJobLogScalarFieldEnum | CronJobLogScalarFieldEnum[] } /** * CronJobLog findFirstOrThrow */ export type CronJobLogFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * Filter, which CronJobLog to fetch. */ where?: CronJobLogWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CronJobLogs to fetch. */ orderBy?: CronJobLogOrderByWithRelationInput | CronJobLogOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CronJobLogs. */ cursor?: CronJobLogWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CronJobLogs from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CronJobLogs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CronJobLogs. */ distinct?: CronJobLogScalarFieldEnum | CronJobLogScalarFieldEnum[] } /** * CronJobLog findMany */ export type CronJobLogFindManyArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * Filter, which CronJobLogs to fetch. */ where?: CronJobLogWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CronJobLogs to fetch. */ orderBy?: CronJobLogOrderByWithRelationInput | CronJobLogOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CronJobLogs. */ cursor?: CronJobLogWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CronJobLogs from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CronJobLogs. */ skip?: number distinct?: CronJobLogScalarFieldEnum | CronJobLogScalarFieldEnum[] } /** * CronJobLog create */ export type CronJobLogCreateArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * The data needed to create a CronJobLog. */ data: XOR } /** * CronJobLog createMany */ export type CronJobLogCreateManyArgs = { /** * The data used to create many CronJobLogs. */ data: CronJobLogCreateManyInput | CronJobLogCreateManyInput[] skipDuplicates?: boolean } /** * CronJobLog createManyAndReturn */ export type CronJobLogCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelectCreateManyAndReturn | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * The data used to create many CronJobLogs. */ data: CronJobLogCreateManyInput | CronJobLogCreateManyInput[] skipDuplicates?: boolean } /** * CronJobLog update */ export type CronJobLogUpdateArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * The data needed to update a CronJobLog. */ data: XOR /** * Choose, which CronJobLog to update. */ where: CronJobLogWhereUniqueInput } /** * CronJobLog updateMany */ export type CronJobLogUpdateManyArgs = { /** * The data used to update CronJobLogs. */ data: XOR /** * Filter which CronJobLogs to update */ where?: CronJobLogWhereInput /** * Limit how many CronJobLogs to update. */ limit?: number } /** * CronJobLog updateManyAndReturn */ export type CronJobLogUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelectUpdateManyAndReturn | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * The data used to update CronJobLogs. */ data: XOR /** * Filter which CronJobLogs to update */ where?: CronJobLogWhereInput /** * Limit how many CronJobLogs to update. */ limit?: number } /** * CronJobLog upsert */ export type CronJobLogUpsertArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * The filter to search for the CronJobLog to update in case it exists. */ where: CronJobLogWhereUniqueInput /** * In case the CronJobLog found by the `where` argument doesn't exist, create a new CronJobLog with this data. */ create: XOR /** * In case the CronJobLog was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CronJobLog delete */ export type CronJobLogDeleteArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null /** * Filter which CronJobLog to delete. */ where: CronJobLogWhereUniqueInput } /** * CronJobLog deleteMany */ export type CronJobLogDeleteManyArgs = { /** * Filter which CronJobLogs to delete */ where?: CronJobLogWhereInput /** * Limit how many CronJobLogs to delete. */ limit?: number } /** * CronJobLog without action */ export type CronJobLogDefaultArgs = { /** * Select specific fields to fetch from the CronJobLog */ select?: CronJobLogSelect | null /** * Omit specific fields from the CronJobLog */ omit?: CronJobLogOmit | null } /** * Model CloudFolder */ export type AggregateCloudFolder = { _count: CloudFolderCountAggregateOutputType | null _avg: CloudFolderAvgAggregateOutputType | null _sum: CloudFolderSumAggregateOutputType | null _min: CloudFolderMinAggregateOutputType | null _max: CloudFolderMaxAggregateOutputType | null } export type CloudFolderAvgAggregateOutputType = { id: number | null userId: number | null parentId: number | null } export type CloudFolderSumAggregateOutputType = { id: number | null userId: number | null parentId: number | null } export type CloudFolderMinAggregateOutputType = { id: number | null userId: number | null name: string | null parentId: number | null createdAt: Date | null updatedAt: Date | null } export type CloudFolderMaxAggregateOutputType = { id: number | null userId: number | null name: string | null parentId: number | null createdAt: Date | null updatedAt: Date | null } export type CloudFolderCountAggregateOutputType = { id: number userId: number name: number parentId: number createdAt: number updatedAt: number _all: number } export type CloudFolderAvgAggregateInputType = { id?: true userId?: true parentId?: true } export type CloudFolderSumAggregateInputType = { id?: true userId?: true parentId?: true } export type CloudFolderMinAggregateInputType = { id?: true userId?: true name?: true parentId?: true createdAt?: true updatedAt?: true } export type CloudFolderMaxAggregateInputType = { id?: true userId?: true name?: true parentId?: true createdAt?: true updatedAt?: true } export type CloudFolderCountAggregateInputType = { id?: true userId?: true name?: true parentId?: true createdAt?: true updatedAt?: true _all?: true } export type CloudFolderAggregateArgs = { /** * Filter which CloudFolder to aggregate. */ where?: CloudFolderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFolders to fetch. */ orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CloudFolderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFolders from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFolders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CloudFolders **/ _count?: true | CloudFolderCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CloudFolderAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CloudFolderSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CloudFolderMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CloudFolderMaxAggregateInputType } export type GetCloudFolderAggregateType = { [P in keyof T & keyof AggregateCloudFolder]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CloudFolderGroupByArgs = { where?: CloudFolderWhereInput orderBy?: CloudFolderOrderByWithAggregationInput | CloudFolderOrderByWithAggregationInput[] by: CloudFolderScalarFieldEnum[] | CloudFolderScalarFieldEnum having?: CloudFolderScalarWhereWithAggregatesInput take?: number skip?: number _count?: CloudFolderCountAggregateInputType | true _avg?: CloudFolderAvgAggregateInputType _sum?: CloudFolderSumAggregateInputType _min?: CloudFolderMinAggregateInputType _max?: CloudFolderMaxAggregateInputType } export type CloudFolderGroupByOutputType = { id: number userId: number name: string parentId: number | null createdAt: Date updatedAt: Date _count: CloudFolderCountAggregateOutputType | null _avg: CloudFolderAvgAggregateOutputType | null _sum: CloudFolderSumAggregateOutputType | null _min: CloudFolderMinAggregateOutputType | null _max: CloudFolderMaxAggregateOutputType | null } type GetCloudFolderGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CloudFolderGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CloudFolderSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean parentId?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | CloudFolder$parentArgs children?: boolean | CloudFolder$childrenArgs user?: boolean | UserDefaultArgs files?: boolean | CloudFolder$filesArgs _count?: boolean | CloudFolderCountOutputTypeDefaultArgs }, ExtArgs["result"]["cloudFolder"]> export type CloudFolderSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean parentId?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | CloudFolder$parentArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["cloudFolder"]> export type CloudFolderSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean parentId?: boolean createdAt?: boolean updatedAt?: boolean parent?: boolean | CloudFolder$parentArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["cloudFolder"]> export type CloudFolderSelectScalar = { id?: boolean userId?: boolean name?: boolean parentId?: boolean createdAt?: boolean updatedAt?: boolean } export type CloudFolderOmit = $Extensions.GetOmit<"id" | "userId" | "name" | "parentId" | "createdAt" | "updatedAt", ExtArgs["result"]["cloudFolder"]> export type CloudFolderInclude = { parent?: boolean | CloudFolder$parentArgs children?: boolean | CloudFolder$childrenArgs user?: boolean | UserDefaultArgs files?: boolean | CloudFolder$filesArgs _count?: boolean | CloudFolderCountOutputTypeDefaultArgs } export type CloudFolderIncludeCreateManyAndReturn = { parent?: boolean | CloudFolder$parentArgs user?: boolean | UserDefaultArgs } export type CloudFolderIncludeUpdateManyAndReturn = { parent?: boolean | CloudFolder$parentArgs user?: boolean | UserDefaultArgs } export type $CloudFolderPayload = { name: "CloudFolder" objects: { parent: Prisma.$CloudFolderPayload | null children: Prisma.$CloudFolderPayload[] user: Prisma.$UserPayload files: Prisma.$CloudFilePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: number name: string parentId: number | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["cloudFolder"]> composites: {} } type CloudFolderGetPayload = $Result.GetResult type CloudFolderCountArgs = Omit & { select?: CloudFolderCountAggregateInputType | true } export interface CloudFolderDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CloudFolder'], meta: { name: 'CloudFolder' } } /** * Find zero or one CloudFolder that matches the filter. * @param {CloudFolderFindUniqueArgs} args - Arguments to find a CloudFolder * @example * // Get one CloudFolder * const cloudFolder = await prisma.cloudFolder.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CloudFolder that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CloudFolderFindUniqueOrThrowArgs} args - Arguments to find a CloudFolder * @example * // Get one CloudFolder * const cloudFolder = await prisma.cloudFolder.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFolder 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 {CloudFolderFindFirstArgs} args - Arguments to find a CloudFolder * @example * // Get one CloudFolder * const cloudFolder = await prisma.cloudFolder.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFolder 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 {CloudFolderFindFirstOrThrowArgs} args - Arguments to find a CloudFolder * @example * // Get one CloudFolder * const cloudFolder = await prisma.cloudFolder.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CloudFolders 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 {CloudFolderFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CloudFolders * const cloudFolders = await prisma.cloudFolder.findMany() * * // Get first 10 CloudFolders * const cloudFolders = await prisma.cloudFolder.findMany({ take: 10 }) * * // Only select the `id` * const cloudFolderWithIdOnly = await prisma.cloudFolder.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CloudFolder. * @param {CloudFolderCreateArgs} args - Arguments to create a CloudFolder. * @example * // Create one CloudFolder * const CloudFolder = await prisma.cloudFolder.create({ * data: { * // ... data to create a CloudFolder * } * }) * */ create(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CloudFolders. * @param {CloudFolderCreateManyArgs} args - Arguments to create many CloudFolders. * @example * // Create many CloudFolders * const cloudFolder = await prisma.cloudFolder.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CloudFolders and returns the data saved in the database. * @param {CloudFolderCreateManyAndReturnArgs} args - Arguments to create many CloudFolders. * @example * // Create many CloudFolders * const cloudFolder = await prisma.cloudFolder.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CloudFolders and only return the `id` * const cloudFolderWithIdOnly = await prisma.cloudFolder.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CloudFolder. * @param {CloudFolderDeleteArgs} args - Arguments to delete one CloudFolder. * @example * // Delete one CloudFolder * const CloudFolder = await prisma.cloudFolder.delete({ * where: { * // ... filter to delete one CloudFolder * } * }) * */ delete(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CloudFolder. * @param {CloudFolderUpdateArgs} args - Arguments to update one CloudFolder. * @example * // Update one CloudFolder * const cloudFolder = await prisma.cloudFolder.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CloudFolders. * @param {CloudFolderDeleteManyArgs} args - Arguments to filter CloudFolders to delete. * @example * // Delete a few CloudFolders * const { count } = await prisma.cloudFolder.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFolders. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFolderUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CloudFolders * const cloudFolder = await prisma.cloudFolder.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFolders and returns the data updated in the database. * @param {CloudFolderUpdateManyAndReturnArgs} args - Arguments to update many CloudFolders. * @example * // Update many CloudFolders * const cloudFolder = await prisma.cloudFolder.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CloudFolders and only return the `id` * const cloudFolderWithIdOnly = await prisma.cloudFolder.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CloudFolder. * @param {CloudFolderUpsertArgs} args - Arguments to update or create a CloudFolder. * @example * // Update or create a CloudFolder * const cloudFolder = await prisma.cloudFolder.upsert({ * create: { * // ... data to create a CloudFolder * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CloudFolder we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CloudFolderClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CloudFolders. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFolderCountArgs} args - Arguments to filter CloudFolders to count. * @example * // Count the number of CloudFolders * const count = await prisma.cloudFolder.count({ * where: { * // ... the filter for the CloudFolders 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 CloudFolder. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFolderAggregateArgs} 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 CloudFolder. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFolderGroupByArgs} 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 CloudFolderGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CloudFolderGroupByArgs['orderBy'] } : { orderBy?: CloudFolderGroupByArgs['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 ? GetCloudFolderGroupByPayload : Prisma.PrismaPromise /** * Fields of the CloudFolder model */ readonly fields: CloudFolderFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CloudFolder. * 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__CloudFolderClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" parent = {}>(args?: Subset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> children = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> files = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 CloudFolder model */ interface CloudFolderFieldRefs { readonly id: FieldRef<"CloudFolder", 'Int'> readonly userId: FieldRef<"CloudFolder", 'Int'> readonly name: FieldRef<"CloudFolder", 'String'> readonly parentId: FieldRef<"CloudFolder", 'Int'> readonly createdAt: FieldRef<"CloudFolder", 'DateTime'> readonly updatedAt: FieldRef<"CloudFolder", 'DateTime'> } // Custom InputTypes /** * CloudFolder findUnique */ export type CloudFolderFindUniqueArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolder to fetch. */ where: CloudFolderWhereUniqueInput } /** * CloudFolder findUniqueOrThrow */ export type CloudFolderFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolder to fetch. */ where: CloudFolderWhereUniqueInput } /** * CloudFolder findFirst */ export type CloudFolderFindFirstArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolder to fetch. */ where?: CloudFolderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFolders to fetch. */ orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFolders. */ cursor?: CloudFolderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFolders from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFolders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFolders. */ distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * CloudFolder findFirstOrThrow */ export type CloudFolderFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolder to fetch. */ where?: CloudFolderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFolders to fetch. */ orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFolders. */ cursor?: CloudFolderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFolders from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFolders. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFolders. */ distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * CloudFolder findMany */ export type CloudFolderFindManyArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter, which CloudFolders to fetch. */ where?: CloudFolderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFolders to fetch. */ orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CloudFolders. */ cursor?: CloudFolderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFolders from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFolders. */ skip?: number distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * CloudFolder create */ export type CloudFolderCreateArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * The data needed to create a CloudFolder. */ data: XOR } /** * CloudFolder createMany */ export type CloudFolderCreateManyArgs = { /** * The data used to create many CloudFolders. */ data: CloudFolderCreateManyInput | CloudFolderCreateManyInput[] skipDuplicates?: boolean } /** * CloudFolder createManyAndReturn */ export type CloudFolderCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelectCreateManyAndReturn | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * The data used to create many CloudFolders. */ data: CloudFolderCreateManyInput | CloudFolderCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CloudFolderIncludeCreateManyAndReturn | null } /** * CloudFolder update */ export type CloudFolderUpdateArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * The data needed to update a CloudFolder. */ data: XOR /** * Choose, which CloudFolder to update. */ where: CloudFolderWhereUniqueInput } /** * CloudFolder updateMany */ export type CloudFolderUpdateManyArgs = { /** * The data used to update CloudFolders. */ data: XOR /** * Filter which CloudFolders to update */ where?: CloudFolderWhereInput /** * Limit how many CloudFolders to update. */ limit?: number } /** * CloudFolder updateManyAndReturn */ export type CloudFolderUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelectUpdateManyAndReturn | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * The data used to update CloudFolders. */ data: XOR /** * Filter which CloudFolders to update */ where?: CloudFolderWhereInput /** * Limit how many CloudFolders to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CloudFolderIncludeUpdateManyAndReturn | null } /** * CloudFolder upsert */ export type CloudFolderUpsertArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * The filter to search for the CloudFolder to update in case it exists. */ where: CloudFolderWhereUniqueInput /** * In case the CloudFolder found by the `where` argument doesn't exist, create a new CloudFolder with this data. */ create: XOR /** * In case the CloudFolder was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CloudFolder delete */ export type CloudFolderDeleteArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null /** * Filter which CloudFolder to delete. */ where: CloudFolderWhereUniqueInput } /** * CloudFolder deleteMany */ export type CloudFolderDeleteManyArgs = { /** * Filter which CloudFolders to delete */ where?: CloudFolderWhereInput /** * Limit how many CloudFolders to delete. */ limit?: number } /** * CloudFolder.parent */ export type CloudFolder$parentArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null where?: CloudFolderWhereInput } /** * CloudFolder.children */ export type CloudFolder$childrenArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null where?: CloudFolderWhereInput orderBy?: CloudFolderOrderByWithRelationInput | CloudFolderOrderByWithRelationInput[] cursor?: CloudFolderWhereUniqueInput take?: number skip?: number distinct?: CloudFolderScalarFieldEnum | CloudFolderScalarFieldEnum[] } /** * CloudFolder.files */ export type CloudFolder$filesArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null where?: CloudFileWhereInput orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] cursor?: CloudFileWhereUniqueInput take?: number skip?: number distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * CloudFolder without action */ export type CloudFolderDefaultArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null } /** * Model CloudFile */ export type AggregateCloudFile = { _count: CloudFileCountAggregateOutputType | null _avg: CloudFileAvgAggregateOutputType | null _sum: CloudFileSumAggregateOutputType | null _min: CloudFileMinAggregateOutputType | null _max: CloudFileMaxAggregateOutputType | null } export type CloudFileAvgAggregateOutputType = { id: number | null userId: number | null fileSize: number | null folderId: number | null totalChunks: number | null } export type CloudFileSumAggregateOutputType = { id: number | null userId: number | null fileSize: bigint | null folderId: number | null totalChunks: number | null } export type CloudFileMinAggregateOutputType = { id: number | null userId: number | null name: string | null mimeType: string | null fileSize: bigint | null folderId: number | null isComplete: boolean | null totalChunks: number | null diskPath: string | null createdAt: Date | null updatedAt: Date | null } export type CloudFileMaxAggregateOutputType = { id: number | null userId: number | null name: string | null mimeType: string | null fileSize: bigint | null folderId: number | null isComplete: boolean | null totalChunks: number | null diskPath: string | null createdAt: Date | null updatedAt: Date | null } export type CloudFileCountAggregateOutputType = { id: number userId: number name: number mimeType: number fileSize: number folderId: number isComplete: number totalChunks: number diskPath: number createdAt: number updatedAt: number _all: number } export type CloudFileAvgAggregateInputType = { id?: true userId?: true fileSize?: true folderId?: true totalChunks?: true } export type CloudFileSumAggregateInputType = { id?: true userId?: true fileSize?: true folderId?: true totalChunks?: true } export type CloudFileMinAggregateInputType = { id?: true userId?: true name?: true mimeType?: true fileSize?: true folderId?: true isComplete?: true totalChunks?: true diskPath?: true createdAt?: true updatedAt?: true } export type CloudFileMaxAggregateInputType = { id?: true userId?: true name?: true mimeType?: true fileSize?: true folderId?: true isComplete?: true totalChunks?: true diskPath?: true createdAt?: true updatedAt?: true } export type CloudFileCountAggregateInputType = { id?: true userId?: true name?: true mimeType?: true fileSize?: true folderId?: true isComplete?: true totalChunks?: true diskPath?: true createdAt?: true updatedAt?: true _all?: true } export type CloudFileAggregateArgs = { /** * Filter which CloudFile to aggregate. */ where?: CloudFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFiles to fetch. */ orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CloudFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CloudFiles **/ _count?: true | CloudFileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CloudFileAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CloudFileSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CloudFileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CloudFileMaxAggregateInputType } export type GetCloudFileAggregateType = { [P in keyof T & keyof AggregateCloudFile]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CloudFileGroupByArgs = { where?: CloudFileWhereInput orderBy?: CloudFileOrderByWithAggregationInput | CloudFileOrderByWithAggregationInput[] by: CloudFileScalarFieldEnum[] | CloudFileScalarFieldEnum having?: CloudFileScalarWhereWithAggregatesInput take?: number skip?: number _count?: CloudFileCountAggregateInputType | true _avg?: CloudFileAvgAggregateInputType _sum?: CloudFileSumAggregateInputType _min?: CloudFileMinAggregateInputType _max?: CloudFileMaxAggregateInputType } export type CloudFileGroupByOutputType = { id: number userId: number name: string mimeType: string | null fileSize: bigint folderId: number | null isComplete: boolean totalChunks: number | null diskPath: string | null createdAt: Date updatedAt: Date _count: CloudFileCountAggregateOutputType | null _avg: CloudFileAvgAggregateOutputType | null _sum: CloudFileSumAggregateOutputType | null _min: CloudFileMinAggregateOutputType | null _max: CloudFileMaxAggregateOutputType | null } type GetCloudFileGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CloudFileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CloudFileSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean mimeType?: boolean fileSize?: boolean folderId?: boolean isComplete?: boolean totalChunks?: boolean diskPath?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs chunks?: boolean | CloudFile$chunksArgs _count?: boolean | CloudFileCountOutputTypeDefaultArgs }, ExtArgs["result"]["cloudFile"]> export type CloudFileSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean mimeType?: boolean fileSize?: boolean folderId?: boolean isComplete?: boolean totalChunks?: boolean diskPath?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs }, ExtArgs["result"]["cloudFile"]> export type CloudFileSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean mimeType?: boolean fileSize?: boolean folderId?: boolean isComplete?: boolean totalChunks?: boolean diskPath?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs }, ExtArgs["result"]["cloudFile"]> export type CloudFileSelectScalar = { id?: boolean userId?: boolean name?: boolean mimeType?: boolean fileSize?: boolean folderId?: boolean isComplete?: boolean totalChunks?: boolean diskPath?: boolean createdAt?: boolean updatedAt?: boolean } export type CloudFileOmit = $Extensions.GetOmit<"id" | "userId" | "name" | "mimeType" | "fileSize" | "folderId" | "isComplete" | "totalChunks" | "diskPath" | "createdAt" | "updatedAt", ExtArgs["result"]["cloudFile"]> export type CloudFileInclude = { user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs chunks?: boolean | CloudFile$chunksArgs _count?: boolean | CloudFileCountOutputTypeDefaultArgs } export type CloudFileIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs } export type CloudFileIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs folder?: boolean | CloudFile$folderArgs } export type $CloudFilePayload = { name: "CloudFile" objects: { user: Prisma.$UserPayload folder: Prisma.$CloudFolderPayload | null chunks: Prisma.$CloudFileChunkPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number userId: number name: string mimeType: string | null fileSize: bigint folderId: number | null isComplete: boolean totalChunks: number | null diskPath: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["cloudFile"]> composites: {} } type CloudFileGetPayload = $Result.GetResult type CloudFileCountArgs = Omit & { select?: CloudFileCountAggregateInputType | true } export interface CloudFileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CloudFile'], meta: { name: 'CloudFile' } } /** * Find zero or one CloudFile that matches the filter. * @param {CloudFileFindUniqueArgs} args - Arguments to find a CloudFile * @example * // Get one CloudFile * const cloudFile = await prisma.cloudFile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CloudFile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CloudFileFindUniqueOrThrowArgs} args - Arguments to find a CloudFile * @example * // Get one CloudFile * const cloudFile = await prisma.cloudFile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFile 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 {CloudFileFindFirstArgs} args - Arguments to find a CloudFile * @example * // Get one CloudFile * const cloudFile = await prisma.cloudFile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFile 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 {CloudFileFindFirstOrThrowArgs} args - Arguments to find a CloudFile * @example * // Get one CloudFile * const cloudFile = await prisma.cloudFile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CloudFiles 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 {CloudFileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CloudFiles * const cloudFiles = await prisma.cloudFile.findMany() * * // Get first 10 CloudFiles * const cloudFiles = await prisma.cloudFile.findMany({ take: 10 }) * * // Only select the `id` * const cloudFileWithIdOnly = await prisma.cloudFile.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CloudFile. * @param {CloudFileCreateArgs} args - Arguments to create a CloudFile. * @example * // Create one CloudFile * const CloudFile = await prisma.cloudFile.create({ * data: { * // ... data to create a CloudFile * } * }) * */ create(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CloudFiles. * @param {CloudFileCreateManyArgs} args - Arguments to create many CloudFiles. * @example * // Create many CloudFiles * const cloudFile = await prisma.cloudFile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CloudFiles and returns the data saved in the database. * @param {CloudFileCreateManyAndReturnArgs} args - Arguments to create many CloudFiles. * @example * // Create many CloudFiles * const cloudFile = await prisma.cloudFile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CloudFiles and only return the `id` * const cloudFileWithIdOnly = await prisma.cloudFile.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CloudFile. * @param {CloudFileDeleteArgs} args - Arguments to delete one CloudFile. * @example * // Delete one CloudFile * const CloudFile = await prisma.cloudFile.delete({ * where: { * // ... filter to delete one CloudFile * } * }) * */ delete(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CloudFile. * @param {CloudFileUpdateArgs} args - Arguments to update one CloudFile. * @example * // Update one CloudFile * const cloudFile = await prisma.cloudFile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CloudFiles. * @param {CloudFileDeleteManyArgs} args - Arguments to filter CloudFiles to delete. * @example * // Delete a few CloudFiles * const { count } = await prisma.cloudFile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CloudFiles * const cloudFile = await prisma.cloudFile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFiles and returns the data updated in the database. * @param {CloudFileUpdateManyAndReturnArgs} args - Arguments to update many CloudFiles. * @example * // Update many CloudFiles * const cloudFile = await prisma.cloudFile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CloudFiles and only return the `id` * const cloudFileWithIdOnly = await prisma.cloudFile.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CloudFile. * @param {CloudFileUpsertArgs} args - Arguments to update or create a CloudFile. * @example * // Update or create a CloudFile * const cloudFile = await prisma.cloudFile.upsert({ * create: { * // ... data to create a CloudFile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CloudFile we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CloudFileClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CloudFiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileCountArgs} args - Arguments to filter CloudFiles to count. * @example * // Count the number of CloudFiles * const count = await prisma.cloudFile.count({ * where: { * // ... the filter for the CloudFiles 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 CloudFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileAggregateArgs} 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 CloudFile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileGroupByArgs} 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 CloudFileGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CloudFileGroupByArgs['orderBy'] } : { orderBy?: CloudFileGroupByArgs['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 ? GetCloudFileGroupByPayload : Prisma.PrismaPromise /** * Fields of the CloudFile model */ readonly fields: CloudFileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CloudFile. * 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__CloudFileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> folder = {}>(args?: Subset>): Prisma__CloudFolderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> chunks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 CloudFile model */ interface CloudFileFieldRefs { readonly id: FieldRef<"CloudFile", 'Int'> readonly userId: FieldRef<"CloudFile", 'Int'> readonly name: FieldRef<"CloudFile", 'String'> readonly mimeType: FieldRef<"CloudFile", 'String'> readonly fileSize: FieldRef<"CloudFile", 'BigInt'> readonly folderId: FieldRef<"CloudFile", 'Int'> readonly isComplete: FieldRef<"CloudFile", 'Boolean'> readonly totalChunks: FieldRef<"CloudFile", 'Int'> readonly diskPath: FieldRef<"CloudFile", 'String'> readonly createdAt: FieldRef<"CloudFile", 'DateTime'> readonly updatedAt: FieldRef<"CloudFile", 'DateTime'> } // Custom InputTypes /** * CloudFile findUnique */ export type CloudFileFindUniqueArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFile to fetch. */ where: CloudFileWhereUniqueInput } /** * CloudFile findUniqueOrThrow */ export type CloudFileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFile to fetch. */ where: CloudFileWhereUniqueInput } /** * CloudFile findFirst */ export type CloudFileFindFirstArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFile to fetch. */ where?: CloudFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFiles to fetch. */ orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFiles. */ cursor?: CloudFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFiles. */ distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * CloudFile findFirstOrThrow */ export type CloudFileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFile to fetch. */ where?: CloudFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFiles to fetch. */ orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFiles. */ cursor?: CloudFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFiles. */ distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * CloudFile findMany */ export type CloudFileFindManyArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter, which CloudFiles to fetch. */ where?: CloudFileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFiles to fetch. */ orderBy?: CloudFileOrderByWithRelationInput | CloudFileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CloudFiles. */ cursor?: CloudFileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFiles. */ skip?: number distinct?: CloudFileScalarFieldEnum | CloudFileScalarFieldEnum[] } /** * CloudFile create */ export type CloudFileCreateArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * The data needed to create a CloudFile. */ data: XOR } /** * CloudFile createMany */ export type CloudFileCreateManyArgs = { /** * The data used to create many CloudFiles. */ data: CloudFileCreateManyInput | CloudFileCreateManyInput[] skipDuplicates?: boolean } /** * CloudFile createManyAndReturn */ export type CloudFileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelectCreateManyAndReturn | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * The data used to create many CloudFiles. */ data: CloudFileCreateManyInput | CloudFileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CloudFileIncludeCreateManyAndReturn | null } /** * CloudFile update */ export type CloudFileUpdateArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * The data needed to update a CloudFile. */ data: XOR /** * Choose, which CloudFile to update. */ where: CloudFileWhereUniqueInput } /** * CloudFile updateMany */ export type CloudFileUpdateManyArgs = { /** * The data used to update CloudFiles. */ data: XOR /** * Filter which CloudFiles to update */ where?: CloudFileWhereInput /** * Limit how many CloudFiles to update. */ limit?: number } /** * CloudFile updateManyAndReturn */ export type CloudFileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelectUpdateManyAndReturn | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * The data used to update CloudFiles. */ data: XOR /** * Filter which CloudFiles to update */ where?: CloudFileWhereInput /** * Limit how many CloudFiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CloudFileIncludeUpdateManyAndReturn | null } /** * CloudFile upsert */ export type CloudFileUpsertArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * The filter to search for the CloudFile to update in case it exists. */ where: CloudFileWhereUniqueInput /** * In case the CloudFile found by the `where` argument doesn't exist, create a new CloudFile with this data. */ create: XOR /** * In case the CloudFile was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CloudFile delete */ export type CloudFileDeleteArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null /** * Filter which CloudFile to delete. */ where: CloudFileWhereUniqueInput } /** * CloudFile deleteMany */ export type CloudFileDeleteManyArgs = { /** * Filter which CloudFiles to delete */ where?: CloudFileWhereInput /** * Limit how many CloudFiles to delete. */ limit?: number } /** * CloudFile.folder */ export type CloudFile$folderArgs = { /** * Select specific fields to fetch from the CloudFolder */ select?: CloudFolderSelect | null /** * Omit specific fields from the CloudFolder */ omit?: CloudFolderOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFolderInclude | null where?: CloudFolderWhereInput } /** * CloudFile.chunks */ export type CloudFile$chunksArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null where?: CloudFileChunkWhereInput orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] cursor?: CloudFileChunkWhereUniqueInput take?: number skip?: number distinct?: CloudFileChunkScalarFieldEnum | CloudFileChunkScalarFieldEnum[] } /** * CloudFile without action */ export type CloudFileDefaultArgs = { /** * Select specific fields to fetch from the CloudFile */ select?: CloudFileSelect | null /** * Omit specific fields from the CloudFile */ omit?: CloudFileOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileInclude | null } /** * Model CloudFileChunk */ export type AggregateCloudFileChunk = { _count: CloudFileChunkCountAggregateOutputType | null _avg: CloudFileChunkAvgAggregateOutputType | null _sum: CloudFileChunkSumAggregateOutputType | null _min: CloudFileChunkMinAggregateOutputType | null _max: CloudFileChunkMaxAggregateOutputType | null } export type CloudFileChunkAvgAggregateOutputType = { id: number | null fileId: number | null seq: number | null } export type CloudFileChunkSumAggregateOutputType = { id: number | null fileId: number | null seq: number | null } export type CloudFileChunkMinAggregateOutputType = { id: number | null fileId: number | null seq: number | null data: Bytes | null createdAt: Date | null } export type CloudFileChunkMaxAggregateOutputType = { id: number | null fileId: number | null seq: number | null data: Bytes | null createdAt: Date | null } export type CloudFileChunkCountAggregateOutputType = { id: number fileId: number seq: number data: number createdAt: number _all: number } export type CloudFileChunkAvgAggregateInputType = { id?: true fileId?: true seq?: true } export type CloudFileChunkSumAggregateInputType = { id?: true fileId?: true seq?: true } export type CloudFileChunkMinAggregateInputType = { id?: true fileId?: true seq?: true data?: true createdAt?: true } export type CloudFileChunkMaxAggregateInputType = { id?: true fileId?: true seq?: true data?: true createdAt?: true } export type CloudFileChunkCountAggregateInputType = { id?: true fileId?: true seq?: true data?: true createdAt?: true _all?: true } export type CloudFileChunkAggregateArgs = { /** * Filter which CloudFileChunk to aggregate. */ where?: CloudFileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFileChunks to fetch. */ orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CloudFileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFileChunks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CloudFileChunks **/ _count?: true | CloudFileChunkCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CloudFileChunkAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CloudFileChunkSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CloudFileChunkMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CloudFileChunkMaxAggregateInputType } export type GetCloudFileChunkAggregateType = { [P in keyof T & keyof AggregateCloudFileChunk]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CloudFileChunkGroupByArgs = { where?: CloudFileChunkWhereInput orderBy?: CloudFileChunkOrderByWithAggregationInput | CloudFileChunkOrderByWithAggregationInput[] by: CloudFileChunkScalarFieldEnum[] | CloudFileChunkScalarFieldEnum having?: CloudFileChunkScalarWhereWithAggregatesInput take?: number skip?: number _count?: CloudFileChunkCountAggregateInputType | true _avg?: CloudFileChunkAvgAggregateInputType _sum?: CloudFileChunkSumAggregateInputType _min?: CloudFileChunkMinAggregateInputType _max?: CloudFileChunkMaxAggregateInputType } export type CloudFileChunkGroupByOutputType = { id: number fileId: number seq: number data: Bytes createdAt: Date _count: CloudFileChunkCountAggregateOutputType | null _avg: CloudFileChunkAvgAggregateOutputType | null _sum: CloudFileChunkSumAggregateOutputType | null _min: CloudFileChunkMinAggregateOutputType | null _max: CloudFileChunkMaxAggregateOutputType | null } type GetCloudFileChunkGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CloudFileChunkGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CloudFileChunkSelect = $Extensions.GetSelect<{ id?: boolean fileId?: boolean seq?: boolean data?: boolean createdAt?: boolean file?: boolean | CloudFileDefaultArgs }, ExtArgs["result"]["cloudFileChunk"]> export type CloudFileChunkSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean fileId?: boolean seq?: boolean data?: boolean createdAt?: boolean file?: boolean | CloudFileDefaultArgs }, ExtArgs["result"]["cloudFileChunk"]> export type CloudFileChunkSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean fileId?: boolean seq?: boolean data?: boolean createdAt?: boolean file?: boolean | CloudFileDefaultArgs }, ExtArgs["result"]["cloudFileChunk"]> export type CloudFileChunkSelectScalar = { id?: boolean fileId?: boolean seq?: boolean data?: boolean createdAt?: boolean } export type CloudFileChunkOmit = $Extensions.GetOmit<"id" | "fileId" | "seq" | "data" | "createdAt", ExtArgs["result"]["cloudFileChunk"]> export type CloudFileChunkInclude = { file?: boolean | CloudFileDefaultArgs } export type CloudFileChunkIncludeCreateManyAndReturn = { file?: boolean | CloudFileDefaultArgs } export type CloudFileChunkIncludeUpdateManyAndReturn = { file?: boolean | CloudFileDefaultArgs } export type $CloudFileChunkPayload = { name: "CloudFileChunk" objects: { file: Prisma.$CloudFilePayload } scalars: $Extensions.GetPayloadResult<{ id: number fileId: number seq: number data: Prisma.Bytes createdAt: Date }, ExtArgs["result"]["cloudFileChunk"]> composites: {} } type CloudFileChunkGetPayload = $Result.GetResult type CloudFileChunkCountArgs = Omit & { select?: CloudFileChunkCountAggregateInputType | true } export interface CloudFileChunkDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CloudFileChunk'], meta: { name: 'CloudFileChunk' } } /** * Find zero or one CloudFileChunk that matches the filter. * @param {CloudFileChunkFindUniqueArgs} args - Arguments to find a CloudFileChunk * @example * // Get one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CloudFileChunk that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CloudFileChunkFindUniqueOrThrowArgs} args - Arguments to find a CloudFileChunk * @example * // Get one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFileChunk 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 {CloudFileChunkFindFirstArgs} args - Arguments to find a CloudFileChunk * @example * // Get one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CloudFileChunk 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 {CloudFileChunkFindFirstOrThrowArgs} args - Arguments to find a CloudFileChunk * @example * // Get one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CloudFileChunks 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 {CloudFileChunkFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CloudFileChunks * const cloudFileChunks = await prisma.cloudFileChunk.findMany() * * // Get first 10 CloudFileChunks * const cloudFileChunks = await prisma.cloudFileChunk.findMany({ take: 10 }) * * // Only select the `id` * const cloudFileChunkWithIdOnly = await prisma.cloudFileChunk.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CloudFileChunk. * @param {CloudFileChunkCreateArgs} args - Arguments to create a CloudFileChunk. * @example * // Create one CloudFileChunk * const CloudFileChunk = await prisma.cloudFileChunk.create({ * data: { * // ... data to create a CloudFileChunk * } * }) * */ create(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CloudFileChunks. * @param {CloudFileChunkCreateManyArgs} args - Arguments to create many CloudFileChunks. * @example * // Create many CloudFileChunks * const cloudFileChunk = await prisma.cloudFileChunk.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CloudFileChunks and returns the data saved in the database. * @param {CloudFileChunkCreateManyAndReturnArgs} args - Arguments to create many CloudFileChunks. * @example * // Create many CloudFileChunks * const cloudFileChunk = await prisma.cloudFileChunk.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CloudFileChunks and only return the `id` * const cloudFileChunkWithIdOnly = await prisma.cloudFileChunk.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CloudFileChunk. * @param {CloudFileChunkDeleteArgs} args - Arguments to delete one CloudFileChunk. * @example * // Delete one CloudFileChunk * const CloudFileChunk = await prisma.cloudFileChunk.delete({ * where: { * // ... filter to delete one CloudFileChunk * } * }) * */ delete(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CloudFileChunk. * @param {CloudFileChunkUpdateArgs} args - Arguments to update one CloudFileChunk. * @example * // Update one CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CloudFileChunks. * @param {CloudFileChunkDeleteManyArgs} args - Arguments to filter CloudFileChunks to delete. * @example * // Delete a few CloudFileChunks * const { count } = await prisma.cloudFileChunk.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFileChunks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileChunkUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CloudFileChunks * const cloudFileChunk = await prisma.cloudFileChunk.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CloudFileChunks and returns the data updated in the database. * @param {CloudFileChunkUpdateManyAndReturnArgs} args - Arguments to update many CloudFileChunks. * @example * // Update many CloudFileChunks * const cloudFileChunk = await prisma.cloudFileChunk.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CloudFileChunks and only return the `id` * const cloudFileChunkWithIdOnly = await prisma.cloudFileChunk.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CloudFileChunk. * @param {CloudFileChunkUpsertArgs} args - Arguments to update or create a CloudFileChunk. * @example * // Update or create a CloudFileChunk * const cloudFileChunk = await prisma.cloudFileChunk.upsert({ * create: { * // ... data to create a CloudFileChunk * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CloudFileChunk we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CloudFileChunkClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CloudFileChunks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileChunkCountArgs} args - Arguments to filter CloudFileChunks to count. * @example * // Count the number of CloudFileChunks * const count = await prisma.cloudFileChunk.count({ * where: { * // ... the filter for the CloudFileChunks 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 CloudFileChunk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileChunkAggregateArgs} 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 CloudFileChunk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CloudFileChunkGroupByArgs} 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 CloudFileChunkGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CloudFileChunkGroupByArgs['orderBy'] } : { orderBy?: CloudFileChunkGroupByArgs['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 ? GetCloudFileChunkGroupByPayload : Prisma.PrismaPromise /** * Fields of the CloudFileChunk model */ readonly fields: CloudFileChunkFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CloudFileChunk. * 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__CloudFileChunkClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" file = {}>(args?: Subset>): Prisma__CloudFileClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 CloudFileChunk model */ interface CloudFileChunkFieldRefs { readonly id: FieldRef<"CloudFileChunk", 'Int'> readonly fileId: FieldRef<"CloudFileChunk", 'Int'> readonly seq: FieldRef<"CloudFileChunk", 'Int'> readonly data: FieldRef<"CloudFileChunk", 'Bytes'> readonly createdAt: FieldRef<"CloudFileChunk", 'DateTime'> } // Custom InputTypes /** * CloudFileChunk findUnique */ export type CloudFileChunkFindUniqueArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunk to fetch. */ where: CloudFileChunkWhereUniqueInput } /** * CloudFileChunk findUniqueOrThrow */ export type CloudFileChunkFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunk to fetch. */ where: CloudFileChunkWhereUniqueInput } /** * CloudFileChunk findFirst */ export type CloudFileChunkFindFirstArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunk to fetch. */ where?: CloudFileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFileChunks to fetch. */ orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFileChunks. */ cursor?: CloudFileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFileChunks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFileChunks. */ distinct?: CloudFileChunkScalarFieldEnum | CloudFileChunkScalarFieldEnum[] } /** * CloudFileChunk findFirstOrThrow */ export type CloudFileChunkFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunk to fetch. */ where?: CloudFileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFileChunks to fetch. */ orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CloudFileChunks. */ cursor?: CloudFileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFileChunks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CloudFileChunks. */ distinct?: CloudFileChunkScalarFieldEnum | CloudFileChunkScalarFieldEnum[] } /** * CloudFileChunk findMany */ export type CloudFileChunkFindManyArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter, which CloudFileChunks to fetch. */ where?: CloudFileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CloudFileChunks to fetch. */ orderBy?: CloudFileChunkOrderByWithRelationInput | CloudFileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CloudFileChunks. */ cursor?: CloudFileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CloudFileChunks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CloudFileChunks. */ skip?: number distinct?: CloudFileChunkScalarFieldEnum | CloudFileChunkScalarFieldEnum[] } /** * CloudFileChunk create */ export type CloudFileChunkCreateArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * The data needed to create a CloudFileChunk. */ data: XOR } /** * CloudFileChunk createMany */ export type CloudFileChunkCreateManyArgs = { /** * The data used to create many CloudFileChunks. */ data: CloudFileChunkCreateManyInput | CloudFileChunkCreateManyInput[] skipDuplicates?: boolean } /** * CloudFileChunk createManyAndReturn */ export type CloudFileChunkCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelectCreateManyAndReturn | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * The data used to create many CloudFileChunks. */ data: CloudFileChunkCreateManyInput | CloudFileChunkCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkIncludeCreateManyAndReturn | null } /** * CloudFileChunk update */ export type CloudFileChunkUpdateArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * The data needed to update a CloudFileChunk. */ data: XOR /** * Choose, which CloudFileChunk to update. */ where: CloudFileChunkWhereUniqueInput } /** * CloudFileChunk updateMany */ export type CloudFileChunkUpdateManyArgs = { /** * The data used to update CloudFileChunks. */ data: XOR /** * Filter which CloudFileChunks to update */ where?: CloudFileChunkWhereInput /** * Limit how many CloudFileChunks to update. */ limit?: number } /** * CloudFileChunk updateManyAndReturn */ export type CloudFileChunkUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelectUpdateManyAndReturn | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * The data used to update CloudFileChunks. */ data: XOR /** * Filter which CloudFileChunks to update */ where?: CloudFileChunkWhereInput /** * Limit how many CloudFileChunks to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkIncludeUpdateManyAndReturn | null } /** * CloudFileChunk upsert */ export type CloudFileChunkUpsertArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * The filter to search for the CloudFileChunk to update in case it exists. */ where: CloudFileChunkWhereUniqueInput /** * In case the CloudFileChunk found by the `where` argument doesn't exist, create a new CloudFileChunk with this data. */ create: XOR /** * In case the CloudFileChunk was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CloudFileChunk delete */ export type CloudFileChunkDeleteArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null /** * Filter which CloudFileChunk to delete. */ where: CloudFileChunkWhereUniqueInput } /** * CloudFileChunk deleteMany */ export type CloudFileChunkDeleteManyArgs = { /** * Filter which CloudFileChunks to delete */ where?: CloudFileChunkWhereInput /** * Limit how many CloudFileChunks to delete. */ limit?: number } /** * CloudFileChunk without action */ export type CloudFileChunkDefaultArgs = { /** * Select specific fields to fetch from the CloudFileChunk */ select?: CloudFileChunkSelect | null /** * Omit specific fields from the CloudFileChunk */ omit?: CloudFileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: CloudFileChunkInclude | null } /** * Model Communication */ export type AggregateCommunication = { _count: CommunicationCountAggregateOutputType | null _avg: CommunicationAvgAggregateOutputType | null _sum: CommunicationSumAggregateOutputType | null _min: CommunicationMinAggregateOutputType | null _max: CommunicationMaxAggregateOutputType | null } export type CommunicationAvgAggregateOutputType = { id: number | null patientId: number | null userId: number | null callDuration: number | null } export type CommunicationSumAggregateOutputType = { id: number | null patientId: number | null userId: number | null callDuration: number | null } export type CommunicationMinAggregateOutputType = { id: number | null patientId: number | null userId: number | null channel: $Enums.CommunicationChannel | null direction: $Enums.CommunicationDirection | null status: $Enums.CommunicationStatus | null body: string | null callDuration: number | null twilioSid: string | null createdAt: Date | null } export type CommunicationMaxAggregateOutputType = { id: number | null patientId: number | null userId: number | null channel: $Enums.CommunicationChannel | null direction: $Enums.CommunicationDirection | null status: $Enums.CommunicationStatus | null body: string | null callDuration: number | null twilioSid: string | null createdAt: Date | null } export type CommunicationCountAggregateOutputType = { id: number patientId: number userId: number channel: number direction: number status: number body: number callDuration: number twilioSid: number createdAt: number _all: number } export type CommunicationAvgAggregateInputType = { id?: true patientId?: true userId?: true callDuration?: true } export type CommunicationSumAggregateInputType = { id?: true patientId?: true userId?: true callDuration?: true } export type CommunicationMinAggregateInputType = { id?: true patientId?: true userId?: true channel?: true direction?: true status?: true body?: true callDuration?: true twilioSid?: true createdAt?: true } export type CommunicationMaxAggregateInputType = { id?: true patientId?: true userId?: true channel?: true direction?: true status?: true body?: true callDuration?: true twilioSid?: true createdAt?: true } export type CommunicationCountAggregateInputType = { id?: true patientId?: true userId?: true channel?: true direction?: true status?: true body?: true callDuration?: true twilioSid?: true createdAt?: true _all?: true } export type CommunicationAggregateArgs = { /** * Filter which Communication to aggregate. */ where?: CommunicationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Communications to fetch. */ orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CommunicationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Communications from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Communications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Communications **/ _count?: true | CommunicationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CommunicationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CommunicationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CommunicationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CommunicationMaxAggregateInputType } export type GetCommunicationAggregateType = { [P in keyof T & keyof AggregateCommunication]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CommunicationGroupByArgs = { where?: CommunicationWhereInput orderBy?: CommunicationOrderByWithAggregationInput | CommunicationOrderByWithAggregationInput[] by: CommunicationScalarFieldEnum[] | CommunicationScalarFieldEnum having?: CommunicationScalarWhereWithAggregatesInput take?: number skip?: number _count?: CommunicationCountAggregateInputType | true _avg?: CommunicationAvgAggregateInputType _sum?: CommunicationSumAggregateInputType _min?: CommunicationMinAggregateInputType _max?: CommunicationMaxAggregateInputType } export type CommunicationGroupByOutputType = { id: number patientId: number userId: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body: string | null callDuration: number | null twilioSid: string | null createdAt: Date _count: CommunicationCountAggregateOutputType | null _avg: CommunicationAvgAggregateOutputType | null _sum: CommunicationSumAggregateOutputType | null _min: CommunicationMinAggregateOutputType | null _max: CommunicationMaxAggregateOutputType | null } type GetCommunicationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CommunicationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CommunicationSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean channel?: boolean direction?: boolean status?: boolean body?: boolean callDuration?: boolean twilioSid?: boolean createdAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs }, ExtArgs["result"]["communication"]> export type CommunicationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean channel?: boolean direction?: boolean status?: boolean body?: boolean callDuration?: boolean twilioSid?: boolean createdAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs }, ExtArgs["result"]["communication"]> export type CommunicationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean channel?: boolean direction?: boolean status?: boolean body?: boolean callDuration?: boolean twilioSid?: boolean createdAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs }, ExtArgs["result"]["communication"]> export type CommunicationSelectScalar = { id?: boolean patientId?: boolean userId?: boolean channel?: boolean direction?: boolean status?: boolean body?: boolean callDuration?: boolean twilioSid?: boolean createdAt?: boolean } export type CommunicationOmit = $Extensions.GetOmit<"id" | "patientId" | "userId" | "channel" | "direction" | "status" | "body" | "callDuration" | "twilioSid" | "createdAt", ExtArgs["result"]["communication"]> export type CommunicationInclude = { patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs } export type CommunicationIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs } export type CommunicationIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | Communication$userArgs } export type $CommunicationPayload = { name: "Communication" objects: { patient: Prisma.$PatientPayload user: Prisma.$UserPayload | null } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number userId: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body: string | null callDuration: number | null twilioSid: string | null createdAt: Date }, ExtArgs["result"]["communication"]> composites: {} } type CommunicationGetPayload = $Result.GetResult type CommunicationCountArgs = Omit & { select?: CommunicationCountAggregateInputType | true } export interface CommunicationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Communication'], meta: { name: 'Communication' } } /** * Find zero or one Communication that matches the filter. * @param {CommunicationFindUniqueArgs} args - Arguments to find a Communication * @example * // Get one Communication * const communication = await prisma.communication.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Communication that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CommunicationFindUniqueOrThrowArgs} args - Arguments to find a Communication * @example * // Get one Communication * const communication = await prisma.communication.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Communication 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 {CommunicationFindFirstArgs} args - Arguments to find a Communication * @example * // Get one Communication * const communication = await prisma.communication.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Communication 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 {CommunicationFindFirstOrThrowArgs} args - Arguments to find a Communication * @example * // Get one Communication * const communication = await prisma.communication.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Communications 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 {CommunicationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Communications * const communications = await prisma.communication.findMany() * * // Get first 10 Communications * const communications = await prisma.communication.findMany({ take: 10 }) * * // Only select the `id` * const communicationWithIdOnly = await prisma.communication.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Communication. * @param {CommunicationCreateArgs} args - Arguments to create a Communication. * @example * // Create one Communication * const Communication = await prisma.communication.create({ * data: { * // ... data to create a Communication * } * }) * */ create(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Communications. * @param {CommunicationCreateManyArgs} args - Arguments to create many Communications. * @example * // Create many Communications * const communication = await prisma.communication.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Communications and returns the data saved in the database. * @param {CommunicationCreateManyAndReturnArgs} args - Arguments to create many Communications. * @example * // Create many Communications * const communication = await prisma.communication.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Communications and only return the `id` * const communicationWithIdOnly = await prisma.communication.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Communication. * @param {CommunicationDeleteArgs} args - Arguments to delete one Communication. * @example * // Delete one Communication * const Communication = await prisma.communication.delete({ * where: { * // ... filter to delete one Communication * } * }) * */ delete(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Communication. * @param {CommunicationUpdateArgs} args - Arguments to update one Communication. * @example * // Update one Communication * const communication = await prisma.communication.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Communications. * @param {CommunicationDeleteManyArgs} args - Arguments to filter Communications to delete. * @example * // Delete a few Communications * const { count } = await prisma.communication.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Communications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommunicationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Communications * const communication = await prisma.communication.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Communications and returns the data updated in the database. * @param {CommunicationUpdateManyAndReturnArgs} args - Arguments to update many Communications. * @example * // Update many Communications * const communication = await prisma.communication.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Communications and only return the `id` * const communicationWithIdOnly = await prisma.communication.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Communication. * @param {CommunicationUpsertArgs} args - Arguments to update or create a Communication. * @example * // Update or create a Communication * const communication = await prisma.communication.upsert({ * create: { * // ... data to create a Communication * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Communication we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CommunicationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Communications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommunicationCountArgs} args - Arguments to filter Communications to count. * @example * // Count the number of Communications * const count = await prisma.communication.count({ * where: { * // ... the filter for the Communications 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 Communication. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommunicationAggregateArgs} 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 Communication. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommunicationGroupByArgs} 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 CommunicationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CommunicationGroupByArgs['orderBy'] } : { orderBy?: CommunicationGroupByArgs['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 ? GetCommunicationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Communication model */ readonly fields: CommunicationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Communication. * 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__CommunicationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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 Communication model */ interface CommunicationFieldRefs { readonly id: FieldRef<"Communication", 'Int'> readonly patientId: FieldRef<"Communication", 'Int'> readonly userId: FieldRef<"Communication", 'Int'> readonly channel: FieldRef<"Communication", 'CommunicationChannel'> readonly direction: FieldRef<"Communication", 'CommunicationDirection'> readonly status: FieldRef<"Communication", 'CommunicationStatus'> readonly body: FieldRef<"Communication", 'String'> readonly callDuration: FieldRef<"Communication", 'Int'> readonly twilioSid: FieldRef<"Communication", 'String'> readonly createdAt: FieldRef<"Communication", 'DateTime'> } // Custom InputTypes /** * Communication findUnique */ export type CommunicationFindUniqueArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communication to fetch. */ where: CommunicationWhereUniqueInput } /** * Communication findUniqueOrThrow */ export type CommunicationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communication to fetch. */ where: CommunicationWhereUniqueInput } /** * Communication findFirst */ export type CommunicationFindFirstArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communication to fetch. */ where?: CommunicationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Communications to fetch. */ orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Communications. */ cursor?: CommunicationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Communications from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Communications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Communications. */ distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * Communication findFirstOrThrow */ export type CommunicationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communication to fetch. */ where?: CommunicationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Communications to fetch. */ orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Communications. */ cursor?: CommunicationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Communications from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Communications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Communications. */ distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * Communication findMany */ export type CommunicationFindManyArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter, which Communications to fetch. */ where?: CommunicationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Communications to fetch. */ orderBy?: CommunicationOrderByWithRelationInput | CommunicationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Communications. */ cursor?: CommunicationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Communications from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Communications. */ skip?: number distinct?: CommunicationScalarFieldEnum | CommunicationScalarFieldEnum[] } /** * Communication create */ export type CommunicationCreateArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * The data needed to create a Communication. */ data: XOR } /** * Communication createMany */ export type CommunicationCreateManyArgs = { /** * The data used to create many Communications. */ data: CommunicationCreateManyInput | CommunicationCreateManyInput[] skipDuplicates?: boolean } /** * Communication createManyAndReturn */ export type CommunicationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelectCreateManyAndReturn | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * The data used to create many Communications. */ data: CommunicationCreateManyInput | CommunicationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CommunicationIncludeCreateManyAndReturn | null } /** * Communication update */ export type CommunicationUpdateArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * The data needed to update a Communication. */ data: XOR /** * Choose, which Communication to update. */ where: CommunicationWhereUniqueInput } /** * Communication updateMany */ export type CommunicationUpdateManyArgs = { /** * The data used to update Communications. */ data: XOR /** * Filter which Communications to update */ where?: CommunicationWhereInput /** * Limit how many Communications to update. */ limit?: number } /** * Communication updateManyAndReturn */ export type CommunicationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * The data used to update Communications. */ data: XOR /** * Filter which Communications to update */ where?: CommunicationWhereInput /** * Limit how many Communications to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CommunicationIncludeUpdateManyAndReturn | null } /** * Communication upsert */ export type CommunicationUpsertArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * The filter to search for the Communication to update in case it exists. */ where: CommunicationWhereUniqueInput /** * In case the Communication found by the `where` argument doesn't exist, create a new Communication with this data. */ create: XOR /** * In case the Communication was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Communication delete */ export type CommunicationDeleteArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null /** * Filter which Communication to delete. */ where: CommunicationWhereUniqueInput } /** * Communication deleteMany */ export type CommunicationDeleteManyArgs = { /** * Filter which Communications to delete */ where?: CommunicationWhereInput /** * Limit how many Communications to delete. */ limit?: number } /** * Communication.user */ export type Communication$userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Communication without action */ export type CommunicationDefaultArgs = { /** * Select specific fields to fetch from the Communication */ select?: CommunicationSelect | null /** * Omit specific fields from the Communication */ omit?: CommunicationOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommunicationInclude | null } /** * Model PatientDocument */ export type AggregatePatientDocument = { _count: PatientDocumentCountAggregateOutputType | null _avg: PatientDocumentAvgAggregateOutputType | null _sum: PatientDocumentSumAggregateOutputType | null _min: PatientDocumentMinAggregateOutputType | null _max: PatientDocumentMaxAggregateOutputType | null } export type PatientDocumentAvgAggregateOutputType = { id: number | null patientId: number | null fileSize: number | null } export type PatientDocumentSumAggregateOutputType = { id: number | null patientId: number | null fileSize: bigint | null } export type PatientDocumentMinAggregateOutputType = { id: number | null patientId: number | null filename: string | null originalName: string | null mimeType: string | null fileSize: bigint | null filePath: string | null uploadedAt: Date | null updatedAt: Date | null } export type PatientDocumentMaxAggregateOutputType = { id: number | null patientId: number | null filename: string | null originalName: string | null mimeType: string | null fileSize: bigint | null filePath: string | null uploadedAt: Date | null updatedAt: Date | null } export type PatientDocumentCountAggregateOutputType = { id: number patientId: number filename: number originalName: number mimeType: number fileSize: number filePath: number uploadedAt: number updatedAt: number _all: number } export type PatientDocumentAvgAggregateInputType = { id?: true patientId?: true fileSize?: true } export type PatientDocumentSumAggregateInputType = { id?: true patientId?: true fileSize?: true } export type PatientDocumentMinAggregateInputType = { id?: true patientId?: true filename?: true originalName?: true mimeType?: true fileSize?: true filePath?: true uploadedAt?: true updatedAt?: true } export type PatientDocumentMaxAggregateInputType = { id?: true patientId?: true filename?: true originalName?: true mimeType?: true fileSize?: true filePath?: true uploadedAt?: true updatedAt?: true } export type PatientDocumentCountAggregateInputType = { id?: true patientId?: true filename?: true originalName?: true mimeType?: true fileSize?: true filePath?: true uploadedAt?: true updatedAt?: true _all?: true } export type PatientDocumentAggregateArgs = { /** * Filter which PatientDocument to aggregate. */ where?: PatientDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientDocuments to fetch. */ orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PatientDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientDocuments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PatientDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PatientDocuments **/ _count?: true | PatientDocumentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PatientDocumentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PatientDocumentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PatientDocumentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PatientDocumentMaxAggregateInputType } export type GetPatientDocumentAggregateType = { [P in keyof T & keyof AggregatePatientDocument]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PatientDocumentGroupByArgs = { where?: PatientDocumentWhereInput orderBy?: PatientDocumentOrderByWithAggregationInput | PatientDocumentOrderByWithAggregationInput[] by: PatientDocumentScalarFieldEnum[] | PatientDocumentScalarFieldEnum having?: PatientDocumentScalarWhereWithAggregatesInput take?: number skip?: number _count?: PatientDocumentCountAggregateInputType | true _avg?: PatientDocumentAvgAggregateInputType _sum?: PatientDocumentSumAggregateInputType _min?: PatientDocumentMinAggregateInputType _max?: PatientDocumentMaxAggregateInputType } export type PatientDocumentGroupByOutputType = { id: number patientId: number filename: string originalName: string mimeType: string fileSize: bigint filePath: string uploadedAt: Date updatedAt: Date _count: PatientDocumentCountAggregateOutputType | null _avg: PatientDocumentAvgAggregateOutputType | null _sum: PatientDocumentSumAggregateOutputType | null _min: PatientDocumentMinAggregateOutputType | null _max: PatientDocumentMaxAggregateOutputType | null } type GetPatientDocumentGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PatientDocumentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PatientDocumentSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean filename?: boolean originalName?: boolean mimeType?: boolean fileSize?: boolean filePath?: boolean uploadedAt?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["patientDocument"]> export type PatientDocumentSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean filename?: boolean originalName?: boolean mimeType?: boolean fileSize?: boolean filePath?: boolean uploadedAt?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["patientDocument"]> export type PatientDocumentSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean filename?: boolean originalName?: boolean mimeType?: boolean fileSize?: boolean filePath?: boolean uploadedAt?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs }, ExtArgs["result"]["patientDocument"]> export type PatientDocumentSelectScalar = { id?: boolean patientId?: boolean filename?: boolean originalName?: boolean mimeType?: boolean fileSize?: boolean filePath?: boolean uploadedAt?: boolean updatedAt?: boolean } export type PatientDocumentOmit = $Extensions.GetOmit<"id" | "patientId" | "filename" | "originalName" | "mimeType" | "fileSize" | "filePath" | "uploadedAt" | "updatedAt", ExtArgs["result"]["patientDocument"]> export type PatientDocumentInclude = { patient?: boolean | PatientDefaultArgs } export type PatientDocumentIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs } export type PatientDocumentIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs } export type $PatientDocumentPayload = { name: "PatientDocument" objects: { patient: Prisma.$PatientPayload } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number filename: string originalName: string mimeType: string fileSize: bigint filePath: string uploadedAt: Date updatedAt: Date }, ExtArgs["result"]["patientDocument"]> composites: {} } type PatientDocumentGetPayload = $Result.GetResult type PatientDocumentCountArgs = Omit & { select?: PatientDocumentCountAggregateInputType | true } export interface PatientDocumentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PatientDocument'], meta: { name: 'PatientDocument' } } /** * Find zero or one PatientDocument that matches the filter. * @param {PatientDocumentFindUniqueArgs} args - Arguments to find a PatientDocument * @example * // Get one PatientDocument * const patientDocument = await prisma.patientDocument.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PatientDocument that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PatientDocumentFindUniqueOrThrowArgs} args - Arguments to find a PatientDocument * @example * // Get one PatientDocument * const patientDocument = await prisma.patientDocument.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PatientDocument 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 {PatientDocumentFindFirstArgs} args - Arguments to find a PatientDocument * @example * // Get one PatientDocument * const patientDocument = await prisma.patientDocument.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PatientDocument 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 {PatientDocumentFindFirstOrThrowArgs} args - Arguments to find a PatientDocument * @example * // Get one PatientDocument * const patientDocument = await prisma.patientDocument.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PatientDocuments 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 {PatientDocumentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PatientDocuments * const patientDocuments = await prisma.patientDocument.findMany() * * // Get first 10 PatientDocuments * const patientDocuments = await prisma.patientDocument.findMany({ take: 10 }) * * // Only select the `id` * const patientDocumentWithIdOnly = await prisma.patientDocument.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a PatientDocument. * @param {PatientDocumentCreateArgs} args - Arguments to create a PatientDocument. * @example * // Create one PatientDocument * const PatientDocument = await prisma.patientDocument.create({ * data: { * // ... data to create a PatientDocument * } * }) * */ create(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PatientDocuments. * @param {PatientDocumentCreateManyArgs} args - Arguments to create many PatientDocuments. * @example * // Create many PatientDocuments * const patientDocument = await prisma.patientDocument.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PatientDocuments and returns the data saved in the database. * @param {PatientDocumentCreateManyAndReturnArgs} args - Arguments to create many PatientDocuments. * @example * // Create many PatientDocuments * const patientDocument = await prisma.patientDocument.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PatientDocuments and only return the `id` * const patientDocumentWithIdOnly = await prisma.patientDocument.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PatientDocument. * @param {PatientDocumentDeleteArgs} args - Arguments to delete one PatientDocument. * @example * // Delete one PatientDocument * const PatientDocument = await prisma.patientDocument.delete({ * where: { * // ... filter to delete one PatientDocument * } * }) * */ delete(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PatientDocument. * @param {PatientDocumentUpdateArgs} args - Arguments to update one PatientDocument. * @example * // Update one PatientDocument * const patientDocument = await prisma.patientDocument.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PatientDocuments. * @param {PatientDocumentDeleteManyArgs} args - Arguments to filter PatientDocuments to delete. * @example * // Delete a few PatientDocuments * const { count } = await prisma.patientDocument.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PatientDocuments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientDocumentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PatientDocuments * const patientDocument = await prisma.patientDocument.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PatientDocuments and returns the data updated in the database. * @param {PatientDocumentUpdateManyAndReturnArgs} args - Arguments to update many PatientDocuments. * @example * // Update many PatientDocuments * const patientDocument = await prisma.patientDocument.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PatientDocuments and only return the `id` * const patientDocumentWithIdOnly = await prisma.patientDocument.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PatientDocument. * @param {PatientDocumentUpsertArgs} args - Arguments to update or create a PatientDocument. * @example * // Update or create a PatientDocument * const patientDocument = await prisma.patientDocument.upsert({ * create: { * // ... data to create a PatientDocument * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PatientDocument we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PatientDocumentClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PatientDocuments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientDocumentCountArgs} args - Arguments to filter PatientDocuments to count. * @example * // Count the number of PatientDocuments * const count = await prisma.patientDocument.count({ * where: { * // ... the filter for the PatientDocuments 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 PatientDocument. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientDocumentAggregateArgs} 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 PatientDocument. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientDocumentGroupByArgs} 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 PatientDocumentGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PatientDocumentGroupByArgs['orderBy'] } : { orderBy?: PatientDocumentGroupByArgs['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 ? GetPatientDocumentGroupByPayload : Prisma.PrismaPromise /** * Fields of the PatientDocument model */ readonly fields: PatientDocumentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PatientDocument. * 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__PatientDocumentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 PatientDocument model */ interface PatientDocumentFieldRefs { readonly id: FieldRef<"PatientDocument", 'Int'> readonly patientId: FieldRef<"PatientDocument", 'Int'> readonly filename: FieldRef<"PatientDocument", 'String'> readonly originalName: FieldRef<"PatientDocument", 'String'> readonly mimeType: FieldRef<"PatientDocument", 'String'> readonly fileSize: FieldRef<"PatientDocument", 'BigInt'> readonly filePath: FieldRef<"PatientDocument", 'String'> readonly uploadedAt: FieldRef<"PatientDocument", 'DateTime'> readonly updatedAt: FieldRef<"PatientDocument", 'DateTime'> } // Custom InputTypes /** * PatientDocument findUnique */ export type PatientDocumentFindUniqueArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocument to fetch. */ where: PatientDocumentWhereUniqueInput } /** * PatientDocument findUniqueOrThrow */ export type PatientDocumentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocument to fetch. */ where: PatientDocumentWhereUniqueInput } /** * PatientDocument findFirst */ export type PatientDocumentFindFirstArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocument to fetch. */ where?: PatientDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientDocuments to fetch. */ orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PatientDocuments. */ cursor?: PatientDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientDocuments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PatientDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PatientDocuments. */ distinct?: PatientDocumentScalarFieldEnum | PatientDocumentScalarFieldEnum[] } /** * PatientDocument findFirstOrThrow */ export type PatientDocumentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocument to fetch. */ where?: PatientDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientDocuments to fetch. */ orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PatientDocuments. */ cursor?: PatientDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientDocuments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PatientDocuments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PatientDocuments. */ distinct?: PatientDocumentScalarFieldEnum | PatientDocumentScalarFieldEnum[] } /** * PatientDocument findMany */ export type PatientDocumentFindManyArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter, which PatientDocuments to fetch. */ where?: PatientDocumentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientDocuments to fetch. */ orderBy?: PatientDocumentOrderByWithRelationInput | PatientDocumentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PatientDocuments. */ cursor?: PatientDocumentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientDocuments from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PatientDocuments. */ skip?: number distinct?: PatientDocumentScalarFieldEnum | PatientDocumentScalarFieldEnum[] } /** * PatientDocument create */ export type PatientDocumentCreateArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * The data needed to create a PatientDocument. */ data: XOR } /** * PatientDocument createMany */ export type PatientDocumentCreateManyArgs = { /** * The data used to create many PatientDocuments. */ data: PatientDocumentCreateManyInput | PatientDocumentCreateManyInput[] skipDuplicates?: boolean } /** * PatientDocument createManyAndReturn */ export type PatientDocumentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelectCreateManyAndReturn | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * The data used to create many PatientDocuments. */ data: PatientDocumentCreateManyInput | PatientDocumentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentIncludeCreateManyAndReturn | null } /** * PatientDocument update */ export type PatientDocumentUpdateArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * The data needed to update a PatientDocument. */ data: XOR /** * Choose, which PatientDocument to update. */ where: PatientDocumentWhereUniqueInput } /** * PatientDocument updateMany */ export type PatientDocumentUpdateManyArgs = { /** * The data used to update PatientDocuments. */ data: XOR /** * Filter which PatientDocuments to update */ where?: PatientDocumentWhereInput /** * Limit how many PatientDocuments to update. */ limit?: number } /** * PatientDocument updateManyAndReturn */ export type PatientDocumentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelectUpdateManyAndReturn | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * The data used to update PatientDocuments. */ data: XOR /** * Filter which PatientDocuments to update */ where?: PatientDocumentWhereInput /** * Limit how many PatientDocuments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentIncludeUpdateManyAndReturn | null } /** * PatientDocument upsert */ export type PatientDocumentUpsertArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * The filter to search for the PatientDocument to update in case it exists. */ where: PatientDocumentWhereUniqueInput /** * In case the PatientDocument found by the `where` argument doesn't exist, create a new PatientDocument with this data. */ create: XOR /** * In case the PatientDocument was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PatientDocument delete */ export type PatientDocumentDeleteArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null /** * Filter which PatientDocument to delete. */ where: PatientDocumentWhereUniqueInput } /** * PatientDocument deleteMany */ export type PatientDocumentDeleteManyArgs = { /** * Filter which PatientDocuments to delete */ where?: PatientDocumentWhereInput /** * Limit how many PatientDocuments to delete. */ limit?: number } /** * PatientDocument without action */ export type PatientDocumentDefaultArgs = { /** * Select specific fields to fetch from the PatientDocument */ select?: PatientDocumentSelect | null /** * Omit specific fields from the PatientDocument */ omit?: PatientDocumentOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientDocumentInclude | null } /** * Model TwilioSettings */ export type AggregateTwilioSettings = { _count: TwilioSettingsCountAggregateOutputType | null _avg: TwilioSettingsAvgAggregateOutputType | null _sum: TwilioSettingsSumAggregateOutputType | null _min: TwilioSettingsMinAggregateOutputType | null _max: TwilioSettingsMaxAggregateOutputType | null } export type TwilioSettingsAvgAggregateOutputType = { id: number | null userId: number | null } export type TwilioSettingsSumAggregateOutputType = { id: number | null userId: number | null } export type TwilioSettingsMinAggregateOutputType = { id: number | null userId: number | null accountSid: string | null authToken: string | null phoneNumber: string | null greetingMessage: string | null } export type TwilioSettingsMaxAggregateOutputType = { id: number | null userId: number | null accountSid: string | null authToken: string | null phoneNumber: string | null greetingMessage: string | null } export type TwilioSettingsCountAggregateOutputType = { id: number userId: number accountSid: number authToken: number phoneNumber: number greetingMessage: number templates: number _all: number } export type TwilioSettingsAvgAggregateInputType = { id?: true userId?: true } export type TwilioSettingsSumAggregateInputType = { id?: true userId?: true } export type TwilioSettingsMinAggregateInputType = { id?: true userId?: true accountSid?: true authToken?: true phoneNumber?: true greetingMessage?: true } export type TwilioSettingsMaxAggregateInputType = { id?: true userId?: true accountSid?: true authToken?: true phoneNumber?: true greetingMessage?: true } export type TwilioSettingsCountAggregateInputType = { id?: true userId?: true accountSid?: true authToken?: true phoneNumber?: true greetingMessage?: true templates?: true _all?: true } export type TwilioSettingsAggregateArgs = { /** * Filter which TwilioSettings to aggregate. */ where?: TwilioSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TwilioSettings to fetch. */ orderBy?: TwilioSettingsOrderByWithRelationInput | TwilioSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TwilioSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TwilioSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` TwilioSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TwilioSettings **/ _count?: true | TwilioSettingsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TwilioSettingsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TwilioSettingsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TwilioSettingsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TwilioSettingsMaxAggregateInputType } export type GetTwilioSettingsAggregateType = { [P in keyof T & keyof AggregateTwilioSettings]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TwilioSettingsGroupByArgs = { where?: TwilioSettingsWhereInput orderBy?: TwilioSettingsOrderByWithAggregationInput | TwilioSettingsOrderByWithAggregationInput[] by: TwilioSettingsScalarFieldEnum[] | TwilioSettingsScalarFieldEnum having?: TwilioSettingsScalarWhereWithAggregatesInput take?: number skip?: number _count?: TwilioSettingsCountAggregateInputType | true _avg?: TwilioSettingsAvgAggregateInputType _sum?: TwilioSettingsSumAggregateInputType _min?: TwilioSettingsMinAggregateInputType _max?: TwilioSettingsMaxAggregateInputType } export type TwilioSettingsGroupByOutputType = { id: number userId: number accountSid: string authToken: string phoneNumber: string greetingMessage: string | null templates: JsonValue | null _count: TwilioSettingsCountAggregateOutputType | null _avg: TwilioSettingsAvgAggregateOutputType | null _sum: TwilioSettingsSumAggregateOutputType | null _min: TwilioSettingsMinAggregateOutputType | null _max: TwilioSettingsMaxAggregateOutputType | null } type GetTwilioSettingsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TwilioSettingsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TwilioSettingsSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean accountSid?: boolean authToken?: boolean phoneNumber?: boolean greetingMessage?: boolean templates?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["twilioSettings"]> export type TwilioSettingsSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean accountSid?: boolean authToken?: boolean phoneNumber?: boolean greetingMessage?: boolean templates?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["twilioSettings"]> export type TwilioSettingsSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean accountSid?: boolean authToken?: boolean phoneNumber?: boolean greetingMessage?: boolean templates?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["twilioSettings"]> export type TwilioSettingsSelectScalar = { id?: boolean userId?: boolean accountSid?: boolean authToken?: boolean phoneNumber?: boolean greetingMessage?: boolean templates?: boolean } export type TwilioSettingsOmit = $Extensions.GetOmit<"id" | "userId" | "accountSid" | "authToken" | "phoneNumber" | "greetingMessage" | "templates", ExtArgs["result"]["twilioSettings"]> export type TwilioSettingsInclude = { user?: boolean | UserDefaultArgs } export type TwilioSettingsIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type TwilioSettingsIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $TwilioSettingsPayload = { name: "TwilioSettings" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number accountSid: string authToken: string phoneNumber: string greetingMessage: string | null templates: Prisma.JsonValue | null }, ExtArgs["result"]["twilioSettings"]> composites: {} } type TwilioSettingsGetPayload = $Result.GetResult type TwilioSettingsCountArgs = Omit & { select?: TwilioSettingsCountAggregateInputType | true } export interface TwilioSettingsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TwilioSettings'], meta: { name: 'TwilioSettings' } } /** * Find zero or one TwilioSettings that matches the filter. * @param {TwilioSettingsFindUniqueArgs} args - Arguments to find a TwilioSettings * @example * // Get one TwilioSettings * const twilioSettings = await prisma.twilioSettings.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TwilioSettings that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TwilioSettingsFindUniqueOrThrowArgs} args - Arguments to find a TwilioSettings * @example * // Get one TwilioSettings * const twilioSettings = await prisma.twilioSettings.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TwilioSettings 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 {TwilioSettingsFindFirstArgs} args - Arguments to find a TwilioSettings * @example * // Get one TwilioSettings * const twilioSettings = await prisma.twilioSettings.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TwilioSettings 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 {TwilioSettingsFindFirstOrThrowArgs} args - Arguments to find a TwilioSettings * @example * // Get one TwilioSettings * const twilioSettings = await prisma.twilioSettings.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TwilioSettings 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 {TwilioSettingsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TwilioSettings * const twilioSettings = await prisma.twilioSettings.findMany() * * // Get first 10 TwilioSettings * const twilioSettings = await prisma.twilioSettings.findMany({ take: 10 }) * * // Only select the `id` * const twilioSettingsWithIdOnly = await prisma.twilioSettings.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a TwilioSettings. * @param {TwilioSettingsCreateArgs} args - Arguments to create a TwilioSettings. * @example * // Create one TwilioSettings * const TwilioSettings = await prisma.twilioSettings.create({ * data: { * // ... data to create a TwilioSettings * } * }) * */ create(args: SelectSubset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TwilioSettings. * @param {TwilioSettingsCreateManyArgs} args - Arguments to create many TwilioSettings. * @example * // Create many TwilioSettings * const twilioSettings = await prisma.twilioSettings.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many TwilioSettings and returns the data saved in the database. * @param {TwilioSettingsCreateManyAndReturnArgs} args - Arguments to create many TwilioSettings. * @example * // Create many TwilioSettings * const twilioSettings = await prisma.twilioSettings.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TwilioSettings and only return the `id` * const twilioSettingsWithIdOnly = await prisma.twilioSettings.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a TwilioSettings. * @param {TwilioSettingsDeleteArgs} args - Arguments to delete one TwilioSettings. * @example * // Delete one TwilioSettings * const TwilioSettings = await prisma.twilioSettings.delete({ * where: { * // ... filter to delete one TwilioSettings * } * }) * */ delete(args: SelectSubset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TwilioSettings. * @param {TwilioSettingsUpdateArgs} args - Arguments to update one TwilioSettings. * @example * // Update one TwilioSettings * const twilioSettings = await prisma.twilioSettings.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TwilioSettings. * @param {TwilioSettingsDeleteManyArgs} args - Arguments to filter TwilioSettings to delete. * @example * // Delete a few TwilioSettings * const { count } = await prisma.twilioSettings.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TwilioSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TwilioSettingsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TwilioSettings * const twilioSettings = await prisma.twilioSettings.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TwilioSettings and returns the data updated in the database. * @param {TwilioSettingsUpdateManyAndReturnArgs} args - Arguments to update many TwilioSettings. * @example * // Update many TwilioSettings * const twilioSettings = await prisma.twilioSettings.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TwilioSettings and only return the `id` * const twilioSettingsWithIdOnly = await prisma.twilioSettings.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one TwilioSettings. * @param {TwilioSettingsUpsertArgs} args - Arguments to update or create a TwilioSettings. * @example * // Update or create a TwilioSettings * const twilioSettings = await prisma.twilioSettings.upsert({ * create: { * // ... data to create a TwilioSettings * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TwilioSettings we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TwilioSettingsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TwilioSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TwilioSettingsCountArgs} args - Arguments to filter TwilioSettings to count. * @example * // Count the number of TwilioSettings * const count = await prisma.twilioSettings.count({ * where: { * // ... the filter for the TwilioSettings 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 TwilioSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TwilioSettingsAggregateArgs} 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 TwilioSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TwilioSettingsGroupByArgs} 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 TwilioSettingsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TwilioSettingsGroupByArgs['orderBy'] } : { orderBy?: TwilioSettingsGroupByArgs['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 ? GetTwilioSettingsGroupByPayload : Prisma.PrismaPromise /** * Fields of the TwilioSettings model */ readonly fields: TwilioSettingsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TwilioSettings. * 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__TwilioSettingsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 TwilioSettings model */ interface TwilioSettingsFieldRefs { readonly id: FieldRef<"TwilioSettings", 'Int'> readonly userId: FieldRef<"TwilioSettings", 'Int'> readonly accountSid: FieldRef<"TwilioSettings", 'String'> readonly authToken: FieldRef<"TwilioSettings", 'String'> readonly phoneNumber: FieldRef<"TwilioSettings", 'String'> readonly greetingMessage: FieldRef<"TwilioSettings", 'String'> readonly templates: FieldRef<"TwilioSettings", 'Json'> } // Custom InputTypes /** * TwilioSettings findUnique */ export type TwilioSettingsFindUniqueArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * Filter, which TwilioSettings to fetch. */ where: TwilioSettingsWhereUniqueInput } /** * TwilioSettings findUniqueOrThrow */ export type TwilioSettingsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * Filter, which TwilioSettings to fetch. */ where: TwilioSettingsWhereUniqueInput } /** * TwilioSettings findFirst */ export type TwilioSettingsFindFirstArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * Filter, which TwilioSettings to fetch. */ where?: TwilioSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TwilioSettings to fetch. */ orderBy?: TwilioSettingsOrderByWithRelationInput | TwilioSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TwilioSettings. */ cursor?: TwilioSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TwilioSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` TwilioSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TwilioSettings. */ distinct?: TwilioSettingsScalarFieldEnum | TwilioSettingsScalarFieldEnum[] } /** * TwilioSettings findFirstOrThrow */ export type TwilioSettingsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * Filter, which TwilioSettings to fetch. */ where?: TwilioSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TwilioSettings to fetch. */ orderBy?: TwilioSettingsOrderByWithRelationInput | TwilioSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TwilioSettings. */ cursor?: TwilioSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TwilioSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` TwilioSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TwilioSettings. */ distinct?: TwilioSettingsScalarFieldEnum | TwilioSettingsScalarFieldEnum[] } /** * TwilioSettings findMany */ export type TwilioSettingsFindManyArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * Filter, which TwilioSettings to fetch. */ where?: TwilioSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TwilioSettings to fetch. */ orderBy?: TwilioSettingsOrderByWithRelationInput | TwilioSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TwilioSettings. */ cursor?: TwilioSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TwilioSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` TwilioSettings. */ skip?: number distinct?: TwilioSettingsScalarFieldEnum | TwilioSettingsScalarFieldEnum[] } /** * TwilioSettings create */ export type TwilioSettingsCreateArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * The data needed to create a TwilioSettings. */ data: XOR } /** * TwilioSettings createMany */ export type TwilioSettingsCreateManyArgs = { /** * The data used to create many TwilioSettings. */ data: TwilioSettingsCreateManyInput | TwilioSettingsCreateManyInput[] skipDuplicates?: boolean } /** * TwilioSettings createManyAndReturn */ export type TwilioSettingsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelectCreateManyAndReturn | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * The data used to create many TwilioSettings. */ data: TwilioSettingsCreateManyInput | TwilioSettingsCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsIncludeCreateManyAndReturn | null } /** * TwilioSettings update */ export type TwilioSettingsUpdateArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * The data needed to update a TwilioSettings. */ data: XOR /** * Choose, which TwilioSettings to update. */ where: TwilioSettingsWhereUniqueInput } /** * TwilioSettings updateMany */ export type TwilioSettingsUpdateManyArgs = { /** * The data used to update TwilioSettings. */ data: XOR /** * Filter which TwilioSettings to update */ where?: TwilioSettingsWhereInput /** * Limit how many TwilioSettings to update. */ limit?: number } /** * TwilioSettings updateManyAndReturn */ export type TwilioSettingsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelectUpdateManyAndReturn | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * The data used to update TwilioSettings. */ data: XOR /** * Filter which TwilioSettings to update */ where?: TwilioSettingsWhereInput /** * Limit how many TwilioSettings to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsIncludeUpdateManyAndReturn | null } /** * TwilioSettings upsert */ export type TwilioSettingsUpsertArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * The filter to search for the TwilioSettings to update in case it exists. */ where: TwilioSettingsWhereUniqueInput /** * In case the TwilioSettings found by the `where` argument doesn't exist, create a new TwilioSettings with this data. */ create: XOR /** * In case the TwilioSettings was found with the provided `where` argument, update it with this data. */ update: XOR } /** * TwilioSettings delete */ export type TwilioSettingsDeleteArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null /** * Filter which TwilioSettings to delete. */ where: TwilioSettingsWhereUniqueInput } /** * TwilioSettings deleteMany */ export type TwilioSettingsDeleteManyArgs = { /** * Filter which TwilioSettings to delete */ where?: TwilioSettingsWhereInput /** * Limit how many TwilioSettings to delete. */ limit?: number } /** * TwilioSettings without action */ export type TwilioSettingsDefaultArgs = { /** * Select specific fields to fetch from the TwilioSettings */ select?: TwilioSettingsSelect | null /** * Omit specific fields from the TwilioSettings */ omit?: TwilioSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: TwilioSettingsInclude | null } /** * Model AiSettings */ export type AggregateAiSettings = { _count: AiSettingsCountAggregateOutputType | null _avg: AiSettingsAvgAggregateOutputType | null _sum: AiSettingsSumAggregateOutputType | null _min: AiSettingsMinAggregateOutputType | null _max: AiSettingsMaxAggregateOutputType | null } export type AiSettingsAvgAggregateOutputType = { id: number | null userId: number | null } export type AiSettingsSumAggregateOutputType = { id: number | null userId: number | null } export type AiSettingsMinAggregateOutputType = { id: number | null userId: number | null apiKey: string | null afterHoursEnabled: boolean | null openPhoneReply: boolean | null } export type AiSettingsMaxAggregateOutputType = { id: number | null userId: number | null apiKey: string | null afterHoursEnabled: boolean | null openPhoneReply: boolean | null } export type AiSettingsCountAggregateOutputType = { id: number userId: number apiKey: number afterHoursEnabled: number openPhoneReply: number _all: number } export type AiSettingsAvgAggregateInputType = { id?: true userId?: true } export type AiSettingsSumAggregateInputType = { id?: true userId?: true } export type AiSettingsMinAggregateInputType = { id?: true userId?: true apiKey?: true afterHoursEnabled?: true openPhoneReply?: true } export type AiSettingsMaxAggregateInputType = { id?: true userId?: true apiKey?: true afterHoursEnabled?: true openPhoneReply?: true } export type AiSettingsCountAggregateInputType = { id?: true userId?: true apiKey?: true afterHoursEnabled?: true openPhoneReply?: true _all?: true } export type AiSettingsAggregateArgs = { /** * Filter which AiSettings to aggregate. */ where?: AiSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AiSettings to fetch. */ orderBy?: AiSettingsOrderByWithRelationInput | AiSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AiSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AiSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AiSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AiSettings **/ _count?: true | AiSettingsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AiSettingsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AiSettingsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AiSettingsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AiSettingsMaxAggregateInputType } export type GetAiSettingsAggregateType = { [P in keyof T & keyof AggregateAiSettings]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AiSettingsGroupByArgs = { where?: AiSettingsWhereInput orderBy?: AiSettingsOrderByWithAggregationInput | AiSettingsOrderByWithAggregationInput[] by: AiSettingsScalarFieldEnum[] | AiSettingsScalarFieldEnum having?: AiSettingsScalarWhereWithAggregatesInput take?: number skip?: number _count?: AiSettingsCountAggregateInputType | true _avg?: AiSettingsAvgAggregateInputType _sum?: AiSettingsSumAggregateInputType _min?: AiSettingsMinAggregateInputType _max?: AiSettingsMaxAggregateInputType } export type AiSettingsGroupByOutputType = { id: number userId: number apiKey: string afterHoursEnabled: boolean openPhoneReply: boolean _count: AiSettingsCountAggregateOutputType | null _avg: AiSettingsAvgAggregateOutputType | null _sum: AiSettingsSumAggregateOutputType | null _min: AiSettingsMinAggregateOutputType | null _max: AiSettingsMaxAggregateOutputType | null } type GetAiSettingsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AiSettingsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AiSettingsSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean apiKey?: boolean afterHoursEnabled?: boolean openPhoneReply?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["aiSettings"]> export type AiSettingsSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean apiKey?: boolean afterHoursEnabled?: boolean openPhoneReply?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["aiSettings"]> export type AiSettingsSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean apiKey?: boolean afterHoursEnabled?: boolean openPhoneReply?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["aiSettings"]> export type AiSettingsSelectScalar = { id?: boolean userId?: boolean apiKey?: boolean afterHoursEnabled?: boolean openPhoneReply?: boolean } export type AiSettingsOmit = $Extensions.GetOmit<"id" | "userId" | "apiKey" | "afterHoursEnabled" | "openPhoneReply", ExtArgs["result"]["aiSettings"]> export type AiSettingsInclude = { user?: boolean | UserDefaultArgs } export type AiSettingsIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type AiSettingsIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $AiSettingsPayload = { name: "AiSettings" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number apiKey: string afterHoursEnabled: boolean openPhoneReply: boolean }, ExtArgs["result"]["aiSettings"]> composites: {} } type AiSettingsGetPayload = $Result.GetResult type AiSettingsCountArgs = Omit & { select?: AiSettingsCountAggregateInputType | true } export interface AiSettingsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AiSettings'], meta: { name: 'AiSettings' } } /** * Find zero or one AiSettings that matches the filter. * @param {AiSettingsFindUniqueArgs} args - Arguments to find a AiSettings * @example * // Get one AiSettings * const aiSettings = await prisma.aiSettings.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AiSettingsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AiSettings that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AiSettingsFindUniqueOrThrowArgs} args - Arguments to find a AiSettings * @example * // Get one AiSettings * const aiSettings = await prisma.aiSettings.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AiSettingsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AiSettings 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 {AiSettingsFindFirstArgs} args - Arguments to find a AiSettings * @example * // Get one AiSettings * const aiSettings = await prisma.aiSettings.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AiSettingsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AiSettings 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 {AiSettingsFindFirstOrThrowArgs} args - Arguments to find a AiSettings * @example * // Get one AiSettings * const aiSettings = await prisma.aiSettings.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AiSettingsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AiSettings 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 {AiSettingsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AiSettings * const aiSettings = await prisma.aiSettings.findMany() * * // Get first 10 AiSettings * const aiSettings = await prisma.aiSettings.findMany({ take: 10 }) * * // Only select the `id` * const aiSettingsWithIdOnly = await prisma.aiSettings.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AiSettings. * @param {AiSettingsCreateArgs} args - Arguments to create a AiSettings. * @example * // Create one AiSettings * const AiSettings = await prisma.aiSettings.create({ * data: { * // ... data to create a AiSettings * } * }) * */ create(args: SelectSubset>): Prisma__AiSettingsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AiSettings. * @param {AiSettingsCreateManyArgs} args - Arguments to create many AiSettings. * @example * // Create many AiSettings * const aiSettings = await prisma.aiSettings.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AiSettings and returns the data saved in the database. * @param {AiSettingsCreateManyAndReturnArgs} args - Arguments to create many AiSettings. * @example * // Create many AiSettings * const aiSettings = await prisma.aiSettings.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AiSettings and only return the `id` * const aiSettingsWithIdOnly = await prisma.aiSettings.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AiSettings. * @param {AiSettingsDeleteArgs} args - Arguments to delete one AiSettings. * @example * // Delete one AiSettings * const AiSettings = await prisma.aiSettings.delete({ * where: { * // ... filter to delete one AiSettings * } * }) * */ delete(args: SelectSubset>): Prisma__AiSettingsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AiSettings. * @param {AiSettingsUpdateArgs} args - Arguments to update one AiSettings. * @example * // Update one AiSettings * const aiSettings = await prisma.aiSettings.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AiSettingsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AiSettings. * @param {AiSettingsDeleteManyArgs} args - Arguments to filter AiSettings to delete. * @example * // Delete a few AiSettings * const { count } = await prisma.aiSettings.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AiSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AiSettingsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AiSettings * const aiSettings = await prisma.aiSettings.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AiSettings and returns the data updated in the database. * @param {AiSettingsUpdateManyAndReturnArgs} args - Arguments to update many AiSettings. * @example * // Update many AiSettings * const aiSettings = await prisma.aiSettings.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AiSettings and only return the `id` * const aiSettingsWithIdOnly = await prisma.aiSettings.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AiSettings. * @param {AiSettingsUpsertArgs} args - Arguments to update or create a AiSettings. * @example * // Update or create a AiSettings * const aiSettings = await prisma.aiSettings.upsert({ * create: { * // ... data to create a AiSettings * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AiSettings we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AiSettingsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AiSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AiSettingsCountArgs} args - Arguments to filter AiSettings to count. * @example * // Count the number of AiSettings * const count = await prisma.aiSettings.count({ * where: { * // ... the filter for the AiSettings 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 AiSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AiSettingsAggregateArgs} 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 AiSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AiSettingsGroupByArgs} 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 AiSettingsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AiSettingsGroupByArgs['orderBy'] } : { orderBy?: AiSettingsGroupByArgs['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 ? GetAiSettingsGroupByPayload : Prisma.PrismaPromise /** * Fields of the AiSettings model */ readonly fields: AiSettingsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AiSettings. * 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__AiSettingsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 AiSettings model */ interface AiSettingsFieldRefs { readonly id: FieldRef<"AiSettings", 'Int'> readonly userId: FieldRef<"AiSettings", 'Int'> readonly apiKey: FieldRef<"AiSettings", 'String'> readonly afterHoursEnabled: FieldRef<"AiSettings", 'Boolean'> readonly openPhoneReply: FieldRef<"AiSettings", 'Boolean'> } // Custom InputTypes /** * AiSettings findUnique */ export type AiSettingsFindUniqueArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * Filter, which AiSettings to fetch. */ where: AiSettingsWhereUniqueInput } /** * AiSettings findUniqueOrThrow */ export type AiSettingsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * Filter, which AiSettings to fetch. */ where: AiSettingsWhereUniqueInput } /** * AiSettings findFirst */ export type AiSettingsFindFirstArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * Filter, which AiSettings to fetch. */ where?: AiSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AiSettings to fetch. */ orderBy?: AiSettingsOrderByWithRelationInput | AiSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AiSettings. */ cursor?: AiSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AiSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AiSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AiSettings. */ distinct?: AiSettingsScalarFieldEnum | AiSettingsScalarFieldEnum[] } /** * AiSettings findFirstOrThrow */ export type AiSettingsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * Filter, which AiSettings to fetch. */ where?: AiSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AiSettings to fetch. */ orderBy?: AiSettingsOrderByWithRelationInput | AiSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AiSettings. */ cursor?: AiSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AiSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AiSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AiSettings. */ distinct?: AiSettingsScalarFieldEnum | AiSettingsScalarFieldEnum[] } /** * AiSettings findMany */ export type AiSettingsFindManyArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * Filter, which AiSettings to fetch. */ where?: AiSettingsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AiSettings to fetch. */ orderBy?: AiSettingsOrderByWithRelationInput | AiSettingsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AiSettings. */ cursor?: AiSettingsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AiSettings from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` AiSettings. */ skip?: number distinct?: AiSettingsScalarFieldEnum | AiSettingsScalarFieldEnum[] } /** * AiSettings create */ export type AiSettingsCreateArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * The data needed to create a AiSettings. */ data: XOR } /** * AiSettings createMany */ export type AiSettingsCreateManyArgs = { /** * The data used to create many AiSettings. */ data: AiSettingsCreateManyInput | AiSettingsCreateManyInput[] skipDuplicates?: boolean } /** * AiSettings createManyAndReturn */ export type AiSettingsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelectCreateManyAndReturn | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * The data used to create many AiSettings. */ data: AiSettingsCreateManyInput | AiSettingsCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AiSettingsIncludeCreateManyAndReturn | null } /** * AiSettings update */ export type AiSettingsUpdateArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * The data needed to update a AiSettings. */ data: XOR /** * Choose, which AiSettings to update. */ where: AiSettingsWhereUniqueInput } /** * AiSettings updateMany */ export type AiSettingsUpdateManyArgs = { /** * The data used to update AiSettings. */ data: XOR /** * Filter which AiSettings to update */ where?: AiSettingsWhereInput /** * Limit how many AiSettings to update. */ limit?: number } /** * AiSettings updateManyAndReturn */ export type AiSettingsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelectUpdateManyAndReturn | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * The data used to update AiSettings. */ data: XOR /** * Filter which AiSettings to update */ where?: AiSettingsWhereInput /** * Limit how many AiSettings to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AiSettingsIncludeUpdateManyAndReturn | null } /** * AiSettings upsert */ export type AiSettingsUpsertArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * The filter to search for the AiSettings to update in case it exists. */ where: AiSettingsWhereUniqueInput /** * In case the AiSettings found by the `where` argument doesn't exist, create a new AiSettings with this data. */ create: XOR /** * In case the AiSettings was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AiSettings delete */ export type AiSettingsDeleteArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null /** * Filter which AiSettings to delete. */ where: AiSettingsWhereUniqueInput } /** * AiSettings deleteMany */ export type AiSettingsDeleteManyArgs = { /** * Filter which AiSettings to delete */ where?: AiSettingsWhereInput /** * Limit how many AiSettings to delete. */ limit?: number } /** * AiSettings without action */ export type AiSettingsDefaultArgs = { /** * Select specific fields to fetch from the AiSettings */ select?: AiSettingsSelect | null /** * Omit specific fields from the AiSettings */ omit?: AiSettingsOmit | null /** * Choose, which related nodes to fetch as well */ include?: AiSettingsInclude | null } /** * Model OfficeHours */ export type AggregateOfficeHours = { _count: OfficeHoursCountAggregateOutputType | null _avg: OfficeHoursAvgAggregateOutputType | null _sum: OfficeHoursSumAggregateOutputType | null _min: OfficeHoursMinAggregateOutputType | null _max: OfficeHoursMaxAggregateOutputType | null } export type OfficeHoursAvgAggregateOutputType = { id: number | null userId: number | null } export type OfficeHoursSumAggregateOutputType = { id: number | null userId: number | null } export type OfficeHoursMinAggregateOutputType = { id: number | null userId: number | null } export type OfficeHoursMaxAggregateOutputType = { id: number | null userId: number | null } export type OfficeHoursCountAggregateOutputType = { id: number userId: number data: number _all: number } export type OfficeHoursAvgAggregateInputType = { id?: true userId?: true } export type OfficeHoursSumAggregateInputType = { id?: true userId?: true } export type OfficeHoursMinAggregateInputType = { id?: true userId?: true } export type OfficeHoursMaxAggregateInputType = { id?: true userId?: true } export type OfficeHoursCountAggregateInputType = { id?: true userId?: true data?: true _all?: true } export type OfficeHoursAggregateArgs = { /** * Filter which OfficeHours to aggregate. */ where?: OfficeHoursWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OfficeHours to fetch. */ orderBy?: OfficeHoursOrderByWithRelationInput | OfficeHoursOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: OfficeHoursWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OfficeHours from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` OfficeHours. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned OfficeHours **/ _count?: true | OfficeHoursCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: OfficeHoursAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: OfficeHoursSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OfficeHoursMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OfficeHoursMaxAggregateInputType } export type GetOfficeHoursAggregateType = { [P in keyof T & keyof AggregateOfficeHours]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type OfficeHoursGroupByArgs = { where?: OfficeHoursWhereInput orderBy?: OfficeHoursOrderByWithAggregationInput | OfficeHoursOrderByWithAggregationInput[] by: OfficeHoursScalarFieldEnum[] | OfficeHoursScalarFieldEnum having?: OfficeHoursScalarWhereWithAggregatesInput take?: number skip?: number _count?: OfficeHoursCountAggregateInputType | true _avg?: OfficeHoursAvgAggregateInputType _sum?: OfficeHoursSumAggregateInputType _min?: OfficeHoursMinAggregateInputType _max?: OfficeHoursMaxAggregateInputType } export type OfficeHoursGroupByOutputType = { id: number userId: number data: JsonValue _count: OfficeHoursCountAggregateOutputType | null _avg: OfficeHoursAvgAggregateOutputType | null _sum: OfficeHoursSumAggregateOutputType | null _min: OfficeHoursMinAggregateOutputType | null _max: OfficeHoursMaxAggregateOutputType | null } type GetOfficeHoursGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof OfficeHoursGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type OfficeHoursSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean data?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["officeHours"]> export type OfficeHoursSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean data?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["officeHours"]> export type OfficeHoursSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean data?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["officeHours"]> export type OfficeHoursSelectScalar = { id?: boolean userId?: boolean data?: boolean } export type OfficeHoursOmit = $Extensions.GetOmit<"id" | "userId" | "data", ExtArgs["result"]["officeHours"]> export type OfficeHoursInclude = { user?: boolean | UserDefaultArgs } export type OfficeHoursIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type OfficeHoursIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $OfficeHoursPayload = { name: "OfficeHours" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number data: Prisma.JsonValue }, ExtArgs["result"]["officeHours"]> composites: {} } type OfficeHoursGetPayload = $Result.GetResult type OfficeHoursCountArgs = Omit & { select?: OfficeHoursCountAggregateInputType | true } export interface OfficeHoursDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['OfficeHours'], meta: { name: 'OfficeHours' } } /** * Find zero or one OfficeHours that matches the filter. * @param {OfficeHoursFindUniqueArgs} args - Arguments to find a OfficeHours * @example * // Get one OfficeHours * const officeHours = await prisma.officeHours.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one OfficeHours that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OfficeHoursFindUniqueOrThrowArgs} args - Arguments to find a OfficeHours * @example * // Get one OfficeHours * const officeHours = await prisma.officeHours.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first OfficeHours 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 {OfficeHoursFindFirstArgs} args - Arguments to find a OfficeHours * @example * // Get one OfficeHours * const officeHours = await prisma.officeHours.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first OfficeHours 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 {OfficeHoursFindFirstOrThrowArgs} args - Arguments to find a OfficeHours * @example * // Get one OfficeHours * const officeHours = await prisma.officeHours.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more OfficeHours 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 {OfficeHoursFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all OfficeHours * const officeHours = await prisma.officeHours.findMany() * * // Get first 10 OfficeHours * const officeHours = await prisma.officeHours.findMany({ take: 10 }) * * // Only select the `id` * const officeHoursWithIdOnly = await prisma.officeHours.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a OfficeHours. * @param {OfficeHoursCreateArgs} args - Arguments to create a OfficeHours. * @example * // Create one OfficeHours * const OfficeHours = await prisma.officeHours.create({ * data: { * // ... data to create a OfficeHours * } * }) * */ create(args: SelectSubset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many OfficeHours. * @param {OfficeHoursCreateManyArgs} args - Arguments to create many OfficeHours. * @example * // Create many OfficeHours * const officeHours = await prisma.officeHours.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many OfficeHours and returns the data saved in the database. * @param {OfficeHoursCreateManyAndReturnArgs} args - Arguments to create many OfficeHours. * @example * // Create many OfficeHours * const officeHours = await prisma.officeHours.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many OfficeHours and only return the `id` * const officeHoursWithIdOnly = await prisma.officeHours.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a OfficeHours. * @param {OfficeHoursDeleteArgs} args - Arguments to delete one OfficeHours. * @example * // Delete one OfficeHours * const OfficeHours = await prisma.officeHours.delete({ * where: { * // ... filter to delete one OfficeHours * } * }) * */ delete(args: SelectSubset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one OfficeHours. * @param {OfficeHoursUpdateArgs} args - Arguments to update one OfficeHours. * @example * // Update one OfficeHours * const officeHours = await prisma.officeHours.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more OfficeHours. * @param {OfficeHoursDeleteManyArgs} args - Arguments to filter OfficeHours to delete. * @example * // Delete a few OfficeHours * const { count } = await prisma.officeHours.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OfficeHours. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OfficeHoursUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many OfficeHours * const officeHours = await prisma.officeHours.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OfficeHours and returns the data updated in the database. * @param {OfficeHoursUpdateManyAndReturnArgs} args - Arguments to update many OfficeHours. * @example * // Update many OfficeHours * const officeHours = await prisma.officeHours.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more OfficeHours and only return the `id` * const officeHoursWithIdOnly = await prisma.officeHours.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one OfficeHours. * @param {OfficeHoursUpsertArgs} args - Arguments to update or create a OfficeHours. * @example * // Update or create a OfficeHours * const officeHours = await prisma.officeHours.upsert({ * create: { * // ... data to create a OfficeHours * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the OfficeHours we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__OfficeHoursClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of OfficeHours. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OfficeHoursCountArgs} args - Arguments to filter OfficeHours to count. * @example * // Count the number of OfficeHours * const count = await prisma.officeHours.count({ * where: { * // ... the filter for the OfficeHours 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 OfficeHours. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OfficeHoursAggregateArgs} 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 OfficeHours. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OfficeHoursGroupByArgs} 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 OfficeHoursGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: OfficeHoursGroupByArgs['orderBy'] } : { orderBy?: OfficeHoursGroupByArgs['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 ? GetOfficeHoursGroupByPayload : Prisma.PrismaPromise /** * Fields of the OfficeHours model */ readonly fields: OfficeHoursFieldRefs; } /** * The delegate class that acts as a "Promise-like" for OfficeHours. * 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__OfficeHoursClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 OfficeHours model */ interface OfficeHoursFieldRefs { readonly id: FieldRef<"OfficeHours", 'Int'> readonly userId: FieldRef<"OfficeHours", 'Int'> readonly data: FieldRef<"OfficeHours", 'Json'> } // Custom InputTypes /** * OfficeHours findUnique */ export type OfficeHoursFindUniqueArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * Filter, which OfficeHours to fetch. */ where: OfficeHoursWhereUniqueInput } /** * OfficeHours findUniqueOrThrow */ export type OfficeHoursFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * Filter, which OfficeHours to fetch. */ where: OfficeHoursWhereUniqueInput } /** * OfficeHours findFirst */ export type OfficeHoursFindFirstArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * Filter, which OfficeHours to fetch. */ where?: OfficeHoursWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OfficeHours to fetch. */ orderBy?: OfficeHoursOrderByWithRelationInput | OfficeHoursOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OfficeHours. */ cursor?: OfficeHoursWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OfficeHours from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` OfficeHours. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OfficeHours. */ distinct?: OfficeHoursScalarFieldEnum | OfficeHoursScalarFieldEnum[] } /** * OfficeHours findFirstOrThrow */ export type OfficeHoursFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * Filter, which OfficeHours to fetch. */ where?: OfficeHoursWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OfficeHours to fetch. */ orderBy?: OfficeHoursOrderByWithRelationInput | OfficeHoursOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OfficeHours. */ cursor?: OfficeHoursWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OfficeHours from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` OfficeHours. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OfficeHours. */ distinct?: OfficeHoursScalarFieldEnum | OfficeHoursScalarFieldEnum[] } /** * OfficeHours findMany */ export type OfficeHoursFindManyArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * Filter, which OfficeHours to fetch. */ where?: OfficeHoursWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OfficeHours to fetch. */ orderBy?: OfficeHoursOrderByWithRelationInput | OfficeHoursOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing OfficeHours. */ cursor?: OfficeHoursWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OfficeHours from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` OfficeHours. */ skip?: number distinct?: OfficeHoursScalarFieldEnum | OfficeHoursScalarFieldEnum[] } /** * OfficeHours create */ export type OfficeHoursCreateArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * The data needed to create a OfficeHours. */ data: XOR } /** * OfficeHours createMany */ export type OfficeHoursCreateManyArgs = { /** * The data used to create many OfficeHours. */ data: OfficeHoursCreateManyInput | OfficeHoursCreateManyInput[] skipDuplicates?: boolean } /** * OfficeHours createManyAndReturn */ export type OfficeHoursCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelectCreateManyAndReturn | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * The data used to create many OfficeHours. */ data: OfficeHoursCreateManyInput | OfficeHoursCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursIncludeCreateManyAndReturn | null } /** * OfficeHours update */ export type OfficeHoursUpdateArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * The data needed to update a OfficeHours. */ data: XOR /** * Choose, which OfficeHours to update. */ where: OfficeHoursWhereUniqueInput } /** * OfficeHours updateMany */ export type OfficeHoursUpdateManyArgs = { /** * The data used to update OfficeHours. */ data: XOR /** * Filter which OfficeHours to update */ where?: OfficeHoursWhereInput /** * Limit how many OfficeHours to update. */ limit?: number } /** * OfficeHours updateManyAndReturn */ export type OfficeHoursUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelectUpdateManyAndReturn | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * The data used to update OfficeHours. */ data: XOR /** * Filter which OfficeHours to update */ where?: OfficeHoursWhereInput /** * Limit how many OfficeHours to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursIncludeUpdateManyAndReturn | null } /** * OfficeHours upsert */ export type OfficeHoursUpsertArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * The filter to search for the OfficeHours to update in case it exists. */ where: OfficeHoursWhereUniqueInput /** * In case the OfficeHours found by the `where` argument doesn't exist, create a new OfficeHours with this data. */ create: XOR /** * In case the OfficeHours was found with the provided `where` argument, update it with this data. */ update: XOR } /** * OfficeHours delete */ export type OfficeHoursDeleteArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null /** * Filter which OfficeHours to delete. */ where: OfficeHoursWhereUniqueInput } /** * OfficeHours deleteMany */ export type OfficeHoursDeleteManyArgs = { /** * Filter which OfficeHours to delete */ where?: OfficeHoursWhereInput /** * Limit how many OfficeHours to delete. */ limit?: number } /** * OfficeHours without action */ export type OfficeHoursDefaultArgs = { /** * Select specific fields to fetch from the OfficeHours */ select?: OfficeHoursSelect | null /** * Omit specific fields from the OfficeHours */ omit?: OfficeHoursOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeHoursInclude | null } /** * Model OfficeContact */ export type AggregateOfficeContact = { _count: OfficeContactCountAggregateOutputType | null _avg: OfficeContactAvgAggregateOutputType | null _sum: OfficeContactSumAggregateOutputType | null _min: OfficeContactMinAggregateOutputType | null _max: OfficeContactMaxAggregateOutputType | null } export type OfficeContactAvgAggregateOutputType = { id: number | null userId: number | null } export type OfficeContactSumAggregateOutputType = { id: number | null userId: number | null } export type OfficeContactMinAggregateOutputType = { id: number | null userId: number | null officeName: string | null receptionistName: string | null dentistName: string | null phoneNumber: string | null email: string | null fax: string | null streetAddress: string | null city: string | null state: string | null zipCode: string | null } export type OfficeContactMaxAggregateOutputType = { id: number | null userId: number | null officeName: string | null receptionistName: string | null dentistName: string | null phoneNumber: string | null email: string | null fax: string | null streetAddress: string | null city: string | null state: string | null zipCode: string | null } export type OfficeContactCountAggregateOutputType = { id: number userId: number officeName: number receptionistName: number dentistName: number phoneNumber: number email: number fax: number streetAddress: number city: number state: number zipCode: number _all: number } export type OfficeContactAvgAggregateInputType = { id?: true userId?: true } export type OfficeContactSumAggregateInputType = { id?: true userId?: true } export type OfficeContactMinAggregateInputType = { id?: true userId?: true officeName?: true receptionistName?: true dentistName?: true phoneNumber?: true email?: true fax?: true streetAddress?: true city?: true state?: true zipCode?: true } export type OfficeContactMaxAggregateInputType = { id?: true userId?: true officeName?: true receptionistName?: true dentistName?: true phoneNumber?: true email?: true fax?: true streetAddress?: true city?: true state?: true zipCode?: true } export type OfficeContactCountAggregateInputType = { id?: true userId?: true officeName?: true receptionistName?: true dentistName?: true phoneNumber?: true email?: true fax?: true streetAddress?: true city?: true state?: true zipCode?: true _all?: true } export type OfficeContactAggregateArgs = { /** * Filter which OfficeContact to aggregate. */ where?: OfficeContactWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OfficeContacts to fetch. */ orderBy?: OfficeContactOrderByWithRelationInput | OfficeContactOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: OfficeContactWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OfficeContacts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` OfficeContacts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned OfficeContacts **/ _count?: true | OfficeContactCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: OfficeContactAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: OfficeContactSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OfficeContactMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OfficeContactMaxAggregateInputType } export type GetOfficeContactAggregateType = { [P in keyof T & keyof AggregateOfficeContact]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type OfficeContactGroupByArgs = { where?: OfficeContactWhereInput orderBy?: OfficeContactOrderByWithAggregationInput | OfficeContactOrderByWithAggregationInput[] by: OfficeContactScalarFieldEnum[] | OfficeContactScalarFieldEnum having?: OfficeContactScalarWhereWithAggregatesInput take?: number skip?: number _count?: OfficeContactCountAggregateInputType | true _avg?: OfficeContactAvgAggregateInputType _sum?: OfficeContactSumAggregateInputType _min?: OfficeContactMinAggregateInputType _max?: OfficeContactMaxAggregateInputType } export type OfficeContactGroupByOutputType = { id: number userId: number officeName: string | null receptionistName: string | null dentistName: string | null phoneNumber: string | null email: string | null fax: string | null streetAddress: string | null city: string | null state: string | null zipCode: string | null _count: OfficeContactCountAggregateOutputType | null _avg: OfficeContactAvgAggregateOutputType | null _sum: OfficeContactSumAggregateOutputType | null _min: OfficeContactMinAggregateOutputType | null _max: OfficeContactMaxAggregateOutputType | null } type GetOfficeContactGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof OfficeContactGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type OfficeContactSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean officeName?: boolean receptionistName?: boolean dentistName?: boolean phoneNumber?: boolean email?: boolean fax?: boolean streetAddress?: boolean city?: boolean state?: boolean zipCode?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["officeContact"]> export type OfficeContactSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean officeName?: boolean receptionistName?: boolean dentistName?: boolean phoneNumber?: boolean email?: boolean fax?: boolean streetAddress?: boolean city?: boolean state?: boolean zipCode?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["officeContact"]> export type OfficeContactSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean officeName?: boolean receptionistName?: boolean dentistName?: boolean phoneNumber?: boolean email?: boolean fax?: boolean streetAddress?: boolean city?: boolean state?: boolean zipCode?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["officeContact"]> export type OfficeContactSelectScalar = { id?: boolean userId?: boolean officeName?: boolean receptionistName?: boolean dentistName?: boolean phoneNumber?: boolean email?: boolean fax?: boolean streetAddress?: boolean city?: boolean state?: boolean zipCode?: boolean } export type OfficeContactOmit = $Extensions.GetOmit<"id" | "userId" | "officeName" | "receptionistName" | "dentistName" | "phoneNumber" | "email" | "fax" | "streetAddress" | "city" | "state" | "zipCode", ExtArgs["result"]["officeContact"]> export type OfficeContactInclude = { user?: boolean | UserDefaultArgs } export type OfficeContactIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type OfficeContactIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $OfficeContactPayload = { name: "OfficeContact" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number officeName: string | null receptionistName: string | null dentistName: string | null phoneNumber: string | null email: string | null fax: string | null streetAddress: string | null city: string | null state: string | null zipCode: string | null }, ExtArgs["result"]["officeContact"]> composites: {} } type OfficeContactGetPayload = $Result.GetResult type OfficeContactCountArgs = Omit & { select?: OfficeContactCountAggregateInputType | true } export interface OfficeContactDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['OfficeContact'], meta: { name: 'OfficeContact' } } /** * Find zero or one OfficeContact that matches the filter. * @param {OfficeContactFindUniqueArgs} args - Arguments to find a OfficeContact * @example * // Get one OfficeContact * const officeContact = await prisma.officeContact.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__OfficeContactClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one OfficeContact that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OfficeContactFindUniqueOrThrowArgs} args - Arguments to find a OfficeContact * @example * // Get one OfficeContact * const officeContact = await prisma.officeContact.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__OfficeContactClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first OfficeContact 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 {OfficeContactFindFirstArgs} args - Arguments to find a OfficeContact * @example * // Get one OfficeContact * const officeContact = await prisma.officeContact.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__OfficeContactClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first OfficeContact 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 {OfficeContactFindFirstOrThrowArgs} args - Arguments to find a OfficeContact * @example * // Get one OfficeContact * const officeContact = await prisma.officeContact.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__OfficeContactClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more OfficeContacts 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 {OfficeContactFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all OfficeContacts * const officeContacts = await prisma.officeContact.findMany() * * // Get first 10 OfficeContacts * const officeContacts = await prisma.officeContact.findMany({ take: 10 }) * * // Only select the `id` * const officeContactWithIdOnly = await prisma.officeContact.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a OfficeContact. * @param {OfficeContactCreateArgs} args - Arguments to create a OfficeContact. * @example * // Create one OfficeContact * const OfficeContact = await prisma.officeContact.create({ * data: { * // ... data to create a OfficeContact * } * }) * */ create(args: SelectSubset>): Prisma__OfficeContactClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many OfficeContacts. * @param {OfficeContactCreateManyArgs} args - Arguments to create many OfficeContacts. * @example * // Create many OfficeContacts * const officeContact = await prisma.officeContact.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many OfficeContacts and returns the data saved in the database. * @param {OfficeContactCreateManyAndReturnArgs} args - Arguments to create many OfficeContacts. * @example * // Create many OfficeContacts * const officeContact = await prisma.officeContact.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many OfficeContacts and only return the `id` * const officeContactWithIdOnly = await prisma.officeContact.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a OfficeContact. * @param {OfficeContactDeleteArgs} args - Arguments to delete one OfficeContact. * @example * // Delete one OfficeContact * const OfficeContact = await prisma.officeContact.delete({ * where: { * // ... filter to delete one OfficeContact * } * }) * */ delete(args: SelectSubset>): Prisma__OfficeContactClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one OfficeContact. * @param {OfficeContactUpdateArgs} args - Arguments to update one OfficeContact. * @example * // Update one OfficeContact * const officeContact = await prisma.officeContact.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__OfficeContactClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more OfficeContacts. * @param {OfficeContactDeleteManyArgs} args - Arguments to filter OfficeContacts to delete. * @example * // Delete a few OfficeContacts * const { count } = await prisma.officeContact.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OfficeContacts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OfficeContactUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many OfficeContacts * const officeContact = await prisma.officeContact.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OfficeContacts and returns the data updated in the database. * @param {OfficeContactUpdateManyAndReturnArgs} args - Arguments to update many OfficeContacts. * @example * // Update many OfficeContacts * const officeContact = await prisma.officeContact.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more OfficeContacts and only return the `id` * const officeContactWithIdOnly = await prisma.officeContact.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one OfficeContact. * @param {OfficeContactUpsertArgs} args - Arguments to update or create a OfficeContact. * @example * // Update or create a OfficeContact * const officeContact = await prisma.officeContact.upsert({ * create: { * // ... data to create a OfficeContact * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the OfficeContact we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__OfficeContactClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of OfficeContacts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OfficeContactCountArgs} args - Arguments to filter OfficeContacts to count. * @example * // Count the number of OfficeContacts * const count = await prisma.officeContact.count({ * where: { * // ... the filter for the OfficeContacts 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 OfficeContact. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OfficeContactAggregateArgs} 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 OfficeContact. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OfficeContactGroupByArgs} 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 OfficeContactGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: OfficeContactGroupByArgs['orderBy'] } : { orderBy?: OfficeContactGroupByArgs['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 ? GetOfficeContactGroupByPayload : Prisma.PrismaPromise /** * Fields of the OfficeContact model */ readonly fields: OfficeContactFieldRefs; } /** * The delegate class that acts as a "Promise-like" for OfficeContact. * 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__OfficeContactClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 OfficeContact model */ interface OfficeContactFieldRefs { readonly id: FieldRef<"OfficeContact", 'Int'> readonly userId: FieldRef<"OfficeContact", 'Int'> readonly officeName: FieldRef<"OfficeContact", 'String'> readonly receptionistName: FieldRef<"OfficeContact", 'String'> readonly dentistName: FieldRef<"OfficeContact", 'String'> readonly phoneNumber: FieldRef<"OfficeContact", 'String'> readonly email: FieldRef<"OfficeContact", 'String'> readonly fax: FieldRef<"OfficeContact", 'String'> readonly streetAddress: FieldRef<"OfficeContact", 'String'> readonly city: FieldRef<"OfficeContact", 'String'> readonly state: FieldRef<"OfficeContact", 'String'> readonly zipCode: FieldRef<"OfficeContact", 'String'> } // Custom InputTypes /** * OfficeContact findUnique */ export type OfficeContactFindUniqueArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * Filter, which OfficeContact to fetch. */ where: OfficeContactWhereUniqueInput } /** * OfficeContact findUniqueOrThrow */ export type OfficeContactFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * Filter, which OfficeContact to fetch. */ where: OfficeContactWhereUniqueInput } /** * OfficeContact findFirst */ export type OfficeContactFindFirstArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * Filter, which OfficeContact to fetch. */ where?: OfficeContactWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OfficeContacts to fetch. */ orderBy?: OfficeContactOrderByWithRelationInput | OfficeContactOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OfficeContacts. */ cursor?: OfficeContactWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OfficeContacts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` OfficeContacts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OfficeContacts. */ distinct?: OfficeContactScalarFieldEnum | OfficeContactScalarFieldEnum[] } /** * OfficeContact findFirstOrThrow */ export type OfficeContactFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * Filter, which OfficeContact to fetch. */ where?: OfficeContactWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OfficeContacts to fetch. */ orderBy?: OfficeContactOrderByWithRelationInput | OfficeContactOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OfficeContacts. */ cursor?: OfficeContactWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OfficeContacts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` OfficeContacts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OfficeContacts. */ distinct?: OfficeContactScalarFieldEnum | OfficeContactScalarFieldEnum[] } /** * OfficeContact findMany */ export type OfficeContactFindManyArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * Filter, which OfficeContacts to fetch. */ where?: OfficeContactWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OfficeContacts to fetch. */ orderBy?: OfficeContactOrderByWithRelationInput | OfficeContactOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing OfficeContacts. */ cursor?: OfficeContactWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OfficeContacts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` OfficeContacts. */ skip?: number distinct?: OfficeContactScalarFieldEnum | OfficeContactScalarFieldEnum[] } /** * OfficeContact create */ export type OfficeContactCreateArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * The data needed to create a OfficeContact. */ data: XOR } /** * OfficeContact createMany */ export type OfficeContactCreateManyArgs = { /** * The data used to create many OfficeContacts. */ data: OfficeContactCreateManyInput | OfficeContactCreateManyInput[] skipDuplicates?: boolean } /** * OfficeContact createManyAndReturn */ export type OfficeContactCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelectCreateManyAndReturn | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * The data used to create many OfficeContacts. */ data: OfficeContactCreateManyInput | OfficeContactCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: OfficeContactIncludeCreateManyAndReturn | null } /** * OfficeContact update */ export type OfficeContactUpdateArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * The data needed to update a OfficeContact. */ data: XOR /** * Choose, which OfficeContact to update. */ where: OfficeContactWhereUniqueInput } /** * OfficeContact updateMany */ export type OfficeContactUpdateManyArgs = { /** * The data used to update OfficeContacts. */ data: XOR /** * Filter which OfficeContacts to update */ where?: OfficeContactWhereInput /** * Limit how many OfficeContacts to update. */ limit?: number } /** * OfficeContact updateManyAndReturn */ export type OfficeContactUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelectUpdateManyAndReturn | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * The data used to update OfficeContacts. */ data: XOR /** * Filter which OfficeContacts to update */ where?: OfficeContactWhereInput /** * Limit how many OfficeContacts to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: OfficeContactIncludeUpdateManyAndReturn | null } /** * OfficeContact upsert */ export type OfficeContactUpsertArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * The filter to search for the OfficeContact to update in case it exists. */ where: OfficeContactWhereUniqueInput /** * In case the OfficeContact found by the `where` argument doesn't exist, create a new OfficeContact with this data. */ create: XOR /** * In case the OfficeContact was found with the provided `where` argument, update it with this data. */ update: XOR } /** * OfficeContact delete */ export type OfficeContactDeleteArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null /** * Filter which OfficeContact to delete. */ where: OfficeContactWhereUniqueInput } /** * OfficeContact deleteMany */ export type OfficeContactDeleteManyArgs = { /** * Filter which OfficeContacts to delete */ where?: OfficeContactWhereInput /** * Limit how many OfficeContacts to delete. */ limit?: number } /** * OfficeContact without action */ export type OfficeContactDefaultArgs = { /** * Select specific fields to fetch from the OfficeContact */ select?: OfficeContactSelect | null /** * Omit specific fields from the OfficeContact */ omit?: OfficeContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: OfficeContactInclude | null } /** * Model InsuranceContact */ export type AggregateInsuranceContact = { _count: InsuranceContactCountAggregateOutputType | null _avg: InsuranceContactAvgAggregateOutputType | null _sum: InsuranceContactSumAggregateOutputType | null _min: InsuranceContactMinAggregateOutputType | null _max: InsuranceContactMaxAggregateOutputType | null } export type InsuranceContactAvgAggregateOutputType = { id: number | null userId: number | null } export type InsuranceContactSumAggregateOutputType = { id: number | null userId: number | null } export type InsuranceContactMinAggregateOutputType = { id: number | null userId: number | null name: string | null phoneNumber: string | null createdAt: Date | null } export type InsuranceContactMaxAggregateOutputType = { id: number | null userId: number | null name: string | null phoneNumber: string | null createdAt: Date | null } export type InsuranceContactCountAggregateOutputType = { id: number userId: number name: number phoneNumber: number createdAt: number _all: number } export type InsuranceContactAvgAggregateInputType = { id?: true userId?: true } export type InsuranceContactSumAggregateInputType = { id?: true userId?: true } export type InsuranceContactMinAggregateInputType = { id?: true userId?: true name?: true phoneNumber?: true createdAt?: true } export type InsuranceContactMaxAggregateInputType = { id?: true userId?: true name?: true phoneNumber?: true createdAt?: true } export type InsuranceContactCountAggregateInputType = { id?: true userId?: true name?: true phoneNumber?: true createdAt?: true _all?: true } export type InsuranceContactAggregateArgs = { /** * Filter which InsuranceContact to aggregate. */ where?: InsuranceContactWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceContacts to fetch. */ orderBy?: InsuranceContactOrderByWithRelationInput | InsuranceContactOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: InsuranceContactWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceContacts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` InsuranceContacts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned InsuranceContacts **/ _count?: true | InsuranceContactCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: InsuranceContactAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: InsuranceContactSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InsuranceContactMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InsuranceContactMaxAggregateInputType } export type GetInsuranceContactAggregateType = { [P in keyof T & keyof AggregateInsuranceContact]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type InsuranceContactGroupByArgs = { where?: InsuranceContactWhereInput orderBy?: InsuranceContactOrderByWithAggregationInput | InsuranceContactOrderByWithAggregationInput[] by: InsuranceContactScalarFieldEnum[] | InsuranceContactScalarFieldEnum having?: InsuranceContactScalarWhereWithAggregatesInput take?: number skip?: number _count?: InsuranceContactCountAggregateInputType | true _avg?: InsuranceContactAvgAggregateInputType _sum?: InsuranceContactSumAggregateInputType _min?: InsuranceContactMinAggregateInputType _max?: InsuranceContactMaxAggregateInputType } export type InsuranceContactGroupByOutputType = { id: number userId: number name: string phoneNumber: string | null createdAt: Date _count: InsuranceContactCountAggregateOutputType | null _avg: InsuranceContactAvgAggregateOutputType | null _sum: InsuranceContactSumAggregateOutputType | null _min: InsuranceContactMinAggregateOutputType | null _max: InsuranceContactMaxAggregateOutputType | null } type GetInsuranceContactGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof InsuranceContactGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type InsuranceContactSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean phoneNumber?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceContact"]> export type InsuranceContactSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean phoneNumber?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceContact"]> export type InsuranceContactSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean phoneNumber?: boolean createdAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["insuranceContact"]> export type InsuranceContactSelectScalar = { id?: boolean userId?: boolean name?: boolean phoneNumber?: boolean createdAt?: boolean } export type InsuranceContactOmit = $Extensions.GetOmit<"id" | "userId" | "name" | "phoneNumber" | "createdAt", ExtArgs["result"]["insuranceContact"]> export type InsuranceContactInclude = { user?: boolean | UserDefaultArgs } export type InsuranceContactIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type InsuranceContactIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $InsuranceContactPayload = { name: "InsuranceContact" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number name: string phoneNumber: string | null createdAt: Date }, ExtArgs["result"]["insuranceContact"]> composites: {} } type InsuranceContactGetPayload = $Result.GetResult type InsuranceContactCountArgs = Omit & { select?: InsuranceContactCountAggregateInputType | true } export interface InsuranceContactDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['InsuranceContact'], meta: { name: 'InsuranceContact' } } /** * Find zero or one InsuranceContact that matches the filter. * @param {InsuranceContactFindUniqueArgs} args - Arguments to find a InsuranceContact * @example * // Get one InsuranceContact * const insuranceContact = await prisma.insuranceContact.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__InsuranceContactClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one InsuranceContact that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InsuranceContactFindUniqueOrThrowArgs} args - Arguments to find a InsuranceContact * @example * // Get one InsuranceContact * const insuranceContact = await prisma.insuranceContact.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__InsuranceContactClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first InsuranceContact 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 {InsuranceContactFindFirstArgs} args - Arguments to find a InsuranceContact * @example * // Get one InsuranceContact * const insuranceContact = await prisma.insuranceContact.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__InsuranceContactClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first InsuranceContact 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 {InsuranceContactFindFirstOrThrowArgs} args - Arguments to find a InsuranceContact * @example * // Get one InsuranceContact * const insuranceContact = await prisma.insuranceContact.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__InsuranceContactClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more InsuranceContacts 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 {InsuranceContactFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all InsuranceContacts * const insuranceContacts = await prisma.insuranceContact.findMany() * * // Get first 10 InsuranceContacts * const insuranceContacts = await prisma.insuranceContact.findMany({ take: 10 }) * * // Only select the `id` * const insuranceContactWithIdOnly = await prisma.insuranceContact.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a InsuranceContact. * @param {InsuranceContactCreateArgs} args - Arguments to create a InsuranceContact. * @example * // Create one InsuranceContact * const InsuranceContact = await prisma.insuranceContact.create({ * data: { * // ... data to create a InsuranceContact * } * }) * */ create(args: SelectSubset>): Prisma__InsuranceContactClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many InsuranceContacts. * @param {InsuranceContactCreateManyArgs} args - Arguments to create many InsuranceContacts. * @example * // Create many InsuranceContacts * const insuranceContact = await prisma.insuranceContact.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many InsuranceContacts and returns the data saved in the database. * @param {InsuranceContactCreateManyAndReturnArgs} args - Arguments to create many InsuranceContacts. * @example * // Create many InsuranceContacts * const insuranceContact = await prisma.insuranceContact.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many InsuranceContacts and only return the `id` * const insuranceContactWithIdOnly = await prisma.insuranceContact.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a InsuranceContact. * @param {InsuranceContactDeleteArgs} args - Arguments to delete one InsuranceContact. * @example * // Delete one InsuranceContact * const InsuranceContact = await prisma.insuranceContact.delete({ * where: { * // ... filter to delete one InsuranceContact * } * }) * */ delete(args: SelectSubset>): Prisma__InsuranceContactClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one InsuranceContact. * @param {InsuranceContactUpdateArgs} args - Arguments to update one InsuranceContact. * @example * // Update one InsuranceContact * const insuranceContact = await prisma.insuranceContact.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__InsuranceContactClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more InsuranceContacts. * @param {InsuranceContactDeleteManyArgs} args - Arguments to filter InsuranceContacts to delete. * @example * // Delete a few InsuranceContacts * const { count } = await prisma.insuranceContact.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more InsuranceContacts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceContactUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many InsuranceContacts * const insuranceContact = await prisma.insuranceContact.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more InsuranceContacts and returns the data updated in the database. * @param {InsuranceContactUpdateManyAndReturnArgs} args - Arguments to update many InsuranceContacts. * @example * // Update many InsuranceContacts * const insuranceContact = await prisma.insuranceContact.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more InsuranceContacts and only return the `id` * const insuranceContactWithIdOnly = await prisma.insuranceContact.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one InsuranceContact. * @param {InsuranceContactUpsertArgs} args - Arguments to update or create a InsuranceContact. * @example * // Update or create a InsuranceContact * const insuranceContact = await prisma.insuranceContact.upsert({ * create: { * // ... data to create a InsuranceContact * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the InsuranceContact we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__InsuranceContactClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of InsuranceContacts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceContactCountArgs} args - Arguments to filter InsuranceContacts to count. * @example * // Count the number of InsuranceContacts * const count = await prisma.insuranceContact.count({ * where: { * // ... the filter for the InsuranceContacts 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 InsuranceContact. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceContactAggregateArgs} 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 InsuranceContact. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InsuranceContactGroupByArgs} 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 InsuranceContactGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: InsuranceContactGroupByArgs['orderBy'] } : { orderBy?: InsuranceContactGroupByArgs['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 ? GetInsuranceContactGroupByPayload : Prisma.PrismaPromise /** * Fields of the InsuranceContact model */ readonly fields: InsuranceContactFieldRefs; } /** * The delegate class that acts as a "Promise-like" for InsuranceContact. * 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__InsuranceContactClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 InsuranceContact model */ interface InsuranceContactFieldRefs { readonly id: FieldRef<"InsuranceContact", 'Int'> readonly userId: FieldRef<"InsuranceContact", 'Int'> readonly name: FieldRef<"InsuranceContact", 'String'> readonly phoneNumber: FieldRef<"InsuranceContact", 'String'> readonly createdAt: FieldRef<"InsuranceContact", 'DateTime'> } // Custom InputTypes /** * InsuranceContact findUnique */ export type InsuranceContactFindUniqueArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * Filter, which InsuranceContact to fetch. */ where: InsuranceContactWhereUniqueInput } /** * InsuranceContact findUniqueOrThrow */ export type InsuranceContactFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * Filter, which InsuranceContact to fetch. */ where: InsuranceContactWhereUniqueInput } /** * InsuranceContact findFirst */ export type InsuranceContactFindFirstArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * Filter, which InsuranceContact to fetch. */ where?: InsuranceContactWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceContacts to fetch. */ orderBy?: InsuranceContactOrderByWithRelationInput | InsuranceContactOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InsuranceContacts. */ cursor?: InsuranceContactWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceContacts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` InsuranceContacts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InsuranceContacts. */ distinct?: InsuranceContactScalarFieldEnum | InsuranceContactScalarFieldEnum[] } /** * InsuranceContact findFirstOrThrow */ export type InsuranceContactFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * Filter, which InsuranceContact to fetch. */ where?: InsuranceContactWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceContacts to fetch. */ orderBy?: InsuranceContactOrderByWithRelationInput | InsuranceContactOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InsuranceContacts. */ cursor?: InsuranceContactWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceContacts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` InsuranceContacts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InsuranceContacts. */ distinct?: InsuranceContactScalarFieldEnum | InsuranceContactScalarFieldEnum[] } /** * InsuranceContact findMany */ export type InsuranceContactFindManyArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * Filter, which InsuranceContacts to fetch. */ where?: InsuranceContactWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InsuranceContacts to fetch. */ orderBy?: InsuranceContactOrderByWithRelationInput | InsuranceContactOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing InsuranceContacts. */ cursor?: InsuranceContactWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InsuranceContacts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` InsuranceContacts. */ skip?: number distinct?: InsuranceContactScalarFieldEnum | InsuranceContactScalarFieldEnum[] } /** * InsuranceContact create */ export type InsuranceContactCreateArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * The data needed to create a InsuranceContact. */ data: XOR } /** * InsuranceContact createMany */ export type InsuranceContactCreateManyArgs = { /** * The data used to create many InsuranceContacts. */ data: InsuranceContactCreateManyInput | InsuranceContactCreateManyInput[] skipDuplicates?: boolean } /** * InsuranceContact createManyAndReturn */ export type InsuranceContactCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelectCreateManyAndReturn | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * The data used to create many InsuranceContacts. */ data: InsuranceContactCreateManyInput | InsuranceContactCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactIncludeCreateManyAndReturn | null } /** * InsuranceContact update */ export type InsuranceContactUpdateArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * The data needed to update a InsuranceContact. */ data: XOR /** * Choose, which InsuranceContact to update. */ where: InsuranceContactWhereUniqueInput } /** * InsuranceContact updateMany */ export type InsuranceContactUpdateManyArgs = { /** * The data used to update InsuranceContacts. */ data: XOR /** * Filter which InsuranceContacts to update */ where?: InsuranceContactWhereInput /** * Limit how many InsuranceContacts to update. */ limit?: number } /** * InsuranceContact updateManyAndReturn */ export type InsuranceContactUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelectUpdateManyAndReturn | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * The data used to update InsuranceContacts. */ data: XOR /** * Filter which InsuranceContacts to update */ where?: InsuranceContactWhereInput /** * Limit how many InsuranceContacts to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactIncludeUpdateManyAndReturn | null } /** * InsuranceContact upsert */ export type InsuranceContactUpsertArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * The filter to search for the InsuranceContact to update in case it exists. */ where: InsuranceContactWhereUniqueInput /** * In case the InsuranceContact found by the `where` argument doesn't exist, create a new InsuranceContact with this data. */ create: XOR /** * In case the InsuranceContact was found with the provided `where` argument, update it with this data. */ update: XOR } /** * InsuranceContact delete */ export type InsuranceContactDeleteArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null /** * Filter which InsuranceContact to delete. */ where: InsuranceContactWhereUniqueInput } /** * InsuranceContact deleteMany */ export type InsuranceContactDeleteManyArgs = { /** * Filter which InsuranceContacts to delete */ where?: InsuranceContactWhereInput /** * Limit how many InsuranceContacts to delete. */ limit?: number } /** * InsuranceContact without action */ export type InsuranceContactDefaultArgs = { /** * Select specific fields to fetch from the InsuranceContact */ select?: InsuranceContactSelect | null /** * Omit specific fields from the InsuranceContact */ omit?: InsuranceContactOmit | null /** * Choose, which related nodes to fetch as well */ include?: InsuranceContactInclude | null } /** * Model ProcedureTimeslot */ export type AggregateProcedureTimeslot = { _count: ProcedureTimeslotCountAggregateOutputType | null _avg: ProcedureTimeslotAvgAggregateOutputType | null _sum: ProcedureTimeslotSumAggregateOutputType | null _min: ProcedureTimeslotMinAggregateOutputType | null _max: ProcedureTimeslotMaxAggregateOutputType | null } export type ProcedureTimeslotAvgAggregateOutputType = { id: number | null userId: number | null } export type ProcedureTimeslotSumAggregateOutputType = { id: number | null userId: number | null } export type ProcedureTimeslotMinAggregateOutputType = { id: number | null userId: number | null } export type ProcedureTimeslotMaxAggregateOutputType = { id: number | null userId: number | null } export type ProcedureTimeslotCountAggregateOutputType = { id: number userId: number data: number _all: number } export type ProcedureTimeslotAvgAggregateInputType = { id?: true userId?: true } export type ProcedureTimeslotSumAggregateInputType = { id?: true userId?: true } export type ProcedureTimeslotMinAggregateInputType = { id?: true userId?: true } export type ProcedureTimeslotMaxAggregateInputType = { id?: true userId?: true } export type ProcedureTimeslotCountAggregateInputType = { id?: true userId?: true data?: true _all?: true } export type ProcedureTimeslotAggregateArgs = { /** * Filter which ProcedureTimeslot to aggregate. */ where?: ProcedureTimeslotWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProcedureTimeslots to fetch. */ orderBy?: ProcedureTimeslotOrderByWithRelationInput | ProcedureTimeslotOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ProcedureTimeslotWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProcedureTimeslots from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProcedureTimeslots. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ProcedureTimeslots **/ _count?: true | ProcedureTimeslotCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ProcedureTimeslotAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ProcedureTimeslotSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProcedureTimeslotMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProcedureTimeslotMaxAggregateInputType } export type GetProcedureTimeslotAggregateType = { [P in keyof T & keyof AggregateProcedureTimeslot]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ProcedureTimeslotGroupByArgs = { where?: ProcedureTimeslotWhereInput orderBy?: ProcedureTimeslotOrderByWithAggregationInput | ProcedureTimeslotOrderByWithAggregationInput[] by: ProcedureTimeslotScalarFieldEnum[] | ProcedureTimeslotScalarFieldEnum having?: ProcedureTimeslotScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProcedureTimeslotCountAggregateInputType | true _avg?: ProcedureTimeslotAvgAggregateInputType _sum?: ProcedureTimeslotSumAggregateInputType _min?: ProcedureTimeslotMinAggregateInputType _max?: ProcedureTimeslotMaxAggregateInputType } export type ProcedureTimeslotGroupByOutputType = { id: number userId: number data: JsonValue _count: ProcedureTimeslotCountAggregateOutputType | null _avg: ProcedureTimeslotAvgAggregateOutputType | null _sum: ProcedureTimeslotSumAggregateOutputType | null _min: ProcedureTimeslotMinAggregateOutputType | null _max: ProcedureTimeslotMaxAggregateOutputType | null } type GetProcedureTimeslotGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ProcedureTimeslotGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ProcedureTimeslotSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean data?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["procedureTimeslot"]> export type ProcedureTimeslotSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean data?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["procedureTimeslot"]> export type ProcedureTimeslotSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean data?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["procedureTimeslot"]> export type ProcedureTimeslotSelectScalar = { id?: boolean userId?: boolean data?: boolean } export type ProcedureTimeslotOmit = $Extensions.GetOmit<"id" | "userId" | "data", ExtArgs["result"]["procedureTimeslot"]> export type ProcedureTimeslotInclude = { user?: boolean | UserDefaultArgs } export type ProcedureTimeslotIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type ProcedureTimeslotIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $ProcedureTimeslotPayload = { name: "ProcedureTimeslot" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number userId: number data: Prisma.JsonValue }, ExtArgs["result"]["procedureTimeslot"]> composites: {} } type ProcedureTimeslotGetPayload = $Result.GetResult type ProcedureTimeslotCountArgs = Omit & { select?: ProcedureTimeslotCountAggregateInputType | true } export interface ProcedureTimeslotDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ProcedureTimeslot'], meta: { name: 'ProcedureTimeslot' } } /** * Find zero or one ProcedureTimeslot that matches the filter. * @param {ProcedureTimeslotFindUniqueArgs} args - Arguments to find a ProcedureTimeslot * @example * // Get one ProcedureTimeslot * const procedureTimeslot = await prisma.procedureTimeslot.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ProcedureTimeslot that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProcedureTimeslotFindUniqueOrThrowArgs} args - Arguments to find a ProcedureTimeslot * @example * // Get one ProcedureTimeslot * const procedureTimeslot = await prisma.procedureTimeslot.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ProcedureTimeslot 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 {ProcedureTimeslotFindFirstArgs} args - Arguments to find a ProcedureTimeslot * @example * // Get one ProcedureTimeslot * const procedureTimeslot = await prisma.procedureTimeslot.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ProcedureTimeslot 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 {ProcedureTimeslotFindFirstOrThrowArgs} args - Arguments to find a ProcedureTimeslot * @example * // Get one ProcedureTimeslot * const procedureTimeslot = await prisma.procedureTimeslot.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ProcedureTimeslots 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 {ProcedureTimeslotFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ProcedureTimeslots * const procedureTimeslots = await prisma.procedureTimeslot.findMany() * * // Get first 10 ProcedureTimeslots * const procedureTimeslots = await prisma.procedureTimeslot.findMany({ take: 10 }) * * // Only select the `id` * const procedureTimeslotWithIdOnly = await prisma.procedureTimeslot.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ProcedureTimeslot. * @param {ProcedureTimeslotCreateArgs} args - Arguments to create a ProcedureTimeslot. * @example * // Create one ProcedureTimeslot * const ProcedureTimeslot = await prisma.procedureTimeslot.create({ * data: { * // ... data to create a ProcedureTimeslot * } * }) * */ create(args: SelectSubset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ProcedureTimeslots. * @param {ProcedureTimeslotCreateManyArgs} args - Arguments to create many ProcedureTimeslots. * @example * // Create many ProcedureTimeslots * const procedureTimeslot = await prisma.procedureTimeslot.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ProcedureTimeslots and returns the data saved in the database. * @param {ProcedureTimeslotCreateManyAndReturnArgs} args - Arguments to create many ProcedureTimeslots. * @example * // Create many ProcedureTimeslots * const procedureTimeslot = await prisma.procedureTimeslot.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ProcedureTimeslots and only return the `id` * const procedureTimeslotWithIdOnly = await prisma.procedureTimeslot.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ProcedureTimeslot. * @param {ProcedureTimeslotDeleteArgs} args - Arguments to delete one ProcedureTimeslot. * @example * // Delete one ProcedureTimeslot * const ProcedureTimeslot = await prisma.procedureTimeslot.delete({ * where: { * // ... filter to delete one ProcedureTimeslot * } * }) * */ delete(args: SelectSubset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ProcedureTimeslot. * @param {ProcedureTimeslotUpdateArgs} args - Arguments to update one ProcedureTimeslot. * @example * // Update one ProcedureTimeslot * const procedureTimeslot = await prisma.procedureTimeslot.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ProcedureTimeslots. * @param {ProcedureTimeslotDeleteManyArgs} args - Arguments to filter ProcedureTimeslots to delete. * @example * // Delete a few ProcedureTimeslots * const { count } = await prisma.procedureTimeslot.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProcedureTimeslots. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProcedureTimeslotUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ProcedureTimeslots * const procedureTimeslot = await prisma.procedureTimeslot.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProcedureTimeslots and returns the data updated in the database. * @param {ProcedureTimeslotUpdateManyAndReturnArgs} args - Arguments to update many ProcedureTimeslots. * @example * // Update many ProcedureTimeslots * const procedureTimeslot = await prisma.procedureTimeslot.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ProcedureTimeslots and only return the `id` * const procedureTimeslotWithIdOnly = await prisma.procedureTimeslot.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ProcedureTimeslot. * @param {ProcedureTimeslotUpsertArgs} args - Arguments to update or create a ProcedureTimeslot. * @example * // Update or create a ProcedureTimeslot * const procedureTimeslot = await prisma.procedureTimeslot.upsert({ * create: { * // ... data to create a ProcedureTimeslot * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ProcedureTimeslot we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ProcedureTimeslotClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ProcedureTimeslots. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProcedureTimeslotCountArgs} args - Arguments to filter ProcedureTimeslots to count. * @example * // Count the number of ProcedureTimeslots * const count = await prisma.procedureTimeslot.count({ * where: { * // ... the filter for the ProcedureTimeslots 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 ProcedureTimeslot. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProcedureTimeslotAggregateArgs} 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 ProcedureTimeslot. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProcedureTimeslotGroupByArgs} 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 ProcedureTimeslotGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ProcedureTimeslotGroupByArgs['orderBy'] } : { orderBy?: ProcedureTimeslotGroupByArgs['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 ? GetProcedureTimeslotGroupByPayload : Prisma.PrismaPromise /** * Fields of the ProcedureTimeslot model */ readonly fields: ProcedureTimeslotFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ProcedureTimeslot. * 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__ProcedureTimeslotClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 ProcedureTimeslot model */ interface ProcedureTimeslotFieldRefs { readonly id: FieldRef<"ProcedureTimeslot", 'Int'> readonly userId: FieldRef<"ProcedureTimeslot", 'Int'> readonly data: FieldRef<"ProcedureTimeslot", 'Json'> } // Custom InputTypes /** * ProcedureTimeslot findUnique */ export type ProcedureTimeslotFindUniqueArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * Filter, which ProcedureTimeslot to fetch. */ where: ProcedureTimeslotWhereUniqueInput } /** * ProcedureTimeslot findUniqueOrThrow */ export type ProcedureTimeslotFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * Filter, which ProcedureTimeslot to fetch. */ where: ProcedureTimeslotWhereUniqueInput } /** * ProcedureTimeslot findFirst */ export type ProcedureTimeslotFindFirstArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * Filter, which ProcedureTimeslot to fetch. */ where?: ProcedureTimeslotWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProcedureTimeslots to fetch. */ orderBy?: ProcedureTimeslotOrderByWithRelationInput | ProcedureTimeslotOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProcedureTimeslots. */ cursor?: ProcedureTimeslotWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProcedureTimeslots from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProcedureTimeslots. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProcedureTimeslots. */ distinct?: ProcedureTimeslotScalarFieldEnum | ProcedureTimeslotScalarFieldEnum[] } /** * ProcedureTimeslot findFirstOrThrow */ export type ProcedureTimeslotFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * Filter, which ProcedureTimeslot to fetch. */ where?: ProcedureTimeslotWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProcedureTimeslots to fetch. */ orderBy?: ProcedureTimeslotOrderByWithRelationInput | ProcedureTimeslotOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProcedureTimeslots. */ cursor?: ProcedureTimeslotWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProcedureTimeslots from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProcedureTimeslots. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProcedureTimeslots. */ distinct?: ProcedureTimeslotScalarFieldEnum | ProcedureTimeslotScalarFieldEnum[] } /** * ProcedureTimeslot findMany */ export type ProcedureTimeslotFindManyArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * Filter, which ProcedureTimeslots to fetch. */ where?: ProcedureTimeslotWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProcedureTimeslots to fetch. */ orderBy?: ProcedureTimeslotOrderByWithRelationInput | ProcedureTimeslotOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ProcedureTimeslots. */ cursor?: ProcedureTimeslotWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProcedureTimeslots from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProcedureTimeslots. */ skip?: number distinct?: ProcedureTimeslotScalarFieldEnum | ProcedureTimeslotScalarFieldEnum[] } /** * ProcedureTimeslot create */ export type ProcedureTimeslotCreateArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * The data needed to create a ProcedureTimeslot. */ data: XOR } /** * ProcedureTimeslot createMany */ export type ProcedureTimeslotCreateManyArgs = { /** * The data used to create many ProcedureTimeslots. */ data: ProcedureTimeslotCreateManyInput | ProcedureTimeslotCreateManyInput[] skipDuplicates?: boolean } /** * ProcedureTimeslot createManyAndReturn */ export type ProcedureTimeslotCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelectCreateManyAndReturn | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * The data used to create many ProcedureTimeslots. */ data: ProcedureTimeslotCreateManyInput | ProcedureTimeslotCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotIncludeCreateManyAndReturn | null } /** * ProcedureTimeslot update */ export type ProcedureTimeslotUpdateArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * The data needed to update a ProcedureTimeslot. */ data: XOR /** * Choose, which ProcedureTimeslot to update. */ where: ProcedureTimeslotWhereUniqueInput } /** * ProcedureTimeslot updateMany */ export type ProcedureTimeslotUpdateManyArgs = { /** * The data used to update ProcedureTimeslots. */ data: XOR /** * Filter which ProcedureTimeslots to update */ where?: ProcedureTimeslotWhereInput /** * Limit how many ProcedureTimeslots to update. */ limit?: number } /** * ProcedureTimeslot updateManyAndReturn */ export type ProcedureTimeslotUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelectUpdateManyAndReturn | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * The data used to update ProcedureTimeslots. */ data: XOR /** * Filter which ProcedureTimeslots to update */ where?: ProcedureTimeslotWhereInput /** * Limit how many ProcedureTimeslots to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotIncludeUpdateManyAndReturn | null } /** * ProcedureTimeslot upsert */ export type ProcedureTimeslotUpsertArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * The filter to search for the ProcedureTimeslot to update in case it exists. */ where: ProcedureTimeslotWhereUniqueInput /** * In case the ProcedureTimeslot found by the `where` argument doesn't exist, create a new ProcedureTimeslot with this data. */ create: XOR /** * In case the ProcedureTimeslot was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ProcedureTimeslot delete */ export type ProcedureTimeslotDeleteArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null /** * Filter which ProcedureTimeslot to delete. */ where: ProcedureTimeslotWhereUniqueInput } /** * ProcedureTimeslot deleteMany */ export type ProcedureTimeslotDeleteManyArgs = { /** * Filter which ProcedureTimeslots to delete */ where?: ProcedureTimeslotWhereInput /** * Limit how many ProcedureTimeslots to delete. */ limit?: number } /** * ProcedureTimeslot without action */ export type ProcedureTimeslotDefaultArgs = { /** * Select specific fields to fetch from the ProcedureTimeslot */ select?: ProcedureTimeslotSelect | null /** * Omit specific fields from the ProcedureTimeslot */ omit?: ProcedureTimeslotOmit | null /** * Choose, which related nodes to fetch as well */ include?: ProcedureTimeslotInclude | null } /** * Model PatientConversation */ export type AggregatePatientConversation = { _count: PatientConversationCountAggregateOutputType | null _avg: PatientConversationAvgAggregateOutputType | null _sum: PatientConversationSumAggregateOutputType | null _min: PatientConversationMinAggregateOutputType | null _max: PatientConversationMaxAggregateOutputType | null } export type PatientConversationAvgAggregateOutputType = { id: number | null patientId: number | null userId: number | null } export type PatientConversationSumAggregateOutputType = { id: number | null patientId: number | null userId: number | null } export type PatientConversationMinAggregateOutputType = { id: number | null patientId: number | null userId: number | null stage: string | null aiHandoff: boolean | null updatedAt: Date | null } export type PatientConversationMaxAggregateOutputType = { id: number | null patientId: number | null userId: number | null stage: string | null aiHandoff: boolean | null updatedAt: Date | null } export type PatientConversationCountAggregateOutputType = { id: number patientId: number userId: number stage: number aiHandoff: number updatedAt: number _all: number } export type PatientConversationAvgAggregateInputType = { id?: true patientId?: true userId?: true } export type PatientConversationSumAggregateInputType = { id?: true patientId?: true userId?: true } export type PatientConversationMinAggregateInputType = { id?: true patientId?: true userId?: true stage?: true aiHandoff?: true updatedAt?: true } export type PatientConversationMaxAggregateInputType = { id?: true patientId?: true userId?: true stage?: true aiHandoff?: true updatedAt?: true } export type PatientConversationCountAggregateInputType = { id?: true patientId?: true userId?: true stage?: true aiHandoff?: true updatedAt?: true _all?: true } export type PatientConversationAggregateArgs = { /** * Filter which PatientConversation to aggregate. */ where?: PatientConversationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientConversations to fetch. */ orderBy?: PatientConversationOrderByWithRelationInput | PatientConversationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PatientConversationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientConversations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PatientConversations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PatientConversations **/ _count?: true | PatientConversationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PatientConversationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PatientConversationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PatientConversationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PatientConversationMaxAggregateInputType } export type GetPatientConversationAggregateType = { [P in keyof T & keyof AggregatePatientConversation]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PatientConversationGroupByArgs = { where?: PatientConversationWhereInput orderBy?: PatientConversationOrderByWithAggregationInput | PatientConversationOrderByWithAggregationInput[] by: PatientConversationScalarFieldEnum[] | PatientConversationScalarFieldEnum having?: PatientConversationScalarWhereWithAggregatesInput take?: number skip?: number _count?: PatientConversationCountAggregateInputType | true _avg?: PatientConversationAvgAggregateInputType _sum?: PatientConversationSumAggregateInputType _min?: PatientConversationMinAggregateInputType _max?: PatientConversationMaxAggregateInputType } export type PatientConversationGroupByOutputType = { id: number patientId: number userId: number stage: string aiHandoff: boolean updatedAt: Date _count: PatientConversationCountAggregateOutputType | null _avg: PatientConversationAvgAggregateOutputType | null _sum: PatientConversationSumAggregateOutputType | null _min: PatientConversationMinAggregateOutputType | null _max: PatientConversationMaxAggregateOutputType | null } type GetPatientConversationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PatientConversationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PatientConversationSelect = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean stage?: boolean aiHandoff?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["patientConversation"]> export type PatientConversationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean stage?: boolean aiHandoff?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["patientConversation"]> export type PatientConversationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean patientId?: boolean userId?: boolean stage?: boolean aiHandoff?: boolean updatedAt?: boolean patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["patientConversation"]> export type PatientConversationSelectScalar = { id?: boolean patientId?: boolean userId?: boolean stage?: boolean aiHandoff?: boolean updatedAt?: boolean } export type PatientConversationOmit = $Extensions.GetOmit<"id" | "patientId" | "userId" | "stage" | "aiHandoff" | "updatedAt", ExtArgs["result"]["patientConversation"]> export type PatientConversationInclude = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs } export type PatientConversationIncludeCreateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs } export type PatientConversationIncludeUpdateManyAndReturn = { patient?: boolean | PatientDefaultArgs user?: boolean | UserDefaultArgs } export type $PatientConversationPayload = { name: "PatientConversation" objects: { patient: Prisma.$PatientPayload user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: number patientId: number userId: number stage: string aiHandoff: boolean updatedAt: Date }, ExtArgs["result"]["patientConversation"]> composites: {} } type PatientConversationGetPayload = $Result.GetResult type PatientConversationCountArgs = Omit & { select?: PatientConversationCountAggregateInputType | true } export interface PatientConversationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PatientConversation'], meta: { name: 'PatientConversation' } } /** * Find zero or one PatientConversation that matches the filter. * @param {PatientConversationFindUniqueArgs} args - Arguments to find a PatientConversation * @example * // Get one PatientConversation * const patientConversation = await prisma.patientConversation.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PatientConversationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PatientConversation that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PatientConversationFindUniqueOrThrowArgs} args - Arguments to find a PatientConversation * @example * // Get one PatientConversation * const patientConversation = await prisma.patientConversation.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PatientConversationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PatientConversation 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 {PatientConversationFindFirstArgs} args - Arguments to find a PatientConversation * @example * // Get one PatientConversation * const patientConversation = await prisma.patientConversation.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PatientConversationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PatientConversation 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 {PatientConversationFindFirstOrThrowArgs} args - Arguments to find a PatientConversation * @example * // Get one PatientConversation * const patientConversation = await prisma.patientConversation.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PatientConversationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PatientConversations 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 {PatientConversationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PatientConversations * const patientConversations = await prisma.patientConversation.findMany() * * // Get first 10 PatientConversations * const patientConversations = await prisma.patientConversation.findMany({ take: 10 }) * * // Only select the `id` * const patientConversationWithIdOnly = await prisma.patientConversation.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a PatientConversation. * @param {PatientConversationCreateArgs} args - Arguments to create a PatientConversation. * @example * // Create one PatientConversation * const PatientConversation = await prisma.patientConversation.create({ * data: { * // ... data to create a PatientConversation * } * }) * */ create(args: SelectSubset>): Prisma__PatientConversationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PatientConversations. * @param {PatientConversationCreateManyArgs} args - Arguments to create many PatientConversations. * @example * // Create many PatientConversations * const patientConversation = await prisma.patientConversation.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PatientConversations and returns the data saved in the database. * @param {PatientConversationCreateManyAndReturnArgs} args - Arguments to create many PatientConversations. * @example * // Create many PatientConversations * const patientConversation = await prisma.patientConversation.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PatientConversations and only return the `id` * const patientConversationWithIdOnly = await prisma.patientConversation.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PatientConversation. * @param {PatientConversationDeleteArgs} args - Arguments to delete one PatientConversation. * @example * // Delete one PatientConversation * const PatientConversation = await prisma.patientConversation.delete({ * where: { * // ... filter to delete one PatientConversation * } * }) * */ delete(args: SelectSubset>): Prisma__PatientConversationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PatientConversation. * @param {PatientConversationUpdateArgs} args - Arguments to update one PatientConversation. * @example * // Update one PatientConversation * const patientConversation = await prisma.patientConversation.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PatientConversationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PatientConversations. * @param {PatientConversationDeleteManyArgs} args - Arguments to filter PatientConversations to delete. * @example * // Delete a few PatientConversations * const { count } = await prisma.patientConversation.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PatientConversations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientConversationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PatientConversations * const patientConversation = await prisma.patientConversation.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PatientConversations and returns the data updated in the database. * @param {PatientConversationUpdateManyAndReturnArgs} args - Arguments to update many PatientConversations. * @example * // Update many PatientConversations * const patientConversation = await prisma.patientConversation.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PatientConversations and only return the `id` * const patientConversationWithIdOnly = await prisma.patientConversation.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PatientConversation. * @param {PatientConversationUpsertArgs} args - Arguments to update or create a PatientConversation. * @example * // Update or create a PatientConversation * const patientConversation = await prisma.patientConversation.upsert({ * create: { * // ... data to create a PatientConversation * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PatientConversation we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PatientConversationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PatientConversations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientConversationCountArgs} args - Arguments to filter PatientConversations to count. * @example * // Count the number of PatientConversations * const count = await prisma.patientConversation.count({ * where: { * // ... the filter for the PatientConversations 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 PatientConversation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientConversationAggregateArgs} 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 PatientConversation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PatientConversationGroupByArgs} 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 PatientConversationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PatientConversationGroupByArgs['orderBy'] } : { orderBy?: PatientConversationGroupByArgs['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 ? GetPatientConversationGroupByPayload : Prisma.PrismaPromise /** * Fields of the PatientConversation model */ readonly fields: PatientConversationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PatientConversation. * 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__PatientConversationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" patient = {}>(args?: Subset>): Prisma__PatientClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 PatientConversation model */ interface PatientConversationFieldRefs { readonly id: FieldRef<"PatientConversation", 'Int'> readonly patientId: FieldRef<"PatientConversation", 'Int'> readonly userId: FieldRef<"PatientConversation", 'Int'> readonly stage: FieldRef<"PatientConversation", 'String'> readonly aiHandoff: FieldRef<"PatientConversation", 'Boolean'> readonly updatedAt: FieldRef<"PatientConversation", 'DateTime'> } // Custom InputTypes /** * PatientConversation findUnique */ export type PatientConversationFindUniqueArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * Filter, which PatientConversation to fetch. */ where: PatientConversationWhereUniqueInput } /** * PatientConversation findUniqueOrThrow */ export type PatientConversationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * Filter, which PatientConversation to fetch. */ where: PatientConversationWhereUniqueInput } /** * PatientConversation findFirst */ export type PatientConversationFindFirstArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * Filter, which PatientConversation to fetch. */ where?: PatientConversationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientConversations to fetch. */ orderBy?: PatientConversationOrderByWithRelationInput | PatientConversationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PatientConversations. */ cursor?: PatientConversationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientConversations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PatientConversations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PatientConversations. */ distinct?: PatientConversationScalarFieldEnum | PatientConversationScalarFieldEnum[] } /** * PatientConversation findFirstOrThrow */ export type PatientConversationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * Filter, which PatientConversation to fetch. */ where?: PatientConversationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientConversations to fetch. */ orderBy?: PatientConversationOrderByWithRelationInput | PatientConversationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PatientConversations. */ cursor?: PatientConversationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientConversations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PatientConversations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PatientConversations. */ distinct?: PatientConversationScalarFieldEnum | PatientConversationScalarFieldEnum[] } /** * PatientConversation findMany */ export type PatientConversationFindManyArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * Filter, which PatientConversations to fetch. */ where?: PatientConversationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PatientConversations to fetch. */ orderBy?: PatientConversationOrderByWithRelationInput | PatientConversationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PatientConversations. */ cursor?: PatientConversationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PatientConversations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PatientConversations. */ skip?: number distinct?: PatientConversationScalarFieldEnum | PatientConversationScalarFieldEnum[] } /** * PatientConversation create */ export type PatientConversationCreateArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * The data needed to create a PatientConversation. */ data: XOR } /** * PatientConversation createMany */ export type PatientConversationCreateManyArgs = { /** * The data used to create many PatientConversations. */ data: PatientConversationCreateManyInput | PatientConversationCreateManyInput[] skipDuplicates?: boolean } /** * PatientConversation createManyAndReturn */ export type PatientConversationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelectCreateManyAndReturn | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * The data used to create many PatientConversations. */ data: PatientConversationCreateManyInput | PatientConversationCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PatientConversationIncludeCreateManyAndReturn | null } /** * PatientConversation update */ export type PatientConversationUpdateArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * The data needed to update a PatientConversation. */ data: XOR /** * Choose, which PatientConversation to update. */ where: PatientConversationWhereUniqueInput } /** * PatientConversation updateMany */ export type PatientConversationUpdateManyArgs = { /** * The data used to update PatientConversations. */ data: XOR /** * Filter which PatientConversations to update */ where?: PatientConversationWhereInput /** * Limit how many PatientConversations to update. */ limit?: number } /** * PatientConversation updateManyAndReturn */ export type PatientConversationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelectUpdateManyAndReturn | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * The data used to update PatientConversations. */ data: XOR /** * Filter which PatientConversations to update */ where?: PatientConversationWhereInput /** * Limit how many PatientConversations to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: PatientConversationIncludeUpdateManyAndReturn | null } /** * PatientConversation upsert */ export type PatientConversationUpsertArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * The filter to search for the PatientConversation to update in case it exists. */ where: PatientConversationWhereUniqueInput /** * In case the PatientConversation found by the `where` argument doesn't exist, create a new PatientConversation with this data. */ create: XOR /** * In case the PatientConversation was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PatientConversation delete */ export type PatientConversationDeleteArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null /** * Filter which PatientConversation to delete. */ where: PatientConversationWhereUniqueInput } /** * PatientConversation deleteMany */ export type PatientConversationDeleteManyArgs = { /** * Filter which PatientConversations to delete */ where?: PatientConversationWhereInput /** * Limit how many PatientConversations to delete. */ limit?: number } /** * PatientConversation without action */ export type PatientConversationDefaultArgs = { /** * Select specific fields to fetch from the PatientConversation */ select?: PatientConversationSelect | null /** * Omit specific fields from the PatientConversation */ omit?: PatientConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: PatientConversationInclude | null } /** * Model CommissionBatch */ export type AggregateCommissionBatch = { _count: CommissionBatchCountAggregateOutputType | null _avg: CommissionBatchAvgAggregateOutputType | null _sum: CommissionBatchSumAggregateOutputType | null _min: CommissionBatchMinAggregateOutputType | null _max: CommissionBatchMaxAggregateOutputType | null } export type CommissionBatchAvgAggregateOutputType = { id: number | null npiProviderId: number | null totalCollection: Decimal | null commissionAmount: Decimal | null } export type CommissionBatchSumAggregateOutputType = { id: number | null npiProviderId: number | null totalCollection: Decimal | null commissionAmount: Decimal | null } export type CommissionBatchMinAggregateOutputType = { id: number | null npiProviderId: number | null totalCollection: Decimal | null commissionAmount: Decimal | null notes: string | null createdAt: Date | null } export type CommissionBatchMaxAggregateOutputType = { id: number | null npiProviderId: number | null totalCollection: Decimal | null commissionAmount: Decimal | null notes: string | null createdAt: Date | null } export type CommissionBatchCountAggregateOutputType = { id: number npiProviderId: number totalCollection: number commissionAmount: number notes: number createdAt: number _all: number } export type CommissionBatchAvgAggregateInputType = { id?: true npiProviderId?: true totalCollection?: true commissionAmount?: true } export type CommissionBatchSumAggregateInputType = { id?: true npiProviderId?: true totalCollection?: true commissionAmount?: true } export type CommissionBatchMinAggregateInputType = { id?: true npiProviderId?: true totalCollection?: true commissionAmount?: true notes?: true createdAt?: true } export type CommissionBatchMaxAggregateInputType = { id?: true npiProviderId?: true totalCollection?: true commissionAmount?: true notes?: true createdAt?: true } export type CommissionBatchCountAggregateInputType = { id?: true npiProviderId?: true totalCollection?: true commissionAmount?: true notes?: true createdAt?: true _all?: true } export type CommissionBatchAggregateArgs = { /** * Filter which CommissionBatch to aggregate. */ where?: CommissionBatchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CommissionBatches to fetch. */ orderBy?: CommissionBatchOrderByWithRelationInput | CommissionBatchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CommissionBatchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CommissionBatches from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CommissionBatches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CommissionBatches **/ _count?: true | CommissionBatchCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CommissionBatchAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CommissionBatchSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CommissionBatchMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CommissionBatchMaxAggregateInputType } export type GetCommissionBatchAggregateType = { [P in keyof T & keyof AggregateCommissionBatch]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CommissionBatchGroupByArgs = { where?: CommissionBatchWhereInput orderBy?: CommissionBatchOrderByWithAggregationInput | CommissionBatchOrderByWithAggregationInput[] by: CommissionBatchScalarFieldEnum[] | CommissionBatchScalarFieldEnum having?: CommissionBatchScalarWhereWithAggregatesInput take?: number skip?: number _count?: CommissionBatchCountAggregateInputType | true _avg?: CommissionBatchAvgAggregateInputType _sum?: CommissionBatchSumAggregateInputType _min?: CommissionBatchMinAggregateInputType _max?: CommissionBatchMaxAggregateInputType } export type CommissionBatchGroupByOutputType = { id: number npiProviderId: number totalCollection: Decimal commissionAmount: Decimal notes: string | null createdAt: Date _count: CommissionBatchCountAggregateOutputType | null _avg: CommissionBatchAvgAggregateOutputType | null _sum: CommissionBatchSumAggregateOutputType | null _min: CommissionBatchMinAggregateOutputType | null _max: CommissionBatchMaxAggregateOutputType | null } type GetCommissionBatchGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CommissionBatchGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CommissionBatchSelect = $Extensions.GetSelect<{ id?: boolean npiProviderId?: boolean totalCollection?: boolean commissionAmount?: boolean notes?: boolean createdAt?: boolean npiProvider?: boolean | NpiProviderDefaultArgs items?: boolean | CommissionBatch$itemsArgs _count?: boolean | CommissionBatchCountOutputTypeDefaultArgs }, ExtArgs["result"]["commissionBatch"]> export type CommissionBatchSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean npiProviderId?: boolean totalCollection?: boolean commissionAmount?: boolean notes?: boolean createdAt?: boolean npiProvider?: boolean | NpiProviderDefaultArgs }, ExtArgs["result"]["commissionBatch"]> export type CommissionBatchSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean npiProviderId?: boolean totalCollection?: boolean commissionAmount?: boolean notes?: boolean createdAt?: boolean npiProvider?: boolean | NpiProviderDefaultArgs }, ExtArgs["result"]["commissionBatch"]> export type CommissionBatchSelectScalar = { id?: boolean npiProviderId?: boolean totalCollection?: boolean commissionAmount?: boolean notes?: boolean createdAt?: boolean } export type CommissionBatchOmit = $Extensions.GetOmit<"id" | "npiProviderId" | "totalCollection" | "commissionAmount" | "notes" | "createdAt", ExtArgs["result"]["commissionBatch"]> export type CommissionBatchInclude = { npiProvider?: boolean | NpiProviderDefaultArgs items?: boolean | CommissionBatch$itemsArgs _count?: boolean | CommissionBatchCountOutputTypeDefaultArgs } export type CommissionBatchIncludeCreateManyAndReturn = { npiProvider?: boolean | NpiProviderDefaultArgs } export type CommissionBatchIncludeUpdateManyAndReturn = { npiProvider?: boolean | NpiProviderDefaultArgs } export type $CommissionBatchPayload = { name: "CommissionBatch" objects: { npiProvider: Prisma.$NpiProviderPayload items: Prisma.$CommissionBatchItemPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number npiProviderId: number totalCollection: Prisma.Decimal commissionAmount: Prisma.Decimal notes: string | null createdAt: Date }, ExtArgs["result"]["commissionBatch"]> composites: {} } type CommissionBatchGetPayload = $Result.GetResult type CommissionBatchCountArgs = Omit & { select?: CommissionBatchCountAggregateInputType | true } export interface CommissionBatchDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CommissionBatch'], meta: { name: 'CommissionBatch' } } /** * Find zero or one CommissionBatch that matches the filter. * @param {CommissionBatchFindUniqueArgs} args - Arguments to find a CommissionBatch * @example * // Get one CommissionBatch * const commissionBatch = await prisma.commissionBatch.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CommissionBatch that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CommissionBatchFindUniqueOrThrowArgs} args - Arguments to find a CommissionBatch * @example * // Get one CommissionBatch * const commissionBatch = await prisma.commissionBatch.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CommissionBatch 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 {CommissionBatchFindFirstArgs} args - Arguments to find a CommissionBatch * @example * // Get one CommissionBatch * const commissionBatch = await prisma.commissionBatch.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CommissionBatch 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 {CommissionBatchFindFirstOrThrowArgs} args - Arguments to find a CommissionBatch * @example * // Get one CommissionBatch * const commissionBatch = await prisma.commissionBatch.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CommissionBatches 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 {CommissionBatchFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CommissionBatches * const commissionBatches = await prisma.commissionBatch.findMany() * * // Get first 10 CommissionBatches * const commissionBatches = await prisma.commissionBatch.findMany({ take: 10 }) * * // Only select the `id` * const commissionBatchWithIdOnly = await prisma.commissionBatch.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CommissionBatch. * @param {CommissionBatchCreateArgs} args - Arguments to create a CommissionBatch. * @example * // Create one CommissionBatch * const CommissionBatch = await prisma.commissionBatch.create({ * data: { * // ... data to create a CommissionBatch * } * }) * */ create(args: SelectSubset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CommissionBatches. * @param {CommissionBatchCreateManyArgs} args - Arguments to create many CommissionBatches. * @example * // Create many CommissionBatches * const commissionBatch = await prisma.commissionBatch.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CommissionBatches and returns the data saved in the database. * @param {CommissionBatchCreateManyAndReturnArgs} args - Arguments to create many CommissionBatches. * @example * // Create many CommissionBatches * const commissionBatch = await prisma.commissionBatch.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CommissionBatches and only return the `id` * const commissionBatchWithIdOnly = await prisma.commissionBatch.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CommissionBatch. * @param {CommissionBatchDeleteArgs} args - Arguments to delete one CommissionBatch. * @example * // Delete one CommissionBatch * const CommissionBatch = await prisma.commissionBatch.delete({ * where: { * // ... filter to delete one CommissionBatch * } * }) * */ delete(args: SelectSubset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CommissionBatch. * @param {CommissionBatchUpdateArgs} args - Arguments to update one CommissionBatch. * @example * // Update one CommissionBatch * const commissionBatch = await prisma.commissionBatch.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CommissionBatches. * @param {CommissionBatchDeleteManyArgs} args - Arguments to filter CommissionBatches to delete. * @example * // Delete a few CommissionBatches * const { count } = await prisma.commissionBatch.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CommissionBatches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommissionBatchUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CommissionBatches * const commissionBatch = await prisma.commissionBatch.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CommissionBatches and returns the data updated in the database. * @param {CommissionBatchUpdateManyAndReturnArgs} args - Arguments to update many CommissionBatches. * @example * // Update many CommissionBatches * const commissionBatch = await prisma.commissionBatch.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CommissionBatches and only return the `id` * const commissionBatchWithIdOnly = await prisma.commissionBatch.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CommissionBatch. * @param {CommissionBatchUpsertArgs} args - Arguments to update or create a CommissionBatch. * @example * // Update or create a CommissionBatch * const commissionBatch = await prisma.commissionBatch.upsert({ * create: { * // ... data to create a CommissionBatch * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CommissionBatch we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CommissionBatches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommissionBatchCountArgs} args - Arguments to filter CommissionBatches to count. * @example * // Count the number of CommissionBatches * const count = await prisma.commissionBatch.count({ * where: { * // ... the filter for the CommissionBatches 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 CommissionBatch. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommissionBatchAggregateArgs} 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 CommissionBatch. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommissionBatchGroupByArgs} 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 CommissionBatchGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CommissionBatchGroupByArgs['orderBy'] } : { orderBy?: CommissionBatchGroupByArgs['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 ? GetCommissionBatchGroupByPayload : Prisma.PrismaPromise /** * Fields of the CommissionBatch model */ readonly fields: CommissionBatchFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CommissionBatch. * 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__CommissionBatchClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" npiProvider = {}>(args?: Subset>): Prisma__NpiProviderClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> items = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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 CommissionBatch model */ interface CommissionBatchFieldRefs { readonly id: FieldRef<"CommissionBatch", 'Int'> readonly npiProviderId: FieldRef<"CommissionBatch", 'Int'> readonly totalCollection: FieldRef<"CommissionBatch", 'Decimal'> readonly commissionAmount: FieldRef<"CommissionBatch", 'Decimal'> readonly notes: FieldRef<"CommissionBatch", 'String'> readonly createdAt: FieldRef<"CommissionBatch", 'DateTime'> } // Custom InputTypes /** * CommissionBatch findUnique */ export type CommissionBatchFindUniqueArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * Filter, which CommissionBatch to fetch. */ where: CommissionBatchWhereUniqueInput } /** * CommissionBatch findUniqueOrThrow */ export type CommissionBatchFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * Filter, which CommissionBatch to fetch. */ where: CommissionBatchWhereUniqueInput } /** * CommissionBatch findFirst */ export type CommissionBatchFindFirstArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * Filter, which CommissionBatch to fetch. */ where?: CommissionBatchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CommissionBatches to fetch. */ orderBy?: CommissionBatchOrderByWithRelationInput | CommissionBatchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CommissionBatches. */ cursor?: CommissionBatchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CommissionBatches from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CommissionBatches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CommissionBatches. */ distinct?: CommissionBatchScalarFieldEnum | CommissionBatchScalarFieldEnum[] } /** * CommissionBatch findFirstOrThrow */ export type CommissionBatchFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * Filter, which CommissionBatch to fetch. */ where?: CommissionBatchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CommissionBatches to fetch. */ orderBy?: CommissionBatchOrderByWithRelationInput | CommissionBatchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CommissionBatches. */ cursor?: CommissionBatchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CommissionBatches from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CommissionBatches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CommissionBatches. */ distinct?: CommissionBatchScalarFieldEnum | CommissionBatchScalarFieldEnum[] } /** * CommissionBatch findMany */ export type CommissionBatchFindManyArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * Filter, which CommissionBatches to fetch. */ where?: CommissionBatchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CommissionBatches to fetch. */ orderBy?: CommissionBatchOrderByWithRelationInput | CommissionBatchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CommissionBatches. */ cursor?: CommissionBatchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CommissionBatches from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CommissionBatches. */ skip?: number distinct?: CommissionBatchScalarFieldEnum | CommissionBatchScalarFieldEnum[] } /** * CommissionBatch create */ export type CommissionBatchCreateArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * The data needed to create a CommissionBatch. */ data: XOR } /** * CommissionBatch createMany */ export type CommissionBatchCreateManyArgs = { /** * The data used to create many CommissionBatches. */ data: CommissionBatchCreateManyInput | CommissionBatchCreateManyInput[] skipDuplicates?: boolean } /** * CommissionBatch createManyAndReturn */ export type CommissionBatchCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelectCreateManyAndReturn | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * The data used to create many CommissionBatches. */ data: CommissionBatchCreateManyInput | CommissionBatchCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchIncludeCreateManyAndReturn | null } /** * CommissionBatch update */ export type CommissionBatchUpdateArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * The data needed to update a CommissionBatch. */ data: XOR /** * Choose, which CommissionBatch to update. */ where: CommissionBatchWhereUniqueInput } /** * CommissionBatch updateMany */ export type CommissionBatchUpdateManyArgs = { /** * The data used to update CommissionBatches. */ data: XOR /** * Filter which CommissionBatches to update */ where?: CommissionBatchWhereInput /** * Limit how many CommissionBatches to update. */ limit?: number } /** * CommissionBatch updateManyAndReturn */ export type CommissionBatchUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelectUpdateManyAndReturn | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * The data used to update CommissionBatches. */ data: XOR /** * Filter which CommissionBatches to update */ where?: CommissionBatchWhereInput /** * Limit how many CommissionBatches to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchIncludeUpdateManyAndReturn | null } /** * CommissionBatch upsert */ export type CommissionBatchUpsertArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * The filter to search for the CommissionBatch to update in case it exists. */ where: CommissionBatchWhereUniqueInput /** * In case the CommissionBatch found by the `where` argument doesn't exist, create a new CommissionBatch with this data. */ create: XOR /** * In case the CommissionBatch was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CommissionBatch delete */ export type CommissionBatchDeleteArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null /** * Filter which CommissionBatch to delete. */ where: CommissionBatchWhereUniqueInput } /** * CommissionBatch deleteMany */ export type CommissionBatchDeleteManyArgs = { /** * Filter which CommissionBatches to delete */ where?: CommissionBatchWhereInput /** * Limit how many CommissionBatches to delete. */ limit?: number } /** * CommissionBatch.items */ export type CommissionBatch$itemsArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null where?: CommissionBatchItemWhereInput orderBy?: CommissionBatchItemOrderByWithRelationInput | CommissionBatchItemOrderByWithRelationInput[] cursor?: CommissionBatchItemWhereUniqueInput take?: number skip?: number distinct?: CommissionBatchItemScalarFieldEnum | CommissionBatchItemScalarFieldEnum[] } /** * CommissionBatch without action */ export type CommissionBatchDefaultArgs = { /** * Select specific fields to fetch from the CommissionBatch */ select?: CommissionBatchSelect | null /** * Omit specific fields from the CommissionBatch */ omit?: CommissionBatchOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchInclude | null } /** * Model CommissionBatchItem */ export type AggregateCommissionBatchItem = { _count: CommissionBatchItemCountAggregateOutputType | null _avg: CommissionBatchItemAvgAggregateOutputType | null _sum: CommissionBatchItemSumAggregateOutputType | null _min: CommissionBatchItemMinAggregateOutputType | null _max: CommissionBatchItemMaxAggregateOutputType | null } export type CommissionBatchItemAvgAggregateOutputType = { id: number | null commissionBatchId: number | null paymentId: number | null collectionAmount: Decimal | null } export type CommissionBatchItemSumAggregateOutputType = { id: number | null commissionBatchId: number | null paymentId: number | null collectionAmount: Decimal | null } export type CommissionBatchItemMinAggregateOutputType = { id: number | null commissionBatchId: number | null paymentId: number | null collectionAmount: Decimal | null } export type CommissionBatchItemMaxAggregateOutputType = { id: number | null commissionBatchId: number | null paymentId: number | null collectionAmount: Decimal | null } export type CommissionBatchItemCountAggregateOutputType = { id: number commissionBatchId: number paymentId: number collectionAmount: number _all: number } export type CommissionBatchItemAvgAggregateInputType = { id?: true commissionBatchId?: true paymentId?: true collectionAmount?: true } export type CommissionBatchItemSumAggregateInputType = { id?: true commissionBatchId?: true paymentId?: true collectionAmount?: true } export type CommissionBatchItemMinAggregateInputType = { id?: true commissionBatchId?: true paymentId?: true collectionAmount?: true } export type CommissionBatchItemMaxAggregateInputType = { id?: true commissionBatchId?: true paymentId?: true collectionAmount?: true } export type CommissionBatchItemCountAggregateInputType = { id?: true commissionBatchId?: true paymentId?: true collectionAmount?: true _all?: true } export type CommissionBatchItemAggregateArgs = { /** * Filter which CommissionBatchItem to aggregate. */ where?: CommissionBatchItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CommissionBatchItems to fetch. */ orderBy?: CommissionBatchItemOrderByWithRelationInput | CommissionBatchItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CommissionBatchItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CommissionBatchItems from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CommissionBatchItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned CommissionBatchItems **/ _count?: true | CommissionBatchItemCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CommissionBatchItemAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CommissionBatchItemSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CommissionBatchItemMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CommissionBatchItemMaxAggregateInputType } export type GetCommissionBatchItemAggregateType = { [P in keyof T & keyof AggregateCommissionBatchItem]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CommissionBatchItemGroupByArgs = { where?: CommissionBatchItemWhereInput orderBy?: CommissionBatchItemOrderByWithAggregationInput | CommissionBatchItemOrderByWithAggregationInput[] by: CommissionBatchItemScalarFieldEnum[] | CommissionBatchItemScalarFieldEnum having?: CommissionBatchItemScalarWhereWithAggregatesInput take?: number skip?: number _count?: CommissionBatchItemCountAggregateInputType | true _avg?: CommissionBatchItemAvgAggregateInputType _sum?: CommissionBatchItemSumAggregateInputType _min?: CommissionBatchItemMinAggregateInputType _max?: CommissionBatchItemMaxAggregateInputType } export type CommissionBatchItemGroupByOutputType = { id: number commissionBatchId: number paymentId: number collectionAmount: Decimal _count: CommissionBatchItemCountAggregateOutputType | null _avg: CommissionBatchItemAvgAggregateOutputType | null _sum: CommissionBatchItemSumAggregateOutputType | null _min: CommissionBatchItemMinAggregateOutputType | null _max: CommissionBatchItemMaxAggregateOutputType | null } type GetCommissionBatchItemGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CommissionBatchItemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CommissionBatchItemSelect = $Extensions.GetSelect<{ id?: boolean commissionBatchId?: boolean paymentId?: boolean collectionAmount?: boolean commissionBatch?: boolean | CommissionBatchDefaultArgs payment?: boolean | PaymentDefaultArgs }, ExtArgs["result"]["commissionBatchItem"]> export type CommissionBatchItemSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean commissionBatchId?: boolean paymentId?: boolean collectionAmount?: boolean commissionBatch?: boolean | CommissionBatchDefaultArgs payment?: boolean | PaymentDefaultArgs }, ExtArgs["result"]["commissionBatchItem"]> export type CommissionBatchItemSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean commissionBatchId?: boolean paymentId?: boolean collectionAmount?: boolean commissionBatch?: boolean | CommissionBatchDefaultArgs payment?: boolean | PaymentDefaultArgs }, ExtArgs["result"]["commissionBatchItem"]> export type CommissionBatchItemSelectScalar = { id?: boolean commissionBatchId?: boolean paymentId?: boolean collectionAmount?: boolean } export type CommissionBatchItemOmit = $Extensions.GetOmit<"id" | "commissionBatchId" | "paymentId" | "collectionAmount", ExtArgs["result"]["commissionBatchItem"]> export type CommissionBatchItemInclude = { commissionBatch?: boolean | CommissionBatchDefaultArgs payment?: boolean | PaymentDefaultArgs } export type CommissionBatchItemIncludeCreateManyAndReturn = { commissionBatch?: boolean | CommissionBatchDefaultArgs payment?: boolean | PaymentDefaultArgs } export type CommissionBatchItemIncludeUpdateManyAndReturn = { commissionBatch?: boolean | CommissionBatchDefaultArgs payment?: boolean | PaymentDefaultArgs } export type $CommissionBatchItemPayload = { name: "CommissionBatchItem" objects: { commissionBatch: Prisma.$CommissionBatchPayload payment: Prisma.$PaymentPayload } scalars: $Extensions.GetPayloadResult<{ id: number commissionBatchId: number paymentId: number collectionAmount: Prisma.Decimal }, ExtArgs["result"]["commissionBatchItem"]> composites: {} } type CommissionBatchItemGetPayload = $Result.GetResult type CommissionBatchItemCountArgs = Omit & { select?: CommissionBatchItemCountAggregateInputType | true } export interface CommissionBatchItemDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['CommissionBatchItem'], meta: { name: 'CommissionBatchItem' } } /** * Find zero or one CommissionBatchItem that matches the filter. * @param {CommissionBatchItemFindUniqueArgs} args - Arguments to find a CommissionBatchItem * @example * // Get one CommissionBatchItem * const commissionBatchItem = await prisma.commissionBatchItem.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CommissionBatchItemClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one CommissionBatchItem that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CommissionBatchItemFindUniqueOrThrowArgs} args - Arguments to find a CommissionBatchItem * @example * // Get one CommissionBatchItem * const commissionBatchItem = await prisma.commissionBatchItem.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CommissionBatchItemClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first CommissionBatchItem 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 {CommissionBatchItemFindFirstArgs} args - Arguments to find a CommissionBatchItem * @example * // Get one CommissionBatchItem * const commissionBatchItem = await prisma.commissionBatchItem.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CommissionBatchItemClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first CommissionBatchItem 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 {CommissionBatchItemFindFirstOrThrowArgs} args - Arguments to find a CommissionBatchItem * @example * // Get one CommissionBatchItem * const commissionBatchItem = await prisma.commissionBatchItem.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CommissionBatchItemClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more CommissionBatchItems 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 {CommissionBatchItemFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all CommissionBatchItems * const commissionBatchItems = await prisma.commissionBatchItem.findMany() * * // Get first 10 CommissionBatchItems * const commissionBatchItems = await prisma.commissionBatchItem.findMany({ take: 10 }) * * // Only select the `id` * const commissionBatchItemWithIdOnly = await prisma.commissionBatchItem.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a CommissionBatchItem. * @param {CommissionBatchItemCreateArgs} args - Arguments to create a CommissionBatchItem. * @example * // Create one CommissionBatchItem * const CommissionBatchItem = await prisma.commissionBatchItem.create({ * data: { * // ... data to create a CommissionBatchItem * } * }) * */ create(args: SelectSubset>): Prisma__CommissionBatchItemClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many CommissionBatchItems. * @param {CommissionBatchItemCreateManyArgs} args - Arguments to create many CommissionBatchItems. * @example * // Create many CommissionBatchItems * const commissionBatchItem = await prisma.commissionBatchItem.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many CommissionBatchItems and returns the data saved in the database. * @param {CommissionBatchItemCreateManyAndReturnArgs} args - Arguments to create many CommissionBatchItems. * @example * // Create many CommissionBatchItems * const commissionBatchItem = await prisma.commissionBatchItem.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many CommissionBatchItems and only return the `id` * const commissionBatchItemWithIdOnly = await prisma.commissionBatchItem.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a CommissionBatchItem. * @param {CommissionBatchItemDeleteArgs} args - Arguments to delete one CommissionBatchItem. * @example * // Delete one CommissionBatchItem * const CommissionBatchItem = await prisma.commissionBatchItem.delete({ * where: { * // ... filter to delete one CommissionBatchItem * } * }) * */ delete(args: SelectSubset>): Prisma__CommissionBatchItemClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one CommissionBatchItem. * @param {CommissionBatchItemUpdateArgs} args - Arguments to update one CommissionBatchItem. * @example * // Update one CommissionBatchItem * const commissionBatchItem = await prisma.commissionBatchItem.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CommissionBatchItemClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more CommissionBatchItems. * @param {CommissionBatchItemDeleteManyArgs} args - Arguments to filter CommissionBatchItems to delete. * @example * // Delete a few CommissionBatchItems * const { count } = await prisma.commissionBatchItem.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CommissionBatchItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommissionBatchItemUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many CommissionBatchItems * const commissionBatchItem = await prisma.commissionBatchItem.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more CommissionBatchItems and returns the data updated in the database. * @param {CommissionBatchItemUpdateManyAndReturnArgs} args - Arguments to update many CommissionBatchItems. * @example * // Update many CommissionBatchItems * const commissionBatchItem = await prisma.commissionBatchItem.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more CommissionBatchItems and only return the `id` * const commissionBatchItemWithIdOnly = await prisma.commissionBatchItem.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one CommissionBatchItem. * @param {CommissionBatchItemUpsertArgs} args - Arguments to update or create a CommissionBatchItem. * @example * // Update or create a CommissionBatchItem * const commissionBatchItem = await prisma.commissionBatchItem.upsert({ * create: { * // ... data to create a CommissionBatchItem * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the CommissionBatchItem we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CommissionBatchItemClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of CommissionBatchItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommissionBatchItemCountArgs} args - Arguments to filter CommissionBatchItems to count. * @example * // Count the number of CommissionBatchItems * const count = await prisma.commissionBatchItem.count({ * where: { * // ... the filter for the CommissionBatchItems 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 CommissionBatchItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommissionBatchItemAggregateArgs} 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 CommissionBatchItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CommissionBatchItemGroupByArgs} 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 CommissionBatchItemGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CommissionBatchItemGroupByArgs['orderBy'] } : { orderBy?: CommissionBatchItemGroupByArgs['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 ? GetCommissionBatchItemGroupByPayload : Prisma.PrismaPromise /** * Fields of the CommissionBatchItem model */ readonly fields: CommissionBatchItemFieldRefs; } /** * The delegate class that acts as a "Promise-like" for CommissionBatchItem. * 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__CommissionBatchItemClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" commissionBatch = {}>(args?: Subset>): Prisma__CommissionBatchClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> payment = {}>(args?: Subset>): Prisma__PaymentClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 CommissionBatchItem model */ interface CommissionBatchItemFieldRefs { readonly id: FieldRef<"CommissionBatchItem", 'Int'> readonly commissionBatchId: FieldRef<"CommissionBatchItem", 'Int'> readonly paymentId: FieldRef<"CommissionBatchItem", 'Int'> readonly collectionAmount: FieldRef<"CommissionBatchItem", 'Decimal'> } // Custom InputTypes /** * CommissionBatchItem findUnique */ export type CommissionBatchItemFindUniqueArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * Filter, which CommissionBatchItem to fetch. */ where: CommissionBatchItemWhereUniqueInput } /** * CommissionBatchItem findUniqueOrThrow */ export type CommissionBatchItemFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * Filter, which CommissionBatchItem to fetch. */ where: CommissionBatchItemWhereUniqueInput } /** * CommissionBatchItem findFirst */ export type CommissionBatchItemFindFirstArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * Filter, which CommissionBatchItem to fetch. */ where?: CommissionBatchItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CommissionBatchItems to fetch. */ orderBy?: CommissionBatchItemOrderByWithRelationInput | CommissionBatchItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CommissionBatchItems. */ cursor?: CommissionBatchItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CommissionBatchItems from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CommissionBatchItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CommissionBatchItems. */ distinct?: CommissionBatchItemScalarFieldEnum | CommissionBatchItemScalarFieldEnum[] } /** * CommissionBatchItem findFirstOrThrow */ export type CommissionBatchItemFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * Filter, which CommissionBatchItem to fetch. */ where?: CommissionBatchItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CommissionBatchItems to fetch. */ orderBy?: CommissionBatchItemOrderByWithRelationInput | CommissionBatchItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for CommissionBatchItems. */ cursor?: CommissionBatchItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CommissionBatchItems from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CommissionBatchItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of CommissionBatchItems. */ distinct?: CommissionBatchItemScalarFieldEnum | CommissionBatchItemScalarFieldEnum[] } /** * CommissionBatchItem findMany */ export type CommissionBatchItemFindManyArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * Filter, which CommissionBatchItems to fetch. */ where?: CommissionBatchItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of CommissionBatchItems to fetch. */ orderBy?: CommissionBatchItemOrderByWithRelationInput | CommissionBatchItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing CommissionBatchItems. */ cursor?: CommissionBatchItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` CommissionBatchItems from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` CommissionBatchItems. */ skip?: number distinct?: CommissionBatchItemScalarFieldEnum | CommissionBatchItemScalarFieldEnum[] } /** * CommissionBatchItem create */ export type CommissionBatchItemCreateArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * The data needed to create a CommissionBatchItem. */ data: XOR } /** * CommissionBatchItem createMany */ export type CommissionBatchItemCreateManyArgs = { /** * The data used to create many CommissionBatchItems. */ data: CommissionBatchItemCreateManyInput | CommissionBatchItemCreateManyInput[] skipDuplicates?: boolean } /** * CommissionBatchItem createManyAndReturn */ export type CommissionBatchItemCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelectCreateManyAndReturn | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * The data used to create many CommissionBatchItems. */ data: CommissionBatchItemCreateManyInput | CommissionBatchItemCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemIncludeCreateManyAndReturn | null } /** * CommissionBatchItem update */ export type CommissionBatchItemUpdateArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * The data needed to update a CommissionBatchItem. */ data: XOR /** * Choose, which CommissionBatchItem to update. */ where: CommissionBatchItemWhereUniqueInput } /** * CommissionBatchItem updateMany */ export type CommissionBatchItemUpdateManyArgs = { /** * The data used to update CommissionBatchItems. */ data: XOR /** * Filter which CommissionBatchItems to update */ where?: CommissionBatchItemWhereInput /** * Limit how many CommissionBatchItems to update. */ limit?: number } /** * CommissionBatchItem updateManyAndReturn */ export type CommissionBatchItemUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelectUpdateManyAndReturn | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * The data used to update CommissionBatchItems. */ data: XOR /** * Filter which CommissionBatchItems to update */ where?: CommissionBatchItemWhereInput /** * Limit how many CommissionBatchItems to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemIncludeUpdateManyAndReturn | null } /** * CommissionBatchItem upsert */ export type CommissionBatchItemUpsertArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * The filter to search for the CommissionBatchItem to update in case it exists. */ where: CommissionBatchItemWhereUniqueInput /** * In case the CommissionBatchItem found by the `where` argument doesn't exist, create a new CommissionBatchItem with this data. */ create: XOR /** * In case the CommissionBatchItem was found with the provided `where` argument, update it with this data. */ update: XOR } /** * CommissionBatchItem delete */ export type CommissionBatchItemDeleteArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null /** * Filter which CommissionBatchItem to delete. */ where: CommissionBatchItemWhereUniqueInput } /** * CommissionBatchItem deleteMany */ export type CommissionBatchItemDeleteManyArgs = { /** * Filter which CommissionBatchItems to delete */ where?: CommissionBatchItemWhereInput /** * Limit how many CommissionBatchItems to delete. */ limit?: number } /** * CommissionBatchItem without action */ export type CommissionBatchItemDefaultArgs = { /** * Select specific fields to fetch from the CommissionBatchItem */ select?: CommissionBatchItemSelect | null /** * Omit specific fields from the CommissionBatchItem */ omit?: CommissionBatchItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: CommissionBatchItemInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const UserScalarFieldEnum: { id: 'id', username: 'username', password: 'password', autoBackupEnabled: 'autoBackupEnabled', usbBackupEnabled: 'usbBackupEnabled' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const PatientScalarFieldEnum: { id: 'id', firstName: 'firstName', lastName: 'lastName', dateOfBirth: 'dateOfBirth', gender: 'gender', phone: 'phone', email: 'email', address: 'address', city: 'city', zipCode: 'zipCode', insuranceProvider: 'insuranceProvider', insuranceId: 'insuranceId', groupNumber: 'groupNumber', policyHolder: 'policyHolder', allergies: 'allergies', medicalConditions: 'medicalConditions', preferredLanguage: 'preferredLanguage', status: 'status', userId: 'userId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type PatientScalarFieldEnum = (typeof PatientScalarFieldEnum)[keyof typeof PatientScalarFieldEnum] export const AppointmentScalarFieldEnum: { id: 'id', patientId: 'patientId', userId: 'userId', staffId: 'staffId', title: 'title', date: 'date', startTime: 'startTime', endTime: 'endTime', type: 'type', typeLocked: 'typeLocked', notes: 'notes', procedureCodeNotes: 'procedureCodeNotes', status: 'status', movedByAi: 'movedByAi', createdAt: 'createdAt', eligibilityStatus: 'eligibilityStatus' }; export type AppointmentScalarFieldEnum = (typeof AppointmentScalarFieldEnum)[keyof typeof AppointmentScalarFieldEnum] export const AppointmentFileScalarFieldEnum: { id: 'id', appointmentId: 'appointmentId', filename: 'filename', mimeType: 'mimeType', filePath: 'filePath' }; export type AppointmentFileScalarFieldEnum = (typeof AppointmentFileScalarFieldEnum)[keyof typeof AppointmentFileScalarFieldEnum] export const StaffScalarFieldEnum: { id: 'id', userId: 'userId', name: 'name', email: 'email', role: 'role', phone: 'phone', createdAt: 'createdAt' }; export type StaffScalarFieldEnum = (typeof StaffScalarFieldEnum)[keyof typeof StaffScalarFieldEnum] export const NpiProviderScalarFieldEnum: { id: 'id', userId: 'userId', npiNumber: 'npiNumber', providerName: 'providerName', createdAt: 'createdAt' }; export type NpiProviderScalarFieldEnum = (typeof NpiProviderScalarFieldEnum)[keyof typeof NpiProviderScalarFieldEnum] export const AppointmentProcedureScalarFieldEnum: { id: 'id', appointmentId: 'appointmentId', patientId: 'patientId', npiProviderId: 'npiProviderId', procedureCode: 'procedureCode', procedureLabel: 'procedureLabel', fee: 'fee', category: 'category', toothNumber: 'toothNumber', toothSurface: 'toothSurface', oralCavityArea: 'oralCavityArea', source: 'source', comboKey: 'comboKey', createdAt: 'createdAt' }; export type AppointmentProcedureScalarFieldEnum = (typeof AppointmentProcedureScalarFieldEnum)[keyof typeof AppointmentProcedureScalarFieldEnum] export const ClaimScalarFieldEnum: { id: 'id', patientId: 'patientId', appointmentId: 'appointmentId', userId: 'userId', staffId: 'staffId', patientName: 'patientName', memberId: 'memberId', dateOfBirth: 'dateOfBirth', remarks: 'remarks', missingTeethStatus: 'missingTeethStatus', missingTeeth: 'missingTeeth', serviceDate: 'serviceDate', insuranceProvider: 'insuranceProvider', createdAt: 'createdAt', updatedAt: 'updatedAt', status: 'status', claimNumber: 'claimNumber', preAuthNumber: 'preAuthNumber', npiProviderId: 'npiProviderId' }; export type ClaimScalarFieldEnum = (typeof ClaimScalarFieldEnum)[keyof typeof ClaimScalarFieldEnum] export const ServiceLineScalarFieldEnum: { id: 'id', claimId: 'claimId', paymentId: 'paymentId', procedureCode: 'procedureCode', procedureDate: 'procedureDate', quad: 'quad', arch: 'arch', toothNumber: 'toothNumber', toothSurface: 'toothSurface', icn: 'icn', paidCode: 'paidCode', allowedAmount: 'allowedAmount', totalBilled: 'totalBilled', totalPaid: 'totalPaid', totalAdjusted: 'totalAdjusted', totalDue: 'totalDue', status: 'status' }; export type ServiceLineScalarFieldEnum = (typeof ServiceLineScalarFieldEnum)[keyof typeof ServiceLineScalarFieldEnum] export const ClaimFileScalarFieldEnum: { id: 'id', claimId: 'claimId', filename: 'filename', mimeType: 'mimeType', filePath: 'filePath' }; export type ClaimFileScalarFieldEnum = (typeof ClaimFileScalarFieldEnum)[keyof typeof ClaimFileScalarFieldEnum] export const InsuranceCredentialScalarFieldEnum: { id: 'id', userId: 'userId', siteKey: 'siteKey', username: 'username', password: 'password' }; export type InsuranceCredentialScalarFieldEnum = (typeof InsuranceCredentialScalarFieldEnum)[keyof typeof InsuranceCredentialScalarFieldEnum] export const ShoppingVendorScalarFieldEnum: { id: 'id', userId: 'userId', vendorName: 'vendorName', websiteUrl: 'websiteUrl', loginUsername: 'loginUsername', loginPassword: 'loginPassword' }; export type ShoppingVendorScalarFieldEnum = (typeof ShoppingVendorScalarFieldEnum)[keyof typeof ShoppingVendorScalarFieldEnum] export const PdfGroupScalarFieldEnum: { id: 'id', title: 'title', titleKey: 'titleKey', createdAt: 'createdAt', patientId: 'patientId' }; export type PdfGroupScalarFieldEnum = (typeof PdfGroupScalarFieldEnum)[keyof typeof PdfGroupScalarFieldEnum] export const PdfFileScalarFieldEnum: { id: 'id', filename: 'filename', pdfData: 'pdfData', uploadedAt: 'uploadedAt', groupId: 'groupId' }; export type PdfFileScalarFieldEnum = (typeof PdfFileScalarFieldEnum)[keyof typeof PdfFileScalarFieldEnum] export const PaymentScalarFieldEnum: { id: 'id', claimId: 'claimId', patientId: 'patientId', userId: 'userId', updatedById: 'updatedById', npiProviderId: 'npiProviderId', totalBilled: 'totalBilled', totalPaid: 'totalPaid', totalAdjusted: 'totalAdjusted', totalDue: 'totalDue', mhPaidAmount: 'mhPaidAmount', copayment: 'copayment', adjustment: 'adjustment', status: 'status', notes: 'notes', icn: 'icn', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type PaymentScalarFieldEnum = (typeof PaymentScalarFieldEnum)[keyof typeof PaymentScalarFieldEnum] export const ServiceLineTransactionScalarFieldEnum: { id: 'id', paymentId: 'paymentId', serviceLineId: 'serviceLineId', transactionId: 'transactionId', paidAmount: 'paidAmount', adjustedAmount: 'adjustedAmount', method: 'method', receivedDate: 'receivedDate', payerName: 'payerName', notes: 'notes', createdAt: 'createdAt' }; export type ServiceLineTransactionScalarFieldEnum = (typeof ServiceLineTransactionScalarFieldEnum)[keyof typeof ServiceLineTransactionScalarFieldEnum] export const DatabaseBackupScalarFieldEnum: { id: 'id', userId: 'userId', createdAt: 'createdAt' }; export type DatabaseBackupScalarFieldEnum = (typeof DatabaseBackupScalarFieldEnum)[keyof typeof DatabaseBackupScalarFieldEnum] export const BackupDestinationScalarFieldEnum: { id: 'id', userId: 'userId', path: 'path', isActive: 'isActive', createdAt: 'createdAt' }; export type BackupDestinationScalarFieldEnum = (typeof BackupDestinationScalarFieldEnum)[keyof typeof BackupDestinationScalarFieldEnum] export const NotificationScalarFieldEnum: { id: 'id', userId: 'userId', type: 'type', message: 'message', createdAt: 'createdAt', read: 'read' }; export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum] export const CronJobLogScalarFieldEnum: { id: 'id', jobName: 'jobName', status: 'status', startedAt: 'startedAt', completedAt: 'completedAt', durationMs: 'durationMs', errorMessage: 'errorMessage' }; export type CronJobLogScalarFieldEnum = (typeof CronJobLogScalarFieldEnum)[keyof typeof CronJobLogScalarFieldEnum] export const CloudFolderScalarFieldEnum: { id: 'id', userId: 'userId', name: 'name', parentId: 'parentId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CloudFolderScalarFieldEnum = (typeof CloudFolderScalarFieldEnum)[keyof typeof CloudFolderScalarFieldEnum] export const CloudFileScalarFieldEnum: { id: 'id', userId: 'userId', name: 'name', mimeType: 'mimeType', fileSize: 'fileSize', folderId: 'folderId', isComplete: 'isComplete', totalChunks: 'totalChunks', diskPath: 'diskPath', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CloudFileScalarFieldEnum = (typeof CloudFileScalarFieldEnum)[keyof typeof CloudFileScalarFieldEnum] export const CloudFileChunkScalarFieldEnum: { id: 'id', fileId: 'fileId', seq: 'seq', data: 'data', createdAt: 'createdAt' }; export type CloudFileChunkScalarFieldEnum = (typeof CloudFileChunkScalarFieldEnum)[keyof typeof CloudFileChunkScalarFieldEnum] export const CommunicationScalarFieldEnum: { id: 'id', patientId: 'patientId', userId: 'userId', channel: 'channel', direction: 'direction', status: 'status', body: 'body', callDuration: 'callDuration', twilioSid: 'twilioSid', createdAt: 'createdAt' }; export type CommunicationScalarFieldEnum = (typeof CommunicationScalarFieldEnum)[keyof typeof CommunicationScalarFieldEnum] export const PatientDocumentScalarFieldEnum: { id: 'id', patientId: 'patientId', filename: 'filename', originalName: 'originalName', mimeType: 'mimeType', fileSize: 'fileSize', filePath: 'filePath', uploadedAt: 'uploadedAt', updatedAt: 'updatedAt' }; export type PatientDocumentScalarFieldEnum = (typeof PatientDocumentScalarFieldEnum)[keyof typeof PatientDocumentScalarFieldEnum] export const TwilioSettingsScalarFieldEnum: { id: 'id', userId: 'userId', accountSid: 'accountSid', authToken: 'authToken', phoneNumber: 'phoneNumber', greetingMessage: 'greetingMessage', templates: 'templates' }; export type TwilioSettingsScalarFieldEnum = (typeof TwilioSettingsScalarFieldEnum)[keyof typeof TwilioSettingsScalarFieldEnum] export const AiSettingsScalarFieldEnum: { id: 'id', userId: 'userId', apiKey: 'apiKey', afterHoursEnabled: 'afterHoursEnabled', openPhoneReply: 'openPhoneReply' }; export type AiSettingsScalarFieldEnum = (typeof AiSettingsScalarFieldEnum)[keyof typeof AiSettingsScalarFieldEnum] export const OfficeHoursScalarFieldEnum: { id: 'id', userId: 'userId', data: 'data' }; export type OfficeHoursScalarFieldEnum = (typeof OfficeHoursScalarFieldEnum)[keyof typeof OfficeHoursScalarFieldEnum] export const OfficeContactScalarFieldEnum: { id: 'id', userId: 'userId', officeName: 'officeName', receptionistName: 'receptionistName', dentistName: 'dentistName', phoneNumber: 'phoneNumber', email: 'email', fax: 'fax', streetAddress: 'streetAddress', city: 'city', state: 'state', zipCode: 'zipCode' }; export type OfficeContactScalarFieldEnum = (typeof OfficeContactScalarFieldEnum)[keyof typeof OfficeContactScalarFieldEnum] export const InsuranceContactScalarFieldEnum: { id: 'id', userId: 'userId', name: 'name', phoneNumber: 'phoneNumber', createdAt: 'createdAt' }; export type InsuranceContactScalarFieldEnum = (typeof InsuranceContactScalarFieldEnum)[keyof typeof InsuranceContactScalarFieldEnum] export const ProcedureTimeslotScalarFieldEnum: { id: 'id', userId: 'userId', data: 'data' }; export type ProcedureTimeslotScalarFieldEnum = (typeof ProcedureTimeslotScalarFieldEnum)[keyof typeof ProcedureTimeslotScalarFieldEnum] export const PatientConversationScalarFieldEnum: { id: 'id', patientId: 'patientId', userId: 'userId', stage: 'stage', aiHandoff: 'aiHandoff', updatedAt: 'updatedAt' }; export type PatientConversationScalarFieldEnum = (typeof PatientConversationScalarFieldEnum)[keyof typeof PatientConversationScalarFieldEnum] export const CommissionBatchScalarFieldEnum: { id: 'id', npiProviderId: 'npiProviderId', totalCollection: 'totalCollection', commissionAmount: 'commissionAmount', notes: 'notes', createdAt: 'createdAt' }; export type CommissionBatchScalarFieldEnum = (typeof CommissionBatchScalarFieldEnum)[keyof typeof CommissionBatchScalarFieldEnum] export const CommissionBatchItemScalarFieldEnum: { id: 'id', commissionBatchId: 'commissionBatchId', paymentId: 'paymentId', collectionAmount: 'collectionAmount' }; export type CommissionBatchItemScalarFieldEnum = (typeof CommissionBatchItemScalarFieldEnum)[keyof typeof CommissionBatchItemScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const NullableJsonNullValueInput: { DbNull: typeof DbNull, JsonNull: typeof JsonNull }; export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] export const JsonNullValueInput: { JsonNull: typeof JsonNull }; export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] /** * Field references */ /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'Int[]' */ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'PatientStatus' */ export type EnumPatientStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PatientStatus'> /** * Reference to a field of type 'PatientStatus[]' */ export type ListEnumPatientStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PatientStatus[]'> /** * Reference to a field of type 'Decimal' */ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> /** * Reference to a field of type 'Decimal[]' */ export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'> /** * Reference to a field of type 'ProcedureSource' */ export type EnumProcedureSourceFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProcedureSource'> /** * Reference to a field of type 'ProcedureSource[]' */ export type ListEnumProcedureSourceFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProcedureSource[]'> /** * Reference to a field of type 'MissingTeethStatus' */ export type EnumMissingTeethStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MissingTeethStatus'> /** * Reference to a field of type 'MissingTeethStatus[]' */ export type ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MissingTeethStatus[]'> /** * Reference to a field of type 'Json' */ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> /** * Reference to a field of type 'QueryMode' */ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> /** * Reference to a field of type 'ClaimStatus' */ export type EnumClaimStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ClaimStatus'> /** * Reference to a field of type 'ClaimStatus[]' */ export type ListEnumClaimStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ClaimStatus[]'> /** * Reference to a field of type 'ServiceLineStatus' */ export type EnumServiceLineStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ServiceLineStatus'> /** * Reference to a field of type 'ServiceLineStatus[]' */ export type ListEnumServiceLineStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ServiceLineStatus[]'> /** * Reference to a field of type 'PdfTitleKey' */ export type EnumPdfTitleKeyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PdfTitleKey'> /** * Reference to a field of type 'PdfTitleKey[]' */ export type ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PdfTitleKey[]'> /** * Reference to a field of type 'Bytes' */ export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'> /** * Reference to a field of type 'Bytes[]' */ export type ListBytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes[]'> /** * Reference to a field of type 'PaymentStatus' */ export type EnumPaymentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentStatus'> /** * Reference to a field of type 'PaymentStatus[]' */ export type ListEnumPaymentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentStatus[]'> /** * Reference to a field of type 'PaymentMethod' */ export type EnumPaymentMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethod'> /** * Reference to a field of type 'PaymentMethod[]' */ export type ListEnumPaymentMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethod[]'> /** * Reference to a field of type 'NotificationTypes' */ export type EnumNotificationTypesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationTypes'> /** * Reference to a field of type 'NotificationTypes[]' */ export type ListEnumNotificationTypesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationTypes[]'> /** * Reference to a field of type 'BigInt' */ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> /** * Reference to a field of type 'BigInt[]' */ export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'> /** * Reference to a field of type 'CommunicationChannel' */ export type EnumCommunicationChannelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationChannel'> /** * Reference to a field of type 'CommunicationChannel[]' */ export type ListEnumCommunicationChannelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationChannel[]'> /** * Reference to a field of type 'CommunicationDirection' */ export type EnumCommunicationDirectionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationDirection'> /** * Reference to a field of type 'CommunicationDirection[]' */ export type ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationDirection[]'> /** * Reference to a field of type 'CommunicationStatus' */ export type EnumCommunicationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationStatus'> /** * Reference to a field of type 'CommunicationStatus[]' */ export type ListEnumCommunicationStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommunicationStatus[]'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * Deep Input Types */ export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: IntFilter<"User"> | number username?: StringFilter<"User"> | string password?: StringFilter<"User"> | string autoBackupEnabled?: BoolFilter<"User"> | boolean usbBackupEnabled?: BoolFilter<"User"> | boolean patients?: PatientListRelationFilter appointments?: AppointmentListRelationFilter staff?: StaffListRelationFilter npiProviders?: NpiProviderListRelationFilter claims?: ClaimListRelationFilter insuranceCredentials?: InsuranceCredentialListRelationFilter shoppingVendors?: ShoppingVendorListRelationFilter updatedPayments?: PaymentListRelationFilter backups?: DatabaseBackupListRelationFilter backupDestinations?: BackupDestinationListRelationFilter notifications?: NotificationListRelationFilter cloudFolders?: CloudFolderListRelationFilter cloudFiles?: CloudFileListRelationFilter communications?: CommunicationListRelationFilter twilioSettings?: XOR | null aiSettings?: XOR | null officeHours?: XOR | null officeContact?: XOR | null procedureTimeslot?: XOR | null insuranceContacts?: InsuranceContactListRelationFilter patientConversations?: PatientConversationListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder username?: SortOrder password?: SortOrder autoBackupEnabled?: SortOrder usbBackupEnabled?: SortOrder patients?: PatientOrderByRelationAggregateInput appointments?: AppointmentOrderByRelationAggregateInput staff?: StaffOrderByRelationAggregateInput npiProviders?: NpiProviderOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput insuranceCredentials?: InsuranceCredentialOrderByRelationAggregateInput shoppingVendors?: ShoppingVendorOrderByRelationAggregateInput updatedPayments?: PaymentOrderByRelationAggregateInput backups?: DatabaseBackupOrderByRelationAggregateInput backupDestinations?: BackupDestinationOrderByRelationAggregateInput notifications?: NotificationOrderByRelationAggregateInput cloudFolders?: CloudFolderOrderByRelationAggregateInput cloudFiles?: CloudFileOrderByRelationAggregateInput communications?: CommunicationOrderByRelationAggregateInput twilioSettings?: TwilioSettingsOrderByWithRelationInput aiSettings?: AiSettingsOrderByWithRelationInput officeHours?: OfficeHoursOrderByWithRelationInput officeContact?: OfficeContactOrderByWithRelationInput procedureTimeslot?: ProcedureTimeslotOrderByWithRelationInput insuranceContacts?: InsuranceContactOrderByRelationAggregateInput patientConversations?: PatientConversationOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: number username?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] password?: StringFilter<"User"> | string autoBackupEnabled?: BoolFilter<"User"> | boolean usbBackupEnabled?: BoolFilter<"User"> | boolean patients?: PatientListRelationFilter appointments?: AppointmentListRelationFilter staff?: StaffListRelationFilter npiProviders?: NpiProviderListRelationFilter claims?: ClaimListRelationFilter insuranceCredentials?: InsuranceCredentialListRelationFilter shoppingVendors?: ShoppingVendorListRelationFilter updatedPayments?: PaymentListRelationFilter backups?: DatabaseBackupListRelationFilter backupDestinations?: BackupDestinationListRelationFilter notifications?: NotificationListRelationFilter cloudFolders?: CloudFolderListRelationFilter cloudFiles?: CloudFileListRelationFilter communications?: CommunicationListRelationFilter twilioSettings?: XOR | null aiSettings?: XOR | null officeHours?: XOR | null officeContact?: XOR | null procedureTimeslot?: XOR | null insuranceContacts?: InsuranceContactListRelationFilter patientConversations?: PatientConversationListRelationFilter }, "id" | "username"> export type UserOrderByWithAggregationInput = { id?: SortOrder username?: SortOrder password?: SortOrder autoBackupEnabled?: SortOrder usbBackupEnabled?: 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 username?: StringWithAggregatesFilter<"User"> | string password?: StringWithAggregatesFilter<"User"> | string autoBackupEnabled?: BoolWithAggregatesFilter<"User"> | boolean usbBackupEnabled?: BoolWithAggregatesFilter<"User"> | boolean } export type PatientWhereInput = { AND?: PatientWhereInput | PatientWhereInput[] OR?: PatientWhereInput[] NOT?: PatientWhereInput | PatientWhereInput[] id?: IntFilter<"Patient"> | number firstName?: StringFilter<"Patient"> | string lastName?: StringFilter<"Patient"> | string dateOfBirth?: DateTimeNullableFilter<"Patient"> | Date | string | null gender?: StringFilter<"Patient"> | string phone?: StringFilter<"Patient"> | string email?: StringNullableFilter<"Patient"> | string | null address?: StringNullableFilter<"Patient"> | string | null city?: StringNullableFilter<"Patient"> | string | null zipCode?: StringNullableFilter<"Patient"> | string | null insuranceProvider?: StringNullableFilter<"Patient"> | string | null insuranceId?: StringNullableFilter<"Patient"> | string | null groupNumber?: StringNullableFilter<"Patient"> | string | null policyHolder?: StringNullableFilter<"Patient"> | string | null allergies?: StringNullableFilter<"Patient"> | string | null medicalConditions?: StringNullableFilter<"Patient"> | string | null preferredLanguage?: StringNullableFilter<"Patient"> | string | null status?: EnumPatientStatusFilter<"Patient"> | $Enums.PatientStatus userId?: IntFilter<"Patient"> | number createdAt?: DateTimeFilter<"Patient"> | Date | string updatedAt?: DateTimeFilter<"Patient"> | Date | string user?: XOR appointments?: AppointmentListRelationFilter procedures?: AppointmentProcedureListRelationFilter claims?: ClaimListRelationFilter groups?: PdfGroupListRelationFilter payment?: PaymentListRelationFilter communications?: CommunicationListRelationFilter documents?: PatientDocumentListRelationFilter conversation?: XOR | null } export type PatientOrderByWithRelationInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrderInput | SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrderInput | SortOrder address?: SortOrderInput | SortOrder city?: SortOrderInput | SortOrder zipCode?: SortOrderInput | SortOrder insuranceProvider?: SortOrderInput | SortOrder insuranceId?: SortOrderInput | SortOrder groupNumber?: SortOrderInput | SortOrder policyHolder?: SortOrderInput | SortOrder allergies?: SortOrderInput | SortOrder medicalConditions?: SortOrderInput | SortOrder preferredLanguage?: SortOrderInput | SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput appointments?: AppointmentOrderByRelationAggregateInput procedures?: AppointmentProcedureOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput groups?: PdfGroupOrderByRelationAggregateInput payment?: PaymentOrderByRelationAggregateInput communications?: CommunicationOrderByRelationAggregateInput documents?: PatientDocumentOrderByRelationAggregateInput conversation?: PatientConversationOrderByWithRelationInput } export type PatientWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PatientWhereInput | PatientWhereInput[] OR?: PatientWhereInput[] NOT?: PatientWhereInput | PatientWhereInput[] firstName?: StringFilter<"Patient"> | string lastName?: StringFilter<"Patient"> | string dateOfBirth?: DateTimeNullableFilter<"Patient"> | Date | string | null gender?: StringFilter<"Patient"> | string phone?: StringFilter<"Patient"> | string email?: StringNullableFilter<"Patient"> | string | null address?: StringNullableFilter<"Patient"> | string | null city?: StringNullableFilter<"Patient"> | string | null zipCode?: StringNullableFilter<"Patient"> | string | null insuranceProvider?: StringNullableFilter<"Patient"> | string | null insuranceId?: StringNullableFilter<"Patient"> | string | null groupNumber?: StringNullableFilter<"Patient"> | string | null policyHolder?: StringNullableFilter<"Patient"> | string | null allergies?: StringNullableFilter<"Patient"> | string | null medicalConditions?: StringNullableFilter<"Patient"> | string | null preferredLanguage?: StringNullableFilter<"Patient"> | string | null status?: EnumPatientStatusFilter<"Patient"> | $Enums.PatientStatus userId?: IntFilter<"Patient"> | number createdAt?: DateTimeFilter<"Patient"> | Date | string updatedAt?: DateTimeFilter<"Patient"> | Date | string user?: XOR appointments?: AppointmentListRelationFilter procedures?: AppointmentProcedureListRelationFilter claims?: ClaimListRelationFilter groups?: PdfGroupListRelationFilter payment?: PaymentListRelationFilter communications?: CommunicationListRelationFilter documents?: PatientDocumentListRelationFilter conversation?: XOR | null }, "id"> export type PatientOrderByWithAggregationInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrderInput | SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrderInput | SortOrder address?: SortOrderInput | SortOrder city?: SortOrderInput | SortOrder zipCode?: SortOrderInput | SortOrder insuranceProvider?: SortOrderInput | SortOrder insuranceId?: SortOrderInput | SortOrder groupNumber?: SortOrderInput | SortOrder policyHolder?: SortOrderInput | SortOrder allergies?: SortOrderInput | SortOrder medicalConditions?: SortOrderInput | SortOrder preferredLanguage?: SortOrderInput | SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: PatientCountOrderByAggregateInput _avg?: PatientAvgOrderByAggregateInput _max?: PatientMaxOrderByAggregateInput _min?: PatientMinOrderByAggregateInput _sum?: PatientSumOrderByAggregateInput } export type PatientScalarWhereWithAggregatesInput = { AND?: PatientScalarWhereWithAggregatesInput | PatientScalarWhereWithAggregatesInput[] OR?: PatientScalarWhereWithAggregatesInput[] NOT?: PatientScalarWhereWithAggregatesInput | PatientScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Patient"> | number firstName?: StringWithAggregatesFilter<"Patient"> | string lastName?: StringWithAggregatesFilter<"Patient"> | string dateOfBirth?: DateTimeNullableWithAggregatesFilter<"Patient"> | Date | string | null gender?: StringWithAggregatesFilter<"Patient"> | string phone?: StringWithAggregatesFilter<"Patient"> | string email?: StringNullableWithAggregatesFilter<"Patient"> | string | null address?: StringNullableWithAggregatesFilter<"Patient"> | string | null city?: StringNullableWithAggregatesFilter<"Patient"> | string | null zipCode?: StringNullableWithAggregatesFilter<"Patient"> | string | null insuranceProvider?: StringNullableWithAggregatesFilter<"Patient"> | string | null insuranceId?: StringNullableWithAggregatesFilter<"Patient"> | string | null groupNumber?: StringNullableWithAggregatesFilter<"Patient"> | string | null policyHolder?: StringNullableWithAggregatesFilter<"Patient"> | string | null allergies?: StringNullableWithAggregatesFilter<"Patient"> | string | null medicalConditions?: StringNullableWithAggregatesFilter<"Patient"> | string | null preferredLanguage?: StringNullableWithAggregatesFilter<"Patient"> | string | null status?: EnumPatientStatusWithAggregatesFilter<"Patient"> | $Enums.PatientStatus userId?: IntWithAggregatesFilter<"Patient"> | number createdAt?: DateTimeWithAggregatesFilter<"Patient"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Patient"> | Date | string } export type AppointmentWhereInput = { AND?: AppointmentWhereInput | AppointmentWhereInput[] OR?: AppointmentWhereInput[] NOT?: AppointmentWhereInput | AppointmentWhereInput[] id?: IntFilter<"Appointment"> | number patientId?: IntFilter<"Appointment"> | number userId?: IntFilter<"Appointment"> | number staffId?: IntFilter<"Appointment"> | number title?: StringFilter<"Appointment"> | string date?: DateTimeFilter<"Appointment"> | Date | string startTime?: StringFilter<"Appointment"> | string endTime?: StringFilter<"Appointment"> | string type?: StringFilter<"Appointment"> | string typeLocked?: BoolFilter<"Appointment"> | boolean notes?: StringNullableFilter<"Appointment"> | string | null procedureCodeNotes?: StringNullableFilter<"Appointment"> | string | null status?: StringFilter<"Appointment"> | string movedByAi?: BoolFilter<"Appointment"> | boolean createdAt?: DateTimeFilter<"Appointment"> | Date | string eligibilityStatus?: EnumPatientStatusFilter<"Appointment"> | $Enums.PatientStatus patient?: XOR user?: XOR staff?: XOR | null procedures?: AppointmentProcedureListRelationFilter claims?: ClaimListRelationFilter files?: AppointmentFileListRelationFilter } export type AppointmentOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder typeLocked?: SortOrder notes?: SortOrderInput | SortOrder procedureCodeNotes?: SortOrderInput | SortOrder status?: SortOrder movedByAi?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder patient?: PatientOrderByWithRelationInput user?: UserOrderByWithRelationInput staff?: StaffOrderByWithRelationInput procedures?: AppointmentProcedureOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput files?: AppointmentFileOrderByRelationAggregateInput } export type AppointmentWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: AppointmentWhereInput | AppointmentWhereInput[] OR?: AppointmentWhereInput[] NOT?: AppointmentWhereInput | AppointmentWhereInput[] patientId?: IntFilter<"Appointment"> | number userId?: IntFilter<"Appointment"> | number staffId?: IntFilter<"Appointment"> | number title?: StringFilter<"Appointment"> | string date?: DateTimeFilter<"Appointment"> | Date | string startTime?: StringFilter<"Appointment"> | string endTime?: StringFilter<"Appointment"> | string type?: StringFilter<"Appointment"> | string typeLocked?: BoolFilter<"Appointment"> | boolean notes?: StringNullableFilter<"Appointment"> | string | null procedureCodeNotes?: StringNullableFilter<"Appointment"> | string | null status?: StringFilter<"Appointment"> | string movedByAi?: BoolFilter<"Appointment"> | boolean createdAt?: DateTimeFilter<"Appointment"> | Date | string eligibilityStatus?: EnumPatientStatusFilter<"Appointment"> | $Enums.PatientStatus patient?: XOR user?: XOR staff?: XOR | null procedures?: AppointmentProcedureListRelationFilter claims?: ClaimListRelationFilter files?: AppointmentFileListRelationFilter }, "id"> export type AppointmentOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder typeLocked?: SortOrder notes?: SortOrderInput | SortOrder procedureCodeNotes?: SortOrderInput | SortOrder status?: SortOrder movedByAi?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder _count?: AppointmentCountOrderByAggregateInput _avg?: AppointmentAvgOrderByAggregateInput _max?: AppointmentMaxOrderByAggregateInput _min?: AppointmentMinOrderByAggregateInput _sum?: AppointmentSumOrderByAggregateInput } export type AppointmentScalarWhereWithAggregatesInput = { AND?: AppointmentScalarWhereWithAggregatesInput | AppointmentScalarWhereWithAggregatesInput[] OR?: AppointmentScalarWhereWithAggregatesInput[] NOT?: AppointmentScalarWhereWithAggregatesInput | AppointmentScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Appointment"> | number patientId?: IntWithAggregatesFilter<"Appointment"> | number userId?: IntWithAggregatesFilter<"Appointment"> | number staffId?: IntWithAggregatesFilter<"Appointment"> | number title?: StringWithAggregatesFilter<"Appointment"> | string date?: DateTimeWithAggregatesFilter<"Appointment"> | Date | string startTime?: StringWithAggregatesFilter<"Appointment"> | string endTime?: StringWithAggregatesFilter<"Appointment"> | string type?: StringWithAggregatesFilter<"Appointment"> | string typeLocked?: BoolWithAggregatesFilter<"Appointment"> | boolean notes?: StringNullableWithAggregatesFilter<"Appointment"> | string | null procedureCodeNotes?: StringNullableWithAggregatesFilter<"Appointment"> | string | null status?: StringWithAggregatesFilter<"Appointment"> | string movedByAi?: BoolWithAggregatesFilter<"Appointment"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Appointment"> | Date | string eligibilityStatus?: EnumPatientStatusWithAggregatesFilter<"Appointment"> | $Enums.PatientStatus } export type AppointmentFileWhereInput = { AND?: AppointmentFileWhereInput | AppointmentFileWhereInput[] OR?: AppointmentFileWhereInput[] NOT?: AppointmentFileWhereInput | AppointmentFileWhereInput[] id?: IntFilter<"AppointmentFile"> | number appointmentId?: IntFilter<"AppointmentFile"> | number filename?: StringFilter<"AppointmentFile"> | string mimeType?: StringNullableFilter<"AppointmentFile"> | string | null filePath?: StringNullableFilter<"AppointmentFile"> | string | null appointment?: XOR } export type AppointmentFileOrderByWithRelationInput = { id?: SortOrder appointmentId?: SortOrder filename?: SortOrder mimeType?: SortOrderInput | SortOrder filePath?: SortOrderInput | SortOrder appointment?: AppointmentOrderByWithRelationInput } export type AppointmentFileWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: AppointmentFileWhereInput | AppointmentFileWhereInput[] OR?: AppointmentFileWhereInput[] NOT?: AppointmentFileWhereInput | AppointmentFileWhereInput[] appointmentId?: IntFilter<"AppointmentFile"> | number filename?: StringFilter<"AppointmentFile"> | string mimeType?: StringNullableFilter<"AppointmentFile"> | string | null filePath?: StringNullableFilter<"AppointmentFile"> | string | null appointment?: XOR }, "id"> export type AppointmentFileOrderByWithAggregationInput = { id?: SortOrder appointmentId?: SortOrder filename?: SortOrder mimeType?: SortOrderInput | SortOrder filePath?: SortOrderInput | SortOrder _count?: AppointmentFileCountOrderByAggregateInput _avg?: AppointmentFileAvgOrderByAggregateInput _max?: AppointmentFileMaxOrderByAggregateInput _min?: AppointmentFileMinOrderByAggregateInput _sum?: AppointmentFileSumOrderByAggregateInput } export type AppointmentFileScalarWhereWithAggregatesInput = { AND?: AppointmentFileScalarWhereWithAggregatesInput | AppointmentFileScalarWhereWithAggregatesInput[] OR?: AppointmentFileScalarWhereWithAggregatesInput[] NOT?: AppointmentFileScalarWhereWithAggregatesInput | AppointmentFileScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"AppointmentFile"> | number appointmentId?: IntWithAggregatesFilter<"AppointmentFile"> | number filename?: StringWithAggregatesFilter<"AppointmentFile"> | string mimeType?: StringNullableWithAggregatesFilter<"AppointmentFile"> | string | null filePath?: StringNullableWithAggregatesFilter<"AppointmentFile"> | string | null } export type StaffWhereInput = { AND?: StaffWhereInput | StaffWhereInput[] OR?: StaffWhereInput[] NOT?: StaffWhereInput | StaffWhereInput[] id?: IntFilter<"Staff"> | number userId?: IntFilter<"Staff"> | number name?: StringFilter<"Staff"> | string email?: StringNullableFilter<"Staff"> | string | null role?: StringFilter<"Staff"> | string phone?: StringNullableFilter<"Staff"> | string | null createdAt?: DateTimeFilter<"Staff"> | Date | string user?: XOR | null appointments?: AppointmentListRelationFilter claims?: ClaimListRelationFilter } export type StaffOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrderInput | SortOrder role?: SortOrder phone?: SortOrderInput | SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput appointments?: AppointmentOrderByRelationAggregateInput claims?: ClaimOrderByRelationAggregateInput } export type StaffWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: StaffWhereInput | StaffWhereInput[] OR?: StaffWhereInput[] NOT?: StaffWhereInput | StaffWhereInput[] userId?: IntFilter<"Staff"> | number name?: StringFilter<"Staff"> | string email?: StringNullableFilter<"Staff"> | string | null role?: StringFilter<"Staff"> | string phone?: StringNullableFilter<"Staff"> | string | null createdAt?: DateTimeFilter<"Staff"> | Date | string user?: XOR | null appointments?: AppointmentListRelationFilter claims?: ClaimListRelationFilter }, "id"> export type StaffOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrderInput | SortOrder role?: SortOrder phone?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: StaffCountOrderByAggregateInput _avg?: StaffAvgOrderByAggregateInput _max?: StaffMaxOrderByAggregateInput _min?: StaffMinOrderByAggregateInput _sum?: StaffSumOrderByAggregateInput } export type StaffScalarWhereWithAggregatesInput = { AND?: StaffScalarWhereWithAggregatesInput | StaffScalarWhereWithAggregatesInput[] OR?: StaffScalarWhereWithAggregatesInput[] NOT?: StaffScalarWhereWithAggregatesInput | StaffScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Staff"> | number userId?: IntWithAggregatesFilter<"Staff"> | number name?: StringWithAggregatesFilter<"Staff"> | string email?: StringNullableWithAggregatesFilter<"Staff"> | string | null role?: StringWithAggregatesFilter<"Staff"> | string phone?: StringNullableWithAggregatesFilter<"Staff"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Staff"> | Date | string } export type NpiProviderWhereInput = { AND?: NpiProviderWhereInput | NpiProviderWhereInput[] OR?: NpiProviderWhereInput[] NOT?: NpiProviderWhereInput | NpiProviderWhereInput[] id?: IntFilter<"NpiProvider"> | number userId?: IntFilter<"NpiProvider"> | number npiNumber?: StringFilter<"NpiProvider"> | string providerName?: StringFilter<"NpiProvider"> | string createdAt?: DateTimeFilter<"NpiProvider"> | Date | string user?: XOR claims?: ClaimListRelationFilter payments?: PaymentListRelationFilter commissionBatches?: CommissionBatchListRelationFilter appointmentProcedures?: AppointmentProcedureListRelationFilter } export type NpiProviderOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput claims?: ClaimOrderByRelationAggregateInput payments?: PaymentOrderByRelationAggregateInput commissionBatches?: CommissionBatchOrderByRelationAggregateInput appointmentProcedures?: AppointmentProcedureOrderByRelationAggregateInput } export type NpiProviderWhereUniqueInput = Prisma.AtLeast<{ id?: number userId_npiNumber?: NpiProviderUserIdNpiNumberCompoundUniqueInput AND?: NpiProviderWhereInput | NpiProviderWhereInput[] OR?: NpiProviderWhereInput[] NOT?: NpiProviderWhereInput | NpiProviderWhereInput[] userId?: IntFilter<"NpiProvider"> | number npiNumber?: StringFilter<"NpiProvider"> | string providerName?: StringFilter<"NpiProvider"> | string createdAt?: DateTimeFilter<"NpiProvider"> | Date | string user?: XOR claims?: ClaimListRelationFilter payments?: PaymentListRelationFilter commissionBatches?: CommissionBatchListRelationFilter appointmentProcedures?: AppointmentProcedureListRelationFilter }, "id" | "userId_npiNumber"> export type NpiProviderOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder _count?: NpiProviderCountOrderByAggregateInput _avg?: NpiProviderAvgOrderByAggregateInput _max?: NpiProviderMaxOrderByAggregateInput _min?: NpiProviderMinOrderByAggregateInput _sum?: NpiProviderSumOrderByAggregateInput } export type NpiProviderScalarWhereWithAggregatesInput = { AND?: NpiProviderScalarWhereWithAggregatesInput | NpiProviderScalarWhereWithAggregatesInput[] OR?: NpiProviderScalarWhereWithAggregatesInput[] NOT?: NpiProviderScalarWhereWithAggregatesInput | NpiProviderScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"NpiProvider"> | number userId?: IntWithAggregatesFilter<"NpiProvider"> | number npiNumber?: StringWithAggregatesFilter<"NpiProvider"> | string providerName?: StringWithAggregatesFilter<"NpiProvider"> | string createdAt?: DateTimeWithAggregatesFilter<"NpiProvider"> | Date | string } export type AppointmentProcedureWhereInput = { AND?: AppointmentProcedureWhereInput | AppointmentProcedureWhereInput[] OR?: AppointmentProcedureWhereInput[] NOT?: AppointmentProcedureWhereInput | AppointmentProcedureWhereInput[] id?: IntFilter<"AppointmentProcedure"> | number appointmentId?: IntFilter<"AppointmentProcedure"> | number patientId?: IntFilter<"AppointmentProcedure"> | number npiProviderId?: IntNullableFilter<"AppointmentProcedure"> | number | null procedureCode?: StringFilter<"AppointmentProcedure"> | string procedureLabel?: StringNullableFilter<"AppointmentProcedure"> | string | null fee?: DecimalNullableFilter<"AppointmentProcedure"> | Decimal | DecimalJsLike | number | string | null category?: StringNullableFilter<"AppointmentProcedure"> | string | null toothNumber?: StringNullableFilter<"AppointmentProcedure"> | string | null toothSurface?: StringNullableFilter<"AppointmentProcedure"> | string | null oralCavityArea?: StringNullableFilter<"AppointmentProcedure"> | string | null source?: EnumProcedureSourceFilter<"AppointmentProcedure"> | $Enums.ProcedureSource comboKey?: StringNullableFilter<"AppointmentProcedure"> | string | null createdAt?: DateTimeFilter<"AppointmentProcedure"> | Date | string appointment?: XOR patient?: XOR npiProvider?: XOR | null } export type AppointmentProcedureOrderByWithRelationInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder npiProviderId?: SortOrderInput | SortOrder procedureCode?: SortOrder procedureLabel?: SortOrderInput | SortOrder fee?: SortOrderInput | SortOrder category?: SortOrderInput | SortOrder toothNumber?: SortOrderInput | SortOrder toothSurface?: SortOrderInput | SortOrder oralCavityArea?: SortOrderInput | SortOrder source?: SortOrder comboKey?: SortOrderInput | SortOrder createdAt?: SortOrder appointment?: AppointmentOrderByWithRelationInput patient?: PatientOrderByWithRelationInput npiProvider?: NpiProviderOrderByWithRelationInput } export type AppointmentProcedureWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: AppointmentProcedureWhereInput | AppointmentProcedureWhereInput[] OR?: AppointmentProcedureWhereInput[] NOT?: AppointmentProcedureWhereInput | AppointmentProcedureWhereInput[] appointmentId?: IntFilter<"AppointmentProcedure"> | number patientId?: IntFilter<"AppointmentProcedure"> | number npiProviderId?: IntNullableFilter<"AppointmentProcedure"> | number | null procedureCode?: StringFilter<"AppointmentProcedure"> | string procedureLabel?: StringNullableFilter<"AppointmentProcedure"> | string | null fee?: DecimalNullableFilter<"AppointmentProcedure"> | Decimal | DecimalJsLike | number | string | null category?: StringNullableFilter<"AppointmentProcedure"> | string | null toothNumber?: StringNullableFilter<"AppointmentProcedure"> | string | null toothSurface?: StringNullableFilter<"AppointmentProcedure"> | string | null oralCavityArea?: StringNullableFilter<"AppointmentProcedure"> | string | null source?: EnumProcedureSourceFilter<"AppointmentProcedure"> | $Enums.ProcedureSource comboKey?: StringNullableFilter<"AppointmentProcedure"> | string | null createdAt?: DateTimeFilter<"AppointmentProcedure"> | Date | string appointment?: XOR patient?: XOR npiProvider?: XOR | null }, "id"> export type AppointmentProcedureOrderByWithAggregationInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder npiProviderId?: SortOrderInput | SortOrder procedureCode?: SortOrder procedureLabel?: SortOrderInput | SortOrder fee?: SortOrderInput | SortOrder category?: SortOrderInput | SortOrder toothNumber?: SortOrderInput | SortOrder toothSurface?: SortOrderInput | SortOrder oralCavityArea?: SortOrderInput | SortOrder source?: SortOrder comboKey?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: AppointmentProcedureCountOrderByAggregateInput _avg?: AppointmentProcedureAvgOrderByAggregateInput _max?: AppointmentProcedureMaxOrderByAggregateInput _min?: AppointmentProcedureMinOrderByAggregateInput _sum?: AppointmentProcedureSumOrderByAggregateInput } export type AppointmentProcedureScalarWhereWithAggregatesInput = { AND?: AppointmentProcedureScalarWhereWithAggregatesInput | AppointmentProcedureScalarWhereWithAggregatesInput[] OR?: AppointmentProcedureScalarWhereWithAggregatesInput[] NOT?: AppointmentProcedureScalarWhereWithAggregatesInput | AppointmentProcedureScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"AppointmentProcedure"> | number appointmentId?: IntWithAggregatesFilter<"AppointmentProcedure"> | number patientId?: IntWithAggregatesFilter<"AppointmentProcedure"> | number npiProviderId?: IntNullableWithAggregatesFilter<"AppointmentProcedure"> | number | null procedureCode?: StringWithAggregatesFilter<"AppointmentProcedure"> | string procedureLabel?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null fee?: DecimalNullableWithAggregatesFilter<"AppointmentProcedure"> | Decimal | DecimalJsLike | number | string | null category?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null toothNumber?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null toothSurface?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null oralCavityArea?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null source?: EnumProcedureSourceWithAggregatesFilter<"AppointmentProcedure"> | $Enums.ProcedureSource comboKey?: StringNullableWithAggregatesFilter<"AppointmentProcedure"> | string | null createdAt?: DateTimeWithAggregatesFilter<"AppointmentProcedure"> | Date | string } export type ClaimWhereInput = { AND?: ClaimWhereInput | ClaimWhereInput[] OR?: ClaimWhereInput[] NOT?: ClaimWhereInput | ClaimWhereInput[] id?: IntFilter<"Claim"> | number patientId?: IntFilter<"Claim"> | number appointmentId?: IntNullableFilter<"Claim"> | number | null userId?: IntFilter<"Claim"> | number staffId?: IntFilter<"Claim"> | number patientName?: StringFilter<"Claim"> | string memberId?: StringFilter<"Claim"> | string dateOfBirth?: DateTimeFilter<"Claim"> | Date | string remarks?: StringFilter<"Claim"> | string missingTeethStatus?: EnumMissingTeethStatusFilter<"Claim"> | $Enums.MissingTeethStatus missingTeeth?: JsonNullableFilter<"Claim"> serviceDate?: DateTimeFilter<"Claim"> | Date | string insuranceProvider?: StringFilter<"Claim"> | string createdAt?: DateTimeFilter<"Claim"> | Date | string updatedAt?: DateTimeFilter<"Claim"> | Date | string status?: EnumClaimStatusFilter<"Claim"> | $Enums.ClaimStatus claimNumber?: StringNullableFilter<"Claim"> | string | null preAuthNumber?: StringNullableFilter<"Claim"> | string | null npiProviderId?: IntNullableFilter<"Claim"> | number | null patient?: XOR appointment?: XOR | null user?: XOR | null staff?: XOR | null npiProvider?: XOR | null serviceLines?: ServiceLineListRelationFilter claimFiles?: ClaimFileListRelationFilter payment?: XOR | null } export type ClaimOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrderInput | SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder missingTeeth?: SortOrderInput | SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrderInput | SortOrder preAuthNumber?: SortOrderInput | SortOrder npiProviderId?: SortOrderInput | SortOrder patient?: PatientOrderByWithRelationInput appointment?: AppointmentOrderByWithRelationInput user?: UserOrderByWithRelationInput staff?: StaffOrderByWithRelationInput npiProvider?: NpiProviderOrderByWithRelationInput serviceLines?: ServiceLineOrderByRelationAggregateInput claimFiles?: ClaimFileOrderByRelationAggregateInput payment?: PaymentOrderByWithRelationInput } export type ClaimWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ClaimWhereInput | ClaimWhereInput[] OR?: ClaimWhereInput[] NOT?: ClaimWhereInput | ClaimWhereInput[] patientId?: IntFilter<"Claim"> | number appointmentId?: IntNullableFilter<"Claim"> | number | null userId?: IntFilter<"Claim"> | number staffId?: IntFilter<"Claim"> | number patientName?: StringFilter<"Claim"> | string memberId?: StringFilter<"Claim"> | string dateOfBirth?: DateTimeFilter<"Claim"> | Date | string remarks?: StringFilter<"Claim"> | string missingTeethStatus?: EnumMissingTeethStatusFilter<"Claim"> | $Enums.MissingTeethStatus missingTeeth?: JsonNullableFilter<"Claim"> serviceDate?: DateTimeFilter<"Claim"> | Date | string insuranceProvider?: StringFilter<"Claim"> | string createdAt?: DateTimeFilter<"Claim"> | Date | string updatedAt?: DateTimeFilter<"Claim"> | Date | string status?: EnumClaimStatusFilter<"Claim"> | $Enums.ClaimStatus claimNumber?: StringNullableFilter<"Claim"> | string | null preAuthNumber?: StringNullableFilter<"Claim"> | string | null npiProviderId?: IntNullableFilter<"Claim"> | number | null patient?: XOR appointment?: XOR | null user?: XOR | null staff?: XOR | null npiProvider?: XOR | null serviceLines?: ServiceLineListRelationFilter claimFiles?: ClaimFileListRelationFilter payment?: XOR | null }, "id"> export type ClaimOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrderInput | SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder missingTeeth?: SortOrderInput | SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrderInput | SortOrder preAuthNumber?: SortOrderInput | SortOrder npiProviderId?: SortOrderInput | SortOrder _count?: ClaimCountOrderByAggregateInput _avg?: ClaimAvgOrderByAggregateInput _max?: ClaimMaxOrderByAggregateInput _min?: ClaimMinOrderByAggregateInput _sum?: ClaimSumOrderByAggregateInput } export type ClaimScalarWhereWithAggregatesInput = { AND?: ClaimScalarWhereWithAggregatesInput | ClaimScalarWhereWithAggregatesInput[] OR?: ClaimScalarWhereWithAggregatesInput[] NOT?: ClaimScalarWhereWithAggregatesInput | ClaimScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Claim"> | number patientId?: IntWithAggregatesFilter<"Claim"> | number appointmentId?: IntNullableWithAggregatesFilter<"Claim"> | number | null userId?: IntWithAggregatesFilter<"Claim"> | number staffId?: IntWithAggregatesFilter<"Claim"> | number patientName?: StringWithAggregatesFilter<"Claim"> | string memberId?: StringWithAggregatesFilter<"Claim"> | string dateOfBirth?: DateTimeWithAggregatesFilter<"Claim"> | Date | string remarks?: StringWithAggregatesFilter<"Claim"> | string missingTeethStatus?: EnumMissingTeethStatusWithAggregatesFilter<"Claim"> | $Enums.MissingTeethStatus missingTeeth?: JsonNullableWithAggregatesFilter<"Claim"> serviceDate?: DateTimeWithAggregatesFilter<"Claim"> | Date | string insuranceProvider?: StringWithAggregatesFilter<"Claim"> | string createdAt?: DateTimeWithAggregatesFilter<"Claim"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Claim"> | Date | string status?: EnumClaimStatusWithAggregatesFilter<"Claim"> | $Enums.ClaimStatus claimNumber?: StringNullableWithAggregatesFilter<"Claim"> | string | null preAuthNumber?: StringNullableWithAggregatesFilter<"Claim"> | string | null npiProviderId?: IntNullableWithAggregatesFilter<"Claim"> | number | null } export type ServiceLineWhereInput = { AND?: ServiceLineWhereInput | ServiceLineWhereInput[] OR?: ServiceLineWhereInput[] NOT?: ServiceLineWhereInput | ServiceLineWhereInput[] id?: IntFilter<"ServiceLine"> | number claimId?: IntNullableFilter<"ServiceLine"> | number | null paymentId?: IntNullableFilter<"ServiceLine"> | number | null procedureCode?: StringFilter<"ServiceLine"> | string procedureDate?: DateTimeFilter<"ServiceLine"> | Date | string quad?: StringNullableFilter<"ServiceLine"> | string | null arch?: StringNullableFilter<"ServiceLine"> | string | null toothNumber?: StringNullableFilter<"ServiceLine"> | string | null toothSurface?: StringNullableFilter<"ServiceLine"> | string | null icn?: StringNullableFilter<"ServiceLine"> | string | null paidCode?: StringNullableFilter<"ServiceLine"> | string | null allowedAmount?: DecimalNullableFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFilter<"ServiceLine"> | $Enums.ServiceLineStatus claim?: XOR | null payment?: XOR | null serviceLineTransactions?: ServiceLineTransactionListRelationFilter } export type ServiceLineOrderByWithRelationInput = { id?: SortOrder claimId?: SortOrderInput | SortOrder paymentId?: SortOrderInput | SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrderInput | SortOrder arch?: SortOrderInput | SortOrder toothNumber?: SortOrderInput | SortOrder toothSurface?: SortOrderInput | SortOrder icn?: SortOrderInput | SortOrder paidCode?: SortOrderInput | SortOrder allowedAmount?: SortOrderInput | SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder claim?: ClaimOrderByWithRelationInput payment?: PaymentOrderByWithRelationInput serviceLineTransactions?: ServiceLineTransactionOrderByRelationAggregateInput } export type ServiceLineWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ServiceLineWhereInput | ServiceLineWhereInput[] OR?: ServiceLineWhereInput[] NOT?: ServiceLineWhereInput | ServiceLineWhereInput[] claimId?: IntNullableFilter<"ServiceLine"> | number | null paymentId?: IntNullableFilter<"ServiceLine"> | number | null procedureCode?: StringFilter<"ServiceLine"> | string procedureDate?: DateTimeFilter<"ServiceLine"> | Date | string quad?: StringNullableFilter<"ServiceLine"> | string | null arch?: StringNullableFilter<"ServiceLine"> | string | null toothNumber?: StringNullableFilter<"ServiceLine"> | string | null toothSurface?: StringNullableFilter<"ServiceLine"> | string | null icn?: StringNullableFilter<"ServiceLine"> | string | null paidCode?: StringNullableFilter<"ServiceLine"> | string | null allowedAmount?: DecimalNullableFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFilter<"ServiceLine"> | $Enums.ServiceLineStatus claim?: XOR | null payment?: XOR | null serviceLineTransactions?: ServiceLineTransactionListRelationFilter }, "id"> export type ServiceLineOrderByWithAggregationInput = { id?: SortOrder claimId?: SortOrderInput | SortOrder paymentId?: SortOrderInput | SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrderInput | SortOrder arch?: SortOrderInput | SortOrder toothNumber?: SortOrderInput | SortOrder toothSurface?: SortOrderInput | SortOrder icn?: SortOrderInput | SortOrder paidCode?: SortOrderInput | SortOrder allowedAmount?: SortOrderInput | SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder _count?: ServiceLineCountOrderByAggregateInput _avg?: ServiceLineAvgOrderByAggregateInput _max?: ServiceLineMaxOrderByAggregateInput _min?: ServiceLineMinOrderByAggregateInput _sum?: ServiceLineSumOrderByAggregateInput } export type ServiceLineScalarWhereWithAggregatesInput = { AND?: ServiceLineScalarWhereWithAggregatesInput | ServiceLineScalarWhereWithAggregatesInput[] OR?: ServiceLineScalarWhereWithAggregatesInput[] NOT?: ServiceLineScalarWhereWithAggregatesInput | ServiceLineScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ServiceLine"> | number claimId?: IntNullableWithAggregatesFilter<"ServiceLine"> | number | null paymentId?: IntNullableWithAggregatesFilter<"ServiceLine"> | number | null procedureCode?: StringWithAggregatesFilter<"ServiceLine"> | string procedureDate?: DateTimeWithAggregatesFilter<"ServiceLine"> | Date | string quad?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null arch?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null toothNumber?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null toothSurface?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null icn?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null paidCode?: StringNullableWithAggregatesFilter<"ServiceLine"> | string | null allowedAmount?: DecimalNullableWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalWithAggregatesFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusWithAggregatesFilter<"ServiceLine"> | $Enums.ServiceLineStatus } export type ClaimFileWhereInput = { AND?: ClaimFileWhereInput | ClaimFileWhereInput[] OR?: ClaimFileWhereInput[] NOT?: ClaimFileWhereInput | ClaimFileWhereInput[] id?: IntFilter<"ClaimFile"> | number claimId?: IntFilter<"ClaimFile"> | number filename?: StringFilter<"ClaimFile"> | string mimeType?: StringFilter<"ClaimFile"> | string filePath?: StringNullableFilter<"ClaimFile"> | string | null claim?: XOR } export type ClaimFileOrderByWithRelationInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder filePath?: SortOrderInput | SortOrder claim?: ClaimOrderByWithRelationInput } export type ClaimFileWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ClaimFileWhereInput | ClaimFileWhereInput[] OR?: ClaimFileWhereInput[] NOT?: ClaimFileWhereInput | ClaimFileWhereInput[] claimId?: IntFilter<"ClaimFile"> | number filename?: StringFilter<"ClaimFile"> | string mimeType?: StringFilter<"ClaimFile"> | string filePath?: StringNullableFilter<"ClaimFile"> | string | null claim?: XOR }, "id"> export type ClaimFileOrderByWithAggregationInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder filePath?: SortOrderInput | SortOrder _count?: ClaimFileCountOrderByAggregateInput _avg?: ClaimFileAvgOrderByAggregateInput _max?: ClaimFileMaxOrderByAggregateInput _min?: ClaimFileMinOrderByAggregateInput _sum?: ClaimFileSumOrderByAggregateInput } export type ClaimFileScalarWhereWithAggregatesInput = { AND?: ClaimFileScalarWhereWithAggregatesInput | ClaimFileScalarWhereWithAggregatesInput[] OR?: ClaimFileScalarWhereWithAggregatesInput[] NOT?: ClaimFileScalarWhereWithAggregatesInput | ClaimFileScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ClaimFile"> | number claimId?: IntWithAggregatesFilter<"ClaimFile"> | number filename?: StringWithAggregatesFilter<"ClaimFile"> | string mimeType?: StringWithAggregatesFilter<"ClaimFile"> | string filePath?: StringNullableWithAggregatesFilter<"ClaimFile"> | string | null } export type InsuranceCredentialWhereInput = { AND?: InsuranceCredentialWhereInput | InsuranceCredentialWhereInput[] OR?: InsuranceCredentialWhereInput[] NOT?: InsuranceCredentialWhereInput | InsuranceCredentialWhereInput[] id?: IntFilter<"InsuranceCredential"> | number userId?: IntFilter<"InsuranceCredential"> | number siteKey?: StringFilter<"InsuranceCredential"> | string username?: StringFilter<"InsuranceCredential"> | string password?: StringFilter<"InsuranceCredential"> | string user?: XOR } export type InsuranceCredentialOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder user?: UserOrderByWithRelationInput } export type InsuranceCredentialWhereUniqueInput = Prisma.AtLeast<{ id?: number userId_siteKey?: InsuranceCredentialUserIdSiteKeyCompoundUniqueInput AND?: InsuranceCredentialWhereInput | InsuranceCredentialWhereInput[] OR?: InsuranceCredentialWhereInput[] NOT?: InsuranceCredentialWhereInput | InsuranceCredentialWhereInput[] userId?: IntFilter<"InsuranceCredential"> | number siteKey?: StringFilter<"InsuranceCredential"> | string username?: StringFilter<"InsuranceCredential"> | string password?: StringFilter<"InsuranceCredential"> | string user?: XOR }, "id" | "userId_siteKey"> export type InsuranceCredentialOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder _count?: InsuranceCredentialCountOrderByAggregateInput _avg?: InsuranceCredentialAvgOrderByAggregateInput _max?: InsuranceCredentialMaxOrderByAggregateInput _min?: InsuranceCredentialMinOrderByAggregateInput _sum?: InsuranceCredentialSumOrderByAggregateInput } export type InsuranceCredentialScalarWhereWithAggregatesInput = { AND?: InsuranceCredentialScalarWhereWithAggregatesInput | InsuranceCredentialScalarWhereWithAggregatesInput[] OR?: InsuranceCredentialScalarWhereWithAggregatesInput[] NOT?: InsuranceCredentialScalarWhereWithAggregatesInput | InsuranceCredentialScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"InsuranceCredential"> | number userId?: IntWithAggregatesFilter<"InsuranceCredential"> | number siteKey?: StringWithAggregatesFilter<"InsuranceCredential"> | string username?: StringWithAggregatesFilter<"InsuranceCredential"> | string password?: StringWithAggregatesFilter<"InsuranceCredential"> | string } export type ShoppingVendorWhereInput = { AND?: ShoppingVendorWhereInput | ShoppingVendorWhereInput[] OR?: ShoppingVendorWhereInput[] NOT?: ShoppingVendorWhereInput | ShoppingVendorWhereInput[] id?: IntFilter<"ShoppingVendor"> | number userId?: IntFilter<"ShoppingVendor"> | number vendorName?: StringFilter<"ShoppingVendor"> | string websiteUrl?: StringFilter<"ShoppingVendor"> | string loginUsername?: StringFilter<"ShoppingVendor"> | string loginPassword?: StringFilter<"ShoppingVendor"> | string user?: XOR } export type ShoppingVendorOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder vendorName?: SortOrder websiteUrl?: SortOrder loginUsername?: SortOrder loginPassword?: SortOrder user?: UserOrderByWithRelationInput } export type ShoppingVendorWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ShoppingVendorWhereInput | ShoppingVendorWhereInput[] OR?: ShoppingVendorWhereInput[] NOT?: ShoppingVendorWhereInput | ShoppingVendorWhereInput[] userId?: IntFilter<"ShoppingVendor"> | number vendorName?: StringFilter<"ShoppingVendor"> | string websiteUrl?: StringFilter<"ShoppingVendor"> | string loginUsername?: StringFilter<"ShoppingVendor"> | string loginPassword?: StringFilter<"ShoppingVendor"> | string user?: XOR }, "id"> export type ShoppingVendorOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder vendorName?: SortOrder websiteUrl?: SortOrder loginUsername?: SortOrder loginPassword?: SortOrder _count?: ShoppingVendorCountOrderByAggregateInput _avg?: ShoppingVendorAvgOrderByAggregateInput _max?: ShoppingVendorMaxOrderByAggregateInput _min?: ShoppingVendorMinOrderByAggregateInput _sum?: ShoppingVendorSumOrderByAggregateInput } export type ShoppingVendorScalarWhereWithAggregatesInput = { AND?: ShoppingVendorScalarWhereWithAggregatesInput | ShoppingVendorScalarWhereWithAggregatesInput[] OR?: ShoppingVendorScalarWhereWithAggregatesInput[] NOT?: ShoppingVendorScalarWhereWithAggregatesInput | ShoppingVendorScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ShoppingVendor"> | number userId?: IntWithAggregatesFilter<"ShoppingVendor"> | number vendorName?: StringWithAggregatesFilter<"ShoppingVendor"> | string websiteUrl?: StringWithAggregatesFilter<"ShoppingVendor"> | string loginUsername?: StringWithAggregatesFilter<"ShoppingVendor"> | string loginPassword?: StringWithAggregatesFilter<"ShoppingVendor"> | string } export type PdfGroupWhereInput = { AND?: PdfGroupWhereInput | PdfGroupWhereInput[] OR?: PdfGroupWhereInput[] NOT?: PdfGroupWhereInput | PdfGroupWhereInput[] id?: IntFilter<"PdfGroup"> | number title?: StringFilter<"PdfGroup"> | string titleKey?: EnumPdfTitleKeyFilter<"PdfGroup"> | $Enums.PdfTitleKey createdAt?: DateTimeFilter<"PdfGroup"> | Date | string patientId?: IntFilter<"PdfGroup"> | number patient?: XOR pdfs?: PdfFileListRelationFilter } export type PdfGroupOrderByWithRelationInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder patient?: PatientOrderByWithRelationInput pdfs?: PdfFileOrderByRelationAggregateInput } export type PdfGroupWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PdfGroupWhereInput | PdfGroupWhereInput[] OR?: PdfGroupWhereInput[] NOT?: PdfGroupWhereInput | PdfGroupWhereInput[] title?: StringFilter<"PdfGroup"> | string titleKey?: EnumPdfTitleKeyFilter<"PdfGroup"> | $Enums.PdfTitleKey createdAt?: DateTimeFilter<"PdfGroup"> | Date | string patientId?: IntFilter<"PdfGroup"> | number patient?: XOR pdfs?: PdfFileListRelationFilter }, "id"> export type PdfGroupOrderByWithAggregationInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder _count?: PdfGroupCountOrderByAggregateInput _avg?: PdfGroupAvgOrderByAggregateInput _max?: PdfGroupMaxOrderByAggregateInput _min?: PdfGroupMinOrderByAggregateInput _sum?: PdfGroupSumOrderByAggregateInput } export type PdfGroupScalarWhereWithAggregatesInput = { AND?: PdfGroupScalarWhereWithAggregatesInput | PdfGroupScalarWhereWithAggregatesInput[] OR?: PdfGroupScalarWhereWithAggregatesInput[] NOT?: PdfGroupScalarWhereWithAggregatesInput | PdfGroupScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"PdfGroup"> | number title?: StringWithAggregatesFilter<"PdfGroup"> | string titleKey?: EnumPdfTitleKeyWithAggregatesFilter<"PdfGroup"> | $Enums.PdfTitleKey createdAt?: DateTimeWithAggregatesFilter<"PdfGroup"> | Date | string patientId?: IntWithAggregatesFilter<"PdfGroup"> | number } export type PdfFileWhereInput = { AND?: PdfFileWhereInput | PdfFileWhereInput[] OR?: PdfFileWhereInput[] NOT?: PdfFileWhereInput | PdfFileWhereInput[] id?: IntFilter<"PdfFile"> | number filename?: StringFilter<"PdfFile"> | string pdfData?: BytesFilter<"PdfFile"> | Bytes uploadedAt?: DateTimeFilter<"PdfFile"> | Date | string groupId?: IntFilter<"PdfFile"> | number group?: XOR } export type PdfFileOrderByWithRelationInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder group?: PdfGroupOrderByWithRelationInput } export type PdfFileWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PdfFileWhereInput | PdfFileWhereInput[] OR?: PdfFileWhereInput[] NOT?: PdfFileWhereInput | PdfFileWhereInput[] filename?: StringFilter<"PdfFile"> | string pdfData?: BytesFilter<"PdfFile"> | Bytes uploadedAt?: DateTimeFilter<"PdfFile"> | Date | string groupId?: IntFilter<"PdfFile"> | number group?: XOR }, "id"> export type PdfFileOrderByWithAggregationInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder _count?: PdfFileCountOrderByAggregateInput _avg?: PdfFileAvgOrderByAggregateInput _max?: PdfFileMaxOrderByAggregateInput _min?: PdfFileMinOrderByAggregateInput _sum?: PdfFileSumOrderByAggregateInput } export type PdfFileScalarWhereWithAggregatesInput = { AND?: PdfFileScalarWhereWithAggregatesInput | PdfFileScalarWhereWithAggregatesInput[] OR?: PdfFileScalarWhereWithAggregatesInput[] NOT?: PdfFileScalarWhereWithAggregatesInput | PdfFileScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"PdfFile"> | number filename?: StringWithAggregatesFilter<"PdfFile"> | string pdfData?: BytesWithAggregatesFilter<"PdfFile"> | Bytes uploadedAt?: DateTimeWithAggregatesFilter<"PdfFile"> | Date | string groupId?: IntWithAggregatesFilter<"PdfFile"> | number } export type PaymentWhereInput = { AND?: PaymentWhereInput | PaymentWhereInput[] OR?: PaymentWhereInput[] NOT?: PaymentWhereInput | PaymentWhereInput[] id?: IntFilter<"Payment"> | number claimId?: IntNullableFilter<"Payment"> | number | null patientId?: IntFilter<"Payment"> | number userId?: IntFilter<"Payment"> | number updatedById?: IntNullableFilter<"Payment"> | number | null npiProviderId?: IntNullableFilter<"Payment"> | number | null totalBilled?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string mhPaidAmount?: DecimalNullableFilter<"Payment"> | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string adjustment?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFilter<"Payment"> | $Enums.PaymentStatus notes?: StringNullableFilter<"Payment"> | string | null icn?: StringNullableFilter<"Payment"> | string | null createdAt?: DateTimeFilter<"Payment"> | Date | string updatedAt?: DateTimeFilter<"Payment"> | Date | string claim?: XOR | null patient?: XOR updatedBy?: XOR | null npiProvider?: XOR | null serviceLineTransactions?: ServiceLineTransactionListRelationFilter serviceLines?: ServiceLineListRelationFilter commissionBatchItems?: CommissionBatchItemListRelationFilter } export type PaymentOrderByWithRelationInput = { id?: SortOrder claimId?: SortOrderInput | SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrderInput | SortOrder npiProviderId?: SortOrderInput | SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder mhPaidAmount?: SortOrderInput | SortOrder copayment?: SortOrder adjustment?: SortOrder status?: SortOrder notes?: SortOrderInput | SortOrder icn?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder claim?: ClaimOrderByWithRelationInput patient?: PatientOrderByWithRelationInput updatedBy?: UserOrderByWithRelationInput npiProvider?: NpiProviderOrderByWithRelationInput serviceLineTransactions?: ServiceLineTransactionOrderByRelationAggregateInput serviceLines?: ServiceLineOrderByRelationAggregateInput commissionBatchItems?: CommissionBatchItemOrderByRelationAggregateInput } export type PaymentWhereUniqueInput = Prisma.AtLeast<{ id?: number claimId?: number AND?: PaymentWhereInput | PaymentWhereInput[] OR?: PaymentWhereInput[] NOT?: PaymentWhereInput | PaymentWhereInput[] patientId?: IntFilter<"Payment"> | number userId?: IntFilter<"Payment"> | number updatedById?: IntNullableFilter<"Payment"> | number | null npiProviderId?: IntNullableFilter<"Payment"> | number | null totalBilled?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string mhPaidAmount?: DecimalNullableFilter<"Payment"> | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string adjustment?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFilter<"Payment"> | $Enums.PaymentStatus notes?: StringNullableFilter<"Payment"> | string | null icn?: StringNullableFilter<"Payment"> | string | null createdAt?: DateTimeFilter<"Payment"> | Date | string updatedAt?: DateTimeFilter<"Payment"> | Date | string claim?: XOR | null patient?: XOR updatedBy?: XOR | null npiProvider?: XOR | null serviceLineTransactions?: ServiceLineTransactionListRelationFilter serviceLines?: ServiceLineListRelationFilter commissionBatchItems?: CommissionBatchItemListRelationFilter }, "id" | "claimId"> export type PaymentOrderByWithAggregationInput = { id?: SortOrder claimId?: SortOrderInput | SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrderInput | SortOrder npiProviderId?: SortOrderInput | SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder mhPaidAmount?: SortOrderInput | SortOrder copayment?: SortOrder adjustment?: SortOrder status?: SortOrder notes?: SortOrderInput | SortOrder icn?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: PaymentCountOrderByAggregateInput _avg?: PaymentAvgOrderByAggregateInput _max?: PaymentMaxOrderByAggregateInput _min?: PaymentMinOrderByAggregateInput _sum?: PaymentSumOrderByAggregateInput } export type PaymentScalarWhereWithAggregatesInput = { AND?: PaymentScalarWhereWithAggregatesInput | PaymentScalarWhereWithAggregatesInput[] OR?: PaymentScalarWhereWithAggregatesInput[] NOT?: PaymentScalarWhereWithAggregatesInput | PaymentScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Payment"> | number claimId?: IntNullableWithAggregatesFilter<"Payment"> | number | null patientId?: IntWithAggregatesFilter<"Payment"> | number userId?: IntWithAggregatesFilter<"Payment"> | number updatedById?: IntNullableWithAggregatesFilter<"Payment"> | number | null npiProviderId?: IntNullableWithAggregatesFilter<"Payment"> | number | null totalBilled?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string mhPaidAmount?: DecimalNullableWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string | null copayment?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string adjustment?: DecimalWithAggregatesFilter<"Payment"> | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusWithAggregatesFilter<"Payment"> | $Enums.PaymentStatus notes?: StringNullableWithAggregatesFilter<"Payment"> | string | null icn?: StringNullableWithAggregatesFilter<"Payment"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Payment"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Payment"> | Date | string } export type ServiceLineTransactionWhereInput = { AND?: ServiceLineTransactionWhereInput | ServiceLineTransactionWhereInput[] OR?: ServiceLineTransactionWhereInput[] NOT?: ServiceLineTransactionWhereInput | ServiceLineTransactionWhereInput[] id?: IntFilter<"ServiceLineTransaction"> | number paymentId?: IntFilter<"ServiceLineTransaction"> | number serviceLineId?: IntFilter<"ServiceLineTransaction"> | number transactionId?: StringNullableFilter<"ServiceLineTransaction"> | string | null paidAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFilter<"ServiceLineTransaction"> | $Enums.PaymentMethod receivedDate?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payerName?: StringNullableFilter<"ServiceLineTransaction"> | string | null notes?: StringNullableFilter<"ServiceLineTransaction"> | string | null createdAt?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payment?: XOR serviceLine?: XOR } export type ServiceLineTransactionOrderByWithRelationInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrderInput | SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder payment?: PaymentOrderByWithRelationInput serviceLine?: ServiceLineOrderByWithRelationInput } export type ServiceLineTransactionWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ServiceLineTransactionWhereInput | ServiceLineTransactionWhereInput[] OR?: ServiceLineTransactionWhereInput[] NOT?: ServiceLineTransactionWhereInput | ServiceLineTransactionWhereInput[] paymentId?: IntFilter<"ServiceLineTransaction"> | number serviceLineId?: IntFilter<"ServiceLineTransaction"> | number transactionId?: StringNullableFilter<"ServiceLineTransaction"> | string | null paidAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFilter<"ServiceLineTransaction"> | $Enums.PaymentMethod receivedDate?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payerName?: StringNullableFilter<"ServiceLineTransaction"> | string | null notes?: StringNullableFilter<"ServiceLineTransaction"> | string | null createdAt?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payment?: XOR serviceLine?: XOR }, "id"> export type ServiceLineTransactionOrderByWithAggregationInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrderInput | SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrderInput | SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: ServiceLineTransactionCountOrderByAggregateInput _avg?: ServiceLineTransactionAvgOrderByAggregateInput _max?: ServiceLineTransactionMaxOrderByAggregateInput _min?: ServiceLineTransactionMinOrderByAggregateInput _sum?: ServiceLineTransactionSumOrderByAggregateInput } export type ServiceLineTransactionScalarWhereWithAggregatesInput = { AND?: ServiceLineTransactionScalarWhereWithAggregatesInput | ServiceLineTransactionScalarWhereWithAggregatesInput[] OR?: ServiceLineTransactionScalarWhereWithAggregatesInput[] NOT?: ServiceLineTransactionScalarWhereWithAggregatesInput | ServiceLineTransactionScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ServiceLineTransaction"> | number paymentId?: IntWithAggregatesFilter<"ServiceLineTransaction"> | number serviceLineId?: IntWithAggregatesFilter<"ServiceLineTransaction"> | number transactionId?: StringNullableWithAggregatesFilter<"ServiceLineTransaction"> | string | null paidAmount?: DecimalWithAggregatesFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalWithAggregatesFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodWithAggregatesFilter<"ServiceLineTransaction"> | $Enums.PaymentMethod receivedDate?: DateTimeWithAggregatesFilter<"ServiceLineTransaction"> | Date | string payerName?: StringNullableWithAggregatesFilter<"ServiceLineTransaction"> | string | null notes?: StringNullableWithAggregatesFilter<"ServiceLineTransaction"> | string | null createdAt?: DateTimeWithAggregatesFilter<"ServiceLineTransaction"> | Date | string } export type DatabaseBackupWhereInput = { AND?: DatabaseBackupWhereInput | DatabaseBackupWhereInput[] OR?: DatabaseBackupWhereInput[] NOT?: DatabaseBackupWhereInput | DatabaseBackupWhereInput[] id?: IntFilter<"DatabaseBackup"> | number userId?: IntFilter<"DatabaseBackup"> | number createdAt?: DateTimeFilter<"DatabaseBackup"> | Date | string user?: XOR } export type DatabaseBackupOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type DatabaseBackupWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: DatabaseBackupWhereInput | DatabaseBackupWhereInput[] OR?: DatabaseBackupWhereInput[] NOT?: DatabaseBackupWhereInput | DatabaseBackupWhereInput[] userId?: IntFilter<"DatabaseBackup"> | number createdAt?: DateTimeFilter<"DatabaseBackup"> | Date | string user?: XOR }, "id"> export type DatabaseBackupOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder _count?: DatabaseBackupCountOrderByAggregateInput _avg?: DatabaseBackupAvgOrderByAggregateInput _max?: DatabaseBackupMaxOrderByAggregateInput _min?: DatabaseBackupMinOrderByAggregateInput _sum?: DatabaseBackupSumOrderByAggregateInput } export type DatabaseBackupScalarWhereWithAggregatesInput = { AND?: DatabaseBackupScalarWhereWithAggregatesInput | DatabaseBackupScalarWhereWithAggregatesInput[] OR?: DatabaseBackupScalarWhereWithAggregatesInput[] NOT?: DatabaseBackupScalarWhereWithAggregatesInput | DatabaseBackupScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"DatabaseBackup"> | number userId?: IntWithAggregatesFilter<"DatabaseBackup"> | number createdAt?: DateTimeWithAggregatesFilter<"DatabaseBackup"> | Date | string } export type BackupDestinationWhereInput = { AND?: BackupDestinationWhereInput | BackupDestinationWhereInput[] OR?: BackupDestinationWhereInput[] NOT?: BackupDestinationWhereInput | BackupDestinationWhereInput[] id?: IntFilter<"BackupDestination"> | number userId?: IntFilter<"BackupDestination"> | number path?: StringFilter<"BackupDestination"> | string isActive?: BoolFilter<"BackupDestination"> | boolean createdAt?: DateTimeFilter<"BackupDestination"> | Date | string user?: XOR } export type BackupDestinationOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type BackupDestinationWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: BackupDestinationWhereInput | BackupDestinationWhereInput[] OR?: BackupDestinationWhereInput[] NOT?: BackupDestinationWhereInput | BackupDestinationWhereInput[] userId?: IntFilter<"BackupDestination"> | number path?: StringFilter<"BackupDestination"> | string isActive?: BoolFilter<"BackupDestination"> | boolean createdAt?: DateTimeFilter<"BackupDestination"> | Date | string user?: XOR }, "id"> export type BackupDestinationOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder _count?: BackupDestinationCountOrderByAggregateInput _avg?: BackupDestinationAvgOrderByAggregateInput _max?: BackupDestinationMaxOrderByAggregateInput _min?: BackupDestinationMinOrderByAggregateInput _sum?: BackupDestinationSumOrderByAggregateInput } export type BackupDestinationScalarWhereWithAggregatesInput = { AND?: BackupDestinationScalarWhereWithAggregatesInput | BackupDestinationScalarWhereWithAggregatesInput[] OR?: BackupDestinationScalarWhereWithAggregatesInput[] NOT?: BackupDestinationScalarWhereWithAggregatesInput | BackupDestinationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"BackupDestination"> | number userId?: IntWithAggregatesFilter<"BackupDestination"> | number path?: StringWithAggregatesFilter<"BackupDestination"> | string isActive?: BoolWithAggregatesFilter<"BackupDestination"> | boolean createdAt?: DateTimeWithAggregatesFilter<"BackupDestination"> | Date | string } export type NotificationWhereInput = { AND?: NotificationWhereInput | NotificationWhereInput[] OR?: NotificationWhereInput[] NOT?: NotificationWhereInput | NotificationWhereInput[] id?: IntFilter<"Notification"> | number userId?: IntFilter<"Notification"> | number type?: EnumNotificationTypesFilter<"Notification"> | $Enums.NotificationTypes message?: StringFilter<"Notification"> | string createdAt?: DateTimeFilter<"Notification"> | Date | string read?: BoolFilter<"Notification"> | boolean user?: XOR } export type NotificationOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder user?: UserOrderByWithRelationInput } export type NotificationWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: NotificationWhereInput | NotificationWhereInput[] OR?: NotificationWhereInput[] NOT?: NotificationWhereInput | NotificationWhereInput[] userId?: IntFilter<"Notification"> | number type?: EnumNotificationTypesFilter<"Notification"> | $Enums.NotificationTypes message?: StringFilter<"Notification"> | string createdAt?: DateTimeFilter<"Notification"> | Date | string read?: BoolFilter<"Notification"> | boolean user?: XOR }, "id"> export type NotificationOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder _count?: NotificationCountOrderByAggregateInput _avg?: NotificationAvgOrderByAggregateInput _max?: NotificationMaxOrderByAggregateInput _min?: NotificationMinOrderByAggregateInput _sum?: NotificationSumOrderByAggregateInput } export type NotificationScalarWhereWithAggregatesInput = { AND?: NotificationScalarWhereWithAggregatesInput | NotificationScalarWhereWithAggregatesInput[] OR?: NotificationScalarWhereWithAggregatesInput[] NOT?: NotificationScalarWhereWithAggregatesInput | NotificationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Notification"> | number userId?: IntWithAggregatesFilter<"Notification"> | number type?: EnumNotificationTypesWithAggregatesFilter<"Notification"> | $Enums.NotificationTypes message?: StringWithAggregatesFilter<"Notification"> | string createdAt?: DateTimeWithAggregatesFilter<"Notification"> | Date | string read?: BoolWithAggregatesFilter<"Notification"> | boolean } export type CronJobLogWhereInput = { AND?: CronJobLogWhereInput | CronJobLogWhereInput[] OR?: CronJobLogWhereInput[] NOT?: CronJobLogWhereInput | CronJobLogWhereInput[] id?: IntFilter<"CronJobLog"> | number jobName?: StringFilter<"CronJobLog"> | string status?: StringFilter<"CronJobLog"> | string startedAt?: DateTimeFilter<"CronJobLog"> | Date | string completedAt?: DateTimeNullableFilter<"CronJobLog"> | Date | string | null durationMs?: IntNullableFilter<"CronJobLog"> | number | null errorMessage?: StringNullableFilter<"CronJobLog"> | string | null } export type CronJobLogOrderByWithRelationInput = { id?: SortOrder jobName?: SortOrder status?: SortOrder startedAt?: SortOrder completedAt?: SortOrderInput | SortOrder durationMs?: SortOrderInput | SortOrder errorMessage?: SortOrderInput | SortOrder } export type CronJobLogWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: CronJobLogWhereInput | CronJobLogWhereInput[] OR?: CronJobLogWhereInput[] NOT?: CronJobLogWhereInput | CronJobLogWhereInput[] jobName?: StringFilter<"CronJobLog"> | string status?: StringFilter<"CronJobLog"> | string startedAt?: DateTimeFilter<"CronJobLog"> | Date | string completedAt?: DateTimeNullableFilter<"CronJobLog"> | Date | string | null durationMs?: IntNullableFilter<"CronJobLog"> | number | null errorMessage?: StringNullableFilter<"CronJobLog"> | string | null }, "id"> export type CronJobLogOrderByWithAggregationInput = { id?: SortOrder jobName?: SortOrder status?: SortOrder startedAt?: SortOrder completedAt?: SortOrderInput | SortOrder durationMs?: SortOrderInput | SortOrder errorMessage?: SortOrderInput | SortOrder _count?: CronJobLogCountOrderByAggregateInput _avg?: CronJobLogAvgOrderByAggregateInput _max?: CronJobLogMaxOrderByAggregateInput _min?: CronJobLogMinOrderByAggregateInput _sum?: CronJobLogSumOrderByAggregateInput } export type CronJobLogScalarWhereWithAggregatesInput = { AND?: CronJobLogScalarWhereWithAggregatesInput | CronJobLogScalarWhereWithAggregatesInput[] OR?: CronJobLogScalarWhereWithAggregatesInput[] NOT?: CronJobLogScalarWhereWithAggregatesInput | CronJobLogScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CronJobLog"> | number jobName?: StringWithAggregatesFilter<"CronJobLog"> | string status?: StringWithAggregatesFilter<"CronJobLog"> | string startedAt?: DateTimeWithAggregatesFilter<"CronJobLog"> | Date | string completedAt?: DateTimeNullableWithAggregatesFilter<"CronJobLog"> | Date | string | null durationMs?: IntNullableWithAggregatesFilter<"CronJobLog"> | number | null errorMessage?: StringNullableWithAggregatesFilter<"CronJobLog"> | string | null } export type CloudFolderWhereInput = { AND?: CloudFolderWhereInput | CloudFolderWhereInput[] OR?: CloudFolderWhereInput[] NOT?: CloudFolderWhereInput | CloudFolderWhereInput[] id?: IntFilter<"CloudFolder"> | number userId?: IntFilter<"CloudFolder"> | number name?: StringFilter<"CloudFolder"> | string parentId?: IntNullableFilter<"CloudFolder"> | number | null createdAt?: DateTimeFilter<"CloudFolder"> | Date | string updatedAt?: DateTimeFilter<"CloudFolder"> | Date | string parent?: XOR | null children?: CloudFolderListRelationFilter user?: XOR files?: CloudFileListRelationFilter } export type CloudFolderOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder parent?: CloudFolderOrderByWithRelationInput children?: CloudFolderOrderByRelationAggregateInput user?: UserOrderByWithRelationInput files?: CloudFileOrderByRelationAggregateInput } export type CloudFolderWhereUniqueInput = Prisma.AtLeast<{ id?: number userId_parentId_name?: CloudFolderUserIdParentIdNameCompoundUniqueInput AND?: CloudFolderWhereInput | CloudFolderWhereInput[] OR?: CloudFolderWhereInput[] NOT?: CloudFolderWhereInput | CloudFolderWhereInput[] userId?: IntFilter<"CloudFolder"> | number name?: StringFilter<"CloudFolder"> | string parentId?: IntNullableFilter<"CloudFolder"> | number | null createdAt?: DateTimeFilter<"CloudFolder"> | Date | string updatedAt?: DateTimeFilter<"CloudFolder"> | Date | string parent?: XOR | null children?: CloudFolderListRelationFilter user?: XOR files?: CloudFileListRelationFilter }, "id" | "userId_parentId_name"> export type CloudFolderOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CloudFolderCountOrderByAggregateInput _avg?: CloudFolderAvgOrderByAggregateInput _max?: CloudFolderMaxOrderByAggregateInput _min?: CloudFolderMinOrderByAggregateInput _sum?: CloudFolderSumOrderByAggregateInput } export type CloudFolderScalarWhereWithAggregatesInput = { AND?: CloudFolderScalarWhereWithAggregatesInput | CloudFolderScalarWhereWithAggregatesInput[] OR?: CloudFolderScalarWhereWithAggregatesInput[] NOT?: CloudFolderScalarWhereWithAggregatesInput | CloudFolderScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CloudFolder"> | number userId?: IntWithAggregatesFilter<"CloudFolder"> | number name?: StringWithAggregatesFilter<"CloudFolder"> | string parentId?: IntNullableWithAggregatesFilter<"CloudFolder"> | number | null createdAt?: DateTimeWithAggregatesFilter<"CloudFolder"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"CloudFolder"> | Date | string } export type CloudFileWhereInput = { AND?: CloudFileWhereInput | CloudFileWhereInput[] OR?: CloudFileWhereInput[] NOT?: CloudFileWhereInput | CloudFileWhereInput[] id?: IntFilter<"CloudFile"> | number userId?: IntFilter<"CloudFile"> | number name?: StringFilter<"CloudFile"> | string mimeType?: StringNullableFilter<"CloudFile"> | string | null fileSize?: BigIntFilter<"CloudFile"> | bigint | number folderId?: IntNullableFilter<"CloudFile"> | number | null isComplete?: BoolFilter<"CloudFile"> | boolean totalChunks?: IntNullableFilter<"CloudFile"> | number | null diskPath?: StringNullableFilter<"CloudFile"> | string | null createdAt?: DateTimeFilter<"CloudFile"> | Date | string updatedAt?: DateTimeFilter<"CloudFile"> | Date | string user?: XOR folder?: XOR | null chunks?: CloudFileChunkListRelationFilter } export type CloudFileOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrderInput | SortOrder fileSize?: SortOrder folderId?: SortOrderInput | SortOrder isComplete?: SortOrder totalChunks?: SortOrderInput | SortOrder diskPath?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput folder?: CloudFolderOrderByWithRelationInput chunks?: CloudFileChunkOrderByRelationAggregateInput } export type CloudFileWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: CloudFileWhereInput | CloudFileWhereInput[] OR?: CloudFileWhereInput[] NOT?: CloudFileWhereInput | CloudFileWhereInput[] userId?: IntFilter<"CloudFile"> | number name?: StringFilter<"CloudFile"> | string mimeType?: StringNullableFilter<"CloudFile"> | string | null fileSize?: BigIntFilter<"CloudFile"> | bigint | number folderId?: IntNullableFilter<"CloudFile"> | number | null isComplete?: BoolFilter<"CloudFile"> | boolean totalChunks?: IntNullableFilter<"CloudFile"> | number | null diskPath?: StringNullableFilter<"CloudFile"> | string | null createdAt?: DateTimeFilter<"CloudFile"> | Date | string updatedAt?: DateTimeFilter<"CloudFile"> | Date | string user?: XOR folder?: XOR | null chunks?: CloudFileChunkListRelationFilter }, "id"> export type CloudFileOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrderInput | SortOrder fileSize?: SortOrder folderId?: SortOrderInput | SortOrder isComplete?: SortOrder totalChunks?: SortOrderInput | SortOrder diskPath?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CloudFileCountOrderByAggregateInput _avg?: CloudFileAvgOrderByAggregateInput _max?: CloudFileMaxOrderByAggregateInput _min?: CloudFileMinOrderByAggregateInput _sum?: CloudFileSumOrderByAggregateInput } export type CloudFileScalarWhereWithAggregatesInput = { AND?: CloudFileScalarWhereWithAggregatesInput | CloudFileScalarWhereWithAggregatesInput[] OR?: CloudFileScalarWhereWithAggregatesInput[] NOT?: CloudFileScalarWhereWithAggregatesInput | CloudFileScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CloudFile"> | number userId?: IntWithAggregatesFilter<"CloudFile"> | number name?: StringWithAggregatesFilter<"CloudFile"> | string mimeType?: StringNullableWithAggregatesFilter<"CloudFile"> | string | null fileSize?: BigIntWithAggregatesFilter<"CloudFile"> | bigint | number folderId?: IntNullableWithAggregatesFilter<"CloudFile"> | number | null isComplete?: BoolWithAggregatesFilter<"CloudFile"> | boolean totalChunks?: IntNullableWithAggregatesFilter<"CloudFile"> | number | null diskPath?: StringNullableWithAggregatesFilter<"CloudFile"> | string | null createdAt?: DateTimeWithAggregatesFilter<"CloudFile"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"CloudFile"> | Date | string } export type CloudFileChunkWhereInput = { AND?: CloudFileChunkWhereInput | CloudFileChunkWhereInput[] OR?: CloudFileChunkWhereInput[] NOT?: CloudFileChunkWhereInput | CloudFileChunkWhereInput[] id?: IntFilter<"CloudFileChunk"> | number fileId?: IntFilter<"CloudFileChunk"> | number seq?: IntFilter<"CloudFileChunk"> | number data?: BytesFilter<"CloudFileChunk"> | Bytes createdAt?: DateTimeFilter<"CloudFileChunk"> | Date | string file?: XOR } export type CloudFileChunkOrderByWithRelationInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder file?: CloudFileOrderByWithRelationInput } export type CloudFileChunkWhereUniqueInput = Prisma.AtLeast<{ id?: number fileId_seq?: CloudFileChunkFileIdSeqCompoundUniqueInput AND?: CloudFileChunkWhereInput | CloudFileChunkWhereInput[] OR?: CloudFileChunkWhereInput[] NOT?: CloudFileChunkWhereInput | CloudFileChunkWhereInput[] fileId?: IntFilter<"CloudFileChunk"> | number seq?: IntFilter<"CloudFileChunk"> | number data?: BytesFilter<"CloudFileChunk"> | Bytes createdAt?: DateTimeFilter<"CloudFileChunk"> | Date | string file?: XOR }, "id" | "fileId_seq"> export type CloudFileChunkOrderByWithAggregationInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder _count?: CloudFileChunkCountOrderByAggregateInput _avg?: CloudFileChunkAvgOrderByAggregateInput _max?: CloudFileChunkMaxOrderByAggregateInput _min?: CloudFileChunkMinOrderByAggregateInput _sum?: CloudFileChunkSumOrderByAggregateInput } export type CloudFileChunkScalarWhereWithAggregatesInput = { AND?: CloudFileChunkScalarWhereWithAggregatesInput | CloudFileChunkScalarWhereWithAggregatesInput[] OR?: CloudFileChunkScalarWhereWithAggregatesInput[] NOT?: CloudFileChunkScalarWhereWithAggregatesInput | CloudFileChunkScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CloudFileChunk"> | number fileId?: IntWithAggregatesFilter<"CloudFileChunk"> | number seq?: IntWithAggregatesFilter<"CloudFileChunk"> | number data?: BytesWithAggregatesFilter<"CloudFileChunk"> | Bytes createdAt?: DateTimeWithAggregatesFilter<"CloudFileChunk"> | Date | string } export type CommunicationWhereInput = { AND?: CommunicationWhereInput | CommunicationWhereInput[] OR?: CommunicationWhereInput[] NOT?: CommunicationWhereInput | CommunicationWhereInput[] id?: IntFilter<"Communication"> | number patientId?: IntFilter<"Communication"> | number userId?: IntNullableFilter<"Communication"> | number | null channel?: EnumCommunicationChannelFilter<"Communication"> | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFilter<"Communication"> | $Enums.CommunicationDirection status?: EnumCommunicationStatusFilter<"Communication"> | $Enums.CommunicationStatus body?: StringNullableFilter<"Communication"> | string | null callDuration?: IntNullableFilter<"Communication"> | number | null twilioSid?: StringNullableFilter<"Communication"> | string | null createdAt?: DateTimeFilter<"Communication"> | Date | string patient?: XOR user?: XOR | null } export type CommunicationOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrderInput | SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrderInput | SortOrder callDuration?: SortOrderInput | SortOrder twilioSid?: SortOrderInput | SortOrder createdAt?: SortOrder patient?: PatientOrderByWithRelationInput user?: UserOrderByWithRelationInput } export type CommunicationWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: CommunicationWhereInput | CommunicationWhereInput[] OR?: CommunicationWhereInput[] NOT?: CommunicationWhereInput | CommunicationWhereInput[] patientId?: IntFilter<"Communication"> | number userId?: IntNullableFilter<"Communication"> | number | null channel?: EnumCommunicationChannelFilter<"Communication"> | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFilter<"Communication"> | $Enums.CommunicationDirection status?: EnumCommunicationStatusFilter<"Communication"> | $Enums.CommunicationStatus body?: StringNullableFilter<"Communication"> | string | null callDuration?: IntNullableFilter<"Communication"> | number | null twilioSid?: StringNullableFilter<"Communication"> | string | null createdAt?: DateTimeFilter<"Communication"> | Date | string patient?: XOR user?: XOR | null }, "id"> export type CommunicationOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrderInput | SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrderInput | SortOrder callDuration?: SortOrderInput | SortOrder twilioSid?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: CommunicationCountOrderByAggregateInput _avg?: CommunicationAvgOrderByAggregateInput _max?: CommunicationMaxOrderByAggregateInput _min?: CommunicationMinOrderByAggregateInput _sum?: CommunicationSumOrderByAggregateInput } export type CommunicationScalarWhereWithAggregatesInput = { AND?: CommunicationScalarWhereWithAggregatesInput | CommunicationScalarWhereWithAggregatesInput[] OR?: CommunicationScalarWhereWithAggregatesInput[] NOT?: CommunicationScalarWhereWithAggregatesInput | CommunicationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Communication"> | number patientId?: IntWithAggregatesFilter<"Communication"> | number userId?: IntNullableWithAggregatesFilter<"Communication"> | number | null channel?: EnumCommunicationChannelWithAggregatesFilter<"Communication"> | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionWithAggregatesFilter<"Communication"> | $Enums.CommunicationDirection status?: EnumCommunicationStatusWithAggregatesFilter<"Communication"> | $Enums.CommunicationStatus body?: StringNullableWithAggregatesFilter<"Communication"> | string | null callDuration?: IntNullableWithAggregatesFilter<"Communication"> | number | null twilioSid?: StringNullableWithAggregatesFilter<"Communication"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Communication"> | Date | string } export type PatientDocumentWhereInput = { AND?: PatientDocumentWhereInput | PatientDocumentWhereInput[] OR?: PatientDocumentWhereInput[] NOT?: PatientDocumentWhereInput | PatientDocumentWhereInput[] id?: IntFilter<"PatientDocument"> | number patientId?: IntFilter<"PatientDocument"> | number filename?: StringFilter<"PatientDocument"> | string originalName?: StringFilter<"PatientDocument"> | string mimeType?: StringFilter<"PatientDocument"> | string fileSize?: BigIntFilter<"PatientDocument"> | bigint | number filePath?: StringFilter<"PatientDocument"> | string uploadedAt?: DateTimeFilter<"PatientDocument"> | Date | string updatedAt?: DateTimeFilter<"PatientDocument"> | Date | string patient?: XOR } export type PatientDocumentOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder patient?: PatientOrderByWithRelationInput } export type PatientDocumentWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: PatientDocumentWhereInput | PatientDocumentWhereInput[] OR?: PatientDocumentWhereInput[] NOT?: PatientDocumentWhereInput | PatientDocumentWhereInput[] patientId?: IntFilter<"PatientDocument"> | number filename?: StringFilter<"PatientDocument"> | string originalName?: StringFilter<"PatientDocument"> | string mimeType?: StringFilter<"PatientDocument"> | string fileSize?: BigIntFilter<"PatientDocument"> | bigint | number filePath?: StringFilter<"PatientDocument"> | string uploadedAt?: DateTimeFilter<"PatientDocument"> | Date | string updatedAt?: DateTimeFilter<"PatientDocument"> | Date | string patient?: XOR }, "id"> export type PatientDocumentOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder _count?: PatientDocumentCountOrderByAggregateInput _avg?: PatientDocumentAvgOrderByAggregateInput _max?: PatientDocumentMaxOrderByAggregateInput _min?: PatientDocumentMinOrderByAggregateInput _sum?: PatientDocumentSumOrderByAggregateInput } export type PatientDocumentScalarWhereWithAggregatesInput = { AND?: PatientDocumentScalarWhereWithAggregatesInput | PatientDocumentScalarWhereWithAggregatesInput[] OR?: PatientDocumentScalarWhereWithAggregatesInput[] NOT?: PatientDocumentScalarWhereWithAggregatesInput | PatientDocumentScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"PatientDocument"> | number patientId?: IntWithAggregatesFilter<"PatientDocument"> | number filename?: StringWithAggregatesFilter<"PatientDocument"> | string originalName?: StringWithAggregatesFilter<"PatientDocument"> | string mimeType?: StringWithAggregatesFilter<"PatientDocument"> | string fileSize?: BigIntWithAggregatesFilter<"PatientDocument"> | bigint | number filePath?: StringWithAggregatesFilter<"PatientDocument"> | string uploadedAt?: DateTimeWithAggregatesFilter<"PatientDocument"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"PatientDocument"> | Date | string } export type TwilioSettingsWhereInput = { AND?: TwilioSettingsWhereInput | TwilioSettingsWhereInput[] OR?: TwilioSettingsWhereInput[] NOT?: TwilioSettingsWhereInput | TwilioSettingsWhereInput[] id?: IntFilter<"TwilioSettings"> | number userId?: IntFilter<"TwilioSettings"> | number accountSid?: StringFilter<"TwilioSettings"> | string authToken?: StringFilter<"TwilioSettings"> | string phoneNumber?: StringFilter<"TwilioSettings"> | string greetingMessage?: StringNullableFilter<"TwilioSettings"> | string | null templates?: JsonNullableFilter<"TwilioSettings"> user?: XOR } export type TwilioSettingsOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder accountSid?: SortOrder authToken?: SortOrder phoneNumber?: SortOrder greetingMessage?: SortOrderInput | SortOrder templates?: SortOrderInput | SortOrder user?: UserOrderByWithRelationInput } export type TwilioSettingsWhereUniqueInput = Prisma.AtLeast<{ id?: number userId?: number AND?: TwilioSettingsWhereInput | TwilioSettingsWhereInput[] OR?: TwilioSettingsWhereInput[] NOT?: TwilioSettingsWhereInput | TwilioSettingsWhereInput[] accountSid?: StringFilter<"TwilioSettings"> | string authToken?: StringFilter<"TwilioSettings"> | string phoneNumber?: StringFilter<"TwilioSettings"> | string greetingMessage?: StringNullableFilter<"TwilioSettings"> | string | null templates?: JsonNullableFilter<"TwilioSettings"> user?: XOR }, "id" | "userId"> export type TwilioSettingsOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder accountSid?: SortOrder authToken?: SortOrder phoneNumber?: SortOrder greetingMessage?: SortOrderInput | SortOrder templates?: SortOrderInput | SortOrder _count?: TwilioSettingsCountOrderByAggregateInput _avg?: TwilioSettingsAvgOrderByAggregateInput _max?: TwilioSettingsMaxOrderByAggregateInput _min?: TwilioSettingsMinOrderByAggregateInput _sum?: TwilioSettingsSumOrderByAggregateInput } export type TwilioSettingsScalarWhereWithAggregatesInput = { AND?: TwilioSettingsScalarWhereWithAggregatesInput | TwilioSettingsScalarWhereWithAggregatesInput[] OR?: TwilioSettingsScalarWhereWithAggregatesInput[] NOT?: TwilioSettingsScalarWhereWithAggregatesInput | TwilioSettingsScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"TwilioSettings"> | number userId?: IntWithAggregatesFilter<"TwilioSettings"> | number accountSid?: StringWithAggregatesFilter<"TwilioSettings"> | string authToken?: StringWithAggregatesFilter<"TwilioSettings"> | string phoneNumber?: StringWithAggregatesFilter<"TwilioSettings"> | string greetingMessage?: StringNullableWithAggregatesFilter<"TwilioSettings"> | string | null templates?: JsonNullableWithAggregatesFilter<"TwilioSettings"> } export type AiSettingsWhereInput = { AND?: AiSettingsWhereInput | AiSettingsWhereInput[] OR?: AiSettingsWhereInput[] NOT?: AiSettingsWhereInput | AiSettingsWhereInput[] id?: IntFilter<"AiSettings"> | number userId?: IntFilter<"AiSettings"> | number apiKey?: StringFilter<"AiSettings"> | string afterHoursEnabled?: BoolFilter<"AiSettings"> | boolean openPhoneReply?: BoolFilter<"AiSettings"> | boolean user?: XOR } export type AiSettingsOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder apiKey?: SortOrder afterHoursEnabled?: SortOrder openPhoneReply?: SortOrder user?: UserOrderByWithRelationInput } export type AiSettingsWhereUniqueInput = Prisma.AtLeast<{ id?: number userId?: number AND?: AiSettingsWhereInput | AiSettingsWhereInput[] OR?: AiSettingsWhereInput[] NOT?: AiSettingsWhereInput | AiSettingsWhereInput[] apiKey?: StringFilter<"AiSettings"> | string afterHoursEnabled?: BoolFilter<"AiSettings"> | boolean openPhoneReply?: BoolFilter<"AiSettings"> | boolean user?: XOR }, "id" | "userId"> export type AiSettingsOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder apiKey?: SortOrder afterHoursEnabled?: SortOrder openPhoneReply?: SortOrder _count?: AiSettingsCountOrderByAggregateInput _avg?: AiSettingsAvgOrderByAggregateInput _max?: AiSettingsMaxOrderByAggregateInput _min?: AiSettingsMinOrderByAggregateInput _sum?: AiSettingsSumOrderByAggregateInput } export type AiSettingsScalarWhereWithAggregatesInput = { AND?: AiSettingsScalarWhereWithAggregatesInput | AiSettingsScalarWhereWithAggregatesInput[] OR?: AiSettingsScalarWhereWithAggregatesInput[] NOT?: AiSettingsScalarWhereWithAggregatesInput | AiSettingsScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"AiSettings"> | number userId?: IntWithAggregatesFilter<"AiSettings"> | number apiKey?: StringWithAggregatesFilter<"AiSettings"> | string afterHoursEnabled?: BoolWithAggregatesFilter<"AiSettings"> | boolean openPhoneReply?: BoolWithAggregatesFilter<"AiSettings"> | boolean } export type OfficeHoursWhereInput = { AND?: OfficeHoursWhereInput | OfficeHoursWhereInput[] OR?: OfficeHoursWhereInput[] NOT?: OfficeHoursWhereInput | OfficeHoursWhereInput[] id?: IntFilter<"OfficeHours"> | number userId?: IntFilter<"OfficeHours"> | number data?: JsonFilter<"OfficeHours"> user?: XOR } export type OfficeHoursOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder data?: SortOrder user?: UserOrderByWithRelationInput } export type OfficeHoursWhereUniqueInput = Prisma.AtLeast<{ id?: number userId?: number AND?: OfficeHoursWhereInput | OfficeHoursWhereInput[] OR?: OfficeHoursWhereInput[] NOT?: OfficeHoursWhereInput | OfficeHoursWhereInput[] data?: JsonFilter<"OfficeHours"> user?: XOR }, "id" | "userId"> export type OfficeHoursOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder data?: SortOrder _count?: OfficeHoursCountOrderByAggregateInput _avg?: OfficeHoursAvgOrderByAggregateInput _max?: OfficeHoursMaxOrderByAggregateInput _min?: OfficeHoursMinOrderByAggregateInput _sum?: OfficeHoursSumOrderByAggregateInput } export type OfficeHoursScalarWhereWithAggregatesInput = { AND?: OfficeHoursScalarWhereWithAggregatesInput | OfficeHoursScalarWhereWithAggregatesInput[] OR?: OfficeHoursScalarWhereWithAggregatesInput[] NOT?: OfficeHoursScalarWhereWithAggregatesInput | OfficeHoursScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"OfficeHours"> | number userId?: IntWithAggregatesFilter<"OfficeHours"> | number data?: JsonWithAggregatesFilter<"OfficeHours"> } export type OfficeContactWhereInput = { AND?: OfficeContactWhereInput | OfficeContactWhereInput[] OR?: OfficeContactWhereInput[] NOT?: OfficeContactWhereInput | OfficeContactWhereInput[] id?: IntFilter<"OfficeContact"> | number userId?: IntFilter<"OfficeContact"> | number officeName?: StringNullableFilter<"OfficeContact"> | string | null receptionistName?: StringNullableFilter<"OfficeContact"> | string | null dentistName?: StringNullableFilter<"OfficeContact"> | string | null phoneNumber?: StringNullableFilter<"OfficeContact"> | string | null email?: StringNullableFilter<"OfficeContact"> | string | null fax?: StringNullableFilter<"OfficeContact"> | string | null streetAddress?: StringNullableFilter<"OfficeContact"> | string | null city?: StringNullableFilter<"OfficeContact"> | string | null state?: StringNullableFilter<"OfficeContact"> | string | null zipCode?: StringNullableFilter<"OfficeContact"> | string | null user?: XOR } export type OfficeContactOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder officeName?: SortOrderInput | SortOrder receptionistName?: SortOrderInput | SortOrder dentistName?: SortOrderInput | SortOrder phoneNumber?: SortOrderInput | SortOrder email?: SortOrderInput | SortOrder fax?: SortOrderInput | SortOrder streetAddress?: SortOrderInput | SortOrder city?: SortOrderInput | SortOrder state?: SortOrderInput | SortOrder zipCode?: SortOrderInput | SortOrder user?: UserOrderByWithRelationInput } export type OfficeContactWhereUniqueInput = Prisma.AtLeast<{ id?: number userId?: number AND?: OfficeContactWhereInput | OfficeContactWhereInput[] OR?: OfficeContactWhereInput[] NOT?: OfficeContactWhereInput | OfficeContactWhereInput[] officeName?: StringNullableFilter<"OfficeContact"> | string | null receptionistName?: StringNullableFilter<"OfficeContact"> | string | null dentistName?: StringNullableFilter<"OfficeContact"> | string | null phoneNumber?: StringNullableFilter<"OfficeContact"> | string | null email?: StringNullableFilter<"OfficeContact"> | string | null fax?: StringNullableFilter<"OfficeContact"> | string | null streetAddress?: StringNullableFilter<"OfficeContact"> | string | null city?: StringNullableFilter<"OfficeContact"> | string | null state?: StringNullableFilter<"OfficeContact"> | string | null zipCode?: StringNullableFilter<"OfficeContact"> | string | null user?: XOR }, "id" | "userId"> export type OfficeContactOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder officeName?: SortOrderInput | SortOrder receptionistName?: SortOrderInput | SortOrder dentistName?: SortOrderInput | SortOrder phoneNumber?: SortOrderInput | SortOrder email?: SortOrderInput | SortOrder fax?: SortOrderInput | SortOrder streetAddress?: SortOrderInput | SortOrder city?: SortOrderInput | SortOrder state?: SortOrderInput | SortOrder zipCode?: SortOrderInput | SortOrder _count?: OfficeContactCountOrderByAggregateInput _avg?: OfficeContactAvgOrderByAggregateInput _max?: OfficeContactMaxOrderByAggregateInput _min?: OfficeContactMinOrderByAggregateInput _sum?: OfficeContactSumOrderByAggregateInput } export type OfficeContactScalarWhereWithAggregatesInput = { AND?: OfficeContactScalarWhereWithAggregatesInput | OfficeContactScalarWhereWithAggregatesInput[] OR?: OfficeContactScalarWhereWithAggregatesInput[] NOT?: OfficeContactScalarWhereWithAggregatesInput | OfficeContactScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"OfficeContact"> | number userId?: IntWithAggregatesFilter<"OfficeContact"> | number officeName?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null receptionistName?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null dentistName?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null phoneNumber?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null email?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null fax?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null streetAddress?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null city?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null state?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null zipCode?: StringNullableWithAggregatesFilter<"OfficeContact"> | string | null } export type InsuranceContactWhereInput = { AND?: InsuranceContactWhereInput | InsuranceContactWhereInput[] OR?: InsuranceContactWhereInput[] NOT?: InsuranceContactWhereInput | InsuranceContactWhereInput[] id?: IntFilter<"InsuranceContact"> | number userId?: IntFilter<"InsuranceContact"> | number name?: StringFilter<"InsuranceContact"> | string phoneNumber?: StringNullableFilter<"InsuranceContact"> | string | null createdAt?: DateTimeFilter<"InsuranceContact"> | Date | string user?: XOR } export type InsuranceContactOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder phoneNumber?: SortOrderInput | SortOrder createdAt?: SortOrder user?: UserOrderByWithRelationInput } export type InsuranceContactWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: InsuranceContactWhereInput | InsuranceContactWhereInput[] OR?: InsuranceContactWhereInput[] NOT?: InsuranceContactWhereInput | InsuranceContactWhereInput[] userId?: IntFilter<"InsuranceContact"> | number name?: StringFilter<"InsuranceContact"> | string phoneNumber?: StringNullableFilter<"InsuranceContact"> | string | null createdAt?: DateTimeFilter<"InsuranceContact"> | Date | string user?: XOR }, "id"> export type InsuranceContactOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder phoneNumber?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: InsuranceContactCountOrderByAggregateInput _avg?: InsuranceContactAvgOrderByAggregateInput _max?: InsuranceContactMaxOrderByAggregateInput _min?: InsuranceContactMinOrderByAggregateInput _sum?: InsuranceContactSumOrderByAggregateInput } export type InsuranceContactScalarWhereWithAggregatesInput = { AND?: InsuranceContactScalarWhereWithAggregatesInput | InsuranceContactScalarWhereWithAggregatesInput[] OR?: InsuranceContactScalarWhereWithAggregatesInput[] NOT?: InsuranceContactScalarWhereWithAggregatesInput | InsuranceContactScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"InsuranceContact"> | number userId?: IntWithAggregatesFilter<"InsuranceContact"> | number name?: StringWithAggregatesFilter<"InsuranceContact"> | string phoneNumber?: StringNullableWithAggregatesFilter<"InsuranceContact"> | string | null createdAt?: DateTimeWithAggregatesFilter<"InsuranceContact"> | Date | string } export type ProcedureTimeslotWhereInput = { AND?: ProcedureTimeslotWhereInput | ProcedureTimeslotWhereInput[] OR?: ProcedureTimeslotWhereInput[] NOT?: ProcedureTimeslotWhereInput | ProcedureTimeslotWhereInput[] id?: IntFilter<"ProcedureTimeslot"> | number userId?: IntFilter<"ProcedureTimeslot"> | number data?: JsonFilter<"ProcedureTimeslot"> user?: XOR } export type ProcedureTimeslotOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder data?: SortOrder user?: UserOrderByWithRelationInput } export type ProcedureTimeslotWhereUniqueInput = Prisma.AtLeast<{ id?: number userId?: number AND?: ProcedureTimeslotWhereInput | ProcedureTimeslotWhereInput[] OR?: ProcedureTimeslotWhereInput[] NOT?: ProcedureTimeslotWhereInput | ProcedureTimeslotWhereInput[] data?: JsonFilter<"ProcedureTimeslot"> user?: XOR }, "id" | "userId"> export type ProcedureTimeslotOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder data?: SortOrder _count?: ProcedureTimeslotCountOrderByAggregateInput _avg?: ProcedureTimeslotAvgOrderByAggregateInput _max?: ProcedureTimeslotMaxOrderByAggregateInput _min?: ProcedureTimeslotMinOrderByAggregateInput _sum?: ProcedureTimeslotSumOrderByAggregateInput } export type ProcedureTimeslotScalarWhereWithAggregatesInput = { AND?: ProcedureTimeslotScalarWhereWithAggregatesInput | ProcedureTimeslotScalarWhereWithAggregatesInput[] OR?: ProcedureTimeslotScalarWhereWithAggregatesInput[] NOT?: ProcedureTimeslotScalarWhereWithAggregatesInput | ProcedureTimeslotScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ProcedureTimeslot"> | number userId?: IntWithAggregatesFilter<"ProcedureTimeslot"> | number data?: JsonWithAggregatesFilter<"ProcedureTimeslot"> } export type PatientConversationWhereInput = { AND?: PatientConversationWhereInput | PatientConversationWhereInput[] OR?: PatientConversationWhereInput[] NOT?: PatientConversationWhereInput | PatientConversationWhereInput[] id?: IntFilter<"PatientConversation"> | number patientId?: IntFilter<"PatientConversation"> | number userId?: IntFilter<"PatientConversation"> | number stage?: StringFilter<"PatientConversation"> | string aiHandoff?: BoolFilter<"PatientConversation"> | boolean updatedAt?: DateTimeFilter<"PatientConversation"> | Date | string patient?: XOR user?: XOR } export type PatientConversationOrderByWithRelationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder stage?: SortOrder aiHandoff?: SortOrder updatedAt?: SortOrder patient?: PatientOrderByWithRelationInput user?: UserOrderByWithRelationInput } export type PatientConversationWhereUniqueInput = Prisma.AtLeast<{ id?: number patientId?: number AND?: PatientConversationWhereInput | PatientConversationWhereInput[] OR?: PatientConversationWhereInput[] NOT?: PatientConversationWhereInput | PatientConversationWhereInput[] userId?: IntFilter<"PatientConversation"> | number stage?: StringFilter<"PatientConversation"> | string aiHandoff?: BoolFilter<"PatientConversation"> | boolean updatedAt?: DateTimeFilter<"PatientConversation"> | Date | string patient?: XOR user?: XOR }, "id" | "patientId"> export type PatientConversationOrderByWithAggregationInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder stage?: SortOrder aiHandoff?: SortOrder updatedAt?: SortOrder _count?: PatientConversationCountOrderByAggregateInput _avg?: PatientConversationAvgOrderByAggregateInput _max?: PatientConversationMaxOrderByAggregateInput _min?: PatientConversationMinOrderByAggregateInput _sum?: PatientConversationSumOrderByAggregateInput } export type PatientConversationScalarWhereWithAggregatesInput = { AND?: PatientConversationScalarWhereWithAggregatesInput | PatientConversationScalarWhereWithAggregatesInput[] OR?: PatientConversationScalarWhereWithAggregatesInput[] NOT?: PatientConversationScalarWhereWithAggregatesInput | PatientConversationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"PatientConversation"> | number patientId?: IntWithAggregatesFilter<"PatientConversation"> | number userId?: IntWithAggregatesFilter<"PatientConversation"> | number stage?: StringWithAggregatesFilter<"PatientConversation"> | string aiHandoff?: BoolWithAggregatesFilter<"PatientConversation"> | boolean updatedAt?: DateTimeWithAggregatesFilter<"PatientConversation"> | Date | string } export type CommissionBatchWhereInput = { AND?: CommissionBatchWhereInput | CommissionBatchWhereInput[] OR?: CommissionBatchWhereInput[] NOT?: CommissionBatchWhereInput | CommissionBatchWhereInput[] id?: IntFilter<"CommissionBatch"> | number npiProviderId?: IntFilter<"CommissionBatch"> | number totalCollection?: DecimalFilter<"CommissionBatch"> | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFilter<"CommissionBatch"> | Decimal | DecimalJsLike | number | string notes?: StringNullableFilter<"CommissionBatch"> | string | null createdAt?: DateTimeFilter<"CommissionBatch"> | Date | string npiProvider?: XOR items?: CommissionBatchItemListRelationFilter } export type CommissionBatchOrderByWithRelationInput = { id?: SortOrder npiProviderId?: SortOrder totalCollection?: SortOrder commissionAmount?: SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder npiProvider?: NpiProviderOrderByWithRelationInput items?: CommissionBatchItemOrderByRelationAggregateInput } export type CommissionBatchWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: CommissionBatchWhereInput | CommissionBatchWhereInput[] OR?: CommissionBatchWhereInput[] NOT?: CommissionBatchWhereInput | CommissionBatchWhereInput[] npiProviderId?: IntFilter<"CommissionBatch"> | number totalCollection?: DecimalFilter<"CommissionBatch"> | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFilter<"CommissionBatch"> | Decimal | DecimalJsLike | number | string notes?: StringNullableFilter<"CommissionBatch"> | string | null createdAt?: DateTimeFilter<"CommissionBatch"> | Date | string npiProvider?: XOR items?: CommissionBatchItemListRelationFilter }, "id"> export type CommissionBatchOrderByWithAggregationInput = { id?: SortOrder npiProviderId?: SortOrder totalCollection?: SortOrder commissionAmount?: SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: CommissionBatchCountOrderByAggregateInput _avg?: CommissionBatchAvgOrderByAggregateInput _max?: CommissionBatchMaxOrderByAggregateInput _min?: CommissionBatchMinOrderByAggregateInput _sum?: CommissionBatchSumOrderByAggregateInput } export type CommissionBatchScalarWhereWithAggregatesInput = { AND?: CommissionBatchScalarWhereWithAggregatesInput | CommissionBatchScalarWhereWithAggregatesInput[] OR?: CommissionBatchScalarWhereWithAggregatesInput[] NOT?: CommissionBatchScalarWhereWithAggregatesInput | CommissionBatchScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CommissionBatch"> | number npiProviderId?: IntWithAggregatesFilter<"CommissionBatch"> | number totalCollection?: DecimalWithAggregatesFilter<"CommissionBatch"> | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalWithAggregatesFilter<"CommissionBatch"> | Decimal | DecimalJsLike | number | string notes?: StringNullableWithAggregatesFilter<"CommissionBatch"> | string | null createdAt?: DateTimeWithAggregatesFilter<"CommissionBatch"> | Date | string } export type CommissionBatchItemWhereInput = { AND?: CommissionBatchItemWhereInput | CommissionBatchItemWhereInput[] OR?: CommissionBatchItemWhereInput[] NOT?: CommissionBatchItemWhereInput | CommissionBatchItemWhereInput[] id?: IntFilter<"CommissionBatchItem"> | number commissionBatchId?: IntFilter<"CommissionBatchItem"> | number paymentId?: IntFilter<"CommissionBatchItem"> | number collectionAmount?: DecimalFilter<"CommissionBatchItem"> | Decimal | DecimalJsLike | number | string commissionBatch?: XOR payment?: XOR } export type CommissionBatchItemOrderByWithRelationInput = { id?: SortOrder commissionBatchId?: SortOrder paymentId?: SortOrder collectionAmount?: SortOrder commissionBatch?: CommissionBatchOrderByWithRelationInput payment?: PaymentOrderByWithRelationInput } export type CommissionBatchItemWhereUniqueInput = Prisma.AtLeast<{ id?: number commissionBatchId_paymentId?: CommissionBatchItemCommissionBatchIdPaymentIdCompoundUniqueInput AND?: CommissionBatchItemWhereInput | CommissionBatchItemWhereInput[] OR?: CommissionBatchItemWhereInput[] NOT?: CommissionBatchItemWhereInput | CommissionBatchItemWhereInput[] commissionBatchId?: IntFilter<"CommissionBatchItem"> | number paymentId?: IntFilter<"CommissionBatchItem"> | number collectionAmount?: DecimalFilter<"CommissionBatchItem"> | Decimal | DecimalJsLike | number | string commissionBatch?: XOR payment?: XOR }, "id" | "commissionBatchId_paymentId"> export type CommissionBatchItemOrderByWithAggregationInput = { id?: SortOrder commissionBatchId?: SortOrder paymentId?: SortOrder collectionAmount?: SortOrder _count?: CommissionBatchItemCountOrderByAggregateInput _avg?: CommissionBatchItemAvgOrderByAggregateInput _max?: CommissionBatchItemMaxOrderByAggregateInput _min?: CommissionBatchItemMinOrderByAggregateInput _sum?: CommissionBatchItemSumOrderByAggregateInput } export type CommissionBatchItemScalarWhereWithAggregatesInput = { AND?: CommissionBatchItemScalarWhereWithAggregatesInput | CommissionBatchItemScalarWhereWithAggregatesInput[] OR?: CommissionBatchItemScalarWhereWithAggregatesInput[] NOT?: CommissionBatchItemScalarWhereWithAggregatesInput | CommissionBatchItemScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"CommissionBatchItem"> | number commissionBatchId?: IntWithAggregatesFilter<"CommissionBatchItem"> | number paymentId?: IntWithAggregatesFilter<"CommissionBatchItem"> | number collectionAmount?: DecimalWithAggregatesFilter<"CommissionBatchItem"> | Decimal | DecimalJsLike | number | string } export type UserCreateInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean } export type UserUpdateManyMutationInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean } export type UserUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean } export type PatientCreateInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientUpdateInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type PatientCreateManyInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string } export type PatientUpdateManyMutationInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentCreateInput = { title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput files?: AppointmentFileCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput files?: AppointmentFileUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentUpdateInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput } export type AppointmentCreateManyInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus } export type AppointmentUpdateManyMutationInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type AppointmentUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type AppointmentFileCreateInput = { filename: string mimeType?: string | null filePath?: string | null appointment: AppointmentCreateNestedOneWithoutFilesInput } export type AppointmentFileUncheckedCreateInput = { id?: number appointmentId: number filename: string mimeType?: string | null filePath?: string | null } export type AppointmentFileUpdateInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null filePath?: NullableStringFieldUpdateOperationsInput | string | null appointment?: AppointmentUpdateOneRequiredWithoutFilesNestedInput } export type AppointmentFileUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type AppointmentFileCreateManyInput = { id?: number appointmentId: number filename: string mimeType?: string | null filePath?: string | null } export type AppointmentFileUpdateManyMutationInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type AppointmentFileUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type StaffCreateInput = { name: string email?: string | null role: string phone?: string | null createdAt?: Date | string user?: UserCreateNestedOneWithoutStaffInput appointments?: AppointmentCreateNestedManyWithoutStaffInput claims?: ClaimCreateNestedManyWithoutStaffInput } export type StaffUncheckedCreateInput = { id?: number userId: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutStaffInput claims?: ClaimUncheckedCreateNestedManyWithoutStaffInput } export type StaffUpdateInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutStaffNestedInput appointments?: AppointmentUpdateManyWithoutStaffNestedInput claims?: ClaimUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutStaffNestedInput claims?: ClaimUncheckedUpdateManyWithoutStaffNestedInput } export type StaffCreateManyInput = { id?: number userId: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string } export type StaffUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StaffUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderCreateInput = { npiNumber: string providerName: string createdAt?: Date | string user: UserCreateNestedOneWithoutNpiProvidersInput claims?: ClaimCreateNestedManyWithoutNpiProviderInput payments?: PaymentCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureCreateNestedManyWithoutNpiProviderInput } export type NpiProviderUncheckedCreateInput = { id?: number userId: number npiNumber: string providerName: string createdAt?: Date | string claims?: ClaimUncheckedCreateNestedManyWithoutNpiProviderInput payments?: PaymentUncheckedCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchUncheckedCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutNpiProviderInput } export type NpiProviderUpdateInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutNpiProvidersNestedInput claims?: ClaimUpdateManyWithoutNpiProviderNestedInput payments?: PaymentUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUpdateManyWithoutNpiProviderNestedInput } export type NpiProviderUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string claims?: ClaimUncheckedUpdateManyWithoutNpiProviderNestedInput payments?: PaymentUncheckedUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput } export type NpiProviderCreateManyInput = { id?: number userId: number npiNumber: string providerName: string createdAt?: Date | string } export type NpiProviderUpdateManyMutationInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureCreateInput = { procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string appointment: AppointmentCreateNestedOneWithoutProceduresInput patient: PatientCreateNestedOneWithoutProceduresInput npiProvider?: NpiProviderCreateNestedOneWithoutAppointmentProceduresInput } export type AppointmentProcedureUncheckedCreateInput = { id?: number appointmentId: number patientId: number npiProviderId?: number | null procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureUpdateInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointment?: AppointmentUpdateOneRequiredWithoutProceduresNestedInput patient?: PatientUpdateOneRequiredWithoutProceduresNestedInput npiProvider?: NpiProviderUpdateOneWithoutAppointmentProceduresNestedInput } export type AppointmentProcedureUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureCreateManyInput = { id?: number appointmentId: number patientId: number npiProviderId?: number | null procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureUpdateManyMutationInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimCreateInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment?: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput npiProvider?: NpiProviderCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateInput = { id?: number patientId: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimUpdateInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput npiProvider?: NpiProviderUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimCreateManyInput = { id?: number patientId: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null } export type ClaimUpdateManyMutationInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type ClaimUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null } export type ServiceLineCreateInput = { procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus claim?: ClaimCreateNestedOneWithoutServiceLinesInput payment?: PaymentCreateNestedOneWithoutServiceLinesInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutServiceLineInput } export type ServiceLineUncheckedCreateInput = { id?: number claimId?: number | null paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutServiceLineInput } export type ServiceLineUpdateInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus claim?: ClaimUpdateOneWithoutServiceLinesNestedInput payment?: PaymentUpdateOneWithoutServiceLinesNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput } export type ServiceLineCreateManyInput = { id?: number claimId?: number | null paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus } export type ServiceLineUpdateManyMutationInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type ServiceLineUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type ClaimFileCreateInput = { filename: string mimeType: string filePath?: string | null claim: ClaimCreateNestedOneWithoutClaimFilesInput } export type ClaimFileUncheckedCreateInput = { id?: number claimId: number filename: string mimeType: string filePath?: string | null } export type ClaimFileUpdateInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string filePath?: NullableStringFieldUpdateOperationsInput | string | null claim?: ClaimUpdateOneRequiredWithoutClaimFilesNestedInput } export type ClaimFileUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number claimId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type ClaimFileCreateManyInput = { id?: number claimId: number filename: string mimeType: string filePath?: string | null } export type ClaimFileUpdateManyMutationInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type ClaimFileUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number claimId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type InsuranceCredentialCreateInput = { siteKey: string username: string password: string user: UserCreateNestedOneWithoutInsuranceCredentialsInput } export type InsuranceCredentialUncheckedCreateInput = { id?: number userId: number siteKey: string username: string password: string } export type InsuranceCredentialUpdateInput = { siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string user?: UserUpdateOneRequiredWithoutInsuranceCredentialsNestedInput } export type InsuranceCredentialUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialCreateManyInput = { id?: number userId: number siteKey: string username: string password: string } export type InsuranceCredentialUpdateManyMutationInput = { siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type ShoppingVendorCreateInput = { vendorName: string websiteUrl: string loginUsername: string loginPassword: string user: UserCreateNestedOneWithoutShoppingVendorsInput } export type ShoppingVendorUncheckedCreateInput = { id?: number userId: number vendorName: string websiteUrl: string loginUsername: string loginPassword: string } export type ShoppingVendorUpdateInput = { vendorName?: StringFieldUpdateOperationsInput | string websiteUrl?: StringFieldUpdateOperationsInput | string loginUsername?: StringFieldUpdateOperationsInput | string loginPassword?: StringFieldUpdateOperationsInput | string user?: UserUpdateOneRequiredWithoutShoppingVendorsNestedInput } export type ShoppingVendorUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number vendorName?: StringFieldUpdateOperationsInput | string websiteUrl?: StringFieldUpdateOperationsInput | string loginUsername?: StringFieldUpdateOperationsInput | string loginPassword?: StringFieldUpdateOperationsInput | string } export type ShoppingVendorCreateManyInput = { id?: number userId: number vendorName: string websiteUrl: string loginUsername: string loginPassword: string } export type ShoppingVendorUpdateManyMutationInput = { vendorName?: StringFieldUpdateOperationsInput | string websiteUrl?: StringFieldUpdateOperationsInput | string loginUsername?: StringFieldUpdateOperationsInput | string loginPassword?: StringFieldUpdateOperationsInput | string } export type ShoppingVendorUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number vendorName?: StringFieldUpdateOperationsInput | string websiteUrl?: StringFieldUpdateOperationsInput | string loginUsername?: StringFieldUpdateOperationsInput | string loginPassword?: StringFieldUpdateOperationsInput | string } export type PdfGroupCreateInput = { title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patient: PatientCreateNestedOneWithoutGroupsInput pdfs?: PdfFileCreateNestedManyWithoutGroupInput } export type PdfGroupUncheckedCreateInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patientId: number pdfs?: PdfFileUncheckedCreateNestedManyWithoutGroupInput } export type PdfGroupUpdateInput = { title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutGroupsNestedInput pdfs?: PdfFileUpdateManyWithoutGroupNestedInput } export type PdfGroupUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patientId?: IntFieldUpdateOperationsInput | number pdfs?: PdfFileUncheckedUpdateManyWithoutGroupNestedInput } export type PdfGroupCreateManyInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patientId: number } export type PdfGroupUpdateManyMutationInput = { title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfGroupUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patientId?: IntFieldUpdateOperationsInput | number } export type PdfFileCreateInput = { filename: string pdfData: Bytes uploadedAt?: Date | string group: PdfGroupCreateNestedOneWithoutPdfsInput } export type PdfFileUncheckedCreateInput = { id?: number filename: string pdfData: Bytes uploadedAt?: Date | string groupId: number } export type PdfFileUpdateInput = { filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string group?: PdfGroupUpdateOneRequiredWithoutPdfsNestedInput } export type PdfFileUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string groupId?: IntFieldUpdateOperationsInput | number } export type PdfFileCreateManyInput = { id?: number filename: string pdfData: Bytes uploadedAt?: Date | string groupId: number } export type PdfFileUpdateManyMutationInput = { filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfFileUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string groupId?: IntFieldUpdateOperationsInput | number } export type PaymentCreateInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput npiProvider?: NpiProviderCreateNestedOneWithoutPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentUpdateInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput npiProvider?: NpiProviderUpdateOneWithoutPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUncheckedUpdateManyWithoutPaymentNestedInput } export type PaymentCreateManyInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string } export type PaymentUpdateManyMutationInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PaymentUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionCreateInput = { transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string payment: PaymentCreateNestedOneWithoutServiceLineTransactionsInput serviceLine: ServiceLineCreateNestedOneWithoutServiceLineTransactionsInput } export type ServiceLineTransactionUncheckedCreateInput = { id?: number paymentId: number serviceLineId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionUpdateInput = { transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string payment?: PaymentUpdateOneRequiredWithoutServiceLineTransactionsNestedInput serviceLine?: ServiceLineUpdateOneRequiredWithoutServiceLineTransactionsNestedInput } export type ServiceLineTransactionUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number serviceLineId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionCreateManyInput = { id?: number paymentId: number serviceLineId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionUpdateManyMutationInput = { transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number serviceLineId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupCreateInput = { createdAt?: Date | string user: UserCreateNestedOneWithoutBackupsInput } export type DatabaseBackupUncheckedCreateInput = { id?: number userId: number createdAt?: Date | string } export type DatabaseBackupUpdateInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutBackupsNestedInput } export type DatabaseBackupUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupCreateManyInput = { id?: number userId: number createdAt?: Date | string } export type DatabaseBackupUpdateManyMutationInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationCreateInput = { path: string isActive?: boolean createdAt?: Date | string user: UserCreateNestedOneWithoutBackupDestinationsInput } export type BackupDestinationUncheckedCreateInput = { id?: number userId: number path: string isActive?: boolean createdAt?: Date | string } export type BackupDestinationUpdateInput = { path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutBackupDestinationsNestedInput } export type BackupDestinationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationCreateManyInput = { id?: number userId: number path: string isActive?: boolean createdAt?: Date | string } export type BackupDestinationUpdateManyMutationInput = { path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NotificationCreateInput = { type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean user: UserCreateNestedOneWithoutNotificationsInput } export type NotificationUncheckedCreateInput = { id?: number userId: number type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type NotificationUpdateInput = { type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean user?: UserUpdateOneRequiredWithoutNotificationsNestedInput } export type NotificationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type NotificationCreateManyInput = { id?: number userId: number type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type NotificationUpdateManyMutationInput = { type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type NotificationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type CronJobLogCreateInput = { jobName: string status: string startedAt: Date | string completedAt?: Date | string | null durationMs?: number | null errorMessage?: string | null } export type CronJobLogUncheckedCreateInput = { id?: number jobName: string status: string startedAt: Date | string completedAt?: Date | string | null durationMs?: number | null errorMessage?: string | null } export type CronJobLogUpdateInput = { jobName?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: NullableIntFieldUpdateOperationsInput | number | null errorMessage?: NullableStringFieldUpdateOperationsInput | string | null } export type CronJobLogUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number jobName?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: NullableIntFieldUpdateOperationsInput | number | null errorMessage?: NullableStringFieldUpdateOperationsInput | string | null } export type CronJobLogCreateManyInput = { id?: number jobName: string status: string startedAt: Date | string completedAt?: Date | string | null durationMs?: number | null errorMessage?: string | null } export type CronJobLogUpdateManyMutationInput = { jobName?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: NullableIntFieldUpdateOperationsInput | number | null errorMessage?: NullableStringFieldUpdateOperationsInput | string | null } export type CronJobLogUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number jobName?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string startedAt?: DateTimeFieldUpdateOperationsInput | Date | string completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: NullableIntFieldUpdateOperationsInput | number | null errorMessage?: NullableStringFieldUpdateOperationsInput | string | null } export type CloudFolderCreateInput = { name: string createdAt?: Date | string updatedAt?: Date | string parent?: CloudFolderCreateNestedOneWithoutChildrenInput children?: CloudFolderCreateNestedManyWithoutParentInput user: UserCreateNestedOneWithoutCloudFoldersInput files?: CloudFileCreateNestedManyWithoutFolderInput } export type CloudFolderUncheckedCreateInput = { id?: number userId: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderUncheckedCreateNestedManyWithoutParentInput files?: CloudFileUncheckedCreateNestedManyWithoutFolderInput } export type CloudFolderUpdateInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: CloudFolderUpdateOneWithoutChildrenNestedInput children?: CloudFolderUpdateManyWithoutParentNestedInput user?: UserUpdateOneRequiredWithoutCloudFoldersNestedInput files?: CloudFileUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUncheckedUpdateManyWithoutParentNestedInput files?: CloudFileUncheckedUpdateManyWithoutFolderNestedInput } export type CloudFolderCreateManyInput = { id?: number userId: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFolderUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFolderUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileCreateInput = { name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutCloudFilesInput folder?: CloudFolderCreateNestedOneWithoutFilesInput chunks?: CloudFileChunkCreateNestedManyWithoutFileInput } export type CloudFileUncheckedCreateInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string chunks?: CloudFileChunkUncheckedCreateNestedManyWithoutFileInput } export type CloudFileUpdateInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutCloudFilesNestedInput folder?: CloudFolderUpdateOneWithoutFilesNestedInput chunks?: CloudFileChunkUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string chunks?: CloudFileChunkUncheckedUpdateManyWithoutFileNestedInput } export type CloudFileCreateManyInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFileUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkCreateInput = { seq: number data: Bytes createdAt?: Date | string file: CloudFileCreateNestedOneWithoutChunksInput } export type CloudFileChunkUncheckedCreateInput = { id?: number fileId: number seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkUpdateInput = { seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string file?: CloudFileUpdateOneRequiredWithoutChunksNestedInput } export type CloudFileChunkUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number fileId?: IntFieldUpdateOperationsInput | number seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkCreateManyInput = { id?: number fileId: number seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkUpdateManyMutationInput = { seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number fileId?: IntFieldUpdateOperationsInput | number seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationCreateInput = { channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string patient: PatientCreateNestedOneWithoutCommunicationsInput user?: UserCreateNestedOneWithoutCommunicationsInput } export type CommunicationUncheckedCreateInput = { id?: number patientId: number userId?: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type CommunicationUpdateInput = { channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutCommunicationsNestedInput user?: UserUpdateOneWithoutCommunicationsNestedInput } export type CommunicationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: NullableIntFieldUpdateOperationsInput | number | null channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationCreateManyInput = { id?: number patientId: number userId?: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type CommunicationUpdateManyMutationInput = { channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: NullableIntFieldUpdateOperationsInput | number | null channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentCreateInput = { filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string patient: PatientCreateNestedOneWithoutDocumentsInput } export type PatientDocumentUncheckedCreateInput = { id?: number patientId: number filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type PatientDocumentUpdateInput = { filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutDocumentsNestedInput } export type PatientDocumentUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentCreateManyInput = { id?: number patientId: number filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type PatientDocumentUpdateManyMutationInput = { filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TwilioSettingsCreateInput = { accountSid: string authToken: string phoneNumber: string greetingMessage?: string | null templates?: NullableJsonNullValueInput | InputJsonValue user: UserCreateNestedOneWithoutTwilioSettingsInput } export type TwilioSettingsUncheckedCreateInput = { id?: number userId: number accountSid: string authToken: string phoneNumber: string greetingMessage?: string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type TwilioSettingsUpdateInput = { accountSid?: StringFieldUpdateOperationsInput | string authToken?: StringFieldUpdateOperationsInput | string phoneNumber?: StringFieldUpdateOperationsInput | string greetingMessage?: NullableStringFieldUpdateOperationsInput | string | null templates?: NullableJsonNullValueInput | InputJsonValue user?: UserUpdateOneRequiredWithoutTwilioSettingsNestedInput } export type TwilioSettingsUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number accountSid?: StringFieldUpdateOperationsInput | string authToken?: StringFieldUpdateOperationsInput | string phoneNumber?: StringFieldUpdateOperationsInput | string greetingMessage?: NullableStringFieldUpdateOperationsInput | string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type TwilioSettingsCreateManyInput = { id?: number userId: number accountSid: string authToken: string phoneNumber: string greetingMessage?: string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type TwilioSettingsUpdateManyMutationInput = { accountSid?: StringFieldUpdateOperationsInput | string authToken?: StringFieldUpdateOperationsInput | string phoneNumber?: StringFieldUpdateOperationsInput | string greetingMessage?: NullableStringFieldUpdateOperationsInput | string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type TwilioSettingsUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number accountSid?: StringFieldUpdateOperationsInput | string authToken?: StringFieldUpdateOperationsInput | string phoneNumber?: StringFieldUpdateOperationsInput | string greetingMessage?: NullableStringFieldUpdateOperationsInput | string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type AiSettingsCreateInput = { apiKey: string afterHoursEnabled?: boolean openPhoneReply?: boolean user: UserCreateNestedOneWithoutAiSettingsInput } export type AiSettingsUncheckedCreateInput = { id?: number userId: number apiKey: string afterHoursEnabled?: boolean openPhoneReply?: boolean } export type AiSettingsUpdateInput = { apiKey?: StringFieldUpdateOperationsInput | string afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean openPhoneReply?: BoolFieldUpdateOperationsInput | boolean user?: UserUpdateOneRequiredWithoutAiSettingsNestedInput } export type AiSettingsUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number apiKey?: StringFieldUpdateOperationsInput | string afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean openPhoneReply?: BoolFieldUpdateOperationsInput | boolean } export type AiSettingsCreateManyInput = { id?: number userId: number apiKey: string afterHoursEnabled?: boolean openPhoneReply?: boolean } export type AiSettingsUpdateManyMutationInput = { apiKey?: StringFieldUpdateOperationsInput | string afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean openPhoneReply?: BoolFieldUpdateOperationsInput | boolean } export type AiSettingsUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number apiKey?: StringFieldUpdateOperationsInput | string afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean openPhoneReply?: BoolFieldUpdateOperationsInput | boolean } export type OfficeHoursCreateInput = { data: JsonNullValueInput | InputJsonValue user: UserCreateNestedOneWithoutOfficeHoursInput } export type OfficeHoursUncheckedCreateInput = { id?: number userId: number data: JsonNullValueInput | InputJsonValue } export type OfficeHoursUpdateInput = { data?: JsonNullValueInput | InputJsonValue user?: UserUpdateOneRequiredWithoutOfficeHoursNestedInput } export type OfficeHoursUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number data?: JsonNullValueInput | InputJsonValue } export type OfficeHoursCreateManyInput = { id?: number userId: number data: JsonNullValueInput | InputJsonValue } export type OfficeHoursUpdateManyMutationInput = { data?: JsonNullValueInput | InputJsonValue } export type OfficeHoursUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number data?: JsonNullValueInput | InputJsonValue } export type OfficeContactCreateInput = { officeName?: string | null receptionistName?: string | null dentistName?: string | null phoneNumber?: string | null email?: string | null fax?: string | null streetAddress?: string | null city?: string | null state?: string | null zipCode?: string | null user: UserCreateNestedOneWithoutOfficeContactInput } export type OfficeContactUncheckedCreateInput = { id?: number userId: number officeName?: string | null receptionistName?: string | null dentistName?: string | null phoneNumber?: string | null email?: string | null fax?: string | null streetAddress?: string | null city?: string | null state?: string | null zipCode?: string | null } export type OfficeContactUpdateInput = { officeName?: NullableStringFieldUpdateOperationsInput | string | null receptionistName?: NullableStringFieldUpdateOperationsInput | string | null dentistName?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null fax?: NullableStringFieldUpdateOperationsInput | string | null streetAddress?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null state?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null user?: UserUpdateOneRequiredWithoutOfficeContactNestedInput } export type OfficeContactUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number officeName?: NullableStringFieldUpdateOperationsInput | string | null receptionistName?: NullableStringFieldUpdateOperationsInput | string | null dentistName?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null fax?: NullableStringFieldUpdateOperationsInput | string | null streetAddress?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null state?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null } export type OfficeContactCreateManyInput = { id?: number userId: number officeName?: string | null receptionistName?: string | null dentistName?: string | null phoneNumber?: string | null email?: string | null fax?: string | null streetAddress?: string | null city?: string | null state?: string | null zipCode?: string | null } export type OfficeContactUpdateManyMutationInput = { officeName?: NullableStringFieldUpdateOperationsInput | string | null receptionistName?: NullableStringFieldUpdateOperationsInput | string | null dentistName?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null fax?: NullableStringFieldUpdateOperationsInput | string | null streetAddress?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null state?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null } export type OfficeContactUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number officeName?: NullableStringFieldUpdateOperationsInput | string | null receptionistName?: NullableStringFieldUpdateOperationsInput | string | null dentistName?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null fax?: NullableStringFieldUpdateOperationsInput | string | null streetAddress?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null state?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null } export type InsuranceContactCreateInput = { name: string phoneNumber?: string | null createdAt?: Date | string user: UserCreateNestedOneWithoutInsuranceContactsInput } export type InsuranceContactUncheckedCreateInput = { id?: number userId: number name: string phoneNumber?: string | null createdAt?: Date | string } export type InsuranceContactUpdateInput = { name?: StringFieldUpdateOperationsInput | string phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutInsuranceContactsNestedInput } export type InsuranceContactUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InsuranceContactCreateManyInput = { id?: number userId: number name: string phoneNumber?: string | null createdAt?: Date | string } export type InsuranceContactUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InsuranceContactUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProcedureTimeslotCreateInput = { data: JsonNullValueInput | InputJsonValue user: UserCreateNestedOneWithoutProcedureTimeslotInput } export type ProcedureTimeslotUncheckedCreateInput = { id?: number userId: number data: JsonNullValueInput | InputJsonValue } export type ProcedureTimeslotUpdateInput = { data?: JsonNullValueInput | InputJsonValue user?: UserUpdateOneRequiredWithoutProcedureTimeslotNestedInput } export type ProcedureTimeslotUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number data?: JsonNullValueInput | InputJsonValue } export type ProcedureTimeslotCreateManyInput = { id?: number userId: number data: JsonNullValueInput | InputJsonValue } export type ProcedureTimeslotUpdateManyMutationInput = { data?: JsonNullValueInput | InputJsonValue } export type ProcedureTimeslotUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number data?: JsonNullValueInput | InputJsonValue } export type PatientConversationCreateInput = { stage?: string aiHandoff?: boolean updatedAt?: Date | string patient: PatientCreateNestedOneWithoutConversationInput user: UserCreateNestedOneWithoutPatientConversationsInput } export type PatientConversationUncheckedCreateInput = { id?: number patientId: number userId: number stage?: string aiHandoff?: boolean updatedAt?: Date | string } export type PatientConversationUpdateInput = { stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutConversationNestedInput user?: UserUpdateOneRequiredWithoutPatientConversationsNestedInput } export type PatientConversationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientConversationCreateManyInput = { id?: number patientId: number userId: number stage?: string aiHandoff?: boolean updatedAt?: Date | string } export type PatientConversationUpdateManyMutationInput = { stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientConversationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommissionBatchCreateInput = { totalCollection: Decimal | DecimalJsLike | number | string commissionAmount: Decimal | DecimalJsLike | number | string notes?: string | null createdAt?: Date | string npiProvider: NpiProviderCreateNestedOneWithoutCommissionBatchesInput items?: CommissionBatchItemCreateNestedManyWithoutCommissionBatchInput } export type CommissionBatchUncheckedCreateInput = { id?: number npiProviderId: number totalCollection: Decimal | DecimalJsLike | number | string commissionAmount: Decimal | DecimalJsLike | number | string notes?: string | null createdAt?: Date | string items?: CommissionBatchItemUncheckedCreateNestedManyWithoutCommissionBatchInput } export type CommissionBatchUpdateInput = { totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string npiProvider?: NpiProviderUpdateOneRequiredWithoutCommissionBatchesNestedInput items?: CommissionBatchItemUpdateManyWithoutCommissionBatchNestedInput } export type CommissionBatchUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number npiProviderId?: IntFieldUpdateOperationsInput | number totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: CommissionBatchItemUncheckedUpdateManyWithoutCommissionBatchNestedInput } export type CommissionBatchCreateManyInput = { id?: number npiProviderId: number totalCollection: Decimal | DecimalJsLike | number | string commissionAmount: Decimal | DecimalJsLike | number | string notes?: string | null createdAt?: Date | string } export type CommissionBatchUpdateManyMutationInput = { totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommissionBatchUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number npiProviderId?: IntFieldUpdateOperationsInput | number totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommissionBatchItemCreateInput = { collectionAmount: Decimal | DecimalJsLike | number | string commissionBatch: CommissionBatchCreateNestedOneWithoutItemsInput payment: PaymentCreateNestedOneWithoutCommissionBatchItemsInput } export type CommissionBatchItemUncheckedCreateInput = { id?: number commissionBatchId: number paymentId: number collectionAmount: Decimal | DecimalJsLike | number | string } export type CommissionBatchItemUpdateInput = { collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionBatch?: CommissionBatchUpdateOneRequiredWithoutItemsNestedInput payment?: PaymentUpdateOneRequiredWithoutCommissionBatchItemsNestedInput } export type CommissionBatchItemUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number commissionBatchId?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string } export type CommissionBatchItemCreateManyInput = { id?: number commissionBatchId: number paymentId: number collectionAmount: Decimal | DecimalJsLike | number | string } export type CommissionBatchItemUpdateManyMutationInput = { collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string } export type CommissionBatchItemUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number commissionBatchId?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringFilter<$PrismaModel> | string } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type PatientListRelationFilter = { every?: PatientWhereInput some?: PatientWhereInput none?: PatientWhereInput } export type AppointmentListRelationFilter = { every?: AppointmentWhereInput some?: AppointmentWhereInput none?: AppointmentWhereInput } export type StaffListRelationFilter = { every?: StaffWhereInput some?: StaffWhereInput none?: StaffWhereInput } export type NpiProviderListRelationFilter = { every?: NpiProviderWhereInput some?: NpiProviderWhereInput none?: NpiProviderWhereInput } export type ClaimListRelationFilter = { every?: ClaimWhereInput some?: ClaimWhereInput none?: ClaimWhereInput } export type InsuranceCredentialListRelationFilter = { every?: InsuranceCredentialWhereInput some?: InsuranceCredentialWhereInput none?: InsuranceCredentialWhereInput } export type ShoppingVendorListRelationFilter = { every?: ShoppingVendorWhereInput some?: ShoppingVendorWhereInput none?: ShoppingVendorWhereInput } export type PaymentListRelationFilter = { every?: PaymentWhereInput some?: PaymentWhereInput none?: PaymentWhereInput } export type DatabaseBackupListRelationFilter = { every?: DatabaseBackupWhereInput some?: DatabaseBackupWhereInput none?: DatabaseBackupWhereInput } export type BackupDestinationListRelationFilter = { every?: BackupDestinationWhereInput some?: BackupDestinationWhereInput none?: BackupDestinationWhereInput } export type NotificationListRelationFilter = { every?: NotificationWhereInput some?: NotificationWhereInput none?: NotificationWhereInput } export type CloudFolderListRelationFilter = { every?: CloudFolderWhereInput some?: CloudFolderWhereInput none?: CloudFolderWhereInput } export type CloudFileListRelationFilter = { every?: CloudFileWhereInput some?: CloudFileWhereInput none?: CloudFileWhereInput } export type CommunicationListRelationFilter = { every?: CommunicationWhereInput some?: CommunicationWhereInput none?: CommunicationWhereInput } export type TwilioSettingsNullableScalarRelationFilter = { is?: TwilioSettingsWhereInput | null isNot?: TwilioSettingsWhereInput | null } export type AiSettingsNullableScalarRelationFilter = { is?: AiSettingsWhereInput | null isNot?: AiSettingsWhereInput | null } export type OfficeHoursNullableScalarRelationFilter = { is?: OfficeHoursWhereInput | null isNot?: OfficeHoursWhereInput | null } export type OfficeContactNullableScalarRelationFilter = { is?: OfficeContactWhereInput | null isNot?: OfficeContactWhereInput | null } export type ProcedureTimeslotNullableScalarRelationFilter = { is?: ProcedureTimeslotWhereInput | null isNot?: ProcedureTimeslotWhereInput | null } export type InsuranceContactListRelationFilter = { every?: InsuranceContactWhereInput some?: InsuranceContactWhereInput none?: InsuranceContactWhereInput } export type PatientConversationListRelationFilter = { every?: PatientConversationWhereInput some?: PatientConversationWhereInput none?: PatientConversationWhereInput } export type PatientOrderByRelationAggregateInput = { _count?: SortOrder } export type AppointmentOrderByRelationAggregateInput = { _count?: SortOrder } export type StaffOrderByRelationAggregateInput = { _count?: SortOrder } export type NpiProviderOrderByRelationAggregateInput = { _count?: SortOrder } export type ClaimOrderByRelationAggregateInput = { _count?: SortOrder } export type InsuranceCredentialOrderByRelationAggregateInput = { _count?: SortOrder } export type ShoppingVendorOrderByRelationAggregateInput = { _count?: SortOrder } export type PaymentOrderByRelationAggregateInput = { _count?: SortOrder } export type DatabaseBackupOrderByRelationAggregateInput = { _count?: SortOrder } export type BackupDestinationOrderByRelationAggregateInput = { _count?: SortOrder } export type NotificationOrderByRelationAggregateInput = { _count?: SortOrder } export type CloudFolderOrderByRelationAggregateInput = { _count?: SortOrder } export type CloudFileOrderByRelationAggregateInput = { _count?: SortOrder } export type CommunicationOrderByRelationAggregateInput = { _count?: SortOrder } export type InsuranceContactOrderByRelationAggregateInput = { _count?: SortOrder } export type PatientConversationOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder username?: SortOrder password?: SortOrder autoBackupEnabled?: SortOrder usbBackupEnabled?: SortOrder } export type UserAvgOrderByAggregateInput = { id?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder username?: SortOrder password?: SortOrder autoBackupEnabled?: SortOrder usbBackupEnabled?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder username?: SortOrder password?: SortOrder autoBackupEnabled?: SortOrder usbBackupEnabled?: SortOrder } export type UserSumOrderByAggregateInput = { id?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type EnumPatientStatusFilter<$PrismaModel = never> = { equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel> in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> not?: NestedEnumPatientStatusFilter<$PrismaModel> | $Enums.PatientStatus } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type AppointmentProcedureListRelationFilter = { every?: AppointmentProcedureWhereInput some?: AppointmentProcedureWhereInput none?: AppointmentProcedureWhereInput } export type PdfGroupListRelationFilter = { every?: PdfGroupWhereInput some?: PdfGroupWhereInput none?: PdfGroupWhereInput } export type PatientDocumentListRelationFilter = { every?: PatientDocumentWhereInput some?: PatientDocumentWhereInput none?: PatientDocumentWhereInput } export type PatientConversationNullableScalarRelationFilter = { is?: PatientConversationWhereInput | null isNot?: PatientConversationWhereInput | null } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type AppointmentProcedureOrderByRelationAggregateInput = { _count?: SortOrder } export type PdfGroupOrderByRelationAggregateInput = { _count?: SortOrder } export type PatientDocumentOrderByRelationAggregateInput = { _count?: SortOrder } export type PatientCountOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrder address?: SortOrder city?: SortOrder zipCode?: SortOrder insuranceProvider?: SortOrder insuranceId?: SortOrder groupNumber?: SortOrder policyHolder?: SortOrder allergies?: SortOrder medicalConditions?: SortOrder preferredLanguage?: SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PatientAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type PatientMaxOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrder address?: SortOrder city?: SortOrder zipCode?: SortOrder insuranceProvider?: SortOrder insuranceId?: SortOrder groupNumber?: SortOrder policyHolder?: SortOrder allergies?: SortOrder medicalConditions?: SortOrder preferredLanguage?: SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PatientMinOrderByAggregateInput = { id?: SortOrder firstName?: SortOrder lastName?: SortOrder dateOfBirth?: SortOrder gender?: SortOrder phone?: SortOrder email?: SortOrder address?: SortOrder city?: SortOrder zipCode?: SortOrder insuranceProvider?: SortOrder insuranceId?: SortOrder groupNumber?: SortOrder policyHolder?: SortOrder allergies?: SortOrder medicalConditions?: SortOrder preferredLanguage?: SortOrder status?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PatientSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type EnumPatientStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel> in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> not?: NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel> | $Enums.PatientStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPatientStatusFilter<$PrismaModel> _max?: NestedEnumPatientStatusFilter<$PrismaModel> } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type PatientScalarRelationFilter = { is?: PatientWhereInput isNot?: PatientWhereInput } export type StaffNullableScalarRelationFilter = { is?: StaffWhereInput | null isNot?: StaffWhereInput | null } export type AppointmentFileListRelationFilter = { every?: AppointmentFileWhereInput some?: AppointmentFileWhereInput none?: AppointmentFileWhereInput } export type AppointmentFileOrderByRelationAggregateInput = { _count?: SortOrder } export type AppointmentCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder typeLocked?: SortOrder notes?: SortOrder procedureCodeNotes?: SortOrder status?: SortOrder movedByAi?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder } export type AppointmentAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder } export type AppointmentMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder typeLocked?: SortOrder notes?: SortOrder procedureCodeNotes?: SortOrder status?: SortOrder movedByAi?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder } export type AppointmentMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder title?: SortOrder date?: SortOrder startTime?: SortOrder endTime?: SortOrder type?: SortOrder typeLocked?: SortOrder notes?: SortOrder procedureCodeNotes?: SortOrder status?: SortOrder movedByAi?: SortOrder createdAt?: SortOrder eligibilityStatus?: SortOrder } export type AppointmentSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder staffId?: SortOrder } export type AppointmentScalarRelationFilter = { is?: AppointmentWhereInput isNot?: AppointmentWhereInput } export type AppointmentFileCountOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder filename?: SortOrder mimeType?: SortOrder filePath?: SortOrder } export type AppointmentFileAvgOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder } export type AppointmentFileMaxOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder filename?: SortOrder mimeType?: SortOrder filePath?: SortOrder } export type AppointmentFileMinOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder filename?: SortOrder mimeType?: SortOrder filePath?: SortOrder } export type AppointmentFileSumOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder } export type UserNullableScalarRelationFilter = { is?: UserWhereInput | null isNot?: UserWhereInput | null } export type StaffCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrder role?: SortOrder phone?: SortOrder createdAt?: SortOrder } export type StaffAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type StaffMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrder role?: SortOrder phone?: SortOrder createdAt?: SortOrder } export type StaffMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder email?: SortOrder role?: SortOrder phone?: SortOrder createdAt?: SortOrder } export type StaffSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type CommissionBatchListRelationFilter = { every?: CommissionBatchWhereInput some?: CommissionBatchWhereInput none?: CommissionBatchWhereInput } export type CommissionBatchOrderByRelationAggregateInput = { _count?: SortOrder } export type NpiProviderUserIdNpiNumberCompoundUniqueInput = { userId: number npiNumber: string } export type NpiProviderCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder } export type NpiProviderAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type NpiProviderMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder } export type NpiProviderMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder npiNumber?: SortOrder providerName?: SortOrder createdAt?: SortOrder } export type NpiProviderSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type DecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type EnumProcedureSourceFilter<$PrismaModel = never> = { equals?: $Enums.ProcedureSource | EnumProcedureSourceFieldRefInput<$PrismaModel> in?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> notIn?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> not?: NestedEnumProcedureSourceFilter<$PrismaModel> | $Enums.ProcedureSource } export type NpiProviderNullableScalarRelationFilter = { is?: NpiProviderWhereInput | null isNot?: NpiProviderWhereInput | null } export type AppointmentProcedureCountOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder npiProviderId?: SortOrder procedureCode?: SortOrder procedureLabel?: SortOrder fee?: SortOrder category?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder oralCavityArea?: SortOrder source?: SortOrder comboKey?: SortOrder createdAt?: SortOrder } export type AppointmentProcedureAvgOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder npiProviderId?: SortOrder fee?: SortOrder } export type AppointmentProcedureMaxOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder npiProviderId?: SortOrder procedureCode?: SortOrder procedureLabel?: SortOrder fee?: SortOrder category?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder oralCavityArea?: SortOrder source?: SortOrder comboKey?: SortOrder createdAt?: SortOrder } export type AppointmentProcedureMinOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder npiProviderId?: SortOrder procedureCode?: SortOrder procedureLabel?: SortOrder fee?: SortOrder category?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder oralCavityArea?: SortOrder source?: SortOrder comboKey?: SortOrder createdAt?: SortOrder } export type AppointmentProcedureSumOrderByAggregateInput = { id?: SortOrder appointmentId?: SortOrder patientId?: SortOrder npiProviderId?: SortOrder fee?: SortOrder } export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedIntNullableFilter<$PrismaModel> _min?: NestedIntNullableFilter<$PrismaModel> _max?: NestedIntNullableFilter<$PrismaModel> } export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type EnumProcedureSourceWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ProcedureSource | EnumProcedureSourceFieldRefInput<$PrismaModel> in?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> notIn?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> not?: NestedEnumProcedureSourceWithAggregatesFilter<$PrismaModel> | $Enums.ProcedureSource _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumProcedureSourceFilter<$PrismaModel> _max?: NestedEnumProcedureSourceFilter<$PrismaModel> } export type EnumMissingTeethStatusFilter<$PrismaModel = never> = { equals?: $Enums.MissingTeethStatus | EnumMissingTeethStatusFieldRefInput<$PrismaModel> in?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> not?: NestedEnumMissingTeethStatusFilter<$PrismaModel> | $Enums.MissingTeethStatus } export type JsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type EnumClaimStatusFilter<$PrismaModel = never> = { equals?: $Enums.ClaimStatus | EnumClaimStatusFieldRefInput<$PrismaModel> in?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> not?: NestedEnumClaimStatusFilter<$PrismaModel> | $Enums.ClaimStatus } export type AppointmentNullableScalarRelationFilter = { is?: AppointmentWhereInput | null isNot?: AppointmentWhereInput | null } export type ServiceLineListRelationFilter = { every?: ServiceLineWhereInput some?: ServiceLineWhereInput none?: ServiceLineWhereInput } export type ClaimFileListRelationFilter = { every?: ClaimFileWhereInput some?: ClaimFileWhereInput none?: ClaimFileWhereInput } export type PaymentNullableScalarRelationFilter = { is?: PaymentWhereInput | null isNot?: PaymentWhereInput | null } export type ServiceLineOrderByRelationAggregateInput = { _count?: SortOrder } export type ClaimFileOrderByRelationAggregateInput = { _count?: SortOrder } export type ClaimCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder missingTeeth?: SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrder preAuthNumber?: SortOrder npiProviderId?: SortOrder } export type ClaimAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder npiProviderId?: SortOrder } export type ClaimMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrder preAuthNumber?: SortOrder npiProviderId?: SortOrder } export type ClaimMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder patientName?: SortOrder memberId?: SortOrder dateOfBirth?: SortOrder remarks?: SortOrder missingTeethStatus?: SortOrder serviceDate?: SortOrder insuranceProvider?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder status?: SortOrder claimNumber?: SortOrder preAuthNumber?: SortOrder npiProviderId?: SortOrder } export type ClaimSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder appointmentId?: SortOrder userId?: SortOrder staffId?: SortOrder npiProviderId?: SortOrder } export type EnumMissingTeethStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MissingTeethStatus | EnumMissingTeethStatusFieldRefInput<$PrismaModel> in?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> not?: NestedEnumMissingTeethStatusWithAggregatesFilter<$PrismaModel> | $Enums.MissingTeethStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMissingTeethStatusFilter<$PrismaModel> _max?: NestedEnumMissingTeethStatusFilter<$PrismaModel> } export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedJsonNullableFilter<$PrismaModel> _max?: NestedJsonNullableFilter<$PrismaModel> } export type EnumClaimStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ClaimStatus | EnumClaimStatusFieldRefInput<$PrismaModel> in?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> not?: NestedEnumClaimStatusWithAggregatesFilter<$PrismaModel> | $Enums.ClaimStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumClaimStatusFilter<$PrismaModel> _max?: NestedEnumClaimStatusFilter<$PrismaModel> } export type DecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type EnumServiceLineStatusFilter<$PrismaModel = never> = { equals?: $Enums.ServiceLineStatus | EnumServiceLineStatusFieldRefInput<$PrismaModel> in?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> not?: NestedEnumServiceLineStatusFilter<$PrismaModel> | $Enums.ServiceLineStatus } export type ClaimNullableScalarRelationFilter = { is?: ClaimWhereInput | null isNot?: ClaimWhereInput | null } export type ServiceLineTransactionListRelationFilter = { every?: ServiceLineTransactionWhereInput some?: ServiceLineTransactionWhereInput none?: ServiceLineTransactionWhereInput } export type ServiceLineTransactionOrderByRelationAggregateInput = { _count?: SortOrder } export type ServiceLineCountOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrder arch?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder icn?: SortOrder paidCode?: SortOrder allowedAmount?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder } export type ServiceLineAvgOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder allowedAmount?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder } export type ServiceLineMaxOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrder arch?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder icn?: SortOrder paidCode?: SortOrder allowedAmount?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder } export type ServiceLineMinOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder procedureCode?: SortOrder procedureDate?: SortOrder quad?: SortOrder arch?: SortOrder toothNumber?: SortOrder toothSurface?: SortOrder icn?: SortOrder paidCode?: SortOrder allowedAmount?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder status?: SortOrder } export type ServiceLineSumOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder paymentId?: SortOrder allowedAmount?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder } export type DecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } export type EnumServiceLineStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ServiceLineStatus | EnumServiceLineStatusFieldRefInput<$PrismaModel> in?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> not?: NestedEnumServiceLineStatusWithAggregatesFilter<$PrismaModel> | $Enums.ServiceLineStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumServiceLineStatusFilter<$PrismaModel> _max?: NestedEnumServiceLineStatusFilter<$PrismaModel> } export type ClaimScalarRelationFilter = { is?: ClaimWhereInput isNot?: ClaimWhereInput } export type ClaimFileCountOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder filePath?: SortOrder } export type ClaimFileAvgOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder } export type ClaimFileMaxOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder filePath?: SortOrder } export type ClaimFileMinOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder filename?: SortOrder mimeType?: SortOrder filePath?: SortOrder } export type ClaimFileSumOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder } export type InsuranceCredentialUserIdSiteKeyCompoundUniqueInput = { userId: number siteKey: string } export type InsuranceCredentialCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder } export type InsuranceCredentialAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type InsuranceCredentialMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder } export type InsuranceCredentialMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder siteKey?: SortOrder username?: SortOrder password?: SortOrder } export type InsuranceCredentialSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type ShoppingVendorCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder vendorName?: SortOrder websiteUrl?: SortOrder loginUsername?: SortOrder loginPassword?: SortOrder } export type ShoppingVendorAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type ShoppingVendorMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder vendorName?: SortOrder websiteUrl?: SortOrder loginUsername?: SortOrder loginPassword?: SortOrder } export type ShoppingVendorMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder vendorName?: SortOrder websiteUrl?: SortOrder loginUsername?: SortOrder loginPassword?: SortOrder } export type ShoppingVendorSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type EnumPdfTitleKeyFilter<$PrismaModel = never> = { equals?: $Enums.PdfTitleKey | EnumPdfTitleKeyFieldRefInput<$PrismaModel> in?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> notIn?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> not?: NestedEnumPdfTitleKeyFilter<$PrismaModel> | $Enums.PdfTitleKey } export type PdfFileListRelationFilter = { every?: PdfFileWhereInput some?: PdfFileWhereInput none?: PdfFileWhereInput } export type PdfFileOrderByRelationAggregateInput = { _count?: SortOrder } export type PdfGroupCountOrderByAggregateInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder } export type PdfGroupAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder } export type PdfGroupMaxOrderByAggregateInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder } export type PdfGroupMinOrderByAggregateInput = { id?: SortOrder title?: SortOrder titleKey?: SortOrder createdAt?: SortOrder patientId?: SortOrder } export type PdfGroupSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder } export type EnumPdfTitleKeyWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PdfTitleKey | EnumPdfTitleKeyFieldRefInput<$PrismaModel> in?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> notIn?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> not?: NestedEnumPdfTitleKeyWithAggregatesFilter<$PrismaModel> | $Enums.PdfTitleKey _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPdfTitleKeyFilter<$PrismaModel> _max?: NestedEnumPdfTitleKeyFilter<$PrismaModel> } export type BytesFilter<$PrismaModel = never> = { equals?: Bytes | BytesFieldRefInput<$PrismaModel> in?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> notIn?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> not?: NestedBytesFilter<$PrismaModel> | Bytes } export type PdfGroupScalarRelationFilter = { is?: PdfGroupWhereInput isNot?: PdfGroupWhereInput } export type PdfFileCountOrderByAggregateInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder } export type PdfFileAvgOrderByAggregateInput = { id?: SortOrder groupId?: SortOrder } export type PdfFileMaxOrderByAggregateInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder } export type PdfFileMinOrderByAggregateInput = { id?: SortOrder filename?: SortOrder pdfData?: SortOrder uploadedAt?: SortOrder groupId?: SortOrder } export type PdfFileSumOrderByAggregateInput = { id?: SortOrder groupId?: SortOrder } export type BytesWithAggregatesFilter<$PrismaModel = never> = { equals?: Bytes | BytesFieldRefInput<$PrismaModel> in?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> notIn?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> not?: NestedBytesWithAggregatesFilter<$PrismaModel> | Bytes _count?: NestedIntFilter<$PrismaModel> _min?: NestedBytesFilter<$PrismaModel> _max?: NestedBytesFilter<$PrismaModel> } export type EnumPaymentStatusFilter<$PrismaModel = never> = { equals?: $Enums.PaymentStatus | EnumPaymentStatusFieldRefInput<$PrismaModel> in?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> not?: NestedEnumPaymentStatusFilter<$PrismaModel> | $Enums.PaymentStatus } export type CommissionBatchItemListRelationFilter = { every?: CommissionBatchItemWhereInput some?: CommissionBatchItemWhereInput none?: CommissionBatchItemWhereInput } export type CommissionBatchItemOrderByRelationAggregateInput = { _count?: SortOrder } export type PaymentCountOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder npiProviderId?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder mhPaidAmount?: SortOrder copayment?: SortOrder adjustment?: SortOrder status?: SortOrder notes?: SortOrder icn?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PaymentAvgOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder npiProviderId?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder mhPaidAmount?: SortOrder copayment?: SortOrder adjustment?: SortOrder } export type PaymentMaxOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder npiProviderId?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder mhPaidAmount?: SortOrder copayment?: SortOrder adjustment?: SortOrder status?: SortOrder notes?: SortOrder icn?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PaymentMinOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder npiProviderId?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder mhPaidAmount?: SortOrder copayment?: SortOrder adjustment?: SortOrder status?: SortOrder notes?: SortOrder icn?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PaymentSumOrderByAggregateInput = { id?: SortOrder claimId?: SortOrder patientId?: SortOrder userId?: SortOrder updatedById?: SortOrder npiProviderId?: SortOrder totalBilled?: SortOrder totalPaid?: SortOrder totalAdjusted?: SortOrder totalDue?: SortOrder mhPaidAmount?: SortOrder copayment?: SortOrder adjustment?: SortOrder } export type EnumPaymentStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PaymentStatus | EnumPaymentStatusFieldRefInput<$PrismaModel> in?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> not?: NestedEnumPaymentStatusWithAggregatesFilter<$PrismaModel> | $Enums.PaymentStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPaymentStatusFilter<$PrismaModel> _max?: NestedEnumPaymentStatusFilter<$PrismaModel> } export type EnumPaymentMethodFilter<$PrismaModel = never> = { equals?: $Enums.PaymentMethod | EnumPaymentMethodFieldRefInput<$PrismaModel> in?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> not?: NestedEnumPaymentMethodFilter<$PrismaModel> | $Enums.PaymentMethod } export type PaymentScalarRelationFilter = { is?: PaymentWhereInput isNot?: PaymentWhereInput } export type ServiceLineScalarRelationFilter = { is?: ServiceLineWhereInput isNot?: ServiceLineWhereInput } export type ServiceLineTransactionCountOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type ServiceLineTransactionAvgOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder } export type ServiceLineTransactionMaxOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type ServiceLineTransactionMinOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder transactionId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder method?: SortOrder receivedDate?: SortOrder payerName?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type ServiceLineTransactionSumOrderByAggregateInput = { id?: SortOrder paymentId?: SortOrder serviceLineId?: SortOrder paidAmount?: SortOrder adjustedAmount?: SortOrder } export type EnumPaymentMethodWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PaymentMethod | EnumPaymentMethodFieldRefInput<$PrismaModel> in?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> not?: NestedEnumPaymentMethodWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethod _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPaymentMethodFilter<$PrismaModel> _max?: NestedEnumPaymentMethodFilter<$PrismaModel> } export type DatabaseBackupCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type DatabaseBackupAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type DatabaseBackupMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type DatabaseBackupMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder createdAt?: SortOrder } export type DatabaseBackupSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type BackupDestinationCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder } export type BackupDestinationAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type BackupDestinationMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder } export type BackupDestinationMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder path?: SortOrder isActive?: SortOrder createdAt?: SortOrder } export type BackupDestinationSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type EnumNotificationTypesFilter<$PrismaModel = never> = { equals?: $Enums.NotificationTypes | EnumNotificationTypesFieldRefInput<$PrismaModel> in?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> notIn?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> not?: NestedEnumNotificationTypesFilter<$PrismaModel> | $Enums.NotificationTypes } export type NotificationCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder } export type NotificationAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type NotificationMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder } export type NotificationMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder type?: SortOrder message?: SortOrder createdAt?: SortOrder read?: SortOrder } export type NotificationSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type EnumNotificationTypesWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.NotificationTypes | EnumNotificationTypesFieldRefInput<$PrismaModel> in?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> notIn?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> not?: NestedEnumNotificationTypesWithAggregatesFilter<$PrismaModel> | $Enums.NotificationTypes _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumNotificationTypesFilter<$PrismaModel> _max?: NestedEnumNotificationTypesFilter<$PrismaModel> } export type CronJobLogCountOrderByAggregateInput = { id?: SortOrder jobName?: SortOrder status?: SortOrder startedAt?: SortOrder completedAt?: SortOrder durationMs?: SortOrder errorMessage?: SortOrder } export type CronJobLogAvgOrderByAggregateInput = { id?: SortOrder durationMs?: SortOrder } export type CronJobLogMaxOrderByAggregateInput = { id?: SortOrder jobName?: SortOrder status?: SortOrder startedAt?: SortOrder completedAt?: SortOrder durationMs?: SortOrder errorMessage?: SortOrder } export type CronJobLogMinOrderByAggregateInput = { id?: SortOrder jobName?: SortOrder status?: SortOrder startedAt?: SortOrder completedAt?: SortOrder durationMs?: SortOrder errorMessage?: SortOrder } export type CronJobLogSumOrderByAggregateInput = { id?: SortOrder durationMs?: SortOrder } export type CloudFolderNullableScalarRelationFilter = { is?: CloudFolderWhereInput | null isNot?: CloudFolderWhereInput | null } export type CloudFolderUserIdParentIdNameCompoundUniqueInput = { userId: number parentId: number name: string } export type CloudFolderCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFolderAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder parentId?: SortOrder } export type CloudFolderMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFolderMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder parentId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFolderSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder parentId?: SortOrder } export type BigIntFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntFilter<$PrismaModel> | bigint | number } export type CloudFileChunkListRelationFilter = { every?: CloudFileChunkWhereInput some?: CloudFileChunkWhereInput none?: CloudFileChunkWhereInput } export type CloudFileChunkOrderByRelationAggregateInput = { _count?: SortOrder } export type CloudFileCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrder fileSize?: SortOrder folderId?: SortOrder isComplete?: SortOrder totalChunks?: SortOrder diskPath?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFileAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder fileSize?: SortOrder folderId?: SortOrder totalChunks?: SortOrder } export type CloudFileMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrder fileSize?: SortOrder folderId?: SortOrder isComplete?: SortOrder totalChunks?: SortOrder diskPath?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFileMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder mimeType?: SortOrder fileSize?: SortOrder folderId?: SortOrder isComplete?: SortOrder totalChunks?: SortOrder diskPath?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CloudFileSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder fileSize?: SortOrder folderId?: SortOrder totalChunks?: SortOrder } export type BigIntWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedBigIntFilter<$PrismaModel> _min?: NestedBigIntFilter<$PrismaModel> _max?: NestedBigIntFilter<$PrismaModel> } export type CloudFileScalarRelationFilter = { is?: CloudFileWhereInput isNot?: CloudFileWhereInput } export type CloudFileChunkFileIdSeqCompoundUniqueInput = { fileId: number seq: number } export type CloudFileChunkCountOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder } export type CloudFileChunkAvgOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder } export type CloudFileChunkMaxOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder } export type CloudFileChunkMinOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder data?: SortOrder createdAt?: SortOrder } export type CloudFileChunkSumOrderByAggregateInput = { id?: SortOrder fileId?: SortOrder seq?: SortOrder } export type EnumCommunicationChannelFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationChannel | EnumCommunicationChannelFieldRefInput<$PrismaModel> in?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationChannelFilter<$PrismaModel> | $Enums.CommunicationChannel } export type EnumCommunicationDirectionFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationDirection | EnumCommunicationDirectionFieldRefInput<$PrismaModel> in?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationDirectionFilter<$PrismaModel> | $Enums.CommunicationDirection } export type EnumCommunicationStatusFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationStatus | EnumCommunicationStatusFieldRefInput<$PrismaModel> in?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationStatusFilter<$PrismaModel> | $Enums.CommunicationStatus } export type CommunicationCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrder callDuration?: SortOrder twilioSid?: SortOrder createdAt?: SortOrder } export type CommunicationAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder callDuration?: SortOrder } export type CommunicationMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrder callDuration?: SortOrder twilioSid?: SortOrder createdAt?: SortOrder } export type CommunicationMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder channel?: SortOrder direction?: SortOrder status?: SortOrder body?: SortOrder callDuration?: SortOrder twilioSid?: SortOrder createdAt?: SortOrder } export type CommunicationSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder callDuration?: SortOrder } export type EnumCommunicationChannelWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationChannel | EnumCommunicationChannelFieldRefInput<$PrismaModel> in?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationChannelWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationChannel _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationChannelFilter<$PrismaModel> _max?: NestedEnumCommunicationChannelFilter<$PrismaModel> } export type EnumCommunicationDirectionWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationDirection | EnumCommunicationDirectionFieldRefInput<$PrismaModel> in?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationDirectionWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationDirection _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationDirectionFilter<$PrismaModel> _max?: NestedEnumCommunicationDirectionFilter<$PrismaModel> } export type EnumCommunicationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationStatus | EnumCommunicationStatusFieldRefInput<$PrismaModel> in?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationStatusWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationStatusFilter<$PrismaModel> _max?: NestedEnumCommunicationStatusFilter<$PrismaModel> } export type PatientDocumentCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder } export type PatientDocumentAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder fileSize?: SortOrder } export type PatientDocumentMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder } export type PatientDocumentMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder filename?: SortOrder originalName?: SortOrder mimeType?: SortOrder fileSize?: SortOrder filePath?: SortOrder uploadedAt?: SortOrder updatedAt?: SortOrder } export type PatientDocumentSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder fileSize?: SortOrder } export type TwilioSettingsCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder accountSid?: SortOrder authToken?: SortOrder phoneNumber?: SortOrder greetingMessage?: SortOrder templates?: SortOrder } export type TwilioSettingsAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type TwilioSettingsMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder accountSid?: SortOrder authToken?: SortOrder phoneNumber?: SortOrder greetingMessage?: SortOrder } export type TwilioSettingsMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder accountSid?: SortOrder authToken?: SortOrder phoneNumber?: SortOrder greetingMessage?: SortOrder } export type TwilioSettingsSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type AiSettingsCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder apiKey?: SortOrder afterHoursEnabled?: SortOrder openPhoneReply?: SortOrder } export type AiSettingsAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type AiSettingsMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder apiKey?: SortOrder afterHoursEnabled?: SortOrder openPhoneReply?: SortOrder } export type AiSettingsMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder apiKey?: SortOrder afterHoursEnabled?: SortOrder openPhoneReply?: SortOrder } export type AiSettingsSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type JsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type OfficeHoursCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder data?: SortOrder } export type OfficeHoursAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type OfficeHoursMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type OfficeHoursMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type OfficeHoursSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type JsonWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntFilter<$PrismaModel> _min?: NestedJsonFilter<$PrismaModel> _max?: NestedJsonFilter<$PrismaModel> } export type OfficeContactCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder officeName?: SortOrder receptionistName?: SortOrder dentistName?: SortOrder phoneNumber?: SortOrder email?: SortOrder fax?: SortOrder streetAddress?: SortOrder city?: SortOrder state?: SortOrder zipCode?: SortOrder } export type OfficeContactAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type OfficeContactMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder officeName?: SortOrder receptionistName?: SortOrder dentistName?: SortOrder phoneNumber?: SortOrder email?: SortOrder fax?: SortOrder streetAddress?: SortOrder city?: SortOrder state?: SortOrder zipCode?: SortOrder } export type OfficeContactMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder officeName?: SortOrder receptionistName?: SortOrder dentistName?: SortOrder phoneNumber?: SortOrder email?: SortOrder fax?: SortOrder streetAddress?: SortOrder city?: SortOrder state?: SortOrder zipCode?: SortOrder } export type OfficeContactSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type InsuranceContactCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder phoneNumber?: SortOrder createdAt?: SortOrder } export type InsuranceContactAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type InsuranceContactMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder phoneNumber?: SortOrder createdAt?: SortOrder } export type InsuranceContactMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder phoneNumber?: SortOrder createdAt?: SortOrder } export type InsuranceContactSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type ProcedureTimeslotCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder data?: SortOrder } export type ProcedureTimeslotAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type ProcedureTimeslotMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type ProcedureTimeslotMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type ProcedureTimeslotSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type PatientConversationCountOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder stage?: SortOrder aiHandoff?: SortOrder updatedAt?: SortOrder } export type PatientConversationAvgOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder } export type PatientConversationMaxOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder stage?: SortOrder aiHandoff?: SortOrder updatedAt?: SortOrder } export type PatientConversationMinOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder stage?: SortOrder aiHandoff?: SortOrder updatedAt?: SortOrder } export type PatientConversationSumOrderByAggregateInput = { id?: SortOrder patientId?: SortOrder userId?: SortOrder } export type NpiProviderScalarRelationFilter = { is?: NpiProviderWhereInput isNot?: NpiProviderWhereInput } export type CommissionBatchCountOrderByAggregateInput = { id?: SortOrder npiProviderId?: SortOrder totalCollection?: SortOrder commissionAmount?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type CommissionBatchAvgOrderByAggregateInput = { id?: SortOrder npiProviderId?: SortOrder totalCollection?: SortOrder commissionAmount?: SortOrder } export type CommissionBatchMaxOrderByAggregateInput = { id?: SortOrder npiProviderId?: SortOrder totalCollection?: SortOrder commissionAmount?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type CommissionBatchMinOrderByAggregateInput = { id?: SortOrder npiProviderId?: SortOrder totalCollection?: SortOrder commissionAmount?: SortOrder notes?: SortOrder createdAt?: SortOrder } export type CommissionBatchSumOrderByAggregateInput = { id?: SortOrder npiProviderId?: SortOrder totalCollection?: SortOrder commissionAmount?: SortOrder } export type CommissionBatchScalarRelationFilter = { is?: CommissionBatchWhereInput isNot?: CommissionBatchWhereInput } export type CommissionBatchItemCommissionBatchIdPaymentIdCompoundUniqueInput = { commissionBatchId: number paymentId: number } export type CommissionBatchItemCountOrderByAggregateInput = { id?: SortOrder commissionBatchId?: SortOrder paymentId?: SortOrder collectionAmount?: SortOrder } export type CommissionBatchItemAvgOrderByAggregateInput = { id?: SortOrder commissionBatchId?: SortOrder paymentId?: SortOrder collectionAmount?: SortOrder } export type CommissionBatchItemMaxOrderByAggregateInput = { id?: SortOrder commissionBatchId?: SortOrder paymentId?: SortOrder collectionAmount?: SortOrder } export type CommissionBatchItemMinOrderByAggregateInput = { id?: SortOrder commissionBatchId?: SortOrder paymentId?: SortOrder collectionAmount?: SortOrder } export type CommissionBatchItemSumOrderByAggregateInput = { id?: SortOrder commissionBatchId?: SortOrder paymentId?: SortOrder collectionAmount?: SortOrder } export type PatientCreateNestedManyWithoutUserInput = { create?: XOR | PatientCreateWithoutUserInput[] | PatientUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientCreateOrConnectWithoutUserInput | PatientCreateOrConnectWithoutUserInput[] createMany?: PatientCreateManyUserInputEnvelope connect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] } export type AppointmentCreateNestedManyWithoutUserInput = { create?: XOR | AppointmentCreateWithoutUserInput[] | AppointmentUncheckedCreateWithoutUserInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutUserInput | AppointmentCreateOrConnectWithoutUserInput[] createMany?: AppointmentCreateManyUserInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type StaffCreateNestedManyWithoutUserInput = { create?: XOR | StaffCreateWithoutUserInput[] | StaffUncheckedCreateWithoutUserInput[] connectOrCreate?: StaffCreateOrConnectWithoutUserInput | StaffCreateOrConnectWithoutUserInput[] createMany?: StaffCreateManyUserInputEnvelope connect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] } export type NpiProviderCreateNestedManyWithoutUserInput = { create?: XOR | NpiProviderCreateWithoutUserInput[] | NpiProviderUncheckedCreateWithoutUserInput[] connectOrCreate?: NpiProviderCreateOrConnectWithoutUserInput | NpiProviderCreateOrConnectWithoutUserInput[] createMany?: NpiProviderCreateManyUserInputEnvelope connect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutUserInput = { create?: XOR | ClaimCreateWithoutUserInput[] | ClaimUncheckedCreateWithoutUserInput[] connectOrCreate?: ClaimCreateOrConnectWithoutUserInput | ClaimCreateOrConnectWithoutUserInput[] createMany?: ClaimCreateManyUserInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type InsuranceCredentialCreateNestedManyWithoutUserInput = { create?: XOR | InsuranceCredentialCreateWithoutUserInput[] | InsuranceCredentialUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceCredentialCreateOrConnectWithoutUserInput | InsuranceCredentialCreateOrConnectWithoutUserInput[] createMany?: InsuranceCredentialCreateManyUserInputEnvelope connect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] } export type ShoppingVendorCreateNestedManyWithoutUserInput = { create?: XOR | ShoppingVendorCreateWithoutUserInput[] | ShoppingVendorUncheckedCreateWithoutUserInput[] connectOrCreate?: ShoppingVendorCreateOrConnectWithoutUserInput | ShoppingVendorCreateOrConnectWithoutUserInput[] createMany?: ShoppingVendorCreateManyUserInputEnvelope connect?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] } export type PaymentCreateNestedManyWithoutUpdatedByInput = { create?: XOR | PaymentCreateWithoutUpdatedByInput[] | PaymentUncheckedCreateWithoutUpdatedByInput[] connectOrCreate?: PaymentCreateOrConnectWithoutUpdatedByInput | PaymentCreateOrConnectWithoutUpdatedByInput[] createMany?: PaymentCreateManyUpdatedByInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type DatabaseBackupCreateNestedManyWithoutUserInput = { create?: XOR | DatabaseBackupCreateWithoutUserInput[] | DatabaseBackupUncheckedCreateWithoutUserInput[] connectOrCreate?: DatabaseBackupCreateOrConnectWithoutUserInput | DatabaseBackupCreateOrConnectWithoutUserInput[] createMany?: DatabaseBackupCreateManyUserInputEnvelope connect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] } export type BackupDestinationCreateNestedManyWithoutUserInput = { create?: XOR | BackupDestinationCreateWithoutUserInput[] | BackupDestinationUncheckedCreateWithoutUserInput[] connectOrCreate?: BackupDestinationCreateOrConnectWithoutUserInput | BackupDestinationCreateOrConnectWithoutUserInput[] createMany?: BackupDestinationCreateManyUserInputEnvelope connect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] } export type NotificationCreateNestedManyWithoutUserInput = { create?: XOR | NotificationCreateWithoutUserInput[] | NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: NotificationCreateOrConnectWithoutUserInput | NotificationCreateOrConnectWithoutUserInput[] createMany?: NotificationCreateManyUserInputEnvelope connect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] } export type CloudFolderCreateNestedManyWithoutUserInput = { create?: XOR | CloudFolderCreateWithoutUserInput[] | CloudFolderUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutUserInput | CloudFolderCreateOrConnectWithoutUserInput[] createMany?: CloudFolderCreateManyUserInputEnvelope connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] } export type CloudFileCreateNestedManyWithoutUserInput = { create?: XOR | CloudFileCreateWithoutUserInput[] | CloudFileUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutUserInput | CloudFileCreateOrConnectWithoutUserInput[] createMany?: CloudFileCreateManyUserInputEnvelope connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] } export type CommunicationCreateNestedManyWithoutUserInput = { create?: XOR | CommunicationCreateWithoutUserInput[] | CommunicationUncheckedCreateWithoutUserInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutUserInput | CommunicationCreateOrConnectWithoutUserInput[] createMany?: CommunicationCreateManyUserInputEnvelope connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] } export type TwilioSettingsCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: TwilioSettingsCreateOrConnectWithoutUserInput connect?: TwilioSettingsWhereUniqueInput } export type AiSettingsCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: AiSettingsCreateOrConnectWithoutUserInput connect?: AiSettingsWhereUniqueInput } export type OfficeHoursCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: OfficeHoursCreateOrConnectWithoutUserInput connect?: OfficeHoursWhereUniqueInput } export type OfficeContactCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: OfficeContactCreateOrConnectWithoutUserInput connect?: OfficeContactWhereUniqueInput } export type ProcedureTimeslotCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: ProcedureTimeslotCreateOrConnectWithoutUserInput connect?: ProcedureTimeslotWhereUniqueInput } export type InsuranceContactCreateNestedManyWithoutUserInput = { create?: XOR | InsuranceContactCreateWithoutUserInput[] | InsuranceContactUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceContactCreateOrConnectWithoutUserInput | InsuranceContactCreateOrConnectWithoutUserInput[] createMany?: InsuranceContactCreateManyUserInputEnvelope connect?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] } export type PatientConversationCreateNestedManyWithoutUserInput = { create?: XOR | PatientConversationCreateWithoutUserInput[] | PatientConversationUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientConversationCreateOrConnectWithoutUserInput | PatientConversationCreateOrConnectWithoutUserInput[] createMany?: PatientConversationCreateManyUserInputEnvelope connect?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] } export type PatientUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | PatientCreateWithoutUserInput[] | PatientUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientCreateOrConnectWithoutUserInput | PatientCreateOrConnectWithoutUserInput[] createMany?: PatientCreateManyUserInputEnvelope connect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] } export type AppointmentUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | AppointmentCreateWithoutUserInput[] | AppointmentUncheckedCreateWithoutUserInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutUserInput | AppointmentCreateOrConnectWithoutUserInput[] createMany?: AppointmentCreateManyUserInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type StaffUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | StaffCreateWithoutUserInput[] | StaffUncheckedCreateWithoutUserInput[] connectOrCreate?: StaffCreateOrConnectWithoutUserInput | StaffCreateOrConnectWithoutUserInput[] createMany?: StaffCreateManyUserInputEnvelope connect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] } export type NpiProviderUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | NpiProviderCreateWithoutUserInput[] | NpiProviderUncheckedCreateWithoutUserInput[] connectOrCreate?: NpiProviderCreateOrConnectWithoutUserInput | NpiProviderCreateOrConnectWithoutUserInput[] createMany?: NpiProviderCreateManyUserInputEnvelope connect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | ClaimCreateWithoutUserInput[] | ClaimUncheckedCreateWithoutUserInput[] connectOrCreate?: ClaimCreateOrConnectWithoutUserInput | ClaimCreateOrConnectWithoutUserInput[] createMany?: ClaimCreateManyUserInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | InsuranceCredentialCreateWithoutUserInput[] | InsuranceCredentialUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceCredentialCreateOrConnectWithoutUserInput | InsuranceCredentialCreateOrConnectWithoutUserInput[] createMany?: InsuranceCredentialCreateManyUserInputEnvelope connect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] } export type ShoppingVendorUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | ShoppingVendorCreateWithoutUserInput[] | ShoppingVendorUncheckedCreateWithoutUserInput[] connectOrCreate?: ShoppingVendorCreateOrConnectWithoutUserInput | ShoppingVendorCreateOrConnectWithoutUserInput[] createMany?: ShoppingVendorCreateManyUserInputEnvelope connect?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] } export type PaymentUncheckedCreateNestedManyWithoutUpdatedByInput = { create?: XOR | PaymentCreateWithoutUpdatedByInput[] | PaymentUncheckedCreateWithoutUpdatedByInput[] connectOrCreate?: PaymentCreateOrConnectWithoutUpdatedByInput | PaymentCreateOrConnectWithoutUpdatedByInput[] createMany?: PaymentCreateManyUpdatedByInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type DatabaseBackupUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | DatabaseBackupCreateWithoutUserInput[] | DatabaseBackupUncheckedCreateWithoutUserInput[] connectOrCreate?: DatabaseBackupCreateOrConnectWithoutUserInput | DatabaseBackupCreateOrConnectWithoutUserInput[] createMany?: DatabaseBackupCreateManyUserInputEnvelope connect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] } export type BackupDestinationUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | BackupDestinationCreateWithoutUserInput[] | BackupDestinationUncheckedCreateWithoutUserInput[] connectOrCreate?: BackupDestinationCreateOrConnectWithoutUserInput | BackupDestinationCreateOrConnectWithoutUserInput[] createMany?: BackupDestinationCreateManyUserInputEnvelope connect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] } export type NotificationUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | NotificationCreateWithoutUserInput[] | NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: NotificationCreateOrConnectWithoutUserInput | NotificationCreateOrConnectWithoutUserInput[] createMany?: NotificationCreateManyUserInputEnvelope connect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] } export type CloudFolderUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CloudFolderCreateWithoutUserInput[] | CloudFolderUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutUserInput | CloudFolderCreateOrConnectWithoutUserInput[] createMany?: CloudFolderCreateManyUserInputEnvelope connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] } export type CloudFileUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CloudFileCreateWithoutUserInput[] | CloudFileUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutUserInput | CloudFileCreateOrConnectWithoutUserInput[] createMany?: CloudFileCreateManyUserInputEnvelope connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] } export type CommunicationUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CommunicationCreateWithoutUserInput[] | CommunicationUncheckedCreateWithoutUserInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutUserInput | CommunicationCreateOrConnectWithoutUserInput[] createMany?: CommunicationCreateManyUserInputEnvelope connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] } export type TwilioSettingsUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: TwilioSettingsCreateOrConnectWithoutUserInput connect?: TwilioSettingsWhereUniqueInput } export type AiSettingsUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: AiSettingsCreateOrConnectWithoutUserInput connect?: AiSettingsWhereUniqueInput } export type OfficeHoursUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: OfficeHoursCreateOrConnectWithoutUserInput connect?: OfficeHoursWhereUniqueInput } export type OfficeContactUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: OfficeContactCreateOrConnectWithoutUserInput connect?: OfficeContactWhereUniqueInput } export type ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: ProcedureTimeslotCreateOrConnectWithoutUserInput connect?: ProcedureTimeslotWhereUniqueInput } export type InsuranceContactUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | InsuranceContactCreateWithoutUserInput[] | InsuranceContactUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceContactCreateOrConnectWithoutUserInput | InsuranceContactCreateOrConnectWithoutUserInput[] createMany?: InsuranceContactCreateManyUserInputEnvelope connect?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] } export type PatientConversationUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | PatientConversationCreateWithoutUserInput[] | PatientConversationUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientConversationCreateOrConnectWithoutUserInput | PatientConversationCreateOrConnectWithoutUserInput[] createMany?: PatientConversationCreateManyUserInputEnvelope connect?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type PatientUpdateManyWithoutUserNestedInput = { create?: XOR | PatientCreateWithoutUserInput[] | PatientUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientCreateOrConnectWithoutUserInput | PatientCreateOrConnectWithoutUserInput[] upsert?: PatientUpsertWithWhereUniqueWithoutUserInput | PatientUpsertWithWhereUniqueWithoutUserInput[] createMany?: PatientCreateManyUserInputEnvelope set?: PatientWhereUniqueInput | PatientWhereUniqueInput[] disconnect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] delete?: PatientWhereUniqueInput | PatientWhereUniqueInput[] connect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] update?: PatientUpdateWithWhereUniqueWithoutUserInput | PatientUpdateWithWhereUniqueWithoutUserInput[] updateMany?: PatientUpdateManyWithWhereWithoutUserInput | PatientUpdateManyWithWhereWithoutUserInput[] deleteMany?: PatientScalarWhereInput | PatientScalarWhereInput[] } export type AppointmentUpdateManyWithoutUserNestedInput = { create?: XOR | AppointmentCreateWithoutUserInput[] | AppointmentUncheckedCreateWithoutUserInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutUserInput | AppointmentCreateOrConnectWithoutUserInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutUserInput | AppointmentUpsertWithWhereUniqueWithoutUserInput[] createMany?: AppointmentCreateManyUserInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutUserInput | AppointmentUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutUserInput | AppointmentUpdateManyWithWhereWithoutUserInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type StaffUpdateManyWithoutUserNestedInput = { create?: XOR | StaffCreateWithoutUserInput[] | StaffUncheckedCreateWithoutUserInput[] connectOrCreate?: StaffCreateOrConnectWithoutUserInput | StaffCreateOrConnectWithoutUserInput[] upsert?: StaffUpsertWithWhereUniqueWithoutUserInput | StaffUpsertWithWhereUniqueWithoutUserInput[] createMany?: StaffCreateManyUserInputEnvelope set?: StaffWhereUniqueInput | StaffWhereUniqueInput[] disconnect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] delete?: StaffWhereUniqueInput | StaffWhereUniqueInput[] connect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] update?: StaffUpdateWithWhereUniqueWithoutUserInput | StaffUpdateWithWhereUniqueWithoutUserInput[] updateMany?: StaffUpdateManyWithWhereWithoutUserInput | StaffUpdateManyWithWhereWithoutUserInput[] deleteMany?: StaffScalarWhereInput | StaffScalarWhereInput[] } export type NpiProviderUpdateManyWithoutUserNestedInput = { create?: XOR | NpiProviderCreateWithoutUserInput[] | NpiProviderUncheckedCreateWithoutUserInput[] connectOrCreate?: NpiProviderCreateOrConnectWithoutUserInput | NpiProviderCreateOrConnectWithoutUserInput[] upsert?: NpiProviderUpsertWithWhereUniqueWithoutUserInput | NpiProviderUpsertWithWhereUniqueWithoutUserInput[] createMany?: NpiProviderCreateManyUserInputEnvelope set?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] disconnect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] delete?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] connect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] update?: NpiProviderUpdateWithWhereUniqueWithoutUserInput | NpiProviderUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NpiProviderUpdateManyWithWhereWithoutUserInput | NpiProviderUpdateManyWithWhereWithoutUserInput[] deleteMany?: NpiProviderScalarWhereInput | NpiProviderScalarWhereInput[] } export type ClaimUpdateManyWithoutUserNestedInput = { create?: XOR | ClaimCreateWithoutUserInput[] | ClaimUncheckedCreateWithoutUserInput[] connectOrCreate?: ClaimCreateOrConnectWithoutUserInput | ClaimCreateOrConnectWithoutUserInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutUserInput | ClaimUpsertWithWhereUniqueWithoutUserInput[] createMany?: ClaimCreateManyUserInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutUserInput | ClaimUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ClaimUpdateManyWithWhereWithoutUserInput | ClaimUpdateManyWithWhereWithoutUserInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type InsuranceCredentialUpdateManyWithoutUserNestedInput = { create?: XOR | InsuranceCredentialCreateWithoutUserInput[] | InsuranceCredentialUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceCredentialCreateOrConnectWithoutUserInput | InsuranceCredentialCreateOrConnectWithoutUserInput[] upsert?: InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput | InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput[] createMany?: InsuranceCredentialCreateManyUserInputEnvelope set?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] disconnect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] delete?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] connect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] update?: InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput | InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput[] updateMany?: InsuranceCredentialUpdateManyWithWhereWithoutUserInput | InsuranceCredentialUpdateManyWithWhereWithoutUserInput[] deleteMany?: InsuranceCredentialScalarWhereInput | InsuranceCredentialScalarWhereInput[] } export type ShoppingVendorUpdateManyWithoutUserNestedInput = { create?: XOR | ShoppingVendorCreateWithoutUserInput[] | ShoppingVendorUncheckedCreateWithoutUserInput[] connectOrCreate?: ShoppingVendorCreateOrConnectWithoutUserInput | ShoppingVendorCreateOrConnectWithoutUserInput[] upsert?: ShoppingVendorUpsertWithWhereUniqueWithoutUserInput | ShoppingVendorUpsertWithWhereUniqueWithoutUserInput[] createMany?: ShoppingVendorCreateManyUserInputEnvelope set?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] disconnect?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] delete?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] connect?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] update?: ShoppingVendorUpdateWithWhereUniqueWithoutUserInput | ShoppingVendorUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ShoppingVendorUpdateManyWithWhereWithoutUserInput | ShoppingVendorUpdateManyWithWhereWithoutUserInput[] deleteMany?: ShoppingVendorScalarWhereInput | ShoppingVendorScalarWhereInput[] } export type PaymentUpdateManyWithoutUpdatedByNestedInput = { create?: XOR | PaymentCreateWithoutUpdatedByInput[] | PaymentUncheckedCreateWithoutUpdatedByInput[] connectOrCreate?: PaymentCreateOrConnectWithoutUpdatedByInput | PaymentCreateOrConnectWithoutUpdatedByInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutUpdatedByInput | PaymentUpsertWithWhereUniqueWithoutUpdatedByInput[] createMany?: PaymentCreateManyUpdatedByInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutUpdatedByInput | PaymentUpdateWithWhereUniqueWithoutUpdatedByInput[] updateMany?: PaymentUpdateManyWithWhereWithoutUpdatedByInput | PaymentUpdateManyWithWhereWithoutUpdatedByInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type DatabaseBackupUpdateManyWithoutUserNestedInput = { create?: XOR | DatabaseBackupCreateWithoutUserInput[] | DatabaseBackupUncheckedCreateWithoutUserInput[] connectOrCreate?: DatabaseBackupCreateOrConnectWithoutUserInput | DatabaseBackupCreateOrConnectWithoutUserInput[] upsert?: DatabaseBackupUpsertWithWhereUniqueWithoutUserInput | DatabaseBackupUpsertWithWhereUniqueWithoutUserInput[] createMany?: DatabaseBackupCreateManyUserInputEnvelope set?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] disconnect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] delete?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] connect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] update?: DatabaseBackupUpdateWithWhereUniqueWithoutUserInput | DatabaseBackupUpdateWithWhereUniqueWithoutUserInput[] updateMany?: DatabaseBackupUpdateManyWithWhereWithoutUserInput | DatabaseBackupUpdateManyWithWhereWithoutUserInput[] deleteMany?: DatabaseBackupScalarWhereInput | DatabaseBackupScalarWhereInput[] } export type BackupDestinationUpdateManyWithoutUserNestedInput = { create?: XOR | BackupDestinationCreateWithoutUserInput[] | BackupDestinationUncheckedCreateWithoutUserInput[] connectOrCreate?: BackupDestinationCreateOrConnectWithoutUserInput | BackupDestinationCreateOrConnectWithoutUserInput[] upsert?: BackupDestinationUpsertWithWhereUniqueWithoutUserInput | BackupDestinationUpsertWithWhereUniqueWithoutUserInput[] createMany?: BackupDestinationCreateManyUserInputEnvelope set?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] disconnect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] delete?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] connect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] update?: BackupDestinationUpdateWithWhereUniqueWithoutUserInput | BackupDestinationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: BackupDestinationUpdateManyWithWhereWithoutUserInput | BackupDestinationUpdateManyWithWhereWithoutUserInput[] deleteMany?: BackupDestinationScalarWhereInput | BackupDestinationScalarWhereInput[] } export type NotificationUpdateManyWithoutUserNestedInput = { create?: XOR | NotificationCreateWithoutUserInput[] | NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: NotificationCreateOrConnectWithoutUserInput | NotificationCreateOrConnectWithoutUserInput[] upsert?: NotificationUpsertWithWhereUniqueWithoutUserInput | NotificationUpsertWithWhereUniqueWithoutUserInput[] createMany?: NotificationCreateManyUserInputEnvelope set?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] disconnect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] delete?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] connect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] update?: NotificationUpdateWithWhereUniqueWithoutUserInput | NotificationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NotificationUpdateManyWithWhereWithoutUserInput | NotificationUpdateManyWithWhereWithoutUserInput[] deleteMany?: NotificationScalarWhereInput | NotificationScalarWhereInput[] } export type CloudFolderUpdateManyWithoutUserNestedInput = { create?: XOR | CloudFolderCreateWithoutUserInput[] | CloudFolderUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutUserInput | CloudFolderCreateOrConnectWithoutUserInput[] upsert?: CloudFolderUpsertWithWhereUniqueWithoutUserInput | CloudFolderUpsertWithWhereUniqueWithoutUserInput[] createMany?: CloudFolderCreateManyUserInputEnvelope set?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] disconnect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] delete?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] update?: CloudFolderUpdateWithWhereUniqueWithoutUserInput | CloudFolderUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CloudFolderUpdateManyWithWhereWithoutUserInput | CloudFolderUpdateManyWithWhereWithoutUserInput[] deleteMany?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] } export type CloudFileUpdateManyWithoutUserNestedInput = { create?: XOR | CloudFileCreateWithoutUserInput[] | CloudFileUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutUserInput | CloudFileCreateOrConnectWithoutUserInput[] upsert?: CloudFileUpsertWithWhereUniqueWithoutUserInput | CloudFileUpsertWithWhereUniqueWithoutUserInput[] createMany?: CloudFileCreateManyUserInputEnvelope set?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] disconnect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] delete?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] update?: CloudFileUpdateWithWhereUniqueWithoutUserInput | CloudFileUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CloudFileUpdateManyWithWhereWithoutUserInput | CloudFileUpdateManyWithWhereWithoutUserInput[] deleteMany?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] } export type CommunicationUpdateManyWithoutUserNestedInput = { create?: XOR | CommunicationCreateWithoutUserInput[] | CommunicationUncheckedCreateWithoutUserInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutUserInput | CommunicationCreateOrConnectWithoutUserInput[] upsert?: CommunicationUpsertWithWhereUniqueWithoutUserInput | CommunicationUpsertWithWhereUniqueWithoutUserInput[] createMany?: CommunicationCreateManyUserInputEnvelope set?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] disconnect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] delete?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] update?: CommunicationUpdateWithWhereUniqueWithoutUserInput | CommunicationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CommunicationUpdateManyWithWhereWithoutUserInput | CommunicationUpdateManyWithWhereWithoutUserInput[] deleteMany?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] } export type TwilioSettingsUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: TwilioSettingsCreateOrConnectWithoutUserInput upsert?: TwilioSettingsUpsertWithoutUserInput disconnect?: TwilioSettingsWhereInput | boolean delete?: TwilioSettingsWhereInput | boolean connect?: TwilioSettingsWhereUniqueInput update?: XOR, TwilioSettingsUncheckedUpdateWithoutUserInput> } export type AiSettingsUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: AiSettingsCreateOrConnectWithoutUserInput upsert?: AiSettingsUpsertWithoutUserInput disconnect?: AiSettingsWhereInput | boolean delete?: AiSettingsWhereInput | boolean connect?: AiSettingsWhereUniqueInput update?: XOR, AiSettingsUncheckedUpdateWithoutUserInput> } export type OfficeHoursUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: OfficeHoursCreateOrConnectWithoutUserInput upsert?: OfficeHoursUpsertWithoutUserInput disconnect?: OfficeHoursWhereInput | boolean delete?: OfficeHoursWhereInput | boolean connect?: OfficeHoursWhereUniqueInput update?: XOR, OfficeHoursUncheckedUpdateWithoutUserInput> } export type OfficeContactUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: OfficeContactCreateOrConnectWithoutUserInput upsert?: OfficeContactUpsertWithoutUserInput disconnect?: OfficeContactWhereInput | boolean delete?: OfficeContactWhereInput | boolean connect?: OfficeContactWhereUniqueInput update?: XOR, OfficeContactUncheckedUpdateWithoutUserInput> } export type ProcedureTimeslotUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: ProcedureTimeslotCreateOrConnectWithoutUserInput upsert?: ProcedureTimeslotUpsertWithoutUserInput disconnect?: ProcedureTimeslotWhereInput | boolean delete?: ProcedureTimeslotWhereInput | boolean connect?: ProcedureTimeslotWhereUniqueInput update?: XOR, ProcedureTimeslotUncheckedUpdateWithoutUserInput> } export type InsuranceContactUpdateManyWithoutUserNestedInput = { create?: XOR | InsuranceContactCreateWithoutUserInput[] | InsuranceContactUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceContactCreateOrConnectWithoutUserInput | InsuranceContactCreateOrConnectWithoutUserInput[] upsert?: InsuranceContactUpsertWithWhereUniqueWithoutUserInput | InsuranceContactUpsertWithWhereUniqueWithoutUserInput[] createMany?: InsuranceContactCreateManyUserInputEnvelope set?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] disconnect?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] delete?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] connect?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] update?: InsuranceContactUpdateWithWhereUniqueWithoutUserInput | InsuranceContactUpdateWithWhereUniqueWithoutUserInput[] updateMany?: InsuranceContactUpdateManyWithWhereWithoutUserInput | InsuranceContactUpdateManyWithWhereWithoutUserInput[] deleteMany?: InsuranceContactScalarWhereInput | InsuranceContactScalarWhereInput[] } export type PatientConversationUpdateManyWithoutUserNestedInput = { create?: XOR | PatientConversationCreateWithoutUserInput[] | PatientConversationUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientConversationCreateOrConnectWithoutUserInput | PatientConversationCreateOrConnectWithoutUserInput[] upsert?: PatientConversationUpsertWithWhereUniqueWithoutUserInput | PatientConversationUpsertWithWhereUniqueWithoutUserInput[] createMany?: PatientConversationCreateManyUserInputEnvelope set?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] disconnect?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] delete?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] connect?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] update?: PatientConversationUpdateWithWhereUniqueWithoutUserInput | PatientConversationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: PatientConversationUpdateManyWithWhereWithoutUserInput | PatientConversationUpdateManyWithWhereWithoutUserInput[] deleteMany?: PatientConversationScalarWhereInput | PatientConversationScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type PatientUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | PatientCreateWithoutUserInput[] | PatientUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientCreateOrConnectWithoutUserInput | PatientCreateOrConnectWithoutUserInput[] upsert?: PatientUpsertWithWhereUniqueWithoutUserInput | PatientUpsertWithWhereUniqueWithoutUserInput[] createMany?: PatientCreateManyUserInputEnvelope set?: PatientWhereUniqueInput | PatientWhereUniqueInput[] disconnect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] delete?: PatientWhereUniqueInput | PatientWhereUniqueInput[] connect?: PatientWhereUniqueInput | PatientWhereUniqueInput[] update?: PatientUpdateWithWhereUniqueWithoutUserInput | PatientUpdateWithWhereUniqueWithoutUserInput[] updateMany?: PatientUpdateManyWithWhereWithoutUserInput | PatientUpdateManyWithWhereWithoutUserInput[] deleteMany?: PatientScalarWhereInput | PatientScalarWhereInput[] } export type AppointmentUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | AppointmentCreateWithoutUserInput[] | AppointmentUncheckedCreateWithoutUserInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutUserInput | AppointmentCreateOrConnectWithoutUserInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutUserInput | AppointmentUpsertWithWhereUniqueWithoutUserInput[] createMany?: AppointmentCreateManyUserInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutUserInput | AppointmentUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutUserInput | AppointmentUpdateManyWithWhereWithoutUserInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type StaffUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | StaffCreateWithoutUserInput[] | StaffUncheckedCreateWithoutUserInput[] connectOrCreate?: StaffCreateOrConnectWithoutUserInput | StaffCreateOrConnectWithoutUserInput[] upsert?: StaffUpsertWithWhereUniqueWithoutUserInput | StaffUpsertWithWhereUniqueWithoutUserInput[] createMany?: StaffCreateManyUserInputEnvelope set?: StaffWhereUniqueInput | StaffWhereUniqueInput[] disconnect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] delete?: StaffWhereUniqueInput | StaffWhereUniqueInput[] connect?: StaffWhereUniqueInput | StaffWhereUniqueInput[] update?: StaffUpdateWithWhereUniqueWithoutUserInput | StaffUpdateWithWhereUniqueWithoutUserInput[] updateMany?: StaffUpdateManyWithWhereWithoutUserInput | StaffUpdateManyWithWhereWithoutUserInput[] deleteMany?: StaffScalarWhereInput | StaffScalarWhereInput[] } export type NpiProviderUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | NpiProviderCreateWithoutUserInput[] | NpiProviderUncheckedCreateWithoutUserInput[] connectOrCreate?: NpiProviderCreateOrConnectWithoutUserInput | NpiProviderCreateOrConnectWithoutUserInput[] upsert?: NpiProviderUpsertWithWhereUniqueWithoutUserInput | NpiProviderUpsertWithWhereUniqueWithoutUserInput[] createMany?: NpiProviderCreateManyUserInputEnvelope set?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] disconnect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] delete?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] connect?: NpiProviderWhereUniqueInput | NpiProviderWhereUniqueInput[] update?: NpiProviderUpdateWithWhereUniqueWithoutUserInput | NpiProviderUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NpiProviderUpdateManyWithWhereWithoutUserInput | NpiProviderUpdateManyWithWhereWithoutUserInput[] deleteMany?: NpiProviderScalarWhereInput | NpiProviderScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | ClaimCreateWithoutUserInput[] | ClaimUncheckedCreateWithoutUserInput[] connectOrCreate?: ClaimCreateOrConnectWithoutUserInput | ClaimCreateOrConnectWithoutUserInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutUserInput | ClaimUpsertWithWhereUniqueWithoutUserInput[] createMany?: ClaimCreateManyUserInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutUserInput | ClaimUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ClaimUpdateManyWithWhereWithoutUserInput | ClaimUpdateManyWithWhereWithoutUserInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | InsuranceCredentialCreateWithoutUserInput[] | InsuranceCredentialUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceCredentialCreateOrConnectWithoutUserInput | InsuranceCredentialCreateOrConnectWithoutUserInput[] upsert?: InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput | InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput[] createMany?: InsuranceCredentialCreateManyUserInputEnvelope set?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] disconnect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] delete?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] connect?: InsuranceCredentialWhereUniqueInput | InsuranceCredentialWhereUniqueInput[] update?: InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput | InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput[] updateMany?: InsuranceCredentialUpdateManyWithWhereWithoutUserInput | InsuranceCredentialUpdateManyWithWhereWithoutUserInput[] deleteMany?: InsuranceCredentialScalarWhereInput | InsuranceCredentialScalarWhereInput[] } export type ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | ShoppingVendorCreateWithoutUserInput[] | ShoppingVendorUncheckedCreateWithoutUserInput[] connectOrCreate?: ShoppingVendorCreateOrConnectWithoutUserInput | ShoppingVendorCreateOrConnectWithoutUserInput[] upsert?: ShoppingVendorUpsertWithWhereUniqueWithoutUserInput | ShoppingVendorUpsertWithWhereUniqueWithoutUserInput[] createMany?: ShoppingVendorCreateManyUserInputEnvelope set?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] disconnect?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] delete?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] connect?: ShoppingVendorWhereUniqueInput | ShoppingVendorWhereUniqueInput[] update?: ShoppingVendorUpdateWithWhereUniqueWithoutUserInput | ShoppingVendorUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ShoppingVendorUpdateManyWithWhereWithoutUserInput | ShoppingVendorUpdateManyWithWhereWithoutUserInput[] deleteMany?: ShoppingVendorScalarWhereInput | ShoppingVendorScalarWhereInput[] } export type PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput = { create?: XOR | PaymentCreateWithoutUpdatedByInput[] | PaymentUncheckedCreateWithoutUpdatedByInput[] connectOrCreate?: PaymentCreateOrConnectWithoutUpdatedByInput | PaymentCreateOrConnectWithoutUpdatedByInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutUpdatedByInput | PaymentUpsertWithWhereUniqueWithoutUpdatedByInput[] createMany?: PaymentCreateManyUpdatedByInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutUpdatedByInput | PaymentUpdateWithWhereUniqueWithoutUpdatedByInput[] updateMany?: PaymentUpdateManyWithWhereWithoutUpdatedByInput | PaymentUpdateManyWithWhereWithoutUpdatedByInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | DatabaseBackupCreateWithoutUserInput[] | DatabaseBackupUncheckedCreateWithoutUserInput[] connectOrCreate?: DatabaseBackupCreateOrConnectWithoutUserInput | DatabaseBackupCreateOrConnectWithoutUserInput[] upsert?: DatabaseBackupUpsertWithWhereUniqueWithoutUserInput | DatabaseBackupUpsertWithWhereUniqueWithoutUserInput[] createMany?: DatabaseBackupCreateManyUserInputEnvelope set?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] disconnect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] delete?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] connect?: DatabaseBackupWhereUniqueInput | DatabaseBackupWhereUniqueInput[] update?: DatabaseBackupUpdateWithWhereUniqueWithoutUserInput | DatabaseBackupUpdateWithWhereUniqueWithoutUserInput[] updateMany?: DatabaseBackupUpdateManyWithWhereWithoutUserInput | DatabaseBackupUpdateManyWithWhereWithoutUserInput[] deleteMany?: DatabaseBackupScalarWhereInput | DatabaseBackupScalarWhereInput[] } export type BackupDestinationUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | BackupDestinationCreateWithoutUserInput[] | BackupDestinationUncheckedCreateWithoutUserInput[] connectOrCreate?: BackupDestinationCreateOrConnectWithoutUserInput | BackupDestinationCreateOrConnectWithoutUserInput[] upsert?: BackupDestinationUpsertWithWhereUniqueWithoutUserInput | BackupDestinationUpsertWithWhereUniqueWithoutUserInput[] createMany?: BackupDestinationCreateManyUserInputEnvelope set?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] disconnect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] delete?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] connect?: BackupDestinationWhereUniqueInput | BackupDestinationWhereUniqueInput[] update?: BackupDestinationUpdateWithWhereUniqueWithoutUserInput | BackupDestinationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: BackupDestinationUpdateManyWithWhereWithoutUserInput | BackupDestinationUpdateManyWithWhereWithoutUserInput[] deleteMany?: BackupDestinationScalarWhereInput | BackupDestinationScalarWhereInput[] } export type NotificationUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | NotificationCreateWithoutUserInput[] | NotificationUncheckedCreateWithoutUserInput[] connectOrCreate?: NotificationCreateOrConnectWithoutUserInput | NotificationCreateOrConnectWithoutUserInput[] upsert?: NotificationUpsertWithWhereUniqueWithoutUserInput | NotificationUpsertWithWhereUniqueWithoutUserInput[] createMany?: NotificationCreateManyUserInputEnvelope set?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] disconnect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] delete?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] connect?: NotificationWhereUniqueInput | NotificationWhereUniqueInput[] update?: NotificationUpdateWithWhereUniqueWithoutUserInput | NotificationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: NotificationUpdateManyWithWhereWithoutUserInput | NotificationUpdateManyWithWhereWithoutUserInput[] deleteMany?: NotificationScalarWhereInput | NotificationScalarWhereInput[] } export type CloudFolderUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CloudFolderCreateWithoutUserInput[] | CloudFolderUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutUserInput | CloudFolderCreateOrConnectWithoutUserInput[] upsert?: CloudFolderUpsertWithWhereUniqueWithoutUserInput | CloudFolderUpsertWithWhereUniqueWithoutUserInput[] createMany?: CloudFolderCreateManyUserInputEnvelope set?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] disconnect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] delete?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] update?: CloudFolderUpdateWithWhereUniqueWithoutUserInput | CloudFolderUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CloudFolderUpdateManyWithWhereWithoutUserInput | CloudFolderUpdateManyWithWhereWithoutUserInput[] deleteMany?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] } export type CloudFileUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CloudFileCreateWithoutUserInput[] | CloudFileUncheckedCreateWithoutUserInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutUserInput | CloudFileCreateOrConnectWithoutUserInput[] upsert?: CloudFileUpsertWithWhereUniqueWithoutUserInput | CloudFileUpsertWithWhereUniqueWithoutUserInput[] createMany?: CloudFileCreateManyUserInputEnvelope set?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] disconnect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] delete?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] update?: CloudFileUpdateWithWhereUniqueWithoutUserInput | CloudFileUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CloudFileUpdateManyWithWhereWithoutUserInput | CloudFileUpdateManyWithWhereWithoutUserInput[] deleteMany?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] } export type CommunicationUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CommunicationCreateWithoutUserInput[] | CommunicationUncheckedCreateWithoutUserInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutUserInput | CommunicationCreateOrConnectWithoutUserInput[] upsert?: CommunicationUpsertWithWhereUniqueWithoutUserInput | CommunicationUpsertWithWhereUniqueWithoutUserInput[] createMany?: CommunicationCreateManyUserInputEnvelope set?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] disconnect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] delete?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] update?: CommunicationUpdateWithWhereUniqueWithoutUserInput | CommunicationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CommunicationUpdateManyWithWhereWithoutUserInput | CommunicationUpdateManyWithWhereWithoutUserInput[] deleteMany?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] } export type TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: TwilioSettingsCreateOrConnectWithoutUserInput upsert?: TwilioSettingsUpsertWithoutUserInput disconnect?: TwilioSettingsWhereInput | boolean delete?: TwilioSettingsWhereInput | boolean connect?: TwilioSettingsWhereUniqueInput update?: XOR, TwilioSettingsUncheckedUpdateWithoutUserInput> } export type AiSettingsUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: AiSettingsCreateOrConnectWithoutUserInput upsert?: AiSettingsUpsertWithoutUserInput disconnect?: AiSettingsWhereInput | boolean delete?: AiSettingsWhereInput | boolean connect?: AiSettingsWhereUniqueInput update?: XOR, AiSettingsUncheckedUpdateWithoutUserInput> } export type OfficeHoursUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: OfficeHoursCreateOrConnectWithoutUserInput upsert?: OfficeHoursUpsertWithoutUserInput disconnect?: OfficeHoursWhereInput | boolean delete?: OfficeHoursWhereInput | boolean connect?: OfficeHoursWhereUniqueInput update?: XOR, OfficeHoursUncheckedUpdateWithoutUserInput> } export type OfficeContactUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: OfficeContactCreateOrConnectWithoutUserInput upsert?: OfficeContactUpsertWithoutUserInput disconnect?: OfficeContactWhereInput | boolean delete?: OfficeContactWhereInput | boolean connect?: OfficeContactWhereUniqueInput update?: XOR, OfficeContactUncheckedUpdateWithoutUserInput> } export type ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: ProcedureTimeslotCreateOrConnectWithoutUserInput upsert?: ProcedureTimeslotUpsertWithoutUserInput disconnect?: ProcedureTimeslotWhereInput | boolean delete?: ProcedureTimeslotWhereInput | boolean connect?: ProcedureTimeslotWhereUniqueInput update?: XOR, ProcedureTimeslotUncheckedUpdateWithoutUserInput> } export type InsuranceContactUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | InsuranceContactCreateWithoutUserInput[] | InsuranceContactUncheckedCreateWithoutUserInput[] connectOrCreate?: InsuranceContactCreateOrConnectWithoutUserInput | InsuranceContactCreateOrConnectWithoutUserInput[] upsert?: InsuranceContactUpsertWithWhereUniqueWithoutUserInput | InsuranceContactUpsertWithWhereUniqueWithoutUserInput[] createMany?: InsuranceContactCreateManyUserInputEnvelope set?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] disconnect?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] delete?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] connect?: InsuranceContactWhereUniqueInput | InsuranceContactWhereUniqueInput[] update?: InsuranceContactUpdateWithWhereUniqueWithoutUserInput | InsuranceContactUpdateWithWhereUniqueWithoutUserInput[] updateMany?: InsuranceContactUpdateManyWithWhereWithoutUserInput | InsuranceContactUpdateManyWithWhereWithoutUserInput[] deleteMany?: InsuranceContactScalarWhereInput | InsuranceContactScalarWhereInput[] } export type PatientConversationUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | PatientConversationCreateWithoutUserInput[] | PatientConversationUncheckedCreateWithoutUserInput[] connectOrCreate?: PatientConversationCreateOrConnectWithoutUserInput | PatientConversationCreateOrConnectWithoutUserInput[] upsert?: PatientConversationUpsertWithWhereUniqueWithoutUserInput | PatientConversationUpsertWithWhereUniqueWithoutUserInput[] createMany?: PatientConversationCreateManyUserInputEnvelope set?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] disconnect?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] delete?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] connect?: PatientConversationWhereUniqueInput | PatientConversationWhereUniqueInput[] update?: PatientConversationUpdateWithWhereUniqueWithoutUserInput | PatientConversationUpdateWithWhereUniqueWithoutUserInput[] updateMany?: PatientConversationUpdateManyWithWhereWithoutUserInput | PatientConversationUpdateManyWithWhereWithoutUserInput[] deleteMany?: PatientConversationScalarWhereInput | PatientConversationScalarWhereInput[] } export type UserCreateNestedOneWithoutPatientsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutPatientsInput connect?: UserWhereUniqueInput } export type AppointmentCreateNestedManyWithoutPatientInput = { create?: XOR | AppointmentCreateWithoutPatientInput[] | AppointmentUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutPatientInput | AppointmentCreateOrConnectWithoutPatientInput[] createMany?: AppointmentCreateManyPatientInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type AppointmentProcedureCreateNestedManyWithoutPatientInput = { create?: XOR | AppointmentProcedureCreateWithoutPatientInput[] | AppointmentProcedureUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutPatientInput | AppointmentProcedureCreateOrConnectWithoutPatientInput[] createMany?: AppointmentProcedureCreateManyPatientInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutPatientInput = { create?: XOR | ClaimCreateWithoutPatientInput[] | ClaimUncheckedCreateWithoutPatientInput[] connectOrCreate?: ClaimCreateOrConnectWithoutPatientInput | ClaimCreateOrConnectWithoutPatientInput[] createMany?: ClaimCreateManyPatientInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type PdfGroupCreateNestedManyWithoutPatientInput = { create?: XOR | PdfGroupCreateWithoutPatientInput[] | PdfGroupUncheckedCreateWithoutPatientInput[] connectOrCreate?: PdfGroupCreateOrConnectWithoutPatientInput | PdfGroupCreateOrConnectWithoutPatientInput[] createMany?: PdfGroupCreateManyPatientInputEnvelope connect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] } export type PaymentCreateNestedManyWithoutPatientInput = { create?: XOR | PaymentCreateWithoutPatientInput[] | PaymentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PaymentCreateOrConnectWithoutPatientInput | PaymentCreateOrConnectWithoutPatientInput[] createMany?: PaymentCreateManyPatientInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type CommunicationCreateNestedManyWithoutPatientInput = { create?: XOR | CommunicationCreateWithoutPatientInput[] | CommunicationUncheckedCreateWithoutPatientInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutPatientInput | CommunicationCreateOrConnectWithoutPatientInput[] createMany?: CommunicationCreateManyPatientInputEnvelope connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] } export type PatientDocumentCreateNestedManyWithoutPatientInput = { create?: XOR | PatientDocumentCreateWithoutPatientInput[] | PatientDocumentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PatientDocumentCreateOrConnectWithoutPatientInput | PatientDocumentCreateOrConnectWithoutPatientInput[] createMany?: PatientDocumentCreateManyPatientInputEnvelope connect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] } export type PatientConversationCreateNestedOneWithoutPatientInput = { create?: XOR connectOrCreate?: PatientConversationCreateOrConnectWithoutPatientInput connect?: PatientConversationWhereUniqueInput } export type AppointmentUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | AppointmentCreateWithoutPatientInput[] | AppointmentUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutPatientInput | AppointmentCreateOrConnectWithoutPatientInput[] createMany?: AppointmentCreateManyPatientInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | AppointmentProcedureCreateWithoutPatientInput[] | AppointmentProcedureUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutPatientInput | AppointmentProcedureCreateOrConnectWithoutPatientInput[] createMany?: AppointmentProcedureCreateManyPatientInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | ClaimCreateWithoutPatientInput[] | ClaimUncheckedCreateWithoutPatientInput[] connectOrCreate?: ClaimCreateOrConnectWithoutPatientInput | ClaimCreateOrConnectWithoutPatientInput[] createMany?: ClaimCreateManyPatientInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type PdfGroupUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | PdfGroupCreateWithoutPatientInput[] | PdfGroupUncheckedCreateWithoutPatientInput[] connectOrCreate?: PdfGroupCreateOrConnectWithoutPatientInput | PdfGroupCreateOrConnectWithoutPatientInput[] createMany?: PdfGroupCreateManyPatientInputEnvelope connect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] } export type PaymentUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | PaymentCreateWithoutPatientInput[] | PaymentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PaymentCreateOrConnectWithoutPatientInput | PaymentCreateOrConnectWithoutPatientInput[] createMany?: PaymentCreateManyPatientInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type CommunicationUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | CommunicationCreateWithoutPatientInput[] | CommunicationUncheckedCreateWithoutPatientInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutPatientInput | CommunicationCreateOrConnectWithoutPatientInput[] createMany?: CommunicationCreateManyPatientInputEnvelope connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] } export type PatientDocumentUncheckedCreateNestedManyWithoutPatientInput = { create?: XOR | PatientDocumentCreateWithoutPatientInput[] | PatientDocumentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PatientDocumentCreateOrConnectWithoutPatientInput | PatientDocumentCreateOrConnectWithoutPatientInput[] createMany?: PatientDocumentCreateManyPatientInputEnvelope connect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] } export type PatientConversationUncheckedCreateNestedOneWithoutPatientInput = { create?: XOR connectOrCreate?: PatientConversationCreateOrConnectWithoutPatientInput connect?: PatientConversationWhereUniqueInput } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type EnumPatientStatusFieldUpdateOperationsInput = { set?: $Enums.PatientStatus } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type UserUpdateOneRequiredWithoutPatientsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutPatientsInput upsert?: UserUpsertWithoutPatientsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutPatientsInput> } export type AppointmentUpdateManyWithoutPatientNestedInput = { create?: XOR | AppointmentCreateWithoutPatientInput[] | AppointmentUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutPatientInput | AppointmentCreateOrConnectWithoutPatientInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutPatientInput | AppointmentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: AppointmentCreateManyPatientInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutPatientInput | AppointmentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutPatientInput | AppointmentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type AppointmentProcedureUpdateManyWithoutPatientNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutPatientInput[] | AppointmentProcedureUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutPatientInput | AppointmentProcedureCreateOrConnectWithoutPatientInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput | AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput[] createMany?: AppointmentProcedureCreateManyPatientInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput | AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutPatientInput | AppointmentProcedureUpdateManyWithWhereWithoutPatientInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUpdateManyWithoutPatientNestedInput = { create?: XOR | ClaimCreateWithoutPatientInput[] | ClaimUncheckedCreateWithoutPatientInput[] connectOrCreate?: ClaimCreateOrConnectWithoutPatientInput | ClaimCreateOrConnectWithoutPatientInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutPatientInput | ClaimUpsertWithWhereUniqueWithoutPatientInput[] createMany?: ClaimCreateManyPatientInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutPatientInput | ClaimUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: ClaimUpdateManyWithWhereWithoutPatientInput | ClaimUpdateManyWithWhereWithoutPatientInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type PdfGroupUpdateManyWithoutPatientNestedInput = { create?: XOR | PdfGroupCreateWithoutPatientInput[] | PdfGroupUncheckedCreateWithoutPatientInput[] connectOrCreate?: PdfGroupCreateOrConnectWithoutPatientInput | PdfGroupCreateOrConnectWithoutPatientInput[] upsert?: PdfGroupUpsertWithWhereUniqueWithoutPatientInput | PdfGroupUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PdfGroupCreateManyPatientInputEnvelope set?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] disconnect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] delete?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] connect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] update?: PdfGroupUpdateWithWhereUniqueWithoutPatientInput | PdfGroupUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PdfGroupUpdateManyWithWhereWithoutPatientInput | PdfGroupUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PdfGroupScalarWhereInput | PdfGroupScalarWhereInput[] } export type PaymentUpdateManyWithoutPatientNestedInput = { create?: XOR | PaymentCreateWithoutPatientInput[] | PaymentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PaymentCreateOrConnectWithoutPatientInput | PaymentCreateOrConnectWithoutPatientInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutPatientInput | PaymentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PaymentCreateManyPatientInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutPatientInput | PaymentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PaymentUpdateManyWithWhereWithoutPatientInput | PaymentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type CommunicationUpdateManyWithoutPatientNestedInput = { create?: XOR | CommunicationCreateWithoutPatientInput[] | CommunicationUncheckedCreateWithoutPatientInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutPatientInput | CommunicationCreateOrConnectWithoutPatientInput[] upsert?: CommunicationUpsertWithWhereUniqueWithoutPatientInput | CommunicationUpsertWithWhereUniqueWithoutPatientInput[] createMany?: CommunicationCreateManyPatientInputEnvelope set?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] disconnect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] delete?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] update?: CommunicationUpdateWithWhereUniqueWithoutPatientInput | CommunicationUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: CommunicationUpdateManyWithWhereWithoutPatientInput | CommunicationUpdateManyWithWhereWithoutPatientInput[] deleteMany?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] } export type PatientDocumentUpdateManyWithoutPatientNestedInput = { create?: XOR | PatientDocumentCreateWithoutPatientInput[] | PatientDocumentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PatientDocumentCreateOrConnectWithoutPatientInput | PatientDocumentCreateOrConnectWithoutPatientInput[] upsert?: PatientDocumentUpsertWithWhereUniqueWithoutPatientInput | PatientDocumentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PatientDocumentCreateManyPatientInputEnvelope set?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] disconnect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] delete?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] connect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] update?: PatientDocumentUpdateWithWhereUniqueWithoutPatientInput | PatientDocumentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PatientDocumentUpdateManyWithWhereWithoutPatientInput | PatientDocumentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PatientDocumentScalarWhereInput | PatientDocumentScalarWhereInput[] } export type PatientConversationUpdateOneWithoutPatientNestedInput = { create?: XOR connectOrCreate?: PatientConversationCreateOrConnectWithoutPatientInput upsert?: PatientConversationUpsertWithoutPatientInput disconnect?: PatientConversationWhereInput | boolean delete?: PatientConversationWhereInput | boolean connect?: PatientConversationWhereUniqueInput update?: XOR, PatientConversationUncheckedUpdateWithoutPatientInput> } export type AppointmentUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | AppointmentCreateWithoutPatientInput[] | AppointmentUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutPatientInput | AppointmentCreateOrConnectWithoutPatientInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutPatientInput | AppointmentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: AppointmentCreateManyPatientInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutPatientInput | AppointmentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutPatientInput | AppointmentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutPatientInput[] | AppointmentProcedureUncheckedCreateWithoutPatientInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutPatientInput | AppointmentProcedureCreateOrConnectWithoutPatientInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput | AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput[] createMany?: AppointmentProcedureCreateManyPatientInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput | AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutPatientInput | AppointmentProcedureUpdateManyWithWhereWithoutPatientInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | ClaimCreateWithoutPatientInput[] | ClaimUncheckedCreateWithoutPatientInput[] connectOrCreate?: ClaimCreateOrConnectWithoutPatientInput | ClaimCreateOrConnectWithoutPatientInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutPatientInput | ClaimUpsertWithWhereUniqueWithoutPatientInput[] createMany?: ClaimCreateManyPatientInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutPatientInput | ClaimUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: ClaimUpdateManyWithWhereWithoutPatientInput | ClaimUpdateManyWithWhereWithoutPatientInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type PdfGroupUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | PdfGroupCreateWithoutPatientInput[] | PdfGroupUncheckedCreateWithoutPatientInput[] connectOrCreate?: PdfGroupCreateOrConnectWithoutPatientInput | PdfGroupCreateOrConnectWithoutPatientInput[] upsert?: PdfGroupUpsertWithWhereUniqueWithoutPatientInput | PdfGroupUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PdfGroupCreateManyPatientInputEnvelope set?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] disconnect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] delete?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] connect?: PdfGroupWhereUniqueInput | PdfGroupWhereUniqueInput[] update?: PdfGroupUpdateWithWhereUniqueWithoutPatientInput | PdfGroupUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PdfGroupUpdateManyWithWhereWithoutPatientInput | PdfGroupUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PdfGroupScalarWhereInput | PdfGroupScalarWhereInput[] } export type PaymentUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | PaymentCreateWithoutPatientInput[] | PaymentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PaymentCreateOrConnectWithoutPatientInput | PaymentCreateOrConnectWithoutPatientInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutPatientInput | PaymentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PaymentCreateManyPatientInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutPatientInput | PaymentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PaymentUpdateManyWithWhereWithoutPatientInput | PaymentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type CommunicationUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | CommunicationCreateWithoutPatientInput[] | CommunicationUncheckedCreateWithoutPatientInput[] connectOrCreate?: CommunicationCreateOrConnectWithoutPatientInput | CommunicationCreateOrConnectWithoutPatientInput[] upsert?: CommunicationUpsertWithWhereUniqueWithoutPatientInput | CommunicationUpsertWithWhereUniqueWithoutPatientInput[] createMany?: CommunicationCreateManyPatientInputEnvelope set?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] disconnect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] delete?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] connect?: CommunicationWhereUniqueInput | CommunicationWhereUniqueInput[] update?: CommunicationUpdateWithWhereUniqueWithoutPatientInput | CommunicationUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: CommunicationUpdateManyWithWhereWithoutPatientInput | CommunicationUpdateManyWithWhereWithoutPatientInput[] deleteMany?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] } export type PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput = { create?: XOR | PatientDocumentCreateWithoutPatientInput[] | PatientDocumentUncheckedCreateWithoutPatientInput[] connectOrCreate?: PatientDocumentCreateOrConnectWithoutPatientInput | PatientDocumentCreateOrConnectWithoutPatientInput[] upsert?: PatientDocumentUpsertWithWhereUniqueWithoutPatientInput | PatientDocumentUpsertWithWhereUniqueWithoutPatientInput[] createMany?: PatientDocumentCreateManyPatientInputEnvelope set?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] disconnect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] delete?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] connect?: PatientDocumentWhereUniqueInput | PatientDocumentWhereUniqueInput[] update?: PatientDocumentUpdateWithWhereUniqueWithoutPatientInput | PatientDocumentUpdateWithWhereUniqueWithoutPatientInput[] updateMany?: PatientDocumentUpdateManyWithWhereWithoutPatientInput | PatientDocumentUpdateManyWithWhereWithoutPatientInput[] deleteMany?: PatientDocumentScalarWhereInput | PatientDocumentScalarWhereInput[] } export type PatientConversationUncheckedUpdateOneWithoutPatientNestedInput = { create?: XOR connectOrCreate?: PatientConversationCreateOrConnectWithoutPatientInput upsert?: PatientConversationUpsertWithoutPatientInput disconnect?: PatientConversationWhereInput | boolean delete?: PatientConversationWhereInput | boolean connect?: PatientConversationWhereUniqueInput update?: XOR, PatientConversationUncheckedUpdateWithoutPatientInput> } export type PatientCreateNestedOneWithoutAppointmentsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutAppointmentsInput connect?: PatientWhereUniqueInput } export type UserCreateNestedOneWithoutAppointmentsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAppointmentsInput connect?: UserWhereUniqueInput } export type StaffCreateNestedOneWithoutAppointmentsInput = { create?: XOR connectOrCreate?: StaffCreateOrConnectWithoutAppointmentsInput connect?: StaffWhereUniqueInput } export type AppointmentProcedureCreateNestedManyWithoutAppointmentInput = { create?: XOR | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[] createMany?: AppointmentProcedureCreateManyAppointmentInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutAppointmentInput = { create?: XOR | ClaimCreateWithoutAppointmentInput[] | ClaimUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAppointmentInput | ClaimCreateOrConnectWithoutAppointmentInput[] createMany?: ClaimCreateManyAppointmentInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type AppointmentFileCreateNestedManyWithoutAppointmentInput = { create?: XOR | AppointmentFileCreateWithoutAppointmentInput[] | AppointmentFileUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentFileCreateOrConnectWithoutAppointmentInput | AppointmentFileCreateOrConnectWithoutAppointmentInput[] createMany?: AppointmentFileCreateManyAppointmentInputEnvelope connect?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] } export type AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput = { create?: XOR | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[] createMany?: AppointmentProcedureCreateManyAppointmentInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutAppointmentInput = { create?: XOR | ClaimCreateWithoutAppointmentInput[] | ClaimUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAppointmentInput | ClaimCreateOrConnectWithoutAppointmentInput[] createMany?: ClaimCreateManyAppointmentInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type AppointmentFileUncheckedCreateNestedManyWithoutAppointmentInput = { create?: XOR | AppointmentFileCreateWithoutAppointmentInput[] | AppointmentFileUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentFileCreateOrConnectWithoutAppointmentInput | AppointmentFileCreateOrConnectWithoutAppointmentInput[] createMany?: AppointmentFileCreateManyAppointmentInputEnvelope connect?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] } export type PatientUpdateOneRequiredWithoutAppointmentsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutAppointmentsInput upsert?: PatientUpsertWithoutAppointmentsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutAppointmentsInput> } export type UserUpdateOneRequiredWithoutAppointmentsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAppointmentsInput upsert?: UserUpsertWithoutAppointmentsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAppointmentsInput> } export type StaffUpdateOneWithoutAppointmentsNestedInput = { create?: XOR connectOrCreate?: StaffCreateOrConnectWithoutAppointmentsInput upsert?: StaffUpsertWithoutAppointmentsInput disconnect?: StaffWhereInput | boolean delete?: StaffWhereInput | boolean connect?: StaffWhereUniqueInput update?: XOR, StaffUncheckedUpdateWithoutAppointmentsInput> } export type AppointmentProcedureUpdateManyWithoutAppointmentNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput | AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: AppointmentProcedureCreateManyAppointmentInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput | AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput | AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUpdateManyWithoutAppointmentNestedInput = { create?: XOR | ClaimCreateWithoutAppointmentInput[] | ClaimUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAppointmentInput | ClaimCreateOrConnectWithoutAppointmentInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutAppointmentInput | ClaimUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: ClaimCreateManyAppointmentInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutAppointmentInput | ClaimUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: ClaimUpdateManyWithWhereWithoutAppointmentInput | ClaimUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type AppointmentFileUpdateManyWithoutAppointmentNestedInput = { create?: XOR | AppointmentFileCreateWithoutAppointmentInput[] | AppointmentFileUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentFileCreateOrConnectWithoutAppointmentInput | AppointmentFileCreateOrConnectWithoutAppointmentInput[] upsert?: AppointmentFileUpsertWithWhereUniqueWithoutAppointmentInput | AppointmentFileUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: AppointmentFileCreateManyAppointmentInputEnvelope set?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] disconnect?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] delete?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] connect?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] update?: AppointmentFileUpdateWithWhereUniqueWithoutAppointmentInput | AppointmentFileUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: AppointmentFileUpdateManyWithWhereWithoutAppointmentInput | AppointmentFileUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: AppointmentFileScalarWhereInput | AppointmentFileScalarWhereInput[] } export type AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput | AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: AppointmentProcedureCreateManyAppointmentInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput | AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput | AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutAppointmentNestedInput = { create?: XOR | ClaimCreateWithoutAppointmentInput[] | ClaimUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: ClaimCreateOrConnectWithoutAppointmentInput | ClaimCreateOrConnectWithoutAppointmentInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutAppointmentInput | ClaimUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: ClaimCreateManyAppointmentInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutAppointmentInput | ClaimUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: ClaimUpdateManyWithWhereWithoutAppointmentInput | ClaimUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput = { create?: XOR | AppointmentFileCreateWithoutAppointmentInput[] | AppointmentFileUncheckedCreateWithoutAppointmentInput[] connectOrCreate?: AppointmentFileCreateOrConnectWithoutAppointmentInput | AppointmentFileCreateOrConnectWithoutAppointmentInput[] upsert?: AppointmentFileUpsertWithWhereUniqueWithoutAppointmentInput | AppointmentFileUpsertWithWhereUniqueWithoutAppointmentInput[] createMany?: AppointmentFileCreateManyAppointmentInputEnvelope set?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] disconnect?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] delete?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] connect?: AppointmentFileWhereUniqueInput | AppointmentFileWhereUniqueInput[] update?: AppointmentFileUpdateWithWhereUniqueWithoutAppointmentInput | AppointmentFileUpdateWithWhereUniqueWithoutAppointmentInput[] updateMany?: AppointmentFileUpdateManyWithWhereWithoutAppointmentInput | AppointmentFileUpdateManyWithWhereWithoutAppointmentInput[] deleteMany?: AppointmentFileScalarWhereInput | AppointmentFileScalarWhereInput[] } export type AppointmentCreateNestedOneWithoutFilesInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutFilesInput connect?: AppointmentWhereUniqueInput } export type AppointmentUpdateOneRequiredWithoutFilesNestedInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutFilesInput upsert?: AppointmentUpsertWithoutFilesInput connect?: AppointmentWhereUniqueInput update?: XOR, AppointmentUncheckedUpdateWithoutFilesInput> } export type UserCreateNestedOneWithoutStaffInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutStaffInput connect?: UserWhereUniqueInput } export type AppointmentCreateNestedManyWithoutStaffInput = { create?: XOR | AppointmentCreateWithoutStaffInput[] | AppointmentUncheckedCreateWithoutStaffInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutStaffInput | AppointmentCreateOrConnectWithoutStaffInput[] createMany?: AppointmentCreateManyStaffInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type ClaimCreateNestedManyWithoutStaffInput = { create?: XOR | ClaimCreateWithoutStaffInput[] | ClaimUncheckedCreateWithoutStaffInput[] connectOrCreate?: ClaimCreateOrConnectWithoutStaffInput | ClaimCreateOrConnectWithoutStaffInput[] createMany?: ClaimCreateManyStaffInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type AppointmentUncheckedCreateNestedManyWithoutStaffInput = { create?: XOR | AppointmentCreateWithoutStaffInput[] | AppointmentUncheckedCreateWithoutStaffInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutStaffInput | AppointmentCreateOrConnectWithoutStaffInput[] createMany?: AppointmentCreateManyStaffInputEnvelope connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutStaffInput = { create?: XOR | ClaimCreateWithoutStaffInput[] | ClaimUncheckedCreateWithoutStaffInput[] connectOrCreate?: ClaimCreateOrConnectWithoutStaffInput | ClaimCreateOrConnectWithoutStaffInput[] createMany?: ClaimCreateManyStaffInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type UserUpdateOneWithoutStaffNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutStaffInput upsert?: UserUpsertWithoutStaffInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutStaffInput> } export type AppointmentUpdateManyWithoutStaffNestedInput = { create?: XOR | AppointmentCreateWithoutStaffInput[] | AppointmentUncheckedCreateWithoutStaffInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutStaffInput | AppointmentCreateOrConnectWithoutStaffInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutStaffInput | AppointmentUpsertWithWhereUniqueWithoutStaffInput[] createMany?: AppointmentCreateManyStaffInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutStaffInput | AppointmentUpdateWithWhereUniqueWithoutStaffInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutStaffInput | AppointmentUpdateManyWithWhereWithoutStaffInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type ClaimUpdateManyWithoutStaffNestedInput = { create?: XOR | ClaimCreateWithoutStaffInput[] | ClaimUncheckedCreateWithoutStaffInput[] connectOrCreate?: ClaimCreateOrConnectWithoutStaffInput | ClaimCreateOrConnectWithoutStaffInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutStaffInput | ClaimUpsertWithWhereUniqueWithoutStaffInput[] createMany?: ClaimCreateManyStaffInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutStaffInput | ClaimUpdateWithWhereUniqueWithoutStaffInput[] updateMany?: ClaimUpdateManyWithWhereWithoutStaffInput | ClaimUpdateManyWithWhereWithoutStaffInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type AppointmentUncheckedUpdateManyWithoutStaffNestedInput = { create?: XOR | AppointmentCreateWithoutStaffInput[] | AppointmentUncheckedCreateWithoutStaffInput[] connectOrCreate?: AppointmentCreateOrConnectWithoutStaffInput | AppointmentCreateOrConnectWithoutStaffInput[] upsert?: AppointmentUpsertWithWhereUniqueWithoutStaffInput | AppointmentUpsertWithWhereUniqueWithoutStaffInput[] createMany?: AppointmentCreateManyStaffInputEnvelope set?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] disconnect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] delete?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] connect?: AppointmentWhereUniqueInput | AppointmentWhereUniqueInput[] update?: AppointmentUpdateWithWhereUniqueWithoutStaffInput | AppointmentUpdateWithWhereUniqueWithoutStaffInput[] updateMany?: AppointmentUpdateManyWithWhereWithoutStaffInput | AppointmentUpdateManyWithWhereWithoutStaffInput[] deleteMany?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutStaffNestedInput = { create?: XOR | ClaimCreateWithoutStaffInput[] | ClaimUncheckedCreateWithoutStaffInput[] connectOrCreate?: ClaimCreateOrConnectWithoutStaffInput | ClaimCreateOrConnectWithoutStaffInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutStaffInput | ClaimUpsertWithWhereUniqueWithoutStaffInput[] createMany?: ClaimCreateManyStaffInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutStaffInput | ClaimUpdateWithWhereUniqueWithoutStaffInput[] updateMany?: ClaimUpdateManyWithWhereWithoutStaffInput | ClaimUpdateManyWithWhereWithoutStaffInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type UserCreateNestedOneWithoutNpiProvidersInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNpiProvidersInput connect?: UserWhereUniqueInput } export type ClaimCreateNestedManyWithoutNpiProviderInput = { create?: XOR | ClaimCreateWithoutNpiProviderInput[] | ClaimUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: ClaimCreateOrConnectWithoutNpiProviderInput | ClaimCreateOrConnectWithoutNpiProviderInput[] createMany?: ClaimCreateManyNpiProviderInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type PaymentCreateNestedManyWithoutNpiProviderInput = { create?: XOR | PaymentCreateWithoutNpiProviderInput[] | PaymentUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: PaymentCreateOrConnectWithoutNpiProviderInput | PaymentCreateOrConnectWithoutNpiProviderInput[] createMany?: PaymentCreateManyNpiProviderInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type CommissionBatchCreateNestedManyWithoutNpiProviderInput = { create?: XOR | CommissionBatchCreateWithoutNpiProviderInput[] | CommissionBatchUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: CommissionBatchCreateOrConnectWithoutNpiProviderInput | CommissionBatchCreateOrConnectWithoutNpiProviderInput[] createMany?: CommissionBatchCreateManyNpiProviderInputEnvelope connect?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] } export type AppointmentProcedureCreateNestedManyWithoutNpiProviderInput = { create?: XOR | AppointmentProcedureCreateWithoutNpiProviderInput[] | AppointmentProcedureUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutNpiProviderInput | AppointmentProcedureCreateOrConnectWithoutNpiProviderInput[] createMany?: AppointmentProcedureCreateManyNpiProviderInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type ClaimUncheckedCreateNestedManyWithoutNpiProviderInput = { create?: XOR | ClaimCreateWithoutNpiProviderInput[] | ClaimUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: ClaimCreateOrConnectWithoutNpiProviderInput | ClaimCreateOrConnectWithoutNpiProviderInput[] createMany?: ClaimCreateManyNpiProviderInputEnvelope connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] } export type PaymentUncheckedCreateNestedManyWithoutNpiProviderInput = { create?: XOR | PaymentCreateWithoutNpiProviderInput[] | PaymentUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: PaymentCreateOrConnectWithoutNpiProviderInput | PaymentCreateOrConnectWithoutNpiProviderInput[] createMany?: PaymentCreateManyNpiProviderInputEnvelope connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] } export type CommissionBatchUncheckedCreateNestedManyWithoutNpiProviderInput = { create?: XOR | CommissionBatchCreateWithoutNpiProviderInput[] | CommissionBatchUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: CommissionBatchCreateOrConnectWithoutNpiProviderInput | CommissionBatchCreateOrConnectWithoutNpiProviderInput[] createMany?: CommissionBatchCreateManyNpiProviderInputEnvelope connect?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] } export type AppointmentProcedureUncheckedCreateNestedManyWithoutNpiProviderInput = { create?: XOR | AppointmentProcedureCreateWithoutNpiProviderInput[] | AppointmentProcedureUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutNpiProviderInput | AppointmentProcedureCreateOrConnectWithoutNpiProviderInput[] createMany?: AppointmentProcedureCreateManyNpiProviderInputEnvelope connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] } export type UserUpdateOneRequiredWithoutNpiProvidersNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNpiProvidersInput upsert?: UserUpsertWithoutNpiProvidersInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutNpiProvidersInput> } export type ClaimUpdateManyWithoutNpiProviderNestedInput = { create?: XOR | ClaimCreateWithoutNpiProviderInput[] | ClaimUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: ClaimCreateOrConnectWithoutNpiProviderInput | ClaimCreateOrConnectWithoutNpiProviderInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutNpiProviderInput | ClaimUpsertWithWhereUniqueWithoutNpiProviderInput[] createMany?: ClaimCreateManyNpiProviderInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutNpiProviderInput | ClaimUpdateWithWhereUniqueWithoutNpiProviderInput[] updateMany?: ClaimUpdateManyWithWhereWithoutNpiProviderInput | ClaimUpdateManyWithWhereWithoutNpiProviderInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type PaymentUpdateManyWithoutNpiProviderNestedInput = { create?: XOR | PaymentCreateWithoutNpiProviderInput[] | PaymentUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: PaymentCreateOrConnectWithoutNpiProviderInput | PaymentCreateOrConnectWithoutNpiProviderInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutNpiProviderInput | PaymentUpsertWithWhereUniqueWithoutNpiProviderInput[] createMany?: PaymentCreateManyNpiProviderInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutNpiProviderInput | PaymentUpdateWithWhereUniqueWithoutNpiProviderInput[] updateMany?: PaymentUpdateManyWithWhereWithoutNpiProviderInput | PaymentUpdateManyWithWhereWithoutNpiProviderInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type CommissionBatchUpdateManyWithoutNpiProviderNestedInput = { create?: XOR | CommissionBatchCreateWithoutNpiProviderInput[] | CommissionBatchUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: CommissionBatchCreateOrConnectWithoutNpiProviderInput | CommissionBatchCreateOrConnectWithoutNpiProviderInput[] upsert?: CommissionBatchUpsertWithWhereUniqueWithoutNpiProviderInput | CommissionBatchUpsertWithWhereUniqueWithoutNpiProviderInput[] createMany?: CommissionBatchCreateManyNpiProviderInputEnvelope set?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] disconnect?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] delete?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] connect?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] update?: CommissionBatchUpdateWithWhereUniqueWithoutNpiProviderInput | CommissionBatchUpdateWithWhereUniqueWithoutNpiProviderInput[] updateMany?: CommissionBatchUpdateManyWithWhereWithoutNpiProviderInput | CommissionBatchUpdateManyWithWhereWithoutNpiProviderInput[] deleteMany?: CommissionBatchScalarWhereInput | CommissionBatchScalarWhereInput[] } export type AppointmentProcedureUpdateManyWithoutNpiProviderNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutNpiProviderInput[] | AppointmentProcedureUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutNpiProviderInput | AppointmentProcedureCreateOrConnectWithoutNpiProviderInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutNpiProviderInput | AppointmentProcedureUpsertWithWhereUniqueWithoutNpiProviderInput[] createMany?: AppointmentProcedureCreateManyNpiProviderInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutNpiProviderInput | AppointmentProcedureUpdateWithWhereUniqueWithoutNpiProviderInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutNpiProviderInput | AppointmentProcedureUpdateManyWithWhereWithoutNpiProviderInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type ClaimUncheckedUpdateManyWithoutNpiProviderNestedInput = { create?: XOR | ClaimCreateWithoutNpiProviderInput[] | ClaimUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: ClaimCreateOrConnectWithoutNpiProviderInput | ClaimCreateOrConnectWithoutNpiProviderInput[] upsert?: ClaimUpsertWithWhereUniqueWithoutNpiProviderInput | ClaimUpsertWithWhereUniqueWithoutNpiProviderInput[] createMany?: ClaimCreateManyNpiProviderInputEnvelope set?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] disconnect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] delete?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] connect?: ClaimWhereUniqueInput | ClaimWhereUniqueInput[] update?: ClaimUpdateWithWhereUniqueWithoutNpiProviderInput | ClaimUpdateWithWhereUniqueWithoutNpiProviderInput[] updateMany?: ClaimUpdateManyWithWhereWithoutNpiProviderInput | ClaimUpdateManyWithWhereWithoutNpiProviderInput[] deleteMany?: ClaimScalarWhereInput | ClaimScalarWhereInput[] } export type PaymentUncheckedUpdateManyWithoutNpiProviderNestedInput = { create?: XOR | PaymentCreateWithoutNpiProviderInput[] | PaymentUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: PaymentCreateOrConnectWithoutNpiProviderInput | PaymentCreateOrConnectWithoutNpiProviderInput[] upsert?: PaymentUpsertWithWhereUniqueWithoutNpiProviderInput | PaymentUpsertWithWhereUniqueWithoutNpiProviderInput[] createMany?: PaymentCreateManyNpiProviderInputEnvelope set?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] disconnect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] delete?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] connect?: PaymentWhereUniqueInput | PaymentWhereUniqueInput[] update?: PaymentUpdateWithWhereUniqueWithoutNpiProviderInput | PaymentUpdateWithWhereUniqueWithoutNpiProviderInput[] updateMany?: PaymentUpdateManyWithWhereWithoutNpiProviderInput | PaymentUpdateManyWithWhereWithoutNpiProviderInput[] deleteMany?: PaymentScalarWhereInput | PaymentScalarWhereInput[] } export type CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInput = { create?: XOR | CommissionBatchCreateWithoutNpiProviderInput[] | CommissionBatchUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: CommissionBatchCreateOrConnectWithoutNpiProviderInput | CommissionBatchCreateOrConnectWithoutNpiProviderInput[] upsert?: CommissionBatchUpsertWithWhereUniqueWithoutNpiProviderInput | CommissionBatchUpsertWithWhereUniqueWithoutNpiProviderInput[] createMany?: CommissionBatchCreateManyNpiProviderInputEnvelope set?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] disconnect?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] delete?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] connect?: CommissionBatchWhereUniqueInput | CommissionBatchWhereUniqueInput[] update?: CommissionBatchUpdateWithWhereUniqueWithoutNpiProviderInput | CommissionBatchUpdateWithWhereUniqueWithoutNpiProviderInput[] updateMany?: CommissionBatchUpdateManyWithWhereWithoutNpiProviderInput | CommissionBatchUpdateManyWithWhereWithoutNpiProviderInput[] deleteMany?: CommissionBatchScalarWhereInput | CommissionBatchScalarWhereInput[] } export type AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput = { create?: XOR | AppointmentProcedureCreateWithoutNpiProviderInput[] | AppointmentProcedureUncheckedCreateWithoutNpiProviderInput[] connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutNpiProviderInput | AppointmentProcedureCreateOrConnectWithoutNpiProviderInput[] upsert?: AppointmentProcedureUpsertWithWhereUniqueWithoutNpiProviderInput | AppointmentProcedureUpsertWithWhereUniqueWithoutNpiProviderInput[] createMany?: AppointmentProcedureCreateManyNpiProviderInputEnvelope set?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] disconnect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] delete?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] connect?: AppointmentProcedureWhereUniqueInput | AppointmentProcedureWhereUniqueInput[] update?: AppointmentProcedureUpdateWithWhereUniqueWithoutNpiProviderInput | AppointmentProcedureUpdateWithWhereUniqueWithoutNpiProviderInput[] updateMany?: AppointmentProcedureUpdateManyWithWhereWithoutNpiProviderInput | AppointmentProcedureUpdateManyWithWhereWithoutNpiProviderInput[] deleteMany?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] } export type AppointmentCreateNestedOneWithoutProceduresInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutProceduresInput connect?: AppointmentWhereUniqueInput } export type PatientCreateNestedOneWithoutProceduresInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutProceduresInput connect?: PatientWhereUniqueInput } export type NpiProviderCreateNestedOneWithoutAppointmentProceduresInput = { create?: XOR connectOrCreate?: NpiProviderCreateOrConnectWithoutAppointmentProceduresInput connect?: NpiProviderWhereUniqueInput } export type NullableDecimalFieldUpdateOperationsInput = { set?: Decimal | DecimalJsLike | number | string | null increment?: Decimal | DecimalJsLike | number | string decrement?: Decimal | DecimalJsLike | number | string multiply?: Decimal | DecimalJsLike | number | string divide?: Decimal | DecimalJsLike | number | string } export type EnumProcedureSourceFieldUpdateOperationsInput = { set?: $Enums.ProcedureSource } export type AppointmentUpdateOneRequiredWithoutProceduresNestedInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutProceduresInput upsert?: AppointmentUpsertWithoutProceduresInput connect?: AppointmentWhereUniqueInput update?: XOR, AppointmentUncheckedUpdateWithoutProceduresInput> } export type PatientUpdateOneRequiredWithoutProceduresNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutProceduresInput upsert?: PatientUpsertWithoutProceduresInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutProceduresInput> } export type NpiProviderUpdateOneWithoutAppointmentProceduresNestedInput = { create?: XOR connectOrCreate?: NpiProviderCreateOrConnectWithoutAppointmentProceduresInput upsert?: NpiProviderUpsertWithoutAppointmentProceduresInput disconnect?: NpiProviderWhereInput | boolean delete?: NpiProviderWhereInput | boolean connect?: NpiProviderWhereUniqueInput update?: XOR, NpiProviderUncheckedUpdateWithoutAppointmentProceduresInput> } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type PatientCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutClaimsInput connect?: PatientWhereUniqueInput } export type AppointmentCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutClaimsInput connect?: AppointmentWhereUniqueInput } export type UserCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutClaimsInput connect?: UserWhereUniqueInput } export type StaffCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: StaffCreateOrConnectWithoutClaimsInput connect?: StaffWhereUniqueInput } export type NpiProviderCreateNestedOneWithoutClaimsInput = { create?: XOR connectOrCreate?: NpiProviderCreateOrConnectWithoutClaimsInput connect?: NpiProviderWhereUniqueInput } export type ServiceLineCreateNestedManyWithoutClaimInput = { create?: XOR | ServiceLineCreateWithoutClaimInput[] | ServiceLineUncheckedCreateWithoutClaimInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutClaimInput | ServiceLineCreateOrConnectWithoutClaimInput[] createMany?: ServiceLineCreateManyClaimInputEnvelope connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] } export type ClaimFileCreateNestedManyWithoutClaimInput = { create?: XOR | ClaimFileCreateWithoutClaimInput[] | ClaimFileUncheckedCreateWithoutClaimInput[] connectOrCreate?: ClaimFileCreateOrConnectWithoutClaimInput | ClaimFileCreateOrConnectWithoutClaimInput[] createMany?: ClaimFileCreateManyClaimInputEnvelope connect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] } export type PaymentCreateNestedOneWithoutClaimInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutClaimInput connect?: PaymentWhereUniqueInput } export type ServiceLineUncheckedCreateNestedManyWithoutClaimInput = { create?: XOR | ServiceLineCreateWithoutClaimInput[] | ServiceLineUncheckedCreateWithoutClaimInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutClaimInput | ServiceLineCreateOrConnectWithoutClaimInput[] createMany?: ServiceLineCreateManyClaimInputEnvelope connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] } export type ClaimFileUncheckedCreateNestedManyWithoutClaimInput = { create?: XOR | ClaimFileCreateWithoutClaimInput[] | ClaimFileUncheckedCreateWithoutClaimInput[] connectOrCreate?: ClaimFileCreateOrConnectWithoutClaimInput | ClaimFileCreateOrConnectWithoutClaimInput[] createMany?: ClaimFileCreateManyClaimInputEnvelope connect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] } export type PaymentUncheckedCreateNestedOneWithoutClaimInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutClaimInput connect?: PaymentWhereUniqueInput } export type EnumMissingTeethStatusFieldUpdateOperationsInput = { set?: $Enums.MissingTeethStatus } export type EnumClaimStatusFieldUpdateOperationsInput = { set?: $Enums.ClaimStatus } export type PatientUpdateOneRequiredWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutClaimsInput upsert?: PatientUpsertWithoutClaimsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutClaimsInput> } export type AppointmentUpdateOneWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: AppointmentCreateOrConnectWithoutClaimsInput upsert?: AppointmentUpsertWithoutClaimsInput disconnect?: AppointmentWhereInput | boolean delete?: AppointmentWhereInput | boolean connect?: AppointmentWhereUniqueInput update?: XOR, AppointmentUncheckedUpdateWithoutClaimsInput> } export type UserUpdateOneWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutClaimsInput upsert?: UserUpsertWithoutClaimsInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutClaimsInput> } export type StaffUpdateOneWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: StaffCreateOrConnectWithoutClaimsInput upsert?: StaffUpsertWithoutClaimsInput disconnect?: StaffWhereInput | boolean delete?: StaffWhereInput | boolean connect?: StaffWhereUniqueInput update?: XOR, StaffUncheckedUpdateWithoutClaimsInput> } export type NpiProviderUpdateOneWithoutClaimsNestedInput = { create?: XOR connectOrCreate?: NpiProviderCreateOrConnectWithoutClaimsInput upsert?: NpiProviderUpsertWithoutClaimsInput disconnect?: NpiProviderWhereInput | boolean delete?: NpiProviderWhereInput | boolean connect?: NpiProviderWhereUniqueInput update?: XOR, NpiProviderUncheckedUpdateWithoutClaimsInput> } export type ServiceLineUpdateManyWithoutClaimNestedInput = { create?: XOR | ServiceLineCreateWithoutClaimInput[] | ServiceLineUncheckedCreateWithoutClaimInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutClaimInput | ServiceLineCreateOrConnectWithoutClaimInput[] upsert?: ServiceLineUpsertWithWhereUniqueWithoutClaimInput | ServiceLineUpsertWithWhereUniqueWithoutClaimInput[] createMany?: ServiceLineCreateManyClaimInputEnvelope set?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] disconnect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] delete?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] update?: ServiceLineUpdateWithWhereUniqueWithoutClaimInput | ServiceLineUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: ServiceLineUpdateManyWithWhereWithoutClaimInput | ServiceLineUpdateManyWithWhereWithoutClaimInput[] deleteMany?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] } export type ClaimFileUpdateManyWithoutClaimNestedInput = { create?: XOR | ClaimFileCreateWithoutClaimInput[] | ClaimFileUncheckedCreateWithoutClaimInput[] connectOrCreate?: ClaimFileCreateOrConnectWithoutClaimInput | ClaimFileCreateOrConnectWithoutClaimInput[] upsert?: ClaimFileUpsertWithWhereUniqueWithoutClaimInput | ClaimFileUpsertWithWhereUniqueWithoutClaimInput[] createMany?: ClaimFileCreateManyClaimInputEnvelope set?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] disconnect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] delete?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] connect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] update?: ClaimFileUpdateWithWhereUniqueWithoutClaimInput | ClaimFileUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: ClaimFileUpdateManyWithWhereWithoutClaimInput | ClaimFileUpdateManyWithWhereWithoutClaimInput[] deleteMany?: ClaimFileScalarWhereInput | ClaimFileScalarWhereInput[] } export type PaymentUpdateOneWithoutClaimNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutClaimInput upsert?: PaymentUpsertWithoutClaimInput disconnect?: PaymentWhereInput | boolean delete?: PaymentWhereInput | boolean connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutClaimInput> } export type ServiceLineUncheckedUpdateManyWithoutClaimNestedInput = { create?: XOR | ServiceLineCreateWithoutClaimInput[] | ServiceLineUncheckedCreateWithoutClaimInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutClaimInput | ServiceLineCreateOrConnectWithoutClaimInput[] upsert?: ServiceLineUpsertWithWhereUniqueWithoutClaimInput | ServiceLineUpsertWithWhereUniqueWithoutClaimInput[] createMany?: ServiceLineCreateManyClaimInputEnvelope set?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] disconnect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] delete?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] update?: ServiceLineUpdateWithWhereUniqueWithoutClaimInput | ServiceLineUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: ServiceLineUpdateManyWithWhereWithoutClaimInput | ServiceLineUpdateManyWithWhereWithoutClaimInput[] deleteMany?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] } export type ClaimFileUncheckedUpdateManyWithoutClaimNestedInput = { create?: XOR | ClaimFileCreateWithoutClaimInput[] | ClaimFileUncheckedCreateWithoutClaimInput[] connectOrCreate?: ClaimFileCreateOrConnectWithoutClaimInput | ClaimFileCreateOrConnectWithoutClaimInput[] upsert?: ClaimFileUpsertWithWhereUniqueWithoutClaimInput | ClaimFileUpsertWithWhereUniqueWithoutClaimInput[] createMany?: ClaimFileCreateManyClaimInputEnvelope set?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] disconnect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] delete?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] connect?: ClaimFileWhereUniqueInput | ClaimFileWhereUniqueInput[] update?: ClaimFileUpdateWithWhereUniqueWithoutClaimInput | ClaimFileUpdateWithWhereUniqueWithoutClaimInput[] updateMany?: ClaimFileUpdateManyWithWhereWithoutClaimInput | ClaimFileUpdateManyWithWhereWithoutClaimInput[] deleteMany?: ClaimFileScalarWhereInput | ClaimFileScalarWhereInput[] } export type PaymentUncheckedUpdateOneWithoutClaimNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutClaimInput upsert?: PaymentUpsertWithoutClaimInput disconnect?: PaymentWhereInput | boolean delete?: PaymentWhereInput | boolean connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutClaimInput> } export type ClaimCreateNestedOneWithoutServiceLinesInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutServiceLinesInput connect?: ClaimWhereUniqueInput } export type PaymentCreateNestedOneWithoutServiceLinesInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutServiceLinesInput connect?: PaymentWhereUniqueInput } export type ServiceLineTransactionCreateNestedManyWithoutServiceLineInput = { create?: XOR | ServiceLineTransactionCreateWithoutServiceLineInput[] | ServiceLineTransactionUncheckedCreateWithoutServiceLineInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutServiceLineInput | ServiceLineTransactionCreateOrConnectWithoutServiceLineInput[] createMany?: ServiceLineTransactionCreateManyServiceLineInputEnvelope connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] } export type ServiceLineTransactionUncheckedCreateNestedManyWithoutServiceLineInput = { create?: XOR | ServiceLineTransactionCreateWithoutServiceLineInput[] | ServiceLineTransactionUncheckedCreateWithoutServiceLineInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutServiceLineInput | ServiceLineTransactionCreateOrConnectWithoutServiceLineInput[] createMany?: ServiceLineTransactionCreateManyServiceLineInputEnvelope connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] } export type DecimalFieldUpdateOperationsInput = { set?: Decimal | DecimalJsLike | number | string increment?: Decimal | DecimalJsLike | number | string decrement?: Decimal | DecimalJsLike | number | string multiply?: Decimal | DecimalJsLike | number | string divide?: Decimal | DecimalJsLike | number | string } export type EnumServiceLineStatusFieldUpdateOperationsInput = { set?: $Enums.ServiceLineStatus } export type ClaimUpdateOneWithoutServiceLinesNestedInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutServiceLinesInput upsert?: ClaimUpsertWithoutServiceLinesInput disconnect?: ClaimWhereInput | boolean delete?: ClaimWhereInput | boolean connect?: ClaimWhereUniqueInput update?: XOR, ClaimUncheckedUpdateWithoutServiceLinesInput> } export type PaymentUpdateOneWithoutServiceLinesNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutServiceLinesInput upsert?: PaymentUpsertWithoutServiceLinesInput disconnect?: PaymentWhereInput | boolean delete?: PaymentWhereInput | boolean connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutServiceLinesInput> } export type ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput = { create?: XOR | ServiceLineTransactionCreateWithoutServiceLineInput[] | ServiceLineTransactionUncheckedCreateWithoutServiceLineInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutServiceLineInput | ServiceLineTransactionCreateOrConnectWithoutServiceLineInput[] upsert?: ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput | ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput[] createMany?: ServiceLineTransactionCreateManyServiceLineInputEnvelope set?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] disconnect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] delete?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] update?: ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput | ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput[] updateMany?: ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput | ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput[] deleteMany?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] } export type ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput = { create?: XOR | ServiceLineTransactionCreateWithoutServiceLineInput[] | ServiceLineTransactionUncheckedCreateWithoutServiceLineInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutServiceLineInput | ServiceLineTransactionCreateOrConnectWithoutServiceLineInput[] upsert?: ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput | ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput[] createMany?: ServiceLineTransactionCreateManyServiceLineInputEnvelope set?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] disconnect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] delete?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] update?: ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput | ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput[] updateMany?: ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput | ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput[] deleteMany?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] } export type ClaimCreateNestedOneWithoutClaimFilesInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutClaimFilesInput connect?: ClaimWhereUniqueInput } export type ClaimUpdateOneRequiredWithoutClaimFilesNestedInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutClaimFilesInput upsert?: ClaimUpsertWithoutClaimFilesInput connect?: ClaimWhereUniqueInput update?: XOR, ClaimUncheckedUpdateWithoutClaimFilesInput> } export type UserCreateNestedOneWithoutInsuranceCredentialsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutInsuranceCredentialsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutInsuranceCredentialsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutInsuranceCredentialsInput upsert?: UserUpsertWithoutInsuranceCredentialsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutInsuranceCredentialsInput> } export type UserCreateNestedOneWithoutShoppingVendorsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutShoppingVendorsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutShoppingVendorsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutShoppingVendorsInput upsert?: UserUpsertWithoutShoppingVendorsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutShoppingVendorsInput> } export type PatientCreateNestedOneWithoutGroupsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutGroupsInput connect?: PatientWhereUniqueInput } export type PdfFileCreateNestedManyWithoutGroupInput = { create?: XOR | PdfFileCreateWithoutGroupInput[] | PdfFileUncheckedCreateWithoutGroupInput[] connectOrCreate?: PdfFileCreateOrConnectWithoutGroupInput | PdfFileCreateOrConnectWithoutGroupInput[] createMany?: PdfFileCreateManyGroupInputEnvelope connect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] } export type PdfFileUncheckedCreateNestedManyWithoutGroupInput = { create?: XOR | PdfFileCreateWithoutGroupInput[] | PdfFileUncheckedCreateWithoutGroupInput[] connectOrCreate?: PdfFileCreateOrConnectWithoutGroupInput | PdfFileCreateOrConnectWithoutGroupInput[] createMany?: PdfFileCreateManyGroupInputEnvelope connect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] } export type EnumPdfTitleKeyFieldUpdateOperationsInput = { set?: $Enums.PdfTitleKey } export type PatientUpdateOneRequiredWithoutGroupsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutGroupsInput upsert?: PatientUpsertWithoutGroupsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutGroupsInput> } export type PdfFileUpdateManyWithoutGroupNestedInput = { create?: XOR | PdfFileCreateWithoutGroupInput[] | PdfFileUncheckedCreateWithoutGroupInput[] connectOrCreate?: PdfFileCreateOrConnectWithoutGroupInput | PdfFileCreateOrConnectWithoutGroupInput[] upsert?: PdfFileUpsertWithWhereUniqueWithoutGroupInput | PdfFileUpsertWithWhereUniqueWithoutGroupInput[] createMany?: PdfFileCreateManyGroupInputEnvelope set?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] disconnect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] delete?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] connect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] update?: PdfFileUpdateWithWhereUniqueWithoutGroupInput | PdfFileUpdateWithWhereUniqueWithoutGroupInput[] updateMany?: PdfFileUpdateManyWithWhereWithoutGroupInput | PdfFileUpdateManyWithWhereWithoutGroupInput[] deleteMany?: PdfFileScalarWhereInput | PdfFileScalarWhereInput[] } export type PdfFileUncheckedUpdateManyWithoutGroupNestedInput = { create?: XOR | PdfFileCreateWithoutGroupInput[] | PdfFileUncheckedCreateWithoutGroupInput[] connectOrCreate?: PdfFileCreateOrConnectWithoutGroupInput | PdfFileCreateOrConnectWithoutGroupInput[] upsert?: PdfFileUpsertWithWhereUniqueWithoutGroupInput | PdfFileUpsertWithWhereUniqueWithoutGroupInput[] createMany?: PdfFileCreateManyGroupInputEnvelope set?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] disconnect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] delete?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] connect?: PdfFileWhereUniqueInput | PdfFileWhereUniqueInput[] update?: PdfFileUpdateWithWhereUniqueWithoutGroupInput | PdfFileUpdateWithWhereUniqueWithoutGroupInput[] updateMany?: PdfFileUpdateManyWithWhereWithoutGroupInput | PdfFileUpdateManyWithWhereWithoutGroupInput[] deleteMany?: PdfFileScalarWhereInput | PdfFileScalarWhereInput[] } export type PdfGroupCreateNestedOneWithoutPdfsInput = { create?: XOR connectOrCreate?: PdfGroupCreateOrConnectWithoutPdfsInput connect?: PdfGroupWhereUniqueInput } export type BytesFieldUpdateOperationsInput = { set?: Bytes } export type PdfGroupUpdateOneRequiredWithoutPdfsNestedInput = { create?: XOR connectOrCreate?: PdfGroupCreateOrConnectWithoutPdfsInput upsert?: PdfGroupUpsertWithoutPdfsInput connect?: PdfGroupWhereUniqueInput update?: XOR, PdfGroupUncheckedUpdateWithoutPdfsInput> } export type ClaimCreateNestedOneWithoutPaymentInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutPaymentInput connect?: ClaimWhereUniqueInput } export type PatientCreateNestedOneWithoutPaymentInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutPaymentInput connect?: PatientWhereUniqueInput } export type UserCreateNestedOneWithoutUpdatedPaymentsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutUpdatedPaymentsInput connect?: UserWhereUniqueInput } export type NpiProviderCreateNestedOneWithoutPaymentsInput = { create?: XOR connectOrCreate?: NpiProviderCreateOrConnectWithoutPaymentsInput connect?: NpiProviderWhereUniqueInput } export type ServiceLineTransactionCreateNestedManyWithoutPaymentInput = { create?: XOR | ServiceLineTransactionCreateWithoutPaymentInput[] | ServiceLineTransactionUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutPaymentInput | ServiceLineTransactionCreateOrConnectWithoutPaymentInput[] createMany?: ServiceLineTransactionCreateManyPaymentInputEnvelope connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] } export type ServiceLineCreateNestedManyWithoutPaymentInput = { create?: XOR | ServiceLineCreateWithoutPaymentInput[] | ServiceLineUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutPaymentInput | ServiceLineCreateOrConnectWithoutPaymentInput[] createMany?: ServiceLineCreateManyPaymentInputEnvelope connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] } export type CommissionBatchItemCreateNestedManyWithoutPaymentInput = { create?: XOR | CommissionBatchItemCreateWithoutPaymentInput[] | CommissionBatchItemUncheckedCreateWithoutPaymentInput[] connectOrCreate?: CommissionBatchItemCreateOrConnectWithoutPaymentInput | CommissionBatchItemCreateOrConnectWithoutPaymentInput[] createMany?: CommissionBatchItemCreateManyPaymentInputEnvelope connect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] } export type ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput = { create?: XOR | ServiceLineTransactionCreateWithoutPaymentInput[] | ServiceLineTransactionUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutPaymentInput | ServiceLineTransactionCreateOrConnectWithoutPaymentInput[] createMany?: ServiceLineTransactionCreateManyPaymentInputEnvelope connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] } export type ServiceLineUncheckedCreateNestedManyWithoutPaymentInput = { create?: XOR | ServiceLineCreateWithoutPaymentInput[] | ServiceLineUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutPaymentInput | ServiceLineCreateOrConnectWithoutPaymentInput[] createMany?: ServiceLineCreateManyPaymentInputEnvelope connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] } export type CommissionBatchItemUncheckedCreateNestedManyWithoutPaymentInput = { create?: XOR | CommissionBatchItemCreateWithoutPaymentInput[] | CommissionBatchItemUncheckedCreateWithoutPaymentInput[] connectOrCreate?: CommissionBatchItemCreateOrConnectWithoutPaymentInput | CommissionBatchItemCreateOrConnectWithoutPaymentInput[] createMany?: CommissionBatchItemCreateManyPaymentInputEnvelope connect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] } export type EnumPaymentStatusFieldUpdateOperationsInput = { set?: $Enums.PaymentStatus } export type ClaimUpdateOneWithoutPaymentNestedInput = { create?: XOR connectOrCreate?: ClaimCreateOrConnectWithoutPaymentInput upsert?: ClaimUpsertWithoutPaymentInput disconnect?: ClaimWhereInput | boolean delete?: ClaimWhereInput | boolean connect?: ClaimWhereUniqueInput update?: XOR, ClaimUncheckedUpdateWithoutPaymentInput> } export type PatientUpdateOneRequiredWithoutPaymentNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutPaymentInput upsert?: PatientUpsertWithoutPaymentInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutPaymentInput> } export type UserUpdateOneWithoutUpdatedPaymentsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutUpdatedPaymentsInput upsert?: UserUpsertWithoutUpdatedPaymentsInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutUpdatedPaymentsInput> } export type NpiProviderUpdateOneWithoutPaymentsNestedInput = { create?: XOR connectOrCreate?: NpiProviderCreateOrConnectWithoutPaymentsInput upsert?: NpiProviderUpsertWithoutPaymentsInput disconnect?: NpiProviderWhereInput | boolean delete?: NpiProviderWhereInput | boolean connect?: NpiProviderWhereUniqueInput update?: XOR, NpiProviderUncheckedUpdateWithoutPaymentsInput> } export type ServiceLineTransactionUpdateManyWithoutPaymentNestedInput = { create?: XOR | ServiceLineTransactionCreateWithoutPaymentInput[] | ServiceLineTransactionUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutPaymentInput | ServiceLineTransactionCreateOrConnectWithoutPaymentInput[] upsert?: ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput | ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: ServiceLineTransactionCreateManyPaymentInputEnvelope set?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] disconnect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] delete?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] update?: ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput | ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput | ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] } export type ServiceLineUpdateManyWithoutPaymentNestedInput = { create?: XOR | ServiceLineCreateWithoutPaymentInput[] | ServiceLineUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutPaymentInput | ServiceLineCreateOrConnectWithoutPaymentInput[] upsert?: ServiceLineUpsertWithWhereUniqueWithoutPaymentInput | ServiceLineUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: ServiceLineCreateManyPaymentInputEnvelope set?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] disconnect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] delete?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] update?: ServiceLineUpdateWithWhereUniqueWithoutPaymentInput | ServiceLineUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: ServiceLineUpdateManyWithWhereWithoutPaymentInput | ServiceLineUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] } export type CommissionBatchItemUpdateManyWithoutPaymentNestedInput = { create?: XOR | CommissionBatchItemCreateWithoutPaymentInput[] | CommissionBatchItemUncheckedCreateWithoutPaymentInput[] connectOrCreate?: CommissionBatchItemCreateOrConnectWithoutPaymentInput | CommissionBatchItemCreateOrConnectWithoutPaymentInput[] upsert?: CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInput | CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: CommissionBatchItemCreateManyPaymentInputEnvelope set?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] disconnect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] delete?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] connect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] update?: CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInput | CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: CommissionBatchItemUpdateManyWithWhereWithoutPaymentInput | CommissionBatchItemUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: CommissionBatchItemScalarWhereInput | CommissionBatchItemScalarWhereInput[] } export type ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput = { create?: XOR | ServiceLineTransactionCreateWithoutPaymentInput[] | ServiceLineTransactionUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineTransactionCreateOrConnectWithoutPaymentInput | ServiceLineTransactionCreateOrConnectWithoutPaymentInput[] upsert?: ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput | ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: ServiceLineTransactionCreateManyPaymentInputEnvelope set?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] disconnect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] delete?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] connect?: ServiceLineTransactionWhereUniqueInput | ServiceLineTransactionWhereUniqueInput[] update?: ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput | ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput | ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] } export type ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput = { create?: XOR | ServiceLineCreateWithoutPaymentInput[] | ServiceLineUncheckedCreateWithoutPaymentInput[] connectOrCreate?: ServiceLineCreateOrConnectWithoutPaymentInput | ServiceLineCreateOrConnectWithoutPaymentInput[] upsert?: ServiceLineUpsertWithWhereUniqueWithoutPaymentInput | ServiceLineUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: ServiceLineCreateManyPaymentInputEnvelope set?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] disconnect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] delete?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] connect?: ServiceLineWhereUniqueInput | ServiceLineWhereUniqueInput[] update?: ServiceLineUpdateWithWhereUniqueWithoutPaymentInput | ServiceLineUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: ServiceLineUpdateManyWithWhereWithoutPaymentInput | ServiceLineUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] } export type CommissionBatchItemUncheckedUpdateManyWithoutPaymentNestedInput = { create?: XOR | CommissionBatchItemCreateWithoutPaymentInput[] | CommissionBatchItemUncheckedCreateWithoutPaymentInput[] connectOrCreate?: CommissionBatchItemCreateOrConnectWithoutPaymentInput | CommissionBatchItemCreateOrConnectWithoutPaymentInput[] upsert?: CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInput | CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInput[] createMany?: CommissionBatchItemCreateManyPaymentInputEnvelope set?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] disconnect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] delete?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] connect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] update?: CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInput | CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInput[] updateMany?: CommissionBatchItemUpdateManyWithWhereWithoutPaymentInput | CommissionBatchItemUpdateManyWithWhereWithoutPaymentInput[] deleteMany?: CommissionBatchItemScalarWhereInput | CommissionBatchItemScalarWhereInput[] } export type PaymentCreateNestedOneWithoutServiceLineTransactionsInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutServiceLineTransactionsInput connect?: PaymentWhereUniqueInput } export type ServiceLineCreateNestedOneWithoutServiceLineTransactionsInput = { create?: XOR connectOrCreate?: ServiceLineCreateOrConnectWithoutServiceLineTransactionsInput connect?: ServiceLineWhereUniqueInput } export type EnumPaymentMethodFieldUpdateOperationsInput = { set?: $Enums.PaymentMethod } export type PaymentUpdateOneRequiredWithoutServiceLineTransactionsNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutServiceLineTransactionsInput upsert?: PaymentUpsertWithoutServiceLineTransactionsInput connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutServiceLineTransactionsInput> } export type ServiceLineUpdateOneRequiredWithoutServiceLineTransactionsNestedInput = { create?: XOR connectOrCreate?: ServiceLineCreateOrConnectWithoutServiceLineTransactionsInput upsert?: ServiceLineUpsertWithoutServiceLineTransactionsInput connect?: ServiceLineWhereUniqueInput update?: XOR, ServiceLineUncheckedUpdateWithoutServiceLineTransactionsInput> } export type UserCreateNestedOneWithoutBackupsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutBackupsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutBackupsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutBackupsInput upsert?: UserUpsertWithoutBackupsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutBackupsInput> } export type UserCreateNestedOneWithoutBackupDestinationsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutBackupDestinationsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutBackupDestinationsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutBackupDestinationsInput upsert?: UserUpsertWithoutBackupDestinationsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutBackupDestinationsInput> } export type UserCreateNestedOneWithoutNotificationsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNotificationsInput connect?: UserWhereUniqueInput } export type EnumNotificationTypesFieldUpdateOperationsInput = { set?: $Enums.NotificationTypes } export type UserUpdateOneRequiredWithoutNotificationsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutNotificationsInput upsert?: UserUpsertWithoutNotificationsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutNotificationsInput> } export type CloudFolderCreateNestedOneWithoutChildrenInput = { create?: XOR connectOrCreate?: CloudFolderCreateOrConnectWithoutChildrenInput connect?: CloudFolderWhereUniqueInput } export type CloudFolderCreateNestedManyWithoutParentInput = { create?: XOR | CloudFolderCreateWithoutParentInput[] | CloudFolderUncheckedCreateWithoutParentInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutParentInput | CloudFolderCreateOrConnectWithoutParentInput[] createMany?: CloudFolderCreateManyParentInputEnvelope connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] } export type UserCreateNestedOneWithoutCloudFoldersInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCloudFoldersInput connect?: UserWhereUniqueInput } export type CloudFileCreateNestedManyWithoutFolderInput = { create?: XOR | CloudFileCreateWithoutFolderInput[] | CloudFileUncheckedCreateWithoutFolderInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutFolderInput | CloudFileCreateOrConnectWithoutFolderInput[] createMany?: CloudFileCreateManyFolderInputEnvelope connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] } export type CloudFolderUncheckedCreateNestedManyWithoutParentInput = { create?: XOR | CloudFolderCreateWithoutParentInput[] | CloudFolderUncheckedCreateWithoutParentInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutParentInput | CloudFolderCreateOrConnectWithoutParentInput[] createMany?: CloudFolderCreateManyParentInputEnvelope connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] } export type CloudFileUncheckedCreateNestedManyWithoutFolderInput = { create?: XOR | CloudFileCreateWithoutFolderInput[] | CloudFileUncheckedCreateWithoutFolderInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutFolderInput | CloudFileCreateOrConnectWithoutFolderInput[] createMany?: CloudFileCreateManyFolderInputEnvelope connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] } export type CloudFolderUpdateOneWithoutChildrenNestedInput = { create?: XOR connectOrCreate?: CloudFolderCreateOrConnectWithoutChildrenInput upsert?: CloudFolderUpsertWithoutChildrenInput disconnect?: CloudFolderWhereInput | boolean delete?: CloudFolderWhereInput | boolean connect?: CloudFolderWhereUniqueInput update?: XOR, CloudFolderUncheckedUpdateWithoutChildrenInput> } export type CloudFolderUpdateManyWithoutParentNestedInput = { create?: XOR | CloudFolderCreateWithoutParentInput[] | CloudFolderUncheckedCreateWithoutParentInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutParentInput | CloudFolderCreateOrConnectWithoutParentInput[] upsert?: CloudFolderUpsertWithWhereUniqueWithoutParentInput | CloudFolderUpsertWithWhereUniqueWithoutParentInput[] createMany?: CloudFolderCreateManyParentInputEnvelope set?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] disconnect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] delete?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] update?: CloudFolderUpdateWithWhereUniqueWithoutParentInput | CloudFolderUpdateWithWhereUniqueWithoutParentInput[] updateMany?: CloudFolderUpdateManyWithWhereWithoutParentInput | CloudFolderUpdateManyWithWhereWithoutParentInput[] deleteMany?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] } export type UserUpdateOneRequiredWithoutCloudFoldersNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCloudFoldersInput upsert?: UserUpsertWithoutCloudFoldersInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCloudFoldersInput> } export type CloudFileUpdateManyWithoutFolderNestedInput = { create?: XOR | CloudFileCreateWithoutFolderInput[] | CloudFileUncheckedCreateWithoutFolderInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutFolderInput | CloudFileCreateOrConnectWithoutFolderInput[] upsert?: CloudFileUpsertWithWhereUniqueWithoutFolderInput | CloudFileUpsertWithWhereUniqueWithoutFolderInput[] createMany?: CloudFileCreateManyFolderInputEnvelope set?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] disconnect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] delete?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] update?: CloudFileUpdateWithWhereUniqueWithoutFolderInput | CloudFileUpdateWithWhereUniqueWithoutFolderInput[] updateMany?: CloudFileUpdateManyWithWhereWithoutFolderInput | CloudFileUpdateManyWithWhereWithoutFolderInput[] deleteMany?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] } export type CloudFolderUncheckedUpdateManyWithoutParentNestedInput = { create?: XOR | CloudFolderCreateWithoutParentInput[] | CloudFolderUncheckedCreateWithoutParentInput[] connectOrCreate?: CloudFolderCreateOrConnectWithoutParentInput | CloudFolderCreateOrConnectWithoutParentInput[] upsert?: CloudFolderUpsertWithWhereUniqueWithoutParentInput | CloudFolderUpsertWithWhereUniqueWithoutParentInput[] createMany?: CloudFolderCreateManyParentInputEnvelope set?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] disconnect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] delete?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] connect?: CloudFolderWhereUniqueInput | CloudFolderWhereUniqueInput[] update?: CloudFolderUpdateWithWhereUniqueWithoutParentInput | CloudFolderUpdateWithWhereUniqueWithoutParentInput[] updateMany?: CloudFolderUpdateManyWithWhereWithoutParentInput | CloudFolderUpdateManyWithWhereWithoutParentInput[] deleteMany?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] } export type CloudFileUncheckedUpdateManyWithoutFolderNestedInput = { create?: XOR | CloudFileCreateWithoutFolderInput[] | CloudFileUncheckedCreateWithoutFolderInput[] connectOrCreate?: CloudFileCreateOrConnectWithoutFolderInput | CloudFileCreateOrConnectWithoutFolderInput[] upsert?: CloudFileUpsertWithWhereUniqueWithoutFolderInput | CloudFileUpsertWithWhereUniqueWithoutFolderInput[] createMany?: CloudFileCreateManyFolderInputEnvelope set?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] disconnect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] delete?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] connect?: CloudFileWhereUniqueInput | CloudFileWhereUniqueInput[] update?: CloudFileUpdateWithWhereUniqueWithoutFolderInput | CloudFileUpdateWithWhereUniqueWithoutFolderInput[] updateMany?: CloudFileUpdateManyWithWhereWithoutFolderInput | CloudFileUpdateManyWithWhereWithoutFolderInput[] deleteMany?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] } export type UserCreateNestedOneWithoutCloudFilesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCloudFilesInput connect?: UserWhereUniqueInput } export type CloudFolderCreateNestedOneWithoutFilesInput = { create?: XOR connectOrCreate?: CloudFolderCreateOrConnectWithoutFilesInput connect?: CloudFolderWhereUniqueInput } export type CloudFileChunkCreateNestedManyWithoutFileInput = { create?: XOR | CloudFileChunkCreateWithoutFileInput[] | CloudFileChunkUncheckedCreateWithoutFileInput[] connectOrCreate?: CloudFileChunkCreateOrConnectWithoutFileInput | CloudFileChunkCreateOrConnectWithoutFileInput[] createMany?: CloudFileChunkCreateManyFileInputEnvelope connect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] } export type CloudFileChunkUncheckedCreateNestedManyWithoutFileInput = { create?: XOR | CloudFileChunkCreateWithoutFileInput[] | CloudFileChunkUncheckedCreateWithoutFileInput[] connectOrCreate?: CloudFileChunkCreateOrConnectWithoutFileInput | CloudFileChunkCreateOrConnectWithoutFileInput[] createMany?: CloudFileChunkCreateManyFileInputEnvelope connect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] } export type BigIntFieldUpdateOperationsInput = { set?: bigint | number increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type UserUpdateOneRequiredWithoutCloudFilesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCloudFilesInput upsert?: UserUpsertWithoutCloudFilesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCloudFilesInput> } export type CloudFolderUpdateOneWithoutFilesNestedInput = { create?: XOR connectOrCreate?: CloudFolderCreateOrConnectWithoutFilesInput upsert?: CloudFolderUpsertWithoutFilesInput disconnect?: CloudFolderWhereInput | boolean delete?: CloudFolderWhereInput | boolean connect?: CloudFolderWhereUniqueInput update?: XOR, CloudFolderUncheckedUpdateWithoutFilesInput> } export type CloudFileChunkUpdateManyWithoutFileNestedInput = { create?: XOR | CloudFileChunkCreateWithoutFileInput[] | CloudFileChunkUncheckedCreateWithoutFileInput[] connectOrCreate?: CloudFileChunkCreateOrConnectWithoutFileInput | CloudFileChunkCreateOrConnectWithoutFileInput[] upsert?: CloudFileChunkUpsertWithWhereUniqueWithoutFileInput | CloudFileChunkUpsertWithWhereUniqueWithoutFileInput[] createMany?: CloudFileChunkCreateManyFileInputEnvelope set?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] disconnect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] delete?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] connect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] update?: CloudFileChunkUpdateWithWhereUniqueWithoutFileInput | CloudFileChunkUpdateWithWhereUniqueWithoutFileInput[] updateMany?: CloudFileChunkUpdateManyWithWhereWithoutFileInput | CloudFileChunkUpdateManyWithWhereWithoutFileInput[] deleteMany?: CloudFileChunkScalarWhereInput | CloudFileChunkScalarWhereInput[] } export type CloudFileChunkUncheckedUpdateManyWithoutFileNestedInput = { create?: XOR | CloudFileChunkCreateWithoutFileInput[] | CloudFileChunkUncheckedCreateWithoutFileInput[] connectOrCreate?: CloudFileChunkCreateOrConnectWithoutFileInput | CloudFileChunkCreateOrConnectWithoutFileInput[] upsert?: CloudFileChunkUpsertWithWhereUniqueWithoutFileInput | CloudFileChunkUpsertWithWhereUniqueWithoutFileInput[] createMany?: CloudFileChunkCreateManyFileInputEnvelope set?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] disconnect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] delete?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] connect?: CloudFileChunkWhereUniqueInput | CloudFileChunkWhereUniqueInput[] update?: CloudFileChunkUpdateWithWhereUniqueWithoutFileInput | CloudFileChunkUpdateWithWhereUniqueWithoutFileInput[] updateMany?: CloudFileChunkUpdateManyWithWhereWithoutFileInput | CloudFileChunkUpdateManyWithWhereWithoutFileInput[] deleteMany?: CloudFileChunkScalarWhereInput | CloudFileChunkScalarWhereInput[] } export type CloudFileCreateNestedOneWithoutChunksInput = { create?: XOR connectOrCreate?: CloudFileCreateOrConnectWithoutChunksInput connect?: CloudFileWhereUniqueInput } export type CloudFileUpdateOneRequiredWithoutChunksNestedInput = { create?: XOR connectOrCreate?: CloudFileCreateOrConnectWithoutChunksInput upsert?: CloudFileUpsertWithoutChunksInput connect?: CloudFileWhereUniqueInput update?: XOR, CloudFileUncheckedUpdateWithoutChunksInput> } export type PatientCreateNestedOneWithoutCommunicationsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutCommunicationsInput connect?: PatientWhereUniqueInput } export type UserCreateNestedOneWithoutCommunicationsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCommunicationsInput connect?: UserWhereUniqueInput } export type EnumCommunicationChannelFieldUpdateOperationsInput = { set?: $Enums.CommunicationChannel } export type EnumCommunicationDirectionFieldUpdateOperationsInput = { set?: $Enums.CommunicationDirection } export type EnumCommunicationStatusFieldUpdateOperationsInput = { set?: $Enums.CommunicationStatus } export type PatientUpdateOneRequiredWithoutCommunicationsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutCommunicationsInput upsert?: PatientUpsertWithoutCommunicationsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutCommunicationsInput> } export type UserUpdateOneWithoutCommunicationsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCommunicationsInput upsert?: UserUpsertWithoutCommunicationsInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCommunicationsInput> } export type PatientCreateNestedOneWithoutDocumentsInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutDocumentsInput connect?: PatientWhereUniqueInput } export type PatientUpdateOneRequiredWithoutDocumentsNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutDocumentsInput upsert?: PatientUpsertWithoutDocumentsInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutDocumentsInput> } export type UserCreateNestedOneWithoutTwilioSettingsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutTwilioSettingsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutTwilioSettingsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutTwilioSettingsInput upsert?: UserUpsertWithoutTwilioSettingsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutTwilioSettingsInput> } export type UserCreateNestedOneWithoutAiSettingsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAiSettingsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutAiSettingsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAiSettingsInput upsert?: UserUpsertWithoutAiSettingsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAiSettingsInput> } export type UserCreateNestedOneWithoutOfficeHoursInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutOfficeHoursInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutOfficeHoursNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutOfficeHoursInput upsert?: UserUpsertWithoutOfficeHoursInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutOfficeHoursInput> } export type UserCreateNestedOneWithoutOfficeContactInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutOfficeContactInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutOfficeContactNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutOfficeContactInput upsert?: UserUpsertWithoutOfficeContactInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutOfficeContactInput> } export type UserCreateNestedOneWithoutInsuranceContactsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutInsuranceContactsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutInsuranceContactsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutInsuranceContactsInput upsert?: UserUpsertWithoutInsuranceContactsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutInsuranceContactsInput> } export type UserCreateNestedOneWithoutProcedureTimeslotInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutProcedureTimeslotInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutProcedureTimeslotNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutProcedureTimeslotInput upsert?: UserUpsertWithoutProcedureTimeslotInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutProcedureTimeslotInput> } export type PatientCreateNestedOneWithoutConversationInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutConversationInput connect?: PatientWhereUniqueInput } export type UserCreateNestedOneWithoutPatientConversationsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutPatientConversationsInput connect?: UserWhereUniqueInput } export type PatientUpdateOneRequiredWithoutConversationNestedInput = { create?: XOR connectOrCreate?: PatientCreateOrConnectWithoutConversationInput upsert?: PatientUpsertWithoutConversationInput connect?: PatientWhereUniqueInput update?: XOR, PatientUncheckedUpdateWithoutConversationInput> } export type UserUpdateOneRequiredWithoutPatientConversationsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutPatientConversationsInput upsert?: UserUpsertWithoutPatientConversationsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutPatientConversationsInput> } export type NpiProviderCreateNestedOneWithoutCommissionBatchesInput = { create?: XOR connectOrCreate?: NpiProviderCreateOrConnectWithoutCommissionBatchesInput connect?: NpiProviderWhereUniqueInput } export type CommissionBatchItemCreateNestedManyWithoutCommissionBatchInput = { create?: XOR | CommissionBatchItemCreateWithoutCommissionBatchInput[] | CommissionBatchItemUncheckedCreateWithoutCommissionBatchInput[] connectOrCreate?: CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput | CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput[] createMany?: CommissionBatchItemCreateManyCommissionBatchInputEnvelope connect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] } export type CommissionBatchItemUncheckedCreateNestedManyWithoutCommissionBatchInput = { create?: XOR | CommissionBatchItemCreateWithoutCommissionBatchInput[] | CommissionBatchItemUncheckedCreateWithoutCommissionBatchInput[] connectOrCreate?: CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput | CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput[] createMany?: CommissionBatchItemCreateManyCommissionBatchInputEnvelope connect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] } export type NpiProviderUpdateOneRequiredWithoutCommissionBatchesNestedInput = { create?: XOR connectOrCreate?: NpiProviderCreateOrConnectWithoutCommissionBatchesInput upsert?: NpiProviderUpsertWithoutCommissionBatchesInput connect?: NpiProviderWhereUniqueInput update?: XOR, NpiProviderUncheckedUpdateWithoutCommissionBatchesInput> } export type CommissionBatchItemUpdateManyWithoutCommissionBatchNestedInput = { create?: XOR | CommissionBatchItemCreateWithoutCommissionBatchInput[] | CommissionBatchItemUncheckedCreateWithoutCommissionBatchInput[] connectOrCreate?: CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput | CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput[] upsert?: CommissionBatchItemUpsertWithWhereUniqueWithoutCommissionBatchInput | CommissionBatchItemUpsertWithWhereUniqueWithoutCommissionBatchInput[] createMany?: CommissionBatchItemCreateManyCommissionBatchInputEnvelope set?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] disconnect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] delete?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] connect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] update?: CommissionBatchItemUpdateWithWhereUniqueWithoutCommissionBatchInput | CommissionBatchItemUpdateWithWhereUniqueWithoutCommissionBatchInput[] updateMany?: CommissionBatchItemUpdateManyWithWhereWithoutCommissionBatchInput | CommissionBatchItemUpdateManyWithWhereWithoutCommissionBatchInput[] deleteMany?: CommissionBatchItemScalarWhereInput | CommissionBatchItemScalarWhereInput[] } export type CommissionBatchItemUncheckedUpdateManyWithoutCommissionBatchNestedInput = { create?: XOR | CommissionBatchItemCreateWithoutCommissionBatchInput[] | CommissionBatchItemUncheckedCreateWithoutCommissionBatchInput[] connectOrCreate?: CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput | CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput[] upsert?: CommissionBatchItemUpsertWithWhereUniqueWithoutCommissionBatchInput | CommissionBatchItemUpsertWithWhereUniqueWithoutCommissionBatchInput[] createMany?: CommissionBatchItemCreateManyCommissionBatchInputEnvelope set?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] disconnect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] delete?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] connect?: CommissionBatchItemWhereUniqueInput | CommissionBatchItemWhereUniqueInput[] update?: CommissionBatchItemUpdateWithWhereUniqueWithoutCommissionBatchInput | CommissionBatchItemUpdateWithWhereUniqueWithoutCommissionBatchInput[] updateMany?: CommissionBatchItemUpdateManyWithWhereWithoutCommissionBatchInput | CommissionBatchItemUpdateManyWithWhereWithoutCommissionBatchInput[] deleteMany?: CommissionBatchItemScalarWhereInput | CommissionBatchItemScalarWhereInput[] } export type CommissionBatchCreateNestedOneWithoutItemsInput = { create?: XOR connectOrCreate?: CommissionBatchCreateOrConnectWithoutItemsInput connect?: CommissionBatchWhereUniqueInput } export type PaymentCreateNestedOneWithoutCommissionBatchItemsInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutCommissionBatchItemsInput connect?: PaymentWhereUniqueInput } export type CommissionBatchUpdateOneRequiredWithoutItemsNestedInput = { create?: XOR connectOrCreate?: CommissionBatchCreateOrConnectWithoutItemsInput upsert?: CommissionBatchUpsertWithoutItemsInput connect?: CommissionBatchWhereUniqueInput update?: XOR, CommissionBatchUncheckedUpdateWithoutItemsInput> } export type PaymentUpdateOneRequiredWithoutCommissionBatchItemsNestedInput = { create?: XOR connectOrCreate?: PaymentCreateOrConnectWithoutCommissionBatchItemsInput upsert?: PaymentUpsertWithoutCommissionBatchItemsInput connect?: PaymentWhereUniqueInput update?: XOR, PaymentUncheckedUpdateWithoutCommissionBatchItemsInput> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NestedDateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedEnumPatientStatusFilter<$PrismaModel = never> = { equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel> in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> not?: NestedEnumPatientStatusFilter<$PrismaModel> | $Enums.PatientStatus } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel> in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel> not?: NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel> | $Enums.PatientStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPatientStatusFilter<$PrismaModel> _max?: NestedEnumPatientStatusFilter<$PrismaModel> } export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type NestedDecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type NestedEnumProcedureSourceFilter<$PrismaModel = never> = { equals?: $Enums.ProcedureSource | EnumProcedureSourceFieldRefInput<$PrismaModel> in?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> notIn?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> not?: NestedEnumProcedureSourceFilter<$PrismaModel> | $Enums.ProcedureSource } export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: 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[] | ListFloatFieldRefInput<$PrismaModel> | null notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type NestedEnumProcedureSourceWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ProcedureSource | EnumProcedureSourceFieldRefInput<$PrismaModel> in?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> notIn?: $Enums.ProcedureSource[] | ListEnumProcedureSourceFieldRefInput<$PrismaModel> not?: NestedEnumProcedureSourceWithAggregatesFilter<$PrismaModel> | $Enums.ProcedureSource _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumProcedureSourceFilter<$PrismaModel> _max?: NestedEnumProcedureSourceFilter<$PrismaModel> } export type NestedEnumMissingTeethStatusFilter<$PrismaModel = never> = { equals?: $Enums.MissingTeethStatus | EnumMissingTeethStatusFieldRefInput<$PrismaModel> in?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> not?: NestedEnumMissingTeethStatusFilter<$PrismaModel> | $Enums.MissingTeethStatus } export type NestedEnumClaimStatusFilter<$PrismaModel = never> = { equals?: $Enums.ClaimStatus | EnumClaimStatusFieldRefInput<$PrismaModel> in?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> not?: NestedEnumClaimStatusFilter<$PrismaModel> | $Enums.ClaimStatus } export type NestedEnumMissingTeethStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.MissingTeethStatus | EnumMissingTeethStatusFieldRefInput<$PrismaModel> in?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> notIn?: $Enums.MissingTeethStatus[] | ListEnumMissingTeethStatusFieldRefInput<$PrismaModel> not?: NestedEnumMissingTeethStatusWithAggregatesFilter<$PrismaModel> | $Enums.MissingTeethStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumMissingTeethStatusFilter<$PrismaModel> _max?: NestedEnumMissingTeethStatusFilter<$PrismaModel> } export type NestedJsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedEnumClaimStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ClaimStatus | EnumClaimStatusFieldRefInput<$PrismaModel> in?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ClaimStatus[] | ListEnumClaimStatusFieldRefInput<$PrismaModel> not?: NestedEnumClaimStatusWithAggregatesFilter<$PrismaModel> | $Enums.ClaimStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumClaimStatusFilter<$PrismaModel> _max?: NestedEnumClaimStatusFilter<$PrismaModel> } export type NestedDecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type NestedEnumServiceLineStatusFilter<$PrismaModel = never> = { equals?: $Enums.ServiceLineStatus | EnumServiceLineStatusFieldRefInput<$PrismaModel> in?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> not?: NestedEnumServiceLineStatusFilter<$PrismaModel> | $Enums.ServiceLineStatus } export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } export type NestedEnumServiceLineStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.ServiceLineStatus | EnumServiceLineStatusFieldRefInput<$PrismaModel> in?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> notIn?: $Enums.ServiceLineStatus[] | ListEnumServiceLineStatusFieldRefInput<$PrismaModel> not?: NestedEnumServiceLineStatusWithAggregatesFilter<$PrismaModel> | $Enums.ServiceLineStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumServiceLineStatusFilter<$PrismaModel> _max?: NestedEnumServiceLineStatusFilter<$PrismaModel> } export type NestedEnumPdfTitleKeyFilter<$PrismaModel = never> = { equals?: $Enums.PdfTitleKey | EnumPdfTitleKeyFieldRefInput<$PrismaModel> in?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> notIn?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> not?: NestedEnumPdfTitleKeyFilter<$PrismaModel> | $Enums.PdfTitleKey } export type NestedEnumPdfTitleKeyWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PdfTitleKey | EnumPdfTitleKeyFieldRefInput<$PrismaModel> in?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> notIn?: $Enums.PdfTitleKey[] | ListEnumPdfTitleKeyFieldRefInput<$PrismaModel> not?: NestedEnumPdfTitleKeyWithAggregatesFilter<$PrismaModel> | $Enums.PdfTitleKey _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPdfTitleKeyFilter<$PrismaModel> _max?: NestedEnumPdfTitleKeyFilter<$PrismaModel> } export type NestedBytesFilter<$PrismaModel = never> = { equals?: Bytes | BytesFieldRefInput<$PrismaModel> in?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> notIn?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> not?: NestedBytesFilter<$PrismaModel> | Bytes } export type NestedBytesWithAggregatesFilter<$PrismaModel = never> = { equals?: Bytes | BytesFieldRefInput<$PrismaModel> in?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> notIn?: Bytes[] | ListBytesFieldRefInput<$PrismaModel> not?: NestedBytesWithAggregatesFilter<$PrismaModel> | Bytes _count?: NestedIntFilter<$PrismaModel> _min?: NestedBytesFilter<$PrismaModel> _max?: NestedBytesFilter<$PrismaModel> } export type NestedEnumPaymentStatusFilter<$PrismaModel = never> = { equals?: $Enums.PaymentStatus | EnumPaymentStatusFieldRefInput<$PrismaModel> in?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> not?: NestedEnumPaymentStatusFilter<$PrismaModel> | $Enums.PaymentStatus } export type NestedEnumPaymentStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PaymentStatus | EnumPaymentStatusFieldRefInput<$PrismaModel> in?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentStatus[] | ListEnumPaymentStatusFieldRefInput<$PrismaModel> not?: NestedEnumPaymentStatusWithAggregatesFilter<$PrismaModel> | $Enums.PaymentStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPaymentStatusFilter<$PrismaModel> _max?: NestedEnumPaymentStatusFilter<$PrismaModel> } export type NestedEnumPaymentMethodFilter<$PrismaModel = never> = { equals?: $Enums.PaymentMethod | EnumPaymentMethodFieldRefInput<$PrismaModel> in?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> not?: NestedEnumPaymentMethodFilter<$PrismaModel> | $Enums.PaymentMethod } export type NestedEnumPaymentMethodWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.PaymentMethod | EnumPaymentMethodFieldRefInput<$PrismaModel> in?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> notIn?: $Enums.PaymentMethod[] | ListEnumPaymentMethodFieldRefInput<$PrismaModel> not?: NestedEnumPaymentMethodWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethod _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumPaymentMethodFilter<$PrismaModel> _max?: NestedEnumPaymentMethodFilter<$PrismaModel> } export type NestedEnumNotificationTypesFilter<$PrismaModel = never> = { equals?: $Enums.NotificationTypes | EnumNotificationTypesFieldRefInput<$PrismaModel> in?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> notIn?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> not?: NestedEnumNotificationTypesFilter<$PrismaModel> | $Enums.NotificationTypes } export type NestedEnumNotificationTypesWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.NotificationTypes | EnumNotificationTypesFieldRefInput<$PrismaModel> in?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> notIn?: $Enums.NotificationTypes[] | ListEnumNotificationTypesFieldRefInput<$PrismaModel> not?: NestedEnumNotificationTypesWithAggregatesFilter<$PrismaModel> | $Enums.NotificationTypes _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumNotificationTypesFilter<$PrismaModel> _max?: NestedEnumNotificationTypesFilter<$PrismaModel> } export type NestedBigIntFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntFilter<$PrismaModel> | bigint | number } export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedBigIntFilter<$PrismaModel> _min?: NestedBigIntFilter<$PrismaModel> _max?: NestedBigIntFilter<$PrismaModel> } export type NestedEnumCommunicationChannelFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationChannel | EnumCommunicationChannelFieldRefInput<$PrismaModel> in?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationChannelFilter<$PrismaModel> | $Enums.CommunicationChannel } export type NestedEnumCommunicationDirectionFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationDirection | EnumCommunicationDirectionFieldRefInput<$PrismaModel> in?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationDirectionFilter<$PrismaModel> | $Enums.CommunicationDirection } export type NestedEnumCommunicationStatusFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationStatus | EnumCommunicationStatusFieldRefInput<$PrismaModel> in?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationStatusFilter<$PrismaModel> | $Enums.CommunicationStatus } export type NestedEnumCommunicationChannelWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationChannel | EnumCommunicationChannelFieldRefInput<$PrismaModel> in?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationChannel[] | ListEnumCommunicationChannelFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationChannelWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationChannel _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationChannelFilter<$PrismaModel> _max?: NestedEnumCommunicationChannelFilter<$PrismaModel> } export type NestedEnumCommunicationDirectionWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationDirection | EnumCommunicationDirectionFieldRefInput<$PrismaModel> in?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationDirection[] | ListEnumCommunicationDirectionFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationDirectionWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationDirection _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationDirectionFilter<$PrismaModel> _max?: NestedEnumCommunicationDirectionFilter<$PrismaModel> } export type NestedEnumCommunicationStatusWithAggregatesFilter<$PrismaModel = never> = { equals?: $Enums.CommunicationStatus | EnumCommunicationStatusFieldRefInput<$PrismaModel> in?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> notIn?: $Enums.CommunicationStatus[] | ListEnumCommunicationStatusFieldRefInput<$PrismaModel> not?: NestedEnumCommunicationStatusWithAggregatesFilter<$PrismaModel> | $Enums.CommunicationStatus _count?: NestedIntFilter<$PrismaModel> _min?: NestedEnumCommunicationStatusFilter<$PrismaModel> _max?: NestedEnumCommunicationStatusFilter<$PrismaModel> } export type NestedJsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type PatientCreateWithoutUserInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateWithoutUserInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientCreateOrConnectWithoutUserInput = { where: PatientWhereUniqueInput create: XOR } export type PatientCreateManyUserInputEnvelope = { data: PatientCreateManyUserInput | PatientCreateManyUserInput[] skipDuplicates?: boolean } export type AppointmentCreateWithoutUserInput = { title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput files?: AppointmentFileCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutUserInput = { id?: number patientId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput files?: AppointmentFileUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutUserInput = { where: AppointmentWhereUniqueInput create: XOR } export type AppointmentCreateManyUserInputEnvelope = { data: AppointmentCreateManyUserInput | AppointmentCreateManyUserInput[] skipDuplicates?: boolean } export type StaffCreateWithoutUserInput = { name: string email?: string | null role: string phone?: string | null createdAt?: Date | string appointments?: AppointmentCreateNestedManyWithoutStaffInput claims?: ClaimCreateNestedManyWithoutStaffInput } export type StaffUncheckedCreateWithoutUserInput = { id?: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutStaffInput claims?: ClaimUncheckedCreateNestedManyWithoutStaffInput } export type StaffCreateOrConnectWithoutUserInput = { where: StaffWhereUniqueInput create: XOR } export type StaffCreateManyUserInputEnvelope = { data: StaffCreateManyUserInput | StaffCreateManyUserInput[] skipDuplicates?: boolean } export type NpiProviderCreateWithoutUserInput = { npiNumber: string providerName: string createdAt?: Date | string claims?: ClaimCreateNestedManyWithoutNpiProviderInput payments?: PaymentCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureCreateNestedManyWithoutNpiProviderInput } export type NpiProviderUncheckedCreateWithoutUserInput = { id?: number npiNumber: string providerName: string createdAt?: Date | string claims?: ClaimUncheckedCreateNestedManyWithoutNpiProviderInput payments?: PaymentUncheckedCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchUncheckedCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutNpiProviderInput } export type NpiProviderCreateOrConnectWithoutUserInput = { where: NpiProviderWhereUniqueInput create: XOR } export type NpiProviderCreateManyUserInputEnvelope = { data: NpiProviderCreateManyUserInput | NpiProviderCreateManyUserInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutUserInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment?: AppointmentCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput npiProvider?: NpiProviderCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutUserInput = { id?: number patientId: number appointmentId?: number | null staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutUserInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyUserInputEnvelope = { data: ClaimCreateManyUserInput | ClaimCreateManyUserInput[] skipDuplicates?: boolean } export type InsuranceCredentialCreateWithoutUserInput = { siteKey: string username: string password: string } export type InsuranceCredentialUncheckedCreateWithoutUserInput = { id?: number siteKey: string username: string password: string } export type InsuranceCredentialCreateOrConnectWithoutUserInput = { where: InsuranceCredentialWhereUniqueInput create: XOR } export type InsuranceCredentialCreateManyUserInputEnvelope = { data: InsuranceCredentialCreateManyUserInput | InsuranceCredentialCreateManyUserInput[] skipDuplicates?: boolean } export type ShoppingVendorCreateWithoutUserInput = { vendorName: string websiteUrl: string loginUsername: string loginPassword: string } export type ShoppingVendorUncheckedCreateWithoutUserInput = { id?: number vendorName: string websiteUrl: string loginUsername: string loginPassword: string } export type ShoppingVendorCreateOrConnectWithoutUserInput = { where: ShoppingVendorWhereUniqueInput create: XOR } export type ShoppingVendorCreateManyUserInputEnvelope = { data: ShoppingVendorCreateManyUserInput | ShoppingVendorCreateManyUserInput[] skipDuplicates?: boolean } export type PaymentCreateWithoutUpdatedByInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput npiProvider?: NpiProviderCreateNestedOneWithoutPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutUpdatedByInput = { id?: number claimId?: number | null patientId: number userId: number npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutUpdatedByInput = { where: PaymentWhereUniqueInput create: XOR } export type PaymentCreateManyUpdatedByInputEnvelope = { data: PaymentCreateManyUpdatedByInput | PaymentCreateManyUpdatedByInput[] skipDuplicates?: boolean } export type DatabaseBackupCreateWithoutUserInput = { createdAt?: Date | string } export type DatabaseBackupUncheckedCreateWithoutUserInput = { id?: number createdAt?: Date | string } export type DatabaseBackupCreateOrConnectWithoutUserInput = { where: DatabaseBackupWhereUniqueInput create: XOR } export type DatabaseBackupCreateManyUserInputEnvelope = { data: DatabaseBackupCreateManyUserInput | DatabaseBackupCreateManyUserInput[] skipDuplicates?: boolean } export type BackupDestinationCreateWithoutUserInput = { path: string isActive?: boolean createdAt?: Date | string } export type BackupDestinationUncheckedCreateWithoutUserInput = { id?: number path: string isActive?: boolean createdAt?: Date | string } export type BackupDestinationCreateOrConnectWithoutUserInput = { where: BackupDestinationWhereUniqueInput create: XOR } export type BackupDestinationCreateManyUserInputEnvelope = { data: BackupDestinationCreateManyUserInput | BackupDestinationCreateManyUserInput[] skipDuplicates?: boolean } export type NotificationCreateWithoutUserInput = { type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type NotificationUncheckedCreateWithoutUserInput = { id?: number type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type NotificationCreateOrConnectWithoutUserInput = { where: NotificationWhereUniqueInput create: XOR } export type NotificationCreateManyUserInputEnvelope = { data: NotificationCreateManyUserInput | NotificationCreateManyUserInput[] skipDuplicates?: boolean } export type CloudFolderCreateWithoutUserInput = { name: string createdAt?: Date | string updatedAt?: Date | string parent?: CloudFolderCreateNestedOneWithoutChildrenInput children?: CloudFolderCreateNestedManyWithoutParentInput files?: CloudFileCreateNestedManyWithoutFolderInput } export type CloudFolderUncheckedCreateWithoutUserInput = { id?: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderUncheckedCreateNestedManyWithoutParentInput files?: CloudFileUncheckedCreateNestedManyWithoutFolderInput } export type CloudFolderCreateOrConnectWithoutUserInput = { where: CloudFolderWhereUniqueInput create: XOR } export type CloudFolderCreateManyUserInputEnvelope = { data: CloudFolderCreateManyUserInput | CloudFolderCreateManyUserInput[] skipDuplicates?: boolean } export type CloudFileCreateWithoutUserInput = { name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string folder?: CloudFolderCreateNestedOneWithoutFilesInput chunks?: CloudFileChunkCreateNestedManyWithoutFileInput } export type CloudFileUncheckedCreateWithoutUserInput = { id?: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string chunks?: CloudFileChunkUncheckedCreateNestedManyWithoutFileInput } export type CloudFileCreateOrConnectWithoutUserInput = { where: CloudFileWhereUniqueInput create: XOR } export type CloudFileCreateManyUserInputEnvelope = { data: CloudFileCreateManyUserInput | CloudFileCreateManyUserInput[] skipDuplicates?: boolean } export type CommunicationCreateWithoutUserInput = { channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string patient: PatientCreateNestedOneWithoutCommunicationsInput } export type CommunicationUncheckedCreateWithoutUserInput = { id?: number patientId: number channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type CommunicationCreateOrConnectWithoutUserInput = { where: CommunicationWhereUniqueInput create: XOR } export type CommunicationCreateManyUserInputEnvelope = { data: CommunicationCreateManyUserInput | CommunicationCreateManyUserInput[] skipDuplicates?: boolean } export type TwilioSettingsCreateWithoutUserInput = { accountSid: string authToken: string phoneNumber: string greetingMessage?: string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type TwilioSettingsUncheckedCreateWithoutUserInput = { id?: number accountSid: string authToken: string phoneNumber: string greetingMessage?: string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type TwilioSettingsCreateOrConnectWithoutUserInput = { where: TwilioSettingsWhereUniqueInput create: XOR } export type AiSettingsCreateWithoutUserInput = { apiKey: string afterHoursEnabled?: boolean openPhoneReply?: boolean } export type AiSettingsUncheckedCreateWithoutUserInput = { id?: number apiKey: string afterHoursEnabled?: boolean openPhoneReply?: boolean } export type AiSettingsCreateOrConnectWithoutUserInput = { where: AiSettingsWhereUniqueInput create: XOR } export type OfficeHoursCreateWithoutUserInput = { data: JsonNullValueInput | InputJsonValue } export type OfficeHoursUncheckedCreateWithoutUserInput = { id?: number data: JsonNullValueInput | InputJsonValue } export type OfficeHoursCreateOrConnectWithoutUserInput = { where: OfficeHoursWhereUniqueInput create: XOR } export type OfficeContactCreateWithoutUserInput = { officeName?: string | null receptionistName?: string | null dentistName?: string | null phoneNumber?: string | null email?: string | null fax?: string | null streetAddress?: string | null city?: string | null state?: string | null zipCode?: string | null } export type OfficeContactUncheckedCreateWithoutUserInput = { id?: number officeName?: string | null receptionistName?: string | null dentistName?: string | null phoneNumber?: string | null email?: string | null fax?: string | null streetAddress?: string | null city?: string | null state?: string | null zipCode?: string | null } export type OfficeContactCreateOrConnectWithoutUserInput = { where: OfficeContactWhereUniqueInput create: XOR } export type ProcedureTimeslotCreateWithoutUserInput = { data: JsonNullValueInput | InputJsonValue } export type ProcedureTimeslotUncheckedCreateWithoutUserInput = { id?: number data: JsonNullValueInput | InputJsonValue } export type ProcedureTimeslotCreateOrConnectWithoutUserInput = { where: ProcedureTimeslotWhereUniqueInput create: XOR } export type InsuranceContactCreateWithoutUserInput = { name: string phoneNumber?: string | null createdAt?: Date | string } export type InsuranceContactUncheckedCreateWithoutUserInput = { id?: number name: string phoneNumber?: string | null createdAt?: Date | string } export type InsuranceContactCreateOrConnectWithoutUserInput = { where: InsuranceContactWhereUniqueInput create: XOR } export type InsuranceContactCreateManyUserInputEnvelope = { data: InsuranceContactCreateManyUserInput | InsuranceContactCreateManyUserInput[] skipDuplicates?: boolean } export type PatientConversationCreateWithoutUserInput = { stage?: string aiHandoff?: boolean updatedAt?: Date | string patient: PatientCreateNestedOneWithoutConversationInput } export type PatientConversationUncheckedCreateWithoutUserInput = { id?: number patientId: number stage?: string aiHandoff?: boolean updatedAt?: Date | string } export type PatientConversationCreateOrConnectWithoutUserInput = { where: PatientConversationWhereUniqueInput create: XOR } export type PatientConversationCreateManyUserInputEnvelope = { data: PatientConversationCreateManyUserInput | PatientConversationCreateManyUserInput[] skipDuplicates?: boolean } export type PatientUpsertWithWhereUniqueWithoutUserInput = { where: PatientWhereUniqueInput update: XOR create: XOR } export type PatientUpdateWithWhereUniqueWithoutUserInput = { where: PatientWhereUniqueInput data: XOR } export type PatientUpdateManyWithWhereWithoutUserInput = { where: PatientScalarWhereInput data: XOR } export type PatientScalarWhereInput = { AND?: PatientScalarWhereInput | PatientScalarWhereInput[] OR?: PatientScalarWhereInput[] NOT?: PatientScalarWhereInput | PatientScalarWhereInput[] id?: IntFilter<"Patient"> | number firstName?: StringFilter<"Patient"> | string lastName?: StringFilter<"Patient"> | string dateOfBirth?: DateTimeNullableFilter<"Patient"> | Date | string | null gender?: StringFilter<"Patient"> | string phone?: StringFilter<"Patient"> | string email?: StringNullableFilter<"Patient"> | string | null address?: StringNullableFilter<"Patient"> | string | null city?: StringNullableFilter<"Patient"> | string | null zipCode?: StringNullableFilter<"Patient"> | string | null insuranceProvider?: StringNullableFilter<"Patient"> | string | null insuranceId?: StringNullableFilter<"Patient"> | string | null groupNumber?: StringNullableFilter<"Patient"> | string | null policyHolder?: StringNullableFilter<"Patient"> | string | null allergies?: StringNullableFilter<"Patient"> | string | null medicalConditions?: StringNullableFilter<"Patient"> | string | null preferredLanguage?: StringNullableFilter<"Patient"> | string | null status?: EnumPatientStatusFilter<"Patient"> | $Enums.PatientStatus userId?: IntFilter<"Patient"> | number createdAt?: DateTimeFilter<"Patient"> | Date | string updatedAt?: DateTimeFilter<"Patient"> | Date | string } export type AppointmentUpsertWithWhereUniqueWithoutUserInput = { where: AppointmentWhereUniqueInput update: XOR create: XOR } export type AppointmentUpdateWithWhereUniqueWithoutUserInput = { where: AppointmentWhereUniqueInput data: XOR } export type AppointmentUpdateManyWithWhereWithoutUserInput = { where: AppointmentScalarWhereInput data: XOR } export type AppointmentScalarWhereInput = { AND?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] OR?: AppointmentScalarWhereInput[] NOT?: AppointmentScalarWhereInput | AppointmentScalarWhereInput[] id?: IntFilter<"Appointment"> | number patientId?: IntFilter<"Appointment"> | number userId?: IntFilter<"Appointment"> | number staffId?: IntFilter<"Appointment"> | number title?: StringFilter<"Appointment"> | string date?: DateTimeFilter<"Appointment"> | Date | string startTime?: StringFilter<"Appointment"> | string endTime?: StringFilter<"Appointment"> | string type?: StringFilter<"Appointment"> | string typeLocked?: BoolFilter<"Appointment"> | boolean notes?: StringNullableFilter<"Appointment"> | string | null procedureCodeNotes?: StringNullableFilter<"Appointment"> | string | null status?: StringFilter<"Appointment"> | string movedByAi?: BoolFilter<"Appointment"> | boolean createdAt?: DateTimeFilter<"Appointment"> | Date | string eligibilityStatus?: EnumPatientStatusFilter<"Appointment"> | $Enums.PatientStatus } export type StaffUpsertWithWhereUniqueWithoutUserInput = { where: StaffWhereUniqueInput update: XOR create: XOR } export type StaffUpdateWithWhereUniqueWithoutUserInput = { where: StaffWhereUniqueInput data: XOR } export type StaffUpdateManyWithWhereWithoutUserInput = { where: StaffScalarWhereInput data: XOR } export type StaffScalarWhereInput = { AND?: StaffScalarWhereInput | StaffScalarWhereInput[] OR?: StaffScalarWhereInput[] NOT?: StaffScalarWhereInput | StaffScalarWhereInput[] id?: IntFilter<"Staff"> | number userId?: IntFilter<"Staff"> | number name?: StringFilter<"Staff"> | string email?: StringNullableFilter<"Staff"> | string | null role?: StringFilter<"Staff"> | string phone?: StringNullableFilter<"Staff"> | string | null createdAt?: DateTimeFilter<"Staff"> | Date | string } export type NpiProviderUpsertWithWhereUniqueWithoutUserInput = { where: NpiProviderWhereUniqueInput update: XOR create: XOR } export type NpiProviderUpdateWithWhereUniqueWithoutUserInput = { where: NpiProviderWhereUniqueInput data: XOR } export type NpiProviderUpdateManyWithWhereWithoutUserInput = { where: NpiProviderScalarWhereInput data: XOR } export type NpiProviderScalarWhereInput = { AND?: NpiProviderScalarWhereInput | NpiProviderScalarWhereInput[] OR?: NpiProviderScalarWhereInput[] NOT?: NpiProviderScalarWhereInput | NpiProviderScalarWhereInput[] id?: IntFilter<"NpiProvider"> | number userId?: IntFilter<"NpiProvider"> | number npiNumber?: StringFilter<"NpiProvider"> | string providerName?: StringFilter<"NpiProvider"> | string createdAt?: DateTimeFilter<"NpiProvider"> | Date | string } export type ClaimUpsertWithWhereUniqueWithoutUserInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutUserInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutUserInput = { where: ClaimScalarWhereInput data: XOR } export type ClaimScalarWhereInput = { AND?: ClaimScalarWhereInput | ClaimScalarWhereInput[] OR?: ClaimScalarWhereInput[] NOT?: ClaimScalarWhereInput | ClaimScalarWhereInput[] id?: IntFilter<"Claim"> | number patientId?: IntFilter<"Claim"> | number appointmentId?: IntNullableFilter<"Claim"> | number | null userId?: IntFilter<"Claim"> | number staffId?: IntFilter<"Claim"> | number patientName?: StringFilter<"Claim"> | string memberId?: StringFilter<"Claim"> | string dateOfBirth?: DateTimeFilter<"Claim"> | Date | string remarks?: StringFilter<"Claim"> | string missingTeethStatus?: EnumMissingTeethStatusFilter<"Claim"> | $Enums.MissingTeethStatus missingTeeth?: JsonNullableFilter<"Claim"> serviceDate?: DateTimeFilter<"Claim"> | Date | string insuranceProvider?: StringFilter<"Claim"> | string createdAt?: DateTimeFilter<"Claim"> | Date | string updatedAt?: DateTimeFilter<"Claim"> | Date | string status?: EnumClaimStatusFilter<"Claim"> | $Enums.ClaimStatus claimNumber?: StringNullableFilter<"Claim"> | string | null preAuthNumber?: StringNullableFilter<"Claim"> | string | null npiProviderId?: IntNullableFilter<"Claim"> | number | null } export type InsuranceCredentialUpsertWithWhereUniqueWithoutUserInput = { where: InsuranceCredentialWhereUniqueInput update: XOR create: XOR } export type InsuranceCredentialUpdateWithWhereUniqueWithoutUserInput = { where: InsuranceCredentialWhereUniqueInput data: XOR } export type InsuranceCredentialUpdateManyWithWhereWithoutUserInput = { where: InsuranceCredentialScalarWhereInput data: XOR } export type InsuranceCredentialScalarWhereInput = { AND?: InsuranceCredentialScalarWhereInput | InsuranceCredentialScalarWhereInput[] OR?: InsuranceCredentialScalarWhereInput[] NOT?: InsuranceCredentialScalarWhereInput | InsuranceCredentialScalarWhereInput[] id?: IntFilter<"InsuranceCredential"> | number userId?: IntFilter<"InsuranceCredential"> | number siteKey?: StringFilter<"InsuranceCredential"> | string username?: StringFilter<"InsuranceCredential"> | string password?: StringFilter<"InsuranceCredential"> | string } export type ShoppingVendorUpsertWithWhereUniqueWithoutUserInput = { where: ShoppingVendorWhereUniqueInput update: XOR create: XOR } export type ShoppingVendorUpdateWithWhereUniqueWithoutUserInput = { where: ShoppingVendorWhereUniqueInput data: XOR } export type ShoppingVendorUpdateManyWithWhereWithoutUserInput = { where: ShoppingVendorScalarWhereInput data: XOR } export type ShoppingVendorScalarWhereInput = { AND?: ShoppingVendorScalarWhereInput | ShoppingVendorScalarWhereInput[] OR?: ShoppingVendorScalarWhereInput[] NOT?: ShoppingVendorScalarWhereInput | ShoppingVendorScalarWhereInput[] id?: IntFilter<"ShoppingVendor"> | number userId?: IntFilter<"ShoppingVendor"> | number vendorName?: StringFilter<"ShoppingVendor"> | string websiteUrl?: StringFilter<"ShoppingVendor"> | string loginUsername?: StringFilter<"ShoppingVendor"> | string loginPassword?: StringFilter<"ShoppingVendor"> | string } export type PaymentUpsertWithWhereUniqueWithoutUpdatedByInput = { where: PaymentWhereUniqueInput update: XOR create: XOR } export type PaymentUpdateWithWhereUniqueWithoutUpdatedByInput = { where: PaymentWhereUniqueInput data: XOR } export type PaymentUpdateManyWithWhereWithoutUpdatedByInput = { where: PaymentScalarWhereInput data: XOR } export type PaymentScalarWhereInput = { AND?: PaymentScalarWhereInput | PaymentScalarWhereInput[] OR?: PaymentScalarWhereInput[] NOT?: PaymentScalarWhereInput | PaymentScalarWhereInput[] id?: IntFilter<"Payment"> | number claimId?: IntNullableFilter<"Payment"> | number | null patientId?: IntFilter<"Payment"> | number userId?: IntFilter<"Payment"> | number updatedById?: IntNullableFilter<"Payment"> | number | null npiProviderId?: IntNullableFilter<"Payment"> | number | null totalBilled?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string mhPaidAmount?: DecimalNullableFilter<"Payment"> | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string adjustment?: DecimalFilter<"Payment"> | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFilter<"Payment"> | $Enums.PaymentStatus notes?: StringNullableFilter<"Payment"> | string | null icn?: StringNullableFilter<"Payment"> | string | null createdAt?: DateTimeFilter<"Payment"> | Date | string updatedAt?: DateTimeFilter<"Payment"> | Date | string } export type DatabaseBackupUpsertWithWhereUniqueWithoutUserInput = { where: DatabaseBackupWhereUniqueInput update: XOR create: XOR } export type DatabaseBackupUpdateWithWhereUniqueWithoutUserInput = { where: DatabaseBackupWhereUniqueInput data: XOR } export type DatabaseBackupUpdateManyWithWhereWithoutUserInput = { where: DatabaseBackupScalarWhereInput data: XOR } export type DatabaseBackupScalarWhereInput = { AND?: DatabaseBackupScalarWhereInput | DatabaseBackupScalarWhereInput[] OR?: DatabaseBackupScalarWhereInput[] NOT?: DatabaseBackupScalarWhereInput | DatabaseBackupScalarWhereInput[] id?: IntFilter<"DatabaseBackup"> | number userId?: IntFilter<"DatabaseBackup"> | number createdAt?: DateTimeFilter<"DatabaseBackup"> | Date | string } export type BackupDestinationUpsertWithWhereUniqueWithoutUserInput = { where: BackupDestinationWhereUniqueInput update: XOR create: XOR } export type BackupDestinationUpdateWithWhereUniqueWithoutUserInput = { where: BackupDestinationWhereUniqueInput data: XOR } export type BackupDestinationUpdateManyWithWhereWithoutUserInput = { where: BackupDestinationScalarWhereInput data: XOR } export type BackupDestinationScalarWhereInput = { AND?: BackupDestinationScalarWhereInput | BackupDestinationScalarWhereInput[] OR?: BackupDestinationScalarWhereInput[] NOT?: BackupDestinationScalarWhereInput | BackupDestinationScalarWhereInput[] id?: IntFilter<"BackupDestination"> | number userId?: IntFilter<"BackupDestination"> | number path?: StringFilter<"BackupDestination"> | string isActive?: BoolFilter<"BackupDestination"> | boolean createdAt?: DateTimeFilter<"BackupDestination"> | Date | string } export type NotificationUpsertWithWhereUniqueWithoutUserInput = { where: NotificationWhereUniqueInput update: XOR create: XOR } export type NotificationUpdateWithWhereUniqueWithoutUserInput = { where: NotificationWhereUniqueInput data: XOR } export type NotificationUpdateManyWithWhereWithoutUserInput = { where: NotificationScalarWhereInput data: XOR } export type NotificationScalarWhereInput = { AND?: NotificationScalarWhereInput | NotificationScalarWhereInput[] OR?: NotificationScalarWhereInput[] NOT?: NotificationScalarWhereInput | NotificationScalarWhereInput[] id?: IntFilter<"Notification"> | number userId?: IntFilter<"Notification"> | number type?: EnumNotificationTypesFilter<"Notification"> | $Enums.NotificationTypes message?: StringFilter<"Notification"> | string createdAt?: DateTimeFilter<"Notification"> | Date | string read?: BoolFilter<"Notification"> | boolean } export type CloudFolderUpsertWithWhereUniqueWithoutUserInput = { where: CloudFolderWhereUniqueInput update: XOR create: XOR } export type CloudFolderUpdateWithWhereUniqueWithoutUserInput = { where: CloudFolderWhereUniqueInput data: XOR } export type CloudFolderUpdateManyWithWhereWithoutUserInput = { where: CloudFolderScalarWhereInput data: XOR } export type CloudFolderScalarWhereInput = { AND?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] OR?: CloudFolderScalarWhereInput[] NOT?: CloudFolderScalarWhereInput | CloudFolderScalarWhereInput[] id?: IntFilter<"CloudFolder"> | number userId?: IntFilter<"CloudFolder"> | number name?: StringFilter<"CloudFolder"> | string parentId?: IntNullableFilter<"CloudFolder"> | number | null createdAt?: DateTimeFilter<"CloudFolder"> | Date | string updatedAt?: DateTimeFilter<"CloudFolder"> | Date | string } export type CloudFileUpsertWithWhereUniqueWithoutUserInput = { where: CloudFileWhereUniqueInput update: XOR create: XOR } export type CloudFileUpdateWithWhereUniqueWithoutUserInput = { where: CloudFileWhereUniqueInput data: XOR } export type CloudFileUpdateManyWithWhereWithoutUserInput = { where: CloudFileScalarWhereInput data: XOR } export type CloudFileScalarWhereInput = { AND?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] OR?: CloudFileScalarWhereInput[] NOT?: CloudFileScalarWhereInput | CloudFileScalarWhereInput[] id?: IntFilter<"CloudFile"> | number userId?: IntFilter<"CloudFile"> | number name?: StringFilter<"CloudFile"> | string mimeType?: StringNullableFilter<"CloudFile"> | string | null fileSize?: BigIntFilter<"CloudFile"> | bigint | number folderId?: IntNullableFilter<"CloudFile"> | number | null isComplete?: BoolFilter<"CloudFile"> | boolean totalChunks?: IntNullableFilter<"CloudFile"> | number | null diskPath?: StringNullableFilter<"CloudFile"> | string | null createdAt?: DateTimeFilter<"CloudFile"> | Date | string updatedAt?: DateTimeFilter<"CloudFile"> | Date | string } export type CommunicationUpsertWithWhereUniqueWithoutUserInput = { where: CommunicationWhereUniqueInput update: XOR create: XOR } export type CommunicationUpdateWithWhereUniqueWithoutUserInput = { where: CommunicationWhereUniqueInput data: XOR } export type CommunicationUpdateManyWithWhereWithoutUserInput = { where: CommunicationScalarWhereInput data: XOR } export type CommunicationScalarWhereInput = { AND?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] OR?: CommunicationScalarWhereInput[] NOT?: CommunicationScalarWhereInput | CommunicationScalarWhereInput[] id?: IntFilter<"Communication"> | number patientId?: IntFilter<"Communication"> | number userId?: IntNullableFilter<"Communication"> | number | null channel?: EnumCommunicationChannelFilter<"Communication"> | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFilter<"Communication"> | $Enums.CommunicationDirection status?: EnumCommunicationStatusFilter<"Communication"> | $Enums.CommunicationStatus body?: StringNullableFilter<"Communication"> | string | null callDuration?: IntNullableFilter<"Communication"> | number | null twilioSid?: StringNullableFilter<"Communication"> | string | null createdAt?: DateTimeFilter<"Communication"> | Date | string } export type TwilioSettingsUpsertWithoutUserInput = { update: XOR create: XOR where?: TwilioSettingsWhereInput } export type TwilioSettingsUpdateToOneWithWhereWithoutUserInput = { where?: TwilioSettingsWhereInput data: XOR } export type TwilioSettingsUpdateWithoutUserInput = { accountSid?: StringFieldUpdateOperationsInput | string authToken?: StringFieldUpdateOperationsInput | string phoneNumber?: StringFieldUpdateOperationsInput | string greetingMessage?: NullableStringFieldUpdateOperationsInput | string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type TwilioSettingsUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number accountSid?: StringFieldUpdateOperationsInput | string authToken?: StringFieldUpdateOperationsInput | string phoneNumber?: StringFieldUpdateOperationsInput | string greetingMessage?: NullableStringFieldUpdateOperationsInput | string | null templates?: NullableJsonNullValueInput | InputJsonValue } export type AiSettingsUpsertWithoutUserInput = { update: XOR create: XOR where?: AiSettingsWhereInput } export type AiSettingsUpdateToOneWithWhereWithoutUserInput = { where?: AiSettingsWhereInput data: XOR } export type AiSettingsUpdateWithoutUserInput = { apiKey?: StringFieldUpdateOperationsInput | string afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean openPhoneReply?: BoolFieldUpdateOperationsInput | boolean } export type AiSettingsUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number apiKey?: StringFieldUpdateOperationsInput | string afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean openPhoneReply?: BoolFieldUpdateOperationsInput | boolean } export type OfficeHoursUpsertWithoutUserInput = { update: XOR create: XOR where?: OfficeHoursWhereInput } export type OfficeHoursUpdateToOneWithWhereWithoutUserInput = { where?: OfficeHoursWhereInput data: XOR } export type OfficeHoursUpdateWithoutUserInput = { data?: JsonNullValueInput | InputJsonValue } export type OfficeHoursUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number data?: JsonNullValueInput | InputJsonValue } export type OfficeContactUpsertWithoutUserInput = { update: XOR create: XOR where?: OfficeContactWhereInput } export type OfficeContactUpdateToOneWithWhereWithoutUserInput = { where?: OfficeContactWhereInput data: XOR } export type OfficeContactUpdateWithoutUserInput = { officeName?: NullableStringFieldUpdateOperationsInput | string | null receptionistName?: NullableStringFieldUpdateOperationsInput | string | null dentistName?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null fax?: NullableStringFieldUpdateOperationsInput | string | null streetAddress?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null state?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null } export type OfficeContactUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number officeName?: NullableStringFieldUpdateOperationsInput | string | null receptionistName?: NullableStringFieldUpdateOperationsInput | string | null dentistName?: NullableStringFieldUpdateOperationsInput | string | null phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null email?: NullableStringFieldUpdateOperationsInput | string | null fax?: NullableStringFieldUpdateOperationsInput | string | null streetAddress?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null state?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null } export type ProcedureTimeslotUpsertWithoutUserInput = { update: XOR create: XOR where?: ProcedureTimeslotWhereInput } export type ProcedureTimeslotUpdateToOneWithWhereWithoutUserInput = { where?: ProcedureTimeslotWhereInput data: XOR } export type ProcedureTimeslotUpdateWithoutUserInput = { data?: JsonNullValueInput | InputJsonValue } export type ProcedureTimeslotUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number data?: JsonNullValueInput | InputJsonValue } export type InsuranceContactUpsertWithWhereUniqueWithoutUserInput = { where: InsuranceContactWhereUniqueInput update: XOR create: XOR } export type InsuranceContactUpdateWithWhereUniqueWithoutUserInput = { where: InsuranceContactWhereUniqueInput data: XOR } export type InsuranceContactUpdateManyWithWhereWithoutUserInput = { where: InsuranceContactScalarWhereInput data: XOR } export type InsuranceContactScalarWhereInput = { AND?: InsuranceContactScalarWhereInput | InsuranceContactScalarWhereInput[] OR?: InsuranceContactScalarWhereInput[] NOT?: InsuranceContactScalarWhereInput | InsuranceContactScalarWhereInput[] id?: IntFilter<"InsuranceContact"> | number userId?: IntFilter<"InsuranceContact"> | number name?: StringFilter<"InsuranceContact"> | string phoneNumber?: StringNullableFilter<"InsuranceContact"> | string | null createdAt?: DateTimeFilter<"InsuranceContact"> | Date | string } export type PatientConversationUpsertWithWhereUniqueWithoutUserInput = { where: PatientConversationWhereUniqueInput update: XOR create: XOR } export type PatientConversationUpdateWithWhereUniqueWithoutUserInput = { where: PatientConversationWhereUniqueInput data: XOR } export type PatientConversationUpdateManyWithWhereWithoutUserInput = { where: PatientConversationScalarWhereInput data: XOR } export type PatientConversationScalarWhereInput = { AND?: PatientConversationScalarWhereInput | PatientConversationScalarWhereInput[] OR?: PatientConversationScalarWhereInput[] NOT?: PatientConversationScalarWhereInput | PatientConversationScalarWhereInput[] id?: IntFilter<"PatientConversation"> | number patientId?: IntFilter<"PatientConversation"> | number userId?: IntFilter<"PatientConversation"> | number stage?: StringFilter<"PatientConversation"> | string aiHandoff?: BoolFilter<"PatientConversation"> | boolean updatedAt?: DateTimeFilter<"PatientConversation"> | Date | string } export type UserCreateWithoutPatientsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutPatientsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutPatientsInput = { where: UserWhereUniqueInput create: XOR } export type AppointmentCreateWithoutPatientInput = { title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput files?: AppointmentFileCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutPatientInput = { id?: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput files?: AppointmentFileUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutPatientInput = { where: AppointmentWhereUniqueInput create: XOR } export type AppointmentCreateManyPatientInputEnvelope = { data: AppointmentCreateManyPatientInput | AppointmentCreateManyPatientInput[] skipDuplicates?: boolean } export type AppointmentProcedureCreateWithoutPatientInput = { procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string appointment: AppointmentCreateNestedOneWithoutProceduresInput npiProvider?: NpiProviderCreateNestedOneWithoutAppointmentProceduresInput } export type AppointmentProcedureUncheckedCreateWithoutPatientInput = { id?: number appointmentId: number npiProviderId?: number | null procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureCreateOrConnectWithoutPatientInput = { where: AppointmentProcedureWhereUniqueInput create: XOR } export type AppointmentProcedureCreateManyPatientInputEnvelope = { data: AppointmentProcedureCreateManyPatientInput | AppointmentProcedureCreateManyPatientInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutPatientInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null appointment?: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput npiProvider?: NpiProviderCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutPatientInput = { id?: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutPatientInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyPatientInputEnvelope = { data: ClaimCreateManyPatientInput | ClaimCreateManyPatientInput[] skipDuplicates?: boolean } export type PdfGroupCreateWithoutPatientInput = { title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string pdfs?: PdfFileCreateNestedManyWithoutGroupInput } export type PdfGroupUncheckedCreateWithoutPatientInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string pdfs?: PdfFileUncheckedCreateNestedManyWithoutGroupInput } export type PdfGroupCreateOrConnectWithoutPatientInput = { where: PdfGroupWhereUniqueInput create: XOR } export type PdfGroupCreateManyPatientInputEnvelope = { data: PdfGroupCreateManyPatientInput | PdfGroupCreateManyPatientInput[] skipDuplicates?: boolean } export type PaymentCreateWithoutPatientInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput npiProvider?: NpiProviderCreateNestedOneWithoutPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutPatientInput = { id?: number claimId?: number | null userId: number updatedById?: number | null npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutPatientInput = { where: PaymentWhereUniqueInput create: XOR } export type PaymentCreateManyPatientInputEnvelope = { data: PaymentCreateManyPatientInput | PaymentCreateManyPatientInput[] skipDuplicates?: boolean } export type CommunicationCreateWithoutPatientInput = { channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string user?: UserCreateNestedOneWithoutCommunicationsInput } export type CommunicationUncheckedCreateWithoutPatientInput = { id?: number userId?: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type CommunicationCreateOrConnectWithoutPatientInput = { where: CommunicationWhereUniqueInput create: XOR } export type CommunicationCreateManyPatientInputEnvelope = { data: CommunicationCreateManyPatientInput | CommunicationCreateManyPatientInput[] skipDuplicates?: boolean } export type PatientDocumentCreateWithoutPatientInput = { filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type PatientDocumentUncheckedCreateWithoutPatientInput = { id?: number filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type PatientDocumentCreateOrConnectWithoutPatientInput = { where: PatientDocumentWhereUniqueInput create: XOR } export type PatientDocumentCreateManyPatientInputEnvelope = { data: PatientDocumentCreateManyPatientInput | PatientDocumentCreateManyPatientInput[] skipDuplicates?: boolean } export type PatientConversationCreateWithoutPatientInput = { stage?: string aiHandoff?: boolean updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientConversationsInput } export type PatientConversationUncheckedCreateWithoutPatientInput = { id?: number userId: number stage?: string aiHandoff?: boolean updatedAt?: Date | string } export type PatientConversationCreateOrConnectWithoutPatientInput = { where: PatientConversationWhereUniqueInput create: XOR } export type UserUpsertWithoutPatientsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutPatientsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutPatientsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutPatientsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type AppointmentUpsertWithWhereUniqueWithoutPatientInput = { where: AppointmentWhereUniqueInput update: XOR create: XOR } export type AppointmentUpdateWithWhereUniqueWithoutPatientInput = { where: AppointmentWhereUniqueInput data: XOR } export type AppointmentUpdateManyWithWhereWithoutPatientInput = { where: AppointmentScalarWhereInput data: XOR } export type AppointmentProcedureUpsertWithWhereUniqueWithoutPatientInput = { where: AppointmentProcedureWhereUniqueInput update: XOR create: XOR } export type AppointmentProcedureUpdateWithWhereUniqueWithoutPatientInput = { where: AppointmentProcedureWhereUniqueInput data: XOR } export type AppointmentProcedureUpdateManyWithWhereWithoutPatientInput = { where: AppointmentProcedureScalarWhereInput data: XOR } export type AppointmentProcedureScalarWhereInput = { AND?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] OR?: AppointmentProcedureScalarWhereInput[] NOT?: AppointmentProcedureScalarWhereInput | AppointmentProcedureScalarWhereInput[] id?: IntFilter<"AppointmentProcedure"> | number appointmentId?: IntFilter<"AppointmentProcedure"> | number patientId?: IntFilter<"AppointmentProcedure"> | number npiProviderId?: IntNullableFilter<"AppointmentProcedure"> | number | null procedureCode?: StringFilter<"AppointmentProcedure"> | string procedureLabel?: StringNullableFilter<"AppointmentProcedure"> | string | null fee?: DecimalNullableFilter<"AppointmentProcedure"> | Decimal | DecimalJsLike | number | string | null category?: StringNullableFilter<"AppointmentProcedure"> | string | null toothNumber?: StringNullableFilter<"AppointmentProcedure"> | string | null toothSurface?: StringNullableFilter<"AppointmentProcedure"> | string | null oralCavityArea?: StringNullableFilter<"AppointmentProcedure"> | string | null source?: EnumProcedureSourceFilter<"AppointmentProcedure"> | $Enums.ProcedureSource comboKey?: StringNullableFilter<"AppointmentProcedure"> | string | null createdAt?: DateTimeFilter<"AppointmentProcedure"> | Date | string } export type ClaimUpsertWithWhereUniqueWithoutPatientInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutPatientInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutPatientInput = { where: ClaimScalarWhereInput data: XOR } export type PdfGroupUpsertWithWhereUniqueWithoutPatientInput = { where: PdfGroupWhereUniqueInput update: XOR create: XOR } export type PdfGroupUpdateWithWhereUniqueWithoutPatientInput = { where: PdfGroupWhereUniqueInput data: XOR } export type PdfGroupUpdateManyWithWhereWithoutPatientInput = { where: PdfGroupScalarWhereInput data: XOR } export type PdfGroupScalarWhereInput = { AND?: PdfGroupScalarWhereInput | PdfGroupScalarWhereInput[] OR?: PdfGroupScalarWhereInput[] NOT?: PdfGroupScalarWhereInput | PdfGroupScalarWhereInput[] id?: IntFilter<"PdfGroup"> | number title?: StringFilter<"PdfGroup"> | string titleKey?: EnumPdfTitleKeyFilter<"PdfGroup"> | $Enums.PdfTitleKey createdAt?: DateTimeFilter<"PdfGroup"> | Date | string patientId?: IntFilter<"PdfGroup"> | number } export type PaymentUpsertWithWhereUniqueWithoutPatientInput = { where: PaymentWhereUniqueInput update: XOR create: XOR } export type PaymentUpdateWithWhereUniqueWithoutPatientInput = { where: PaymentWhereUniqueInput data: XOR } export type PaymentUpdateManyWithWhereWithoutPatientInput = { where: PaymentScalarWhereInput data: XOR } export type CommunicationUpsertWithWhereUniqueWithoutPatientInput = { where: CommunicationWhereUniqueInput update: XOR create: XOR } export type CommunicationUpdateWithWhereUniqueWithoutPatientInput = { where: CommunicationWhereUniqueInput data: XOR } export type CommunicationUpdateManyWithWhereWithoutPatientInput = { where: CommunicationScalarWhereInput data: XOR } export type PatientDocumentUpsertWithWhereUniqueWithoutPatientInput = { where: PatientDocumentWhereUniqueInput update: XOR create: XOR } export type PatientDocumentUpdateWithWhereUniqueWithoutPatientInput = { where: PatientDocumentWhereUniqueInput data: XOR } export type PatientDocumentUpdateManyWithWhereWithoutPatientInput = { where: PatientDocumentScalarWhereInput data: XOR } export type PatientDocumentScalarWhereInput = { AND?: PatientDocumentScalarWhereInput | PatientDocumentScalarWhereInput[] OR?: PatientDocumentScalarWhereInput[] NOT?: PatientDocumentScalarWhereInput | PatientDocumentScalarWhereInput[] id?: IntFilter<"PatientDocument"> | number patientId?: IntFilter<"PatientDocument"> | number filename?: StringFilter<"PatientDocument"> | string originalName?: StringFilter<"PatientDocument"> | string mimeType?: StringFilter<"PatientDocument"> | string fileSize?: BigIntFilter<"PatientDocument"> | bigint | number filePath?: StringFilter<"PatientDocument"> | string uploadedAt?: DateTimeFilter<"PatientDocument"> | Date | string updatedAt?: DateTimeFilter<"PatientDocument"> | Date | string } export type PatientConversationUpsertWithoutPatientInput = { update: XOR create: XOR where?: PatientConversationWhereInput } export type PatientConversationUpdateToOneWithWhereWithoutPatientInput = { where?: PatientConversationWhereInput data: XOR } export type PatientConversationUpdateWithoutPatientInput = { stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientConversationsNestedInput } export type PatientConversationUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientCreateWithoutAppointmentsInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateWithoutAppointmentsInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientCreateOrConnectWithoutAppointmentsInput = { where: PatientWhereUniqueInput create: XOR } export type UserCreateWithoutAppointmentsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAppointmentsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAppointmentsInput = { where: UserWhereUniqueInput create: XOR } export type StaffCreateWithoutAppointmentsInput = { name: string email?: string | null role: string phone?: string | null createdAt?: Date | string user?: UserCreateNestedOneWithoutStaffInput claims?: ClaimCreateNestedManyWithoutStaffInput } export type StaffUncheckedCreateWithoutAppointmentsInput = { id?: number userId: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string claims?: ClaimUncheckedCreateNestedManyWithoutStaffInput } export type StaffCreateOrConnectWithoutAppointmentsInput = { where: StaffWhereUniqueInput create: XOR } export type AppointmentProcedureCreateWithoutAppointmentInput = { procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string patient: PatientCreateNestedOneWithoutProceduresInput npiProvider?: NpiProviderCreateNestedOneWithoutAppointmentProceduresInput } export type AppointmentProcedureUncheckedCreateWithoutAppointmentInput = { id?: number patientId: number npiProviderId?: number | null procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureCreateOrConnectWithoutAppointmentInput = { where: AppointmentProcedureWhereUniqueInput create: XOR } export type AppointmentProcedureCreateManyAppointmentInputEnvelope = { data: AppointmentProcedureCreateManyAppointmentInput | AppointmentProcedureCreateManyAppointmentInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutAppointmentInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput npiProvider?: NpiProviderCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutAppointmentInput = { id?: number patientId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutAppointmentInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyAppointmentInputEnvelope = { data: ClaimCreateManyAppointmentInput | ClaimCreateManyAppointmentInput[] skipDuplicates?: boolean } export type AppointmentFileCreateWithoutAppointmentInput = { filename: string mimeType?: string | null filePath?: string | null } export type AppointmentFileUncheckedCreateWithoutAppointmentInput = { id?: number filename: string mimeType?: string | null filePath?: string | null } export type AppointmentFileCreateOrConnectWithoutAppointmentInput = { where: AppointmentFileWhereUniqueInput create: XOR } export type AppointmentFileCreateManyAppointmentInputEnvelope = { data: AppointmentFileCreateManyAppointmentInput | AppointmentFileCreateManyAppointmentInput[] skipDuplicates?: boolean } export type PatientUpsertWithoutAppointmentsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutAppointmentsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutAppointmentsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutAppointmentsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type UserUpsertWithoutAppointmentsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAppointmentsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAppointmentsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAppointmentsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type StaffUpsertWithoutAppointmentsInput = { update: XOR create: XOR where?: StaffWhereInput } export type StaffUpdateToOneWithWhereWithoutAppointmentsInput = { where?: StaffWhereInput data: XOR } export type StaffUpdateWithoutAppointmentsInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutStaffNestedInput claims?: ClaimUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateWithoutAppointmentsInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string claims?: ClaimUncheckedUpdateManyWithoutStaffNestedInput } export type AppointmentProcedureUpsertWithWhereUniqueWithoutAppointmentInput = { where: AppointmentProcedureWhereUniqueInput update: XOR create: XOR } export type AppointmentProcedureUpdateWithWhereUniqueWithoutAppointmentInput = { where: AppointmentProcedureWhereUniqueInput data: XOR } export type AppointmentProcedureUpdateManyWithWhereWithoutAppointmentInput = { where: AppointmentProcedureScalarWhereInput data: XOR } export type ClaimUpsertWithWhereUniqueWithoutAppointmentInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutAppointmentInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutAppointmentInput = { where: ClaimScalarWhereInput data: XOR } export type AppointmentFileUpsertWithWhereUniqueWithoutAppointmentInput = { where: AppointmentFileWhereUniqueInput update: XOR create: XOR } export type AppointmentFileUpdateWithWhereUniqueWithoutAppointmentInput = { where: AppointmentFileWhereUniqueInput data: XOR } export type AppointmentFileUpdateManyWithWhereWithoutAppointmentInput = { where: AppointmentFileScalarWhereInput data: XOR } export type AppointmentFileScalarWhereInput = { AND?: AppointmentFileScalarWhereInput | AppointmentFileScalarWhereInput[] OR?: AppointmentFileScalarWhereInput[] NOT?: AppointmentFileScalarWhereInput | AppointmentFileScalarWhereInput[] id?: IntFilter<"AppointmentFile"> | number appointmentId?: IntFilter<"AppointmentFile"> | number filename?: StringFilter<"AppointmentFile"> | string mimeType?: StringNullableFilter<"AppointmentFile"> | string | null filePath?: StringNullableFilter<"AppointmentFile"> | string | null } export type AppointmentCreateWithoutFilesInput = { title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutFilesInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutFilesInput = { where: AppointmentWhereUniqueInput create: XOR } export type AppointmentUpsertWithoutFilesInput = { update: XOR create: XOR where?: AppointmentWhereInput } export type AppointmentUpdateToOneWithWhereWithoutFilesInput = { where?: AppointmentWhereInput data: XOR } export type AppointmentUpdateWithoutFilesInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutFilesInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput } export type UserCreateWithoutStaffInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutStaffInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutStaffInput = { where: UserWhereUniqueInput create: XOR } export type AppointmentCreateWithoutStaffInput = { title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput claims?: ClaimCreateNestedManyWithoutAppointmentInput files?: AppointmentFileCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutStaffInput = { id?: number patientId: number userId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput files?: AppointmentFileUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutStaffInput = { where: AppointmentWhereUniqueInput create: XOR } export type AppointmentCreateManyStaffInputEnvelope = { data: AppointmentCreateManyStaffInput | AppointmentCreateManyStaffInput[] skipDuplicates?: boolean } export type ClaimCreateWithoutStaffInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment?: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput npiProvider?: NpiProviderCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutStaffInput = { id?: number patientId: number appointmentId?: number | null userId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutStaffInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyStaffInputEnvelope = { data: ClaimCreateManyStaffInput | ClaimCreateManyStaffInput[] skipDuplicates?: boolean } export type UserUpsertWithoutStaffInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutStaffInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutStaffInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type AppointmentUpsertWithWhereUniqueWithoutStaffInput = { where: AppointmentWhereUniqueInput update: XOR create: XOR } export type AppointmentUpdateWithWhereUniqueWithoutStaffInput = { where: AppointmentWhereUniqueInput data: XOR } export type AppointmentUpdateManyWithWhereWithoutStaffInput = { where: AppointmentScalarWhereInput data: XOR } export type ClaimUpsertWithWhereUniqueWithoutStaffInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutStaffInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutStaffInput = { where: ClaimScalarWhereInput data: XOR } export type UserCreateWithoutNpiProvidersInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutNpiProvidersInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutNpiProvidersInput = { where: UserWhereUniqueInput create: XOR } export type ClaimCreateWithoutNpiProviderInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment?: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutNpiProviderInput = { id?: number patientId: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutNpiProviderInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimCreateManyNpiProviderInputEnvelope = { data: ClaimCreateManyNpiProviderInput | ClaimCreateManyNpiProviderInput[] skipDuplicates?: boolean } export type PaymentCreateWithoutNpiProviderInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutNpiProviderInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutNpiProviderInput = { where: PaymentWhereUniqueInput create: XOR } export type PaymentCreateManyNpiProviderInputEnvelope = { data: PaymentCreateManyNpiProviderInput | PaymentCreateManyNpiProviderInput[] skipDuplicates?: boolean } export type CommissionBatchCreateWithoutNpiProviderInput = { totalCollection: Decimal | DecimalJsLike | number | string commissionAmount: Decimal | DecimalJsLike | number | string notes?: string | null createdAt?: Date | string items?: CommissionBatchItemCreateNestedManyWithoutCommissionBatchInput } export type CommissionBatchUncheckedCreateWithoutNpiProviderInput = { id?: number totalCollection: Decimal | DecimalJsLike | number | string commissionAmount: Decimal | DecimalJsLike | number | string notes?: string | null createdAt?: Date | string items?: CommissionBatchItemUncheckedCreateNestedManyWithoutCommissionBatchInput } export type CommissionBatchCreateOrConnectWithoutNpiProviderInput = { where: CommissionBatchWhereUniqueInput create: XOR } export type CommissionBatchCreateManyNpiProviderInputEnvelope = { data: CommissionBatchCreateManyNpiProviderInput | CommissionBatchCreateManyNpiProviderInput[] skipDuplicates?: boolean } export type AppointmentProcedureCreateWithoutNpiProviderInput = { procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string appointment: AppointmentCreateNestedOneWithoutProceduresInput patient: PatientCreateNestedOneWithoutProceduresInput } export type AppointmentProcedureUncheckedCreateWithoutNpiProviderInput = { id?: number appointmentId: number patientId: number procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type AppointmentProcedureCreateOrConnectWithoutNpiProviderInput = { where: AppointmentProcedureWhereUniqueInput create: XOR } export type AppointmentProcedureCreateManyNpiProviderInputEnvelope = { data: AppointmentProcedureCreateManyNpiProviderInput | AppointmentProcedureCreateManyNpiProviderInput[] skipDuplicates?: boolean } export type UserUpsertWithoutNpiProvidersInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutNpiProvidersInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutNpiProvidersInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutNpiProvidersInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type ClaimUpsertWithWhereUniqueWithoutNpiProviderInput = { where: ClaimWhereUniqueInput update: XOR create: XOR } export type ClaimUpdateWithWhereUniqueWithoutNpiProviderInput = { where: ClaimWhereUniqueInput data: XOR } export type ClaimUpdateManyWithWhereWithoutNpiProviderInput = { where: ClaimScalarWhereInput data: XOR } export type PaymentUpsertWithWhereUniqueWithoutNpiProviderInput = { where: PaymentWhereUniqueInput update: XOR create: XOR } export type PaymentUpdateWithWhereUniqueWithoutNpiProviderInput = { where: PaymentWhereUniqueInput data: XOR } export type PaymentUpdateManyWithWhereWithoutNpiProviderInput = { where: PaymentScalarWhereInput data: XOR } export type CommissionBatchUpsertWithWhereUniqueWithoutNpiProviderInput = { where: CommissionBatchWhereUniqueInput update: XOR create: XOR } export type CommissionBatchUpdateWithWhereUniqueWithoutNpiProviderInput = { where: CommissionBatchWhereUniqueInput data: XOR } export type CommissionBatchUpdateManyWithWhereWithoutNpiProviderInput = { where: CommissionBatchScalarWhereInput data: XOR } export type CommissionBatchScalarWhereInput = { AND?: CommissionBatchScalarWhereInput | CommissionBatchScalarWhereInput[] OR?: CommissionBatchScalarWhereInput[] NOT?: CommissionBatchScalarWhereInput | CommissionBatchScalarWhereInput[] id?: IntFilter<"CommissionBatch"> | number npiProviderId?: IntFilter<"CommissionBatch"> | number totalCollection?: DecimalFilter<"CommissionBatch"> | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFilter<"CommissionBatch"> | Decimal | DecimalJsLike | number | string notes?: StringNullableFilter<"CommissionBatch"> | string | null createdAt?: DateTimeFilter<"CommissionBatch"> | Date | string } export type AppointmentProcedureUpsertWithWhereUniqueWithoutNpiProviderInput = { where: AppointmentProcedureWhereUniqueInput update: XOR create: XOR } export type AppointmentProcedureUpdateWithWhereUniqueWithoutNpiProviderInput = { where: AppointmentProcedureWhereUniqueInput data: XOR } export type AppointmentProcedureUpdateManyWithWhereWithoutNpiProviderInput = { where: AppointmentProcedureScalarWhereInput data: XOR } export type AppointmentCreateWithoutProceduresInput = { title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput claims?: ClaimCreateNestedManyWithoutAppointmentInput files?: AppointmentFileCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutProceduresInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus claims?: ClaimUncheckedCreateNestedManyWithoutAppointmentInput files?: AppointmentFileUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutProceduresInput = { where: AppointmentWhereUniqueInput create: XOR } export type PatientCreateWithoutProceduresInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateWithoutProceduresInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientCreateOrConnectWithoutProceduresInput = { where: PatientWhereUniqueInput create: XOR } export type NpiProviderCreateWithoutAppointmentProceduresInput = { npiNumber: string providerName: string createdAt?: Date | string user: UserCreateNestedOneWithoutNpiProvidersInput claims?: ClaimCreateNestedManyWithoutNpiProviderInput payments?: PaymentCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchCreateNestedManyWithoutNpiProviderInput } export type NpiProviderUncheckedCreateWithoutAppointmentProceduresInput = { id?: number userId: number npiNumber: string providerName: string createdAt?: Date | string claims?: ClaimUncheckedCreateNestedManyWithoutNpiProviderInput payments?: PaymentUncheckedCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchUncheckedCreateNestedManyWithoutNpiProviderInput } export type NpiProviderCreateOrConnectWithoutAppointmentProceduresInput = { where: NpiProviderWhereUniqueInput create: XOR } export type AppointmentUpsertWithoutProceduresInput = { update: XOR create: XOR where?: AppointmentWhereInput } export type AppointmentUpdateToOneWithWhereWithoutProceduresInput = { where?: AppointmentWhereInput data: XOR } export type AppointmentUpdateWithoutProceduresInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutProceduresInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput } export type PatientUpsertWithoutProceduresInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutProceduresInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutProceduresInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutProceduresInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type NpiProviderUpsertWithoutAppointmentProceduresInput = { update: XOR create: XOR where?: NpiProviderWhereInput } export type NpiProviderUpdateToOneWithWhereWithoutAppointmentProceduresInput = { where?: NpiProviderWhereInput data: XOR } export type NpiProviderUpdateWithoutAppointmentProceduresInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutNpiProvidersNestedInput claims?: ClaimUpdateManyWithoutNpiProviderNestedInput payments?: PaymentUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUpdateManyWithoutNpiProviderNestedInput } export type NpiProviderUncheckedUpdateWithoutAppointmentProceduresInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string claims?: ClaimUncheckedUpdateManyWithoutNpiProviderNestedInput payments?: PaymentUncheckedUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInput } export type PatientCreateWithoutClaimsInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateWithoutClaimsInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientCreateOrConnectWithoutClaimsInput = { where: PatientWhereUniqueInput create: XOR } export type AppointmentCreateWithoutClaimsInput = { title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus patient: PatientCreateNestedOneWithoutAppointmentsInput user: UserCreateNestedOneWithoutAppointmentsInput staff?: StaffCreateNestedOneWithoutAppointmentsInput procedures?: AppointmentProcedureCreateNestedManyWithoutAppointmentInput files?: AppointmentFileCreateNestedManyWithoutAppointmentInput } export type AppointmentUncheckedCreateWithoutClaimsInput = { id?: number patientId: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutAppointmentInput files?: AppointmentFileUncheckedCreateNestedManyWithoutAppointmentInput } export type AppointmentCreateOrConnectWithoutClaimsInput = { where: AppointmentWhereUniqueInput create: XOR } export type UserCreateWithoutClaimsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutClaimsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutClaimsInput = { where: UserWhereUniqueInput create: XOR } export type StaffCreateWithoutClaimsInput = { name: string email?: string | null role: string phone?: string | null createdAt?: Date | string user?: UserCreateNestedOneWithoutStaffInput appointments?: AppointmentCreateNestedManyWithoutStaffInput } export type StaffUncheckedCreateWithoutClaimsInput = { id?: number userId: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutStaffInput } export type StaffCreateOrConnectWithoutClaimsInput = { where: StaffWhereUniqueInput create: XOR } export type NpiProviderCreateWithoutClaimsInput = { npiNumber: string providerName: string createdAt?: Date | string user: UserCreateNestedOneWithoutNpiProvidersInput payments?: PaymentCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureCreateNestedManyWithoutNpiProviderInput } export type NpiProviderUncheckedCreateWithoutClaimsInput = { id?: number userId: number npiNumber: string providerName: string createdAt?: Date | string payments?: PaymentUncheckedCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchUncheckedCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutNpiProviderInput } export type NpiProviderCreateOrConnectWithoutClaimsInput = { where: NpiProviderWhereUniqueInput create: XOR } export type ServiceLineCreateWithoutClaimInput = { procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus payment?: PaymentCreateNestedOneWithoutServiceLinesInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutServiceLineInput } export type ServiceLineUncheckedCreateWithoutClaimInput = { id?: number paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutServiceLineInput } export type ServiceLineCreateOrConnectWithoutClaimInput = { where: ServiceLineWhereUniqueInput create: XOR } export type ServiceLineCreateManyClaimInputEnvelope = { data: ServiceLineCreateManyClaimInput | ServiceLineCreateManyClaimInput[] skipDuplicates?: boolean } export type ClaimFileCreateWithoutClaimInput = { filename: string mimeType: string filePath?: string | null } export type ClaimFileUncheckedCreateWithoutClaimInput = { id?: number filename: string mimeType: string filePath?: string | null } export type ClaimFileCreateOrConnectWithoutClaimInput = { where: ClaimFileWhereUniqueInput create: XOR } export type ClaimFileCreateManyClaimInputEnvelope = { data: ClaimFileCreateManyClaimInput | ClaimFileCreateManyClaimInput[] skipDuplicates?: boolean } export type PaymentCreateWithoutClaimInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput npiProvider?: NpiProviderCreateNestedOneWithoutPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutClaimInput = { id?: number patientId: number userId: number updatedById?: number | null npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutClaimInput = { where: PaymentWhereUniqueInput create: XOR } export type PatientUpsertWithoutClaimsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutClaimsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutClaimsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type AppointmentUpsertWithoutClaimsInput = { update: XOR create: XOR where?: AppointmentWhereInput } export type AppointmentUpdateToOneWithWhereWithoutClaimsInput = { where?: AppointmentWhereInput data: XOR } export type AppointmentUpdateWithoutClaimsInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput } export type UserUpsertWithoutClaimsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutClaimsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutClaimsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type StaffUpsertWithoutClaimsInput = { update: XOR create: XOR where?: StaffWhereInput } export type StaffUpdateToOneWithWhereWithoutClaimsInput = { where?: StaffWhereInput data: XOR } export type StaffUpdateWithoutClaimsInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutStaffNestedInput appointments?: AppointmentUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutStaffNestedInput } export type NpiProviderUpsertWithoutClaimsInput = { update: XOR create: XOR where?: NpiProviderWhereInput } export type NpiProviderUpdateToOneWithWhereWithoutClaimsInput = { where?: NpiProviderWhereInput data: XOR } export type NpiProviderUpdateWithoutClaimsInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutNpiProvidersNestedInput payments?: PaymentUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUpdateManyWithoutNpiProviderNestedInput } export type NpiProviderUncheckedUpdateWithoutClaimsInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string payments?: PaymentUncheckedUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput } export type ServiceLineUpsertWithWhereUniqueWithoutClaimInput = { where: ServiceLineWhereUniqueInput update: XOR create: XOR } export type ServiceLineUpdateWithWhereUniqueWithoutClaimInput = { where: ServiceLineWhereUniqueInput data: XOR } export type ServiceLineUpdateManyWithWhereWithoutClaimInput = { where: ServiceLineScalarWhereInput data: XOR } export type ServiceLineScalarWhereInput = { AND?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] OR?: ServiceLineScalarWhereInput[] NOT?: ServiceLineScalarWhereInput | ServiceLineScalarWhereInput[] id?: IntFilter<"ServiceLine"> | number claimId?: IntNullableFilter<"ServiceLine"> | number | null paymentId?: IntNullableFilter<"ServiceLine"> | number | null procedureCode?: StringFilter<"ServiceLine"> | string procedureDate?: DateTimeFilter<"ServiceLine"> | Date | string quad?: StringNullableFilter<"ServiceLine"> | string | null arch?: StringNullableFilter<"ServiceLine"> | string | null toothNumber?: StringNullableFilter<"ServiceLine"> | string | null toothSurface?: StringNullableFilter<"ServiceLine"> | string | null icn?: StringNullableFilter<"ServiceLine"> | string | null paidCode?: StringNullableFilter<"ServiceLine"> | string | null allowedAmount?: DecimalNullableFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string totalDue?: DecimalFilter<"ServiceLine"> | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFilter<"ServiceLine"> | $Enums.ServiceLineStatus } export type ClaimFileUpsertWithWhereUniqueWithoutClaimInput = { where: ClaimFileWhereUniqueInput update: XOR create: XOR } export type ClaimFileUpdateWithWhereUniqueWithoutClaimInput = { where: ClaimFileWhereUniqueInput data: XOR } export type ClaimFileUpdateManyWithWhereWithoutClaimInput = { where: ClaimFileScalarWhereInput data: XOR } export type ClaimFileScalarWhereInput = { AND?: ClaimFileScalarWhereInput | ClaimFileScalarWhereInput[] OR?: ClaimFileScalarWhereInput[] NOT?: ClaimFileScalarWhereInput | ClaimFileScalarWhereInput[] id?: IntFilter<"ClaimFile"> | number claimId?: IntFilter<"ClaimFile"> | number filename?: StringFilter<"ClaimFile"> | string mimeType?: StringFilter<"ClaimFile"> | string filePath?: StringNullableFilter<"ClaimFile"> | string | null } export type PaymentUpsertWithoutClaimInput = { update: XOR create: XOR where?: PaymentWhereInput } export type PaymentUpdateToOneWithWhereWithoutClaimInput = { where?: PaymentWhereInput data: XOR } export type PaymentUpdateWithoutClaimInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput npiProvider?: NpiProviderUpdateOneWithoutPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUncheckedUpdateManyWithoutPaymentNestedInput } export type ClaimCreateWithoutServiceLinesInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment?: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput npiProvider?: NpiProviderCreateNestedOneWithoutClaimsInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutServiceLinesInput = { id?: number patientId: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutServiceLinesInput = { where: ClaimWhereUniqueInput create: XOR } export type PaymentCreateWithoutServiceLinesInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput npiProvider?: NpiProviderCreateNestedOneWithoutPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutServiceLinesInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutServiceLinesInput = { where: PaymentWhereUniqueInput create: XOR } export type ServiceLineTransactionCreateWithoutServiceLineInput = { transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string payment: PaymentCreateNestedOneWithoutServiceLineTransactionsInput } export type ServiceLineTransactionUncheckedCreateWithoutServiceLineInput = { id?: number paymentId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionCreateOrConnectWithoutServiceLineInput = { where: ServiceLineTransactionWhereUniqueInput create: XOR } export type ServiceLineTransactionCreateManyServiceLineInputEnvelope = { data: ServiceLineTransactionCreateManyServiceLineInput | ServiceLineTransactionCreateManyServiceLineInput[] skipDuplicates?: boolean } export type ClaimUpsertWithoutServiceLinesInput = { update: XOR create: XOR where?: ClaimWhereInput } export type ClaimUpdateToOneWithWhereWithoutServiceLinesInput = { where?: ClaimWhereInput data: XOR } export type ClaimUpdateWithoutServiceLinesInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput npiProvider?: NpiProviderUpdateOneWithoutClaimsNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutServiceLinesInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type PaymentUpsertWithoutServiceLinesInput = { update: XOR create: XOR where?: PaymentWhereInput } export type PaymentUpdateToOneWithWhereWithoutServiceLinesInput = { where?: PaymentWhereInput data: XOR } export type PaymentUpdateWithoutServiceLinesInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput npiProvider?: NpiProviderUpdateOneWithoutPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutServiceLinesInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUncheckedUpdateManyWithoutPaymentNestedInput } export type ServiceLineTransactionUpsertWithWhereUniqueWithoutServiceLineInput = { where: ServiceLineTransactionWhereUniqueInput update: XOR create: XOR } export type ServiceLineTransactionUpdateWithWhereUniqueWithoutServiceLineInput = { where: ServiceLineTransactionWhereUniqueInput data: XOR } export type ServiceLineTransactionUpdateManyWithWhereWithoutServiceLineInput = { where: ServiceLineTransactionScalarWhereInput data: XOR } export type ServiceLineTransactionScalarWhereInput = { AND?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] OR?: ServiceLineTransactionScalarWhereInput[] NOT?: ServiceLineTransactionScalarWhereInput | ServiceLineTransactionScalarWhereInput[] id?: IntFilter<"ServiceLineTransaction"> | number paymentId?: IntFilter<"ServiceLineTransaction"> | number serviceLineId?: IntFilter<"ServiceLineTransaction"> | number transactionId?: StringNullableFilter<"ServiceLineTransaction"> | string | null paidAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFilter<"ServiceLineTransaction"> | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFilter<"ServiceLineTransaction"> | $Enums.PaymentMethod receivedDate?: DateTimeFilter<"ServiceLineTransaction"> | Date | string payerName?: StringNullableFilter<"ServiceLineTransaction"> | string | null notes?: StringNullableFilter<"ServiceLineTransaction"> | string | null createdAt?: DateTimeFilter<"ServiceLineTransaction"> | Date | string } export type ClaimCreateWithoutClaimFilesInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment?: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput npiProvider?: NpiProviderCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput payment?: PaymentCreateNestedOneWithoutClaimInput } export type ClaimUncheckedCreateWithoutClaimFilesInput = { id?: number patientId: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput payment?: PaymentUncheckedCreateNestedOneWithoutClaimInput } export type ClaimCreateOrConnectWithoutClaimFilesInput = { where: ClaimWhereUniqueInput create: XOR } export type ClaimUpsertWithoutClaimFilesInput = { update: XOR create: XOR where?: ClaimWhereInput } export type ClaimUpdateToOneWithWhereWithoutClaimFilesInput = { where?: ClaimWhereInput data: XOR } export type ClaimUpdateWithoutClaimFilesInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput npiProvider?: NpiProviderUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutClaimFilesInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type UserCreateWithoutInsuranceCredentialsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutInsuranceCredentialsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutInsuranceCredentialsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutInsuranceCredentialsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutInsuranceCredentialsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutInsuranceCredentialsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutInsuranceCredentialsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutShoppingVendorsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutShoppingVendorsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutShoppingVendorsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutShoppingVendorsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutShoppingVendorsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutShoppingVendorsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutShoppingVendorsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type PatientCreateWithoutGroupsInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateWithoutGroupsInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientCreateOrConnectWithoutGroupsInput = { where: PatientWhereUniqueInput create: XOR } export type PdfFileCreateWithoutGroupInput = { filename: string pdfData: Bytes uploadedAt?: Date | string } export type PdfFileUncheckedCreateWithoutGroupInput = { id?: number filename: string pdfData: Bytes uploadedAt?: Date | string } export type PdfFileCreateOrConnectWithoutGroupInput = { where: PdfFileWhereUniqueInput create: XOR } export type PdfFileCreateManyGroupInputEnvelope = { data: PdfFileCreateManyGroupInput | PdfFileCreateManyGroupInput[] skipDuplicates?: boolean } export type PatientUpsertWithoutGroupsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutGroupsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutGroupsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutGroupsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type PdfFileUpsertWithWhereUniqueWithoutGroupInput = { where: PdfFileWhereUniqueInput update: XOR create: XOR } export type PdfFileUpdateWithWhereUniqueWithoutGroupInput = { where: PdfFileWhereUniqueInput data: XOR } export type PdfFileUpdateManyWithWhereWithoutGroupInput = { where: PdfFileScalarWhereInput data: XOR } export type PdfFileScalarWhereInput = { AND?: PdfFileScalarWhereInput | PdfFileScalarWhereInput[] OR?: PdfFileScalarWhereInput[] NOT?: PdfFileScalarWhereInput | PdfFileScalarWhereInput[] id?: IntFilter<"PdfFile"> | number filename?: StringFilter<"PdfFile"> | string pdfData?: BytesFilter<"PdfFile"> | Bytes uploadedAt?: DateTimeFilter<"PdfFile"> | Date | string groupId?: IntFilter<"PdfFile"> | number } export type PdfGroupCreateWithoutPdfsInput = { title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patient: PatientCreateNestedOneWithoutGroupsInput } export type PdfGroupUncheckedCreateWithoutPdfsInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string patientId: number } export type PdfGroupCreateOrConnectWithoutPdfsInput = { where: PdfGroupWhereUniqueInput create: XOR } export type PdfGroupUpsertWithoutPdfsInput = { update: XOR create: XOR where?: PdfGroupWhereInput } export type PdfGroupUpdateToOneWithWhereWithoutPdfsInput = { where?: PdfGroupWhereInput data: XOR } export type PdfGroupUpdateWithoutPdfsInput = { title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutGroupsNestedInput } export type PdfGroupUncheckedUpdateWithoutPdfsInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patientId?: IntFieldUpdateOperationsInput | number } export type ClaimCreateWithoutPaymentInput = { patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null patient: PatientCreateNestedOneWithoutClaimsInput appointment?: AppointmentCreateNestedOneWithoutClaimsInput user?: UserCreateNestedOneWithoutClaimsInput staff?: StaffCreateNestedOneWithoutClaimsInput npiProvider?: NpiProviderCreateNestedOneWithoutClaimsInput serviceLines?: ServiceLineCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileCreateNestedManyWithoutClaimInput } export type ClaimUncheckedCreateWithoutPaymentInput = { id?: number patientId: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutClaimInput claimFiles?: ClaimFileUncheckedCreateNestedManyWithoutClaimInput } export type ClaimCreateOrConnectWithoutPaymentInput = { where: ClaimWhereUniqueInput create: XOR } export type PatientCreateWithoutPaymentInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateWithoutPaymentInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientCreateOrConnectWithoutPaymentInput = { where: PatientWhereUniqueInput create: XOR } export type UserCreateWithoutUpdatedPaymentsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutUpdatedPaymentsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutUpdatedPaymentsInput = { where: UserWhereUniqueInput create: XOR } export type NpiProviderCreateWithoutPaymentsInput = { npiNumber: string providerName: string createdAt?: Date | string user: UserCreateNestedOneWithoutNpiProvidersInput claims?: ClaimCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureCreateNestedManyWithoutNpiProviderInput } export type NpiProviderUncheckedCreateWithoutPaymentsInput = { id?: number userId: number npiNumber: string providerName: string createdAt?: Date | string claims?: ClaimUncheckedCreateNestedManyWithoutNpiProviderInput commissionBatches?: CommissionBatchUncheckedCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutNpiProviderInput } export type NpiProviderCreateOrConnectWithoutPaymentsInput = { where: NpiProviderWhereUniqueInput create: XOR } export type ServiceLineTransactionCreateWithoutPaymentInput = { transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string serviceLine: ServiceLineCreateNestedOneWithoutServiceLineTransactionsInput } export type ServiceLineTransactionUncheckedCreateWithoutPaymentInput = { id?: number serviceLineId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionCreateOrConnectWithoutPaymentInput = { where: ServiceLineTransactionWhereUniqueInput create: XOR } export type ServiceLineTransactionCreateManyPaymentInputEnvelope = { data: ServiceLineTransactionCreateManyPaymentInput | ServiceLineTransactionCreateManyPaymentInput[] skipDuplicates?: boolean } export type ServiceLineCreateWithoutPaymentInput = { procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus claim?: ClaimCreateNestedOneWithoutServiceLinesInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutServiceLineInput } export type ServiceLineUncheckedCreateWithoutPaymentInput = { id?: number claimId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutServiceLineInput } export type ServiceLineCreateOrConnectWithoutPaymentInput = { where: ServiceLineWhereUniqueInput create: XOR } export type ServiceLineCreateManyPaymentInputEnvelope = { data: ServiceLineCreateManyPaymentInput | ServiceLineCreateManyPaymentInput[] skipDuplicates?: boolean } export type CommissionBatchItemCreateWithoutPaymentInput = { collectionAmount: Decimal | DecimalJsLike | number | string commissionBatch: CommissionBatchCreateNestedOneWithoutItemsInput } export type CommissionBatchItemUncheckedCreateWithoutPaymentInput = { id?: number commissionBatchId: number collectionAmount: Decimal | DecimalJsLike | number | string } export type CommissionBatchItemCreateOrConnectWithoutPaymentInput = { where: CommissionBatchItemWhereUniqueInput create: XOR } export type CommissionBatchItemCreateManyPaymentInputEnvelope = { data: CommissionBatchItemCreateManyPaymentInput | CommissionBatchItemCreateManyPaymentInput[] skipDuplicates?: boolean } export type ClaimUpsertWithoutPaymentInput = { update: XOR create: XOR where?: ClaimWhereInput } export type ClaimUpdateToOneWithWhereWithoutPaymentInput = { where?: ClaimWhereInput data: XOR } export type ClaimUpdateWithoutPaymentInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput npiProvider?: NpiProviderUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput } export type PatientUpsertWithoutPaymentInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutPaymentInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutPaymentInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type UserUpsertWithoutUpdatedPaymentsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutUpdatedPaymentsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutUpdatedPaymentsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutUpdatedPaymentsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type NpiProviderUpsertWithoutPaymentsInput = { update: XOR create: XOR where?: NpiProviderWhereInput } export type NpiProviderUpdateToOneWithWhereWithoutPaymentsInput = { where?: NpiProviderWhereInput data: XOR } export type NpiProviderUpdateWithoutPaymentsInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutNpiProvidersNestedInput claims?: ClaimUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUpdateManyWithoutNpiProviderNestedInput } export type NpiProviderUncheckedUpdateWithoutPaymentsInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string claims?: ClaimUncheckedUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput } export type ServiceLineTransactionUpsertWithWhereUniqueWithoutPaymentInput = { where: ServiceLineTransactionWhereUniqueInput update: XOR create: XOR } export type ServiceLineTransactionUpdateWithWhereUniqueWithoutPaymentInput = { where: ServiceLineTransactionWhereUniqueInput data: XOR } export type ServiceLineTransactionUpdateManyWithWhereWithoutPaymentInput = { where: ServiceLineTransactionScalarWhereInput data: XOR } export type ServiceLineUpsertWithWhereUniqueWithoutPaymentInput = { where: ServiceLineWhereUniqueInput update: XOR create: XOR } export type ServiceLineUpdateWithWhereUniqueWithoutPaymentInput = { where: ServiceLineWhereUniqueInput data: XOR } export type ServiceLineUpdateManyWithWhereWithoutPaymentInput = { where: ServiceLineScalarWhereInput data: XOR } export type CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInput = { where: CommissionBatchItemWhereUniqueInput update: XOR create: XOR } export type CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInput = { where: CommissionBatchItemWhereUniqueInput data: XOR } export type CommissionBatchItemUpdateManyWithWhereWithoutPaymentInput = { where: CommissionBatchItemScalarWhereInput data: XOR } export type CommissionBatchItemScalarWhereInput = { AND?: CommissionBatchItemScalarWhereInput | CommissionBatchItemScalarWhereInput[] OR?: CommissionBatchItemScalarWhereInput[] NOT?: CommissionBatchItemScalarWhereInput | CommissionBatchItemScalarWhereInput[] id?: IntFilter<"CommissionBatchItem"> | number commissionBatchId?: IntFilter<"CommissionBatchItem"> | number paymentId?: IntFilter<"CommissionBatchItem"> | number collectionAmount?: DecimalFilter<"CommissionBatchItem"> | Decimal | DecimalJsLike | number | string } export type PaymentCreateWithoutServiceLineTransactionsInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput npiProvider?: NpiProviderCreateNestedOneWithoutPaymentsInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutServiceLineTransactionsInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput commissionBatchItems?: CommissionBatchItemUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutServiceLineTransactionsInput = { where: PaymentWhereUniqueInput create: XOR } export type ServiceLineCreateWithoutServiceLineTransactionsInput = { procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus claim?: ClaimCreateNestedOneWithoutServiceLinesInput payment?: PaymentCreateNestedOneWithoutServiceLinesInput } export type ServiceLineUncheckedCreateWithoutServiceLineTransactionsInput = { id?: number claimId?: number | null paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus } export type ServiceLineCreateOrConnectWithoutServiceLineTransactionsInput = { where: ServiceLineWhereUniqueInput create: XOR } export type PaymentUpsertWithoutServiceLineTransactionsInput = { update: XOR create: XOR where?: PaymentWhereInput } export type PaymentUpdateToOneWithWhereWithoutServiceLineTransactionsInput = { where?: PaymentWhereInput data: XOR } export type PaymentUpdateWithoutServiceLineTransactionsInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput npiProvider?: NpiProviderUpdateOneWithoutPaymentsNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutServiceLineTransactionsInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUncheckedUpdateManyWithoutPaymentNestedInput } export type ServiceLineUpsertWithoutServiceLineTransactionsInput = { update: XOR create: XOR where?: ServiceLineWhereInput } export type ServiceLineUpdateToOneWithWhereWithoutServiceLineTransactionsInput = { where?: ServiceLineWhereInput data: XOR } export type ServiceLineUpdateWithoutServiceLineTransactionsInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus claim?: ClaimUpdateOneWithoutServiceLinesNestedInput payment?: PaymentUpdateOneWithoutServiceLinesNestedInput } export type ServiceLineUncheckedUpdateWithoutServiceLineTransactionsInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type UserCreateWithoutBackupsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutBackupsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutBackupsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutBackupsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutBackupsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutBackupsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutBackupsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutBackupDestinationsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutBackupDestinationsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutBackupDestinationsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutBackupDestinationsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutBackupDestinationsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutBackupDestinationsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutBackupDestinationsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutNotificationsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutNotificationsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutNotificationsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutNotificationsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutNotificationsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutNotificationsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutNotificationsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type CloudFolderCreateWithoutChildrenInput = { name: string createdAt?: Date | string updatedAt?: Date | string parent?: CloudFolderCreateNestedOneWithoutChildrenInput user: UserCreateNestedOneWithoutCloudFoldersInput files?: CloudFileCreateNestedManyWithoutFolderInput } export type CloudFolderUncheckedCreateWithoutChildrenInput = { id?: number userId: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string files?: CloudFileUncheckedCreateNestedManyWithoutFolderInput } export type CloudFolderCreateOrConnectWithoutChildrenInput = { where: CloudFolderWhereUniqueInput create: XOR } export type CloudFolderCreateWithoutParentInput = { name: string createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderCreateNestedManyWithoutParentInput user: UserCreateNestedOneWithoutCloudFoldersInput files?: CloudFileCreateNestedManyWithoutFolderInput } export type CloudFolderUncheckedCreateWithoutParentInput = { id?: number userId: number name: string createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderUncheckedCreateNestedManyWithoutParentInput files?: CloudFileUncheckedCreateNestedManyWithoutFolderInput } export type CloudFolderCreateOrConnectWithoutParentInput = { where: CloudFolderWhereUniqueInput create: XOR } export type CloudFolderCreateManyParentInputEnvelope = { data: CloudFolderCreateManyParentInput | CloudFolderCreateManyParentInput[] skipDuplicates?: boolean } export type UserCreateWithoutCloudFoldersInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutCloudFoldersInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutCloudFoldersInput = { where: UserWhereUniqueInput create: XOR } export type CloudFileCreateWithoutFolderInput = { name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutCloudFilesInput chunks?: CloudFileChunkCreateNestedManyWithoutFileInput } export type CloudFileUncheckedCreateWithoutFolderInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string chunks?: CloudFileChunkUncheckedCreateNestedManyWithoutFileInput } export type CloudFileCreateOrConnectWithoutFolderInput = { where: CloudFileWhereUniqueInput create: XOR } export type CloudFileCreateManyFolderInputEnvelope = { data: CloudFileCreateManyFolderInput | CloudFileCreateManyFolderInput[] skipDuplicates?: boolean } export type CloudFolderUpsertWithoutChildrenInput = { update: XOR create: XOR where?: CloudFolderWhereInput } export type CloudFolderUpdateToOneWithWhereWithoutChildrenInput = { where?: CloudFolderWhereInput data: XOR } export type CloudFolderUpdateWithoutChildrenInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: CloudFolderUpdateOneWithoutChildrenNestedInput user?: UserUpdateOneRequiredWithoutCloudFoldersNestedInput files?: CloudFileUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateWithoutChildrenInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string files?: CloudFileUncheckedUpdateManyWithoutFolderNestedInput } export type CloudFolderUpsertWithWhereUniqueWithoutParentInput = { where: CloudFolderWhereUniqueInput update: XOR create: XOR } export type CloudFolderUpdateWithWhereUniqueWithoutParentInput = { where: CloudFolderWhereUniqueInput data: XOR } export type CloudFolderUpdateManyWithWhereWithoutParentInput = { where: CloudFolderScalarWhereInput data: XOR } export type UserUpsertWithoutCloudFoldersInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCloudFoldersInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCloudFoldersInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCloudFoldersInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type CloudFileUpsertWithWhereUniqueWithoutFolderInput = { where: CloudFileWhereUniqueInput update: XOR create: XOR } export type CloudFileUpdateWithWhereUniqueWithoutFolderInput = { where: CloudFileWhereUniqueInput data: XOR } export type CloudFileUpdateManyWithWhereWithoutFolderInput = { where: CloudFileScalarWhereInput data: XOR } export type UserCreateWithoutCloudFilesInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutCloudFilesInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutCloudFilesInput = { where: UserWhereUniqueInput create: XOR } export type CloudFolderCreateWithoutFilesInput = { name: string createdAt?: Date | string updatedAt?: Date | string parent?: CloudFolderCreateNestedOneWithoutChildrenInput children?: CloudFolderCreateNestedManyWithoutParentInput user: UserCreateNestedOneWithoutCloudFoldersInput } export type CloudFolderUncheckedCreateWithoutFilesInput = { id?: number userId: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string children?: CloudFolderUncheckedCreateNestedManyWithoutParentInput } export type CloudFolderCreateOrConnectWithoutFilesInput = { where: CloudFolderWhereUniqueInput create: XOR } export type CloudFileChunkCreateWithoutFileInput = { seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkUncheckedCreateWithoutFileInput = { id?: number seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkCreateOrConnectWithoutFileInput = { where: CloudFileChunkWhereUniqueInput create: XOR } export type CloudFileChunkCreateManyFileInputEnvelope = { data: CloudFileChunkCreateManyFileInput | CloudFileChunkCreateManyFileInput[] skipDuplicates?: boolean } export type UserUpsertWithoutCloudFilesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCloudFilesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCloudFilesInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCloudFilesInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type CloudFolderUpsertWithoutFilesInput = { update: XOR create: XOR where?: CloudFolderWhereInput } export type CloudFolderUpdateToOneWithWhereWithoutFilesInput = { where?: CloudFolderWhereInput data: XOR } export type CloudFolderUpdateWithoutFilesInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: CloudFolderUpdateOneWithoutChildrenNestedInput children?: CloudFolderUpdateManyWithoutParentNestedInput user?: UserUpdateOneRequiredWithoutCloudFoldersNestedInput } export type CloudFolderUncheckedUpdateWithoutFilesInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUncheckedUpdateManyWithoutParentNestedInput } export type CloudFileChunkUpsertWithWhereUniqueWithoutFileInput = { where: CloudFileChunkWhereUniqueInput update: XOR create: XOR } export type CloudFileChunkUpdateWithWhereUniqueWithoutFileInput = { where: CloudFileChunkWhereUniqueInput data: XOR } export type CloudFileChunkUpdateManyWithWhereWithoutFileInput = { where: CloudFileChunkScalarWhereInput data: XOR } export type CloudFileChunkScalarWhereInput = { AND?: CloudFileChunkScalarWhereInput | CloudFileChunkScalarWhereInput[] OR?: CloudFileChunkScalarWhereInput[] NOT?: CloudFileChunkScalarWhereInput | CloudFileChunkScalarWhereInput[] id?: IntFilter<"CloudFileChunk"> | number fileId?: IntFilter<"CloudFileChunk"> | number seq?: IntFilter<"CloudFileChunk"> | number data?: BytesFilter<"CloudFileChunk"> | Bytes createdAt?: DateTimeFilter<"CloudFileChunk"> | Date | string } export type CloudFileCreateWithoutChunksInput = { name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutCloudFilesInput folder?: CloudFolderCreateNestedOneWithoutFilesInput } export type CloudFileUncheckedCreateWithoutChunksInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFileCreateOrConnectWithoutChunksInput = { where: CloudFileWhereUniqueInput create: XOR } export type CloudFileUpsertWithoutChunksInput = { update: XOR create: XOR where?: CloudFileWhereInput } export type CloudFileUpdateToOneWithWhereWithoutChunksInput = { where?: CloudFileWhereInput data: XOR } export type CloudFileUpdateWithoutChunksInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutCloudFilesNestedInput folder?: CloudFolderUpdateOneWithoutFilesNestedInput } export type CloudFileUncheckedUpdateWithoutChunksInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientCreateWithoutCommunicationsInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateWithoutCommunicationsInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientCreateOrConnectWithoutCommunicationsInput = { where: PatientWhereUniqueInput create: XOR } export type UserCreateWithoutCommunicationsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutCommunicationsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutCommunicationsInput = { where: UserWhereUniqueInput create: XOR } export type PatientUpsertWithoutCommunicationsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutCommunicationsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutCommunicationsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutCommunicationsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type UserUpsertWithoutCommunicationsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCommunicationsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCommunicationsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCommunicationsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type PatientCreateWithoutDocumentsInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput conversation?: PatientConversationCreateNestedOneWithoutPatientInput } export type PatientUncheckedCreateWithoutDocumentsInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput conversation?: PatientConversationUncheckedCreateNestedOneWithoutPatientInput } export type PatientCreateOrConnectWithoutDocumentsInput = { where: PatientWhereUniqueInput create: XOR } export type PatientUpsertWithoutDocumentsInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutDocumentsInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutDocumentsInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutDocumentsInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type UserCreateWithoutTwilioSettingsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutTwilioSettingsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutTwilioSettingsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutTwilioSettingsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutTwilioSettingsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutTwilioSettingsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutTwilioSettingsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutAiSettingsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAiSettingsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAiSettingsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutAiSettingsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAiSettingsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAiSettingsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAiSettingsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutOfficeHoursInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutOfficeHoursInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutOfficeHoursInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutOfficeHoursInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutOfficeHoursInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutOfficeHoursInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutOfficeHoursInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutOfficeContactInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutOfficeContactInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutOfficeContactInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutOfficeContactInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutOfficeContactInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutOfficeContactInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutOfficeContactInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutInsuranceContactsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutInsuranceContactsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutInsuranceContactsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutInsuranceContactsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutInsuranceContactsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutInsuranceContactsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutInsuranceContactsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutProcedureTimeslotInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput patientConversations?: PatientConversationCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutProcedureTimeslotInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput patientConversations?: PatientConversationUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutProcedureTimeslotInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutProcedureTimeslotInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutProcedureTimeslotInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutProcedureTimeslotInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutProcedureTimeslotInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput patientConversations?: PatientConversationUncheckedUpdateManyWithoutUserNestedInput } export type PatientCreateWithoutConversationInput = { firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutPatientsInput appointments?: AppointmentCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureCreateNestedManyWithoutPatientInput claims?: ClaimCreateNestedManyWithoutPatientInput groups?: PdfGroupCreateNestedManyWithoutPatientInput payment?: PaymentCreateNestedManyWithoutPatientInput communications?: CommunicationCreateNestedManyWithoutPatientInput documents?: PatientDocumentCreateNestedManyWithoutPatientInput } export type PatientUncheckedCreateWithoutConversationInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus userId: number createdAt?: Date | string updatedAt?: Date | string appointments?: AppointmentUncheckedCreateNestedManyWithoutPatientInput procedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput claims?: ClaimUncheckedCreateNestedManyWithoutPatientInput groups?: PdfGroupUncheckedCreateNestedManyWithoutPatientInput payment?: PaymentUncheckedCreateNestedManyWithoutPatientInput communications?: CommunicationUncheckedCreateNestedManyWithoutPatientInput documents?: PatientDocumentUncheckedCreateNestedManyWithoutPatientInput } export type PatientCreateOrConnectWithoutConversationInput = { where: PatientWhereUniqueInput create: XOR } export type UserCreateWithoutPatientConversationsInput = { username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientCreateNestedManyWithoutUserInput appointments?: AppointmentCreateNestedManyWithoutUserInput staff?: StaffCreateNestedManyWithoutUserInput npiProviders?: NpiProviderCreateNestedManyWithoutUserInput claims?: ClaimCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorCreateNestedManyWithoutUserInput updatedPayments?: PaymentCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationCreateNestedManyWithoutUserInput notifications?: NotificationCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderCreateNestedManyWithoutUserInput cloudFiles?: CloudFileCreateNestedManyWithoutUserInput communications?: CommunicationCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsCreateNestedOneWithoutUserInput aiSettings?: AiSettingsCreateNestedOneWithoutUserInput officeHours?: OfficeHoursCreateNestedOneWithoutUserInput officeContact?: OfficeContactCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutPatientConversationsInput = { id?: number username: string password: string autoBackupEnabled?: boolean usbBackupEnabled?: boolean patients?: PatientUncheckedCreateNestedManyWithoutUserInput appointments?: AppointmentUncheckedCreateNestedManyWithoutUserInput staff?: StaffUncheckedCreateNestedManyWithoutUserInput npiProviders?: NpiProviderUncheckedCreateNestedManyWithoutUserInput claims?: ClaimUncheckedCreateNestedManyWithoutUserInput insuranceCredentials?: InsuranceCredentialUncheckedCreateNestedManyWithoutUserInput shoppingVendors?: ShoppingVendorUncheckedCreateNestedManyWithoutUserInput updatedPayments?: PaymentUncheckedCreateNestedManyWithoutUpdatedByInput backups?: DatabaseBackupUncheckedCreateNestedManyWithoutUserInput backupDestinations?: BackupDestinationUncheckedCreateNestedManyWithoutUserInput notifications?: NotificationUncheckedCreateNestedManyWithoutUserInput cloudFolders?: CloudFolderUncheckedCreateNestedManyWithoutUserInput cloudFiles?: CloudFileUncheckedCreateNestedManyWithoutUserInput communications?: CommunicationUncheckedCreateNestedManyWithoutUserInput twilioSettings?: TwilioSettingsUncheckedCreateNestedOneWithoutUserInput aiSettings?: AiSettingsUncheckedCreateNestedOneWithoutUserInput officeHours?: OfficeHoursUncheckedCreateNestedOneWithoutUserInput officeContact?: OfficeContactUncheckedCreateNestedOneWithoutUserInput procedureTimeslot?: ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput insuranceContacts?: InsuranceContactUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutPatientConversationsInput = { where: UserWhereUniqueInput create: XOR } export type PatientUpsertWithoutConversationInput = { update: XOR create: XOR where?: PatientWhereInput } export type PatientUpdateToOneWithWhereWithoutConversationInput = { where?: PatientWhereInput data: XOR } export type PatientUpdateWithoutConversationInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutPatientsNestedInput appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutConversationInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus userId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput } export type UserUpsertWithoutPatientConversationsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutPatientConversationsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutPatientConversationsInput = { username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUpdateManyWithoutUserNestedInput appointments?: AppointmentUpdateManyWithoutUserNestedInput staff?: StaffUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUpdateManyWithoutUserNestedInput claims?: ClaimUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUpdateManyWithoutUserNestedInput notifications?: NotificationUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUpdateManyWithoutUserNestedInput communications?: CommunicationUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutPatientConversationsInput = { id?: IntFieldUpdateOperationsInput | number username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string autoBackupEnabled?: BoolFieldUpdateOperationsInput | boolean usbBackupEnabled?: BoolFieldUpdateOperationsInput | boolean patients?: PatientUncheckedUpdateManyWithoutUserNestedInput appointments?: AppointmentUncheckedUpdateManyWithoutUserNestedInput staff?: StaffUncheckedUpdateManyWithoutUserNestedInput npiProviders?: NpiProviderUncheckedUpdateManyWithoutUserNestedInput claims?: ClaimUncheckedUpdateManyWithoutUserNestedInput insuranceCredentials?: InsuranceCredentialUncheckedUpdateManyWithoutUserNestedInput shoppingVendors?: ShoppingVendorUncheckedUpdateManyWithoutUserNestedInput updatedPayments?: PaymentUncheckedUpdateManyWithoutUpdatedByNestedInput backups?: DatabaseBackupUncheckedUpdateManyWithoutUserNestedInput backupDestinations?: BackupDestinationUncheckedUpdateManyWithoutUserNestedInput notifications?: NotificationUncheckedUpdateManyWithoutUserNestedInput cloudFolders?: CloudFolderUncheckedUpdateManyWithoutUserNestedInput cloudFiles?: CloudFileUncheckedUpdateManyWithoutUserNestedInput communications?: CommunicationUncheckedUpdateManyWithoutUserNestedInput twilioSettings?: TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput aiSettings?: AiSettingsUncheckedUpdateOneWithoutUserNestedInput officeHours?: OfficeHoursUncheckedUpdateOneWithoutUserNestedInput officeContact?: OfficeContactUncheckedUpdateOneWithoutUserNestedInput procedureTimeslot?: ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput insuranceContacts?: InsuranceContactUncheckedUpdateManyWithoutUserNestedInput } export type NpiProviderCreateWithoutCommissionBatchesInput = { npiNumber: string providerName: string createdAt?: Date | string user: UserCreateNestedOneWithoutNpiProvidersInput claims?: ClaimCreateNestedManyWithoutNpiProviderInput payments?: PaymentCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureCreateNestedManyWithoutNpiProviderInput } export type NpiProviderUncheckedCreateWithoutCommissionBatchesInput = { id?: number userId: number npiNumber: string providerName: string createdAt?: Date | string claims?: ClaimUncheckedCreateNestedManyWithoutNpiProviderInput payments?: PaymentUncheckedCreateNestedManyWithoutNpiProviderInput appointmentProcedures?: AppointmentProcedureUncheckedCreateNestedManyWithoutNpiProviderInput } export type NpiProviderCreateOrConnectWithoutCommissionBatchesInput = { where: NpiProviderWhereUniqueInput create: XOR } export type CommissionBatchItemCreateWithoutCommissionBatchInput = { collectionAmount: Decimal | DecimalJsLike | number | string payment: PaymentCreateNestedOneWithoutCommissionBatchItemsInput } export type CommissionBatchItemUncheckedCreateWithoutCommissionBatchInput = { id?: number paymentId: number collectionAmount: Decimal | DecimalJsLike | number | string } export type CommissionBatchItemCreateOrConnectWithoutCommissionBatchInput = { where: CommissionBatchItemWhereUniqueInput create: XOR } export type CommissionBatchItemCreateManyCommissionBatchInputEnvelope = { data: CommissionBatchItemCreateManyCommissionBatchInput | CommissionBatchItemCreateManyCommissionBatchInput[] skipDuplicates?: boolean } export type NpiProviderUpsertWithoutCommissionBatchesInput = { update: XOR create: XOR where?: NpiProviderWhereInput } export type NpiProviderUpdateToOneWithWhereWithoutCommissionBatchesInput = { where?: NpiProviderWhereInput data: XOR } export type NpiProviderUpdateWithoutCommissionBatchesInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutNpiProvidersNestedInput claims?: ClaimUpdateManyWithoutNpiProviderNestedInput payments?: PaymentUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUpdateManyWithoutNpiProviderNestedInput } export type NpiProviderUncheckedUpdateWithoutCommissionBatchesInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string claims?: ClaimUncheckedUpdateManyWithoutNpiProviderNestedInput payments?: PaymentUncheckedUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput } export type CommissionBatchItemUpsertWithWhereUniqueWithoutCommissionBatchInput = { where: CommissionBatchItemWhereUniqueInput update: XOR create: XOR } export type CommissionBatchItemUpdateWithWhereUniqueWithoutCommissionBatchInput = { where: CommissionBatchItemWhereUniqueInput data: XOR } export type CommissionBatchItemUpdateManyWithWhereWithoutCommissionBatchInput = { where: CommissionBatchItemScalarWhereInput data: XOR } export type CommissionBatchCreateWithoutItemsInput = { totalCollection: Decimal | DecimalJsLike | number | string commissionAmount: Decimal | DecimalJsLike | number | string notes?: string | null createdAt?: Date | string npiProvider: NpiProviderCreateNestedOneWithoutCommissionBatchesInput } export type CommissionBatchUncheckedCreateWithoutItemsInput = { id?: number npiProviderId: number totalCollection: Decimal | DecimalJsLike | number | string commissionAmount: Decimal | DecimalJsLike | number | string notes?: string | null createdAt?: Date | string } export type CommissionBatchCreateOrConnectWithoutItemsInput = { where: CommissionBatchWhereUniqueInput create: XOR } export type PaymentCreateWithoutCommissionBatchItemsInput = { userId: number totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string claim?: ClaimCreateNestedOneWithoutPaymentInput patient: PatientCreateNestedOneWithoutPaymentInput updatedBy?: UserCreateNestedOneWithoutUpdatedPaymentsInput npiProvider?: NpiProviderCreateNestedOneWithoutPaymentsInput serviceLineTransactions?: ServiceLineTransactionCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineCreateNestedManyWithoutPaymentInput } export type PaymentUncheckedCreateWithoutCommissionBatchItemsInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput serviceLines?: ServiceLineUncheckedCreateNestedManyWithoutPaymentInput } export type PaymentCreateOrConnectWithoutCommissionBatchItemsInput = { where: PaymentWhereUniqueInput create: XOR } export type CommissionBatchUpsertWithoutItemsInput = { update: XOR create: XOR where?: CommissionBatchWhereInput } export type CommissionBatchUpdateToOneWithWhereWithoutItemsInput = { where?: CommissionBatchWhereInput data: XOR } export type CommissionBatchUpdateWithoutItemsInput = { totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string npiProvider?: NpiProviderUpdateOneRequiredWithoutCommissionBatchesNestedInput } export type CommissionBatchUncheckedUpdateWithoutItemsInput = { id?: IntFieldUpdateOperationsInput | number npiProviderId?: IntFieldUpdateOperationsInput | number totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PaymentUpsertWithoutCommissionBatchItemsInput = { update: XOR create: XOR where?: PaymentWhereInput } export type PaymentUpdateToOneWithWhereWithoutCommissionBatchItemsInput = { where?: PaymentWhereInput data: XOR } export type PaymentUpdateWithoutCommissionBatchItemsInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput npiProvider?: NpiProviderUpdateOneWithoutPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutCommissionBatchItemsInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput } export type PatientCreateManyUserInput = { id?: number firstName: string lastName: string dateOfBirth?: Date | string | null gender: string phone: string email?: string | null address?: string | null city?: string | null zipCode?: string | null insuranceProvider?: string | null insuranceId?: string | null groupNumber?: string | null policyHolder?: string | null allergies?: string | null medicalConditions?: string | null preferredLanguage?: string | null status?: $Enums.PatientStatus createdAt?: Date | string updatedAt?: Date | string } export type AppointmentCreateManyUserInput = { id?: number patientId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus } export type StaffCreateManyUserInput = { id?: number name: string email?: string | null role: string phone?: string | null createdAt?: Date | string } export type NpiProviderCreateManyUserInput = { id?: number npiNumber: string providerName: string createdAt?: Date | string } export type ClaimCreateManyUserInput = { id?: number patientId: number appointmentId?: number | null staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null } export type InsuranceCredentialCreateManyUserInput = { id?: number siteKey: string username: string password: string } export type ShoppingVendorCreateManyUserInput = { id?: number vendorName: string websiteUrl: string loginUsername: string loginPassword: string } export type PaymentCreateManyUpdatedByInput = { id?: number claimId?: number | null patientId: number userId: number npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string } export type DatabaseBackupCreateManyUserInput = { id?: number createdAt?: Date | string } export type BackupDestinationCreateManyUserInput = { id?: number path: string isActive?: boolean createdAt?: Date | string } export type NotificationCreateManyUserInput = { id?: number type: $Enums.NotificationTypes message: string createdAt?: Date | string read?: boolean } export type CloudFolderCreateManyUserInput = { id?: number name: string parentId?: number | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFileCreateManyUserInput = { id?: number name: string mimeType?: string | null fileSize: bigint | number folderId?: number | null isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CommunicationCreateManyUserInput = { id?: number patientId: number channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type InsuranceContactCreateManyUserInput = { id?: number name: string phoneNumber?: string | null createdAt?: Date | string } export type PatientConversationCreateManyUserInput = { id?: number patientId: number stage?: string aiHandoff?: boolean updatedAt?: Date | string } export type PatientUpdateWithoutUserInput = { firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUpdateManyWithoutPatientNestedInput claims?: ClaimUpdateManyWithoutPatientNestedInput groups?: PdfGroupUpdateManyWithoutPatientNestedInput payment?: PaymentUpdateManyWithoutPatientNestedInput communications?: CommunicationUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutPatientNestedInput procedures?: AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput claims?: ClaimUncheckedUpdateManyWithoutPatientNestedInput groups?: PdfGroupUncheckedUpdateManyWithoutPatientNestedInput payment?: PaymentUncheckedUpdateManyWithoutPatientNestedInput communications?: CommunicationUncheckedUpdateManyWithoutPatientNestedInput documents?: PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput conversation?: PatientConversationUncheckedUpdateOneWithoutPatientNestedInput } export type PatientUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number firstName?: StringFieldUpdateOperationsInput | string lastName?: StringFieldUpdateOperationsInput | string dateOfBirth?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null gender?: StringFieldUpdateOperationsInput | string phone?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null address?: NullableStringFieldUpdateOperationsInput | string | null city?: NullableStringFieldUpdateOperationsInput | string | null zipCode?: NullableStringFieldUpdateOperationsInput | string | null insuranceProvider?: NullableStringFieldUpdateOperationsInput | string | null insuranceId?: NullableStringFieldUpdateOperationsInput | string | null groupNumber?: NullableStringFieldUpdateOperationsInput | string | null policyHolder?: NullableStringFieldUpdateOperationsInput | string | null allergies?: NullableStringFieldUpdateOperationsInput | string | null medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null status?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentUpdateWithoutUserInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type StaffUpdateWithoutUserInput = { name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUpdateManyWithoutStaffNestedInput claims?: ClaimUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointments?: AppointmentUncheckedUpdateManyWithoutStaffNestedInput claims?: ClaimUncheckedUpdateManyWithoutStaffNestedInput } export type StaffUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string email?: NullableStringFieldUpdateOperationsInput | string | null role?: StringFieldUpdateOperationsInput | string phone?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NpiProviderUpdateWithoutUserInput = { npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string claims?: ClaimUpdateManyWithoutNpiProviderNestedInput payments?: PaymentUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUpdateManyWithoutNpiProviderNestedInput } export type NpiProviderUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string claims?: ClaimUncheckedUpdateManyWithoutNpiProviderNestedInput payments?: PaymentUncheckedUpdateManyWithoutNpiProviderNestedInput commissionBatches?: CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInput appointmentProcedures?: AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput } export type NpiProviderUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number npiNumber?: StringFieldUpdateOperationsInput | string providerName?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimUpdateWithoutUserInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput npiProvider?: NpiProviderUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null } export type InsuranceCredentialUpdateWithoutUserInput = { siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type InsuranceCredentialUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number siteKey?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type ShoppingVendorUpdateWithoutUserInput = { vendorName?: StringFieldUpdateOperationsInput | string websiteUrl?: StringFieldUpdateOperationsInput | string loginUsername?: StringFieldUpdateOperationsInput | string loginPassword?: StringFieldUpdateOperationsInput | string } export type ShoppingVendorUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number vendorName?: StringFieldUpdateOperationsInput | string websiteUrl?: StringFieldUpdateOperationsInput | string loginUsername?: StringFieldUpdateOperationsInput | string loginPassword?: StringFieldUpdateOperationsInput | string } export type ShoppingVendorUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number vendorName?: StringFieldUpdateOperationsInput | string websiteUrl?: StringFieldUpdateOperationsInput | string loginUsername?: StringFieldUpdateOperationsInput | string loginPassword?: StringFieldUpdateOperationsInput | string } export type PaymentUpdateWithoutUpdatedByInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput npiProvider?: NpiProviderUpdateOneWithoutPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutUpdatedByInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUncheckedUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateManyWithoutUpdatedByInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupUpdateWithoutUserInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type DatabaseBackupUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationUpdateWithoutUserInput = { path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type BackupDestinationUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number path?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NotificationUpdateWithoutUserInput = { type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type NotificationUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type NotificationUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number type?: EnumNotificationTypesFieldUpdateOperationsInput | $Enums.NotificationTypes message?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string read?: BoolFieldUpdateOperationsInput | boolean } export type CloudFolderUpdateWithoutUserInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string parent?: CloudFolderUpdateOneWithoutChildrenNestedInput children?: CloudFolderUpdateManyWithoutParentNestedInput files?: CloudFileUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUncheckedUpdateManyWithoutParentNestedInput files?: CloudFileUncheckedUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string parentId?: NullableIntFieldUpdateOperationsInput | number | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileUpdateWithoutUserInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string folder?: CloudFolderUpdateOneWithoutFilesNestedInput chunks?: CloudFileChunkUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string chunks?: CloudFileChunkUncheckedUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number folderId?: NullableIntFieldUpdateOperationsInput | number | null isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUpdateWithoutUserInput = { channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutCommunicationsNestedInput } export type CommunicationUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InsuranceContactUpdateWithoutUserInput = { name?: StringFieldUpdateOperationsInput | string phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InsuranceContactUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InsuranceContactUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string phoneNumber?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientConversationUpdateWithoutUserInput = { stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutConversationNestedInput } export type PatientConversationUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientConversationUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number stage?: StringFieldUpdateOperationsInput | string aiHandoff?: BoolFieldUpdateOperationsInput | boolean updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentCreateManyPatientInput = { id?: number userId: number staffId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus } export type AppointmentProcedureCreateManyPatientInput = { id?: number appointmentId: number npiProviderId?: number | null procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type ClaimCreateManyPatientInput = { id?: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null } export type PdfGroupCreateManyPatientInput = { id?: number title: string titleKey?: $Enums.PdfTitleKey createdAt?: Date | string } export type PaymentCreateManyPatientInput = { id?: number claimId?: number | null userId: number updatedById?: number | null npiProviderId?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CommunicationCreateManyPatientInput = { id?: number userId?: number | null channel: $Enums.CommunicationChannel direction: $Enums.CommunicationDirection status: $Enums.CommunicationStatus body?: string | null callDuration?: number | null twilioSid?: string | null createdAt?: Date | string } export type PatientDocumentCreateManyPatientInput = { id?: number filename: string originalName: string mimeType: string fileSize: bigint | number filePath: string uploadedAt?: Date | string updatedAt?: Date | string } export type AppointmentUpdateWithoutPatientInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput staff?: StaffUpdateOneWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type AppointmentProcedureUpdateWithoutPatientInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointment?: AppointmentUpdateOneRequiredWithoutProceduresNestedInput npiProvider?: NpiProviderUpdateOneWithoutAppointmentProceduresNestedInput } export type AppointmentProcedureUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimUpdateWithoutPatientInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null appointment?: AppointmentUpdateOneWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput npiProvider?: NpiProviderUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null } export type PdfGroupUpdateWithoutPatientInput = { title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string pdfs?: PdfFileUpdateManyWithoutGroupNestedInput } export type PdfGroupUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string pdfs?: PdfFileUncheckedUpdateManyWithoutGroupNestedInput } export type PdfGroupUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string titleKey?: EnumPdfTitleKeyFieldUpdateOperationsInput | $Enums.PdfTitleKey createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PaymentUpdateWithoutPatientInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput npiProvider?: NpiProviderUpdateOneWithoutPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUncheckedUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUpdateWithoutPatientInput = { channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutCommunicationsNestedInput } export type CommunicationUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: NullableIntFieldUpdateOperationsInput | number | null channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommunicationUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number userId?: NullableIntFieldUpdateOperationsInput | number | null channel?: EnumCommunicationChannelFieldUpdateOperationsInput | $Enums.CommunicationChannel direction?: EnumCommunicationDirectionFieldUpdateOperationsInput | $Enums.CommunicationDirection status?: EnumCommunicationStatusFieldUpdateOperationsInput | $Enums.CommunicationStatus body?: NullableStringFieldUpdateOperationsInput | string | null callDuration?: NullableIntFieldUpdateOperationsInput | number | null twilioSid?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentUpdateWithoutPatientInput = { filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentUncheckedUpdateWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PatientDocumentUncheckedUpdateManyWithoutPatientInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string originalName?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string fileSize?: BigIntFieldUpdateOperationsInput | bigint | number filePath?: StringFieldUpdateOperationsInput | string uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureCreateManyAppointmentInput = { id?: number patientId: number npiProviderId?: number | null procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type ClaimCreateManyAppointmentInput = { id?: number patientId: number userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null } export type AppointmentFileCreateManyAppointmentInput = { id?: number filename: string mimeType?: string | null filePath?: string | null } export type AppointmentProcedureUpdateWithoutAppointmentInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string patient?: PatientUpdateOneRequiredWithoutProceduresNestedInput npiProvider?: NpiProviderUpdateOneWithoutAppointmentProceduresNestedInput } export type AppointmentProcedureUncheckedUpdateWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureUncheckedUpdateManyWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ClaimUpdateWithoutAppointmentInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput npiProvider?: NpiProviderUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null } export type AppointmentFileUpdateWithoutAppointmentInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type AppointmentFileUncheckedUpdateWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type AppointmentFileUncheckedUpdateManyWithoutAppointmentInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type AppointmentCreateManyStaffInput = { id?: number patientId: number userId: number title: string date: Date | string startTime: string endTime: string type: string typeLocked?: boolean notes?: string | null procedureCodeNotes?: string | null status?: string movedByAi?: boolean createdAt?: Date | string eligibilityStatus?: $Enums.PatientStatus } export type ClaimCreateManyStaffInput = { id?: number patientId: number appointmentId?: number | null userId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null npiProviderId?: number | null } export type AppointmentUpdateWithoutStaffInput = { title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus patient?: PatientUpdateOneRequiredWithoutAppointmentsNestedInput user?: UserUpdateOneRequiredWithoutAppointmentsNestedInput procedures?: AppointmentProcedureUpdateManyWithoutAppointmentNestedInput claims?: ClaimUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus procedures?: AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput claims?: ClaimUncheckedUpdateManyWithoutAppointmentNestedInput files?: AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput } export type AppointmentUncheckedUpdateManyWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string date?: DateTimeFieldUpdateOperationsInput | Date | string startTime?: StringFieldUpdateOperationsInput | string endTime?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string typeLocked?: BoolFieldUpdateOperationsInput | boolean notes?: NullableStringFieldUpdateOperationsInput | string | null procedureCodeNotes?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string movedByAi?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string eligibilityStatus?: EnumPatientStatusFieldUpdateOperationsInput | $Enums.PatientStatus } export type ClaimUpdateWithoutStaffInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput npiProvider?: NpiProviderUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutStaffInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null npiProviderId?: NullableIntFieldUpdateOperationsInput | number | null } export type ClaimCreateManyNpiProviderInput = { id?: number patientId: number appointmentId?: number | null userId: number staffId: number patientName: string memberId: string dateOfBirth: Date | string remarks: string missingTeethStatus?: $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate: Date | string insuranceProvider: string createdAt?: Date | string updatedAt?: Date | string status?: $Enums.ClaimStatus claimNumber?: string | null preAuthNumber?: string | null } export type PaymentCreateManyNpiProviderInput = { id?: number claimId?: number | null patientId: number userId: number updatedById?: number | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue: Decimal | DecimalJsLike | number | string mhPaidAmount?: Decimal | DecimalJsLike | number | string | null copayment?: Decimal | DecimalJsLike | number | string adjustment?: Decimal | DecimalJsLike | number | string status?: $Enums.PaymentStatus notes?: string | null icn?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CommissionBatchCreateManyNpiProviderInput = { id?: number totalCollection: Decimal | DecimalJsLike | number | string commissionAmount: Decimal | DecimalJsLike | number | string notes?: string | null createdAt?: Date | string } export type AppointmentProcedureCreateManyNpiProviderInput = { id?: number appointmentId: number patientId: number procedureCode: string procedureLabel?: string | null fee?: Decimal | DecimalJsLike | number | string | null category?: string | null toothNumber?: string | null toothSurface?: string | null oralCavityArea?: string | null source?: $Enums.ProcedureSource comboKey?: string | null createdAt?: Date | string } export type ClaimUpdateWithoutNpiProviderInput = { patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null patient?: PatientUpdateOneRequiredWithoutClaimsNestedInput appointment?: AppointmentUpdateOneWithoutClaimsNestedInput user?: UserUpdateOneWithoutClaimsNestedInput staff?: StaffUpdateOneWithoutClaimsNestedInput serviceLines?: ServiceLineUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUpdateManyWithoutClaimNestedInput payment?: PaymentUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateWithoutNpiProviderInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null serviceLines?: ServiceLineUncheckedUpdateManyWithoutClaimNestedInput claimFiles?: ClaimFileUncheckedUpdateManyWithoutClaimNestedInput payment?: PaymentUncheckedUpdateOneWithoutClaimNestedInput } export type ClaimUncheckedUpdateManyWithoutNpiProviderInput = { id?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number appointmentId?: NullableIntFieldUpdateOperationsInput | number | null userId?: IntFieldUpdateOperationsInput | number staffId?: IntFieldUpdateOperationsInput | number patientName?: StringFieldUpdateOperationsInput | string memberId?: StringFieldUpdateOperationsInput | string dateOfBirth?: DateTimeFieldUpdateOperationsInput | Date | string remarks?: StringFieldUpdateOperationsInput | string missingTeethStatus?: EnumMissingTeethStatusFieldUpdateOperationsInput | $Enums.MissingTeethStatus missingTeeth?: NullableJsonNullValueInput | InputJsonValue serviceDate?: DateTimeFieldUpdateOperationsInput | Date | string insuranceProvider?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string status?: EnumClaimStatusFieldUpdateOperationsInput | $Enums.ClaimStatus claimNumber?: NullableStringFieldUpdateOperationsInput | string | null preAuthNumber?: NullableStringFieldUpdateOperationsInput | string | null } export type PaymentUpdateWithoutNpiProviderInput = { userId?: IntFieldUpdateOperationsInput | number totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string claim?: ClaimUpdateOneWithoutPaymentNestedInput patient?: PatientUpdateOneRequiredWithoutPaymentNestedInput updatedBy?: UserUpdateOneWithoutUpdatedPaymentsNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateWithoutNpiProviderInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutPaymentNestedInput serviceLines?: ServiceLineUncheckedUpdateManyWithoutPaymentNestedInput commissionBatchItems?: CommissionBatchItemUncheckedUpdateManyWithoutPaymentNestedInput } export type PaymentUncheckedUpdateManyWithoutNpiProviderInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null patientId?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number updatedById?: NullableIntFieldUpdateOperationsInput | number | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string mhPaidAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null copayment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustment?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus notes?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommissionBatchUpdateWithoutNpiProviderInput = { totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: CommissionBatchItemUpdateManyWithoutCommissionBatchNestedInput } export type CommissionBatchUncheckedUpdateWithoutNpiProviderInput = { id?: IntFieldUpdateOperationsInput | number totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: CommissionBatchItemUncheckedUpdateManyWithoutCommissionBatchNestedInput } export type CommissionBatchUncheckedUpdateManyWithoutNpiProviderInput = { id?: IntFieldUpdateOperationsInput | number totalCollection?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureUpdateWithoutNpiProviderInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string appointment?: AppointmentUpdateOneRequiredWithoutProceduresNestedInput patient?: PatientUpdateOneRequiredWithoutProceduresNestedInput } export type AppointmentProcedureUncheckedUpdateWithoutNpiProviderInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderInput = { id?: IntFieldUpdateOperationsInput | number appointmentId?: IntFieldUpdateOperationsInput | number patientId?: IntFieldUpdateOperationsInput | number procedureCode?: StringFieldUpdateOperationsInput | string procedureLabel?: NullableStringFieldUpdateOperationsInput | string | null fee?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null category?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null oralCavityArea?: NullableStringFieldUpdateOperationsInput | string | null source?: EnumProcedureSourceFieldUpdateOperationsInput | $Enums.ProcedureSource comboKey?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineCreateManyClaimInput = { id?: number paymentId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus } export type ClaimFileCreateManyClaimInput = { id?: number filename: string mimeType: string filePath?: string | null } export type ServiceLineUpdateWithoutClaimInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus payment?: PaymentUpdateOneWithoutServiceLinesNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateManyWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type ClaimFileUpdateWithoutClaimInput = { filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type ClaimFileUncheckedUpdateWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type ClaimFileUncheckedUpdateManyWithoutClaimInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string mimeType?: StringFieldUpdateOperationsInput | string filePath?: NullableStringFieldUpdateOperationsInput | string | null } export type ServiceLineTransactionCreateManyServiceLineInput = { id?: number paymentId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineTransactionUpdateWithoutServiceLineInput = { transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string payment?: PaymentUpdateOneRequiredWithoutServiceLineTransactionsNestedInput } export type ServiceLineTransactionUncheckedUpdateWithoutServiceLineInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfFileCreateManyGroupInput = { id?: number filename: string pdfData: Bytes uploadedAt?: Date | string } export type PdfFileUpdateWithoutGroupInput = { filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfFileUncheckedUpdateWithoutGroupInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PdfFileUncheckedUpdateManyWithoutGroupInput = { id?: IntFieldUpdateOperationsInput | number filename?: StringFieldUpdateOperationsInput | string pdfData?: BytesFieldUpdateOperationsInput | Bytes uploadedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionCreateManyPaymentInput = { id?: number serviceLineId: number transactionId?: string | null paidAmount: Decimal | DecimalJsLike | number | string adjustedAmount?: Decimal | DecimalJsLike | number | string method: $Enums.PaymentMethod receivedDate: Date | string payerName?: string | null notes?: string | null createdAt?: Date | string } export type ServiceLineCreateManyPaymentInput = { id?: number claimId?: number | null procedureCode: string procedureDate: Date | string quad?: string | null arch?: string | null toothNumber?: string | null toothSurface?: string | null icn?: string | null paidCode?: string | null allowedAmount?: Decimal | DecimalJsLike | number | string | null totalBilled: Decimal | DecimalJsLike | number | string totalPaid?: Decimal | DecimalJsLike | number | string totalAdjusted?: Decimal | DecimalJsLike | number | string totalDue?: Decimal | DecimalJsLike | number | string status?: $Enums.ServiceLineStatus } export type CommissionBatchItemCreateManyPaymentInput = { id?: number commissionBatchId: number collectionAmount: Decimal | DecimalJsLike | number | string } export type ServiceLineTransactionUpdateWithoutPaymentInput = { transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string serviceLine?: ServiceLineUpdateOneRequiredWithoutServiceLineTransactionsNestedInput } export type ServiceLineTransactionUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number serviceLineId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineTransactionUncheckedUpdateManyWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number serviceLineId?: IntFieldUpdateOperationsInput | number transactionId?: NullableStringFieldUpdateOperationsInput | string | null paidAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string adjustedAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string method?: EnumPaymentMethodFieldUpdateOperationsInput | $Enums.PaymentMethod receivedDate?: DateTimeFieldUpdateOperationsInput | Date | string payerName?: NullableStringFieldUpdateOperationsInput | string | null notes?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceLineUpdateWithoutPaymentInput = { procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus claim?: ClaimUpdateOneWithoutServiceLinesNestedInput serviceLineTransactions?: ServiceLineTransactionUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus serviceLineTransactions?: ServiceLineTransactionUncheckedUpdateManyWithoutServiceLineNestedInput } export type ServiceLineUncheckedUpdateManyWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number claimId?: NullableIntFieldUpdateOperationsInput | number | null procedureCode?: StringFieldUpdateOperationsInput | string procedureDate?: DateTimeFieldUpdateOperationsInput | Date | string quad?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null toothNumber?: NullableStringFieldUpdateOperationsInput | string | null toothSurface?: NullableStringFieldUpdateOperationsInput | string | null icn?: NullableStringFieldUpdateOperationsInput | string | null paidCode?: NullableStringFieldUpdateOperationsInput | string | null allowedAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalBilled?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalPaid?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalAdjusted?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string totalDue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string status?: EnumServiceLineStatusFieldUpdateOperationsInput | $Enums.ServiceLineStatus } export type CommissionBatchItemUpdateWithoutPaymentInput = { collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string commissionBatch?: CommissionBatchUpdateOneRequiredWithoutItemsNestedInput } export type CommissionBatchItemUncheckedUpdateWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number commissionBatchId?: IntFieldUpdateOperationsInput | number collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string } export type CommissionBatchItemUncheckedUpdateManyWithoutPaymentInput = { id?: IntFieldUpdateOperationsInput | number commissionBatchId?: IntFieldUpdateOperationsInput | number collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string } export type CloudFolderCreateManyParentInput = { id?: number userId: number name: string createdAt?: Date | string updatedAt?: Date | string } export type CloudFileCreateManyFolderInput = { id?: number userId: number name: string mimeType?: string | null fileSize: bigint | number isComplete?: boolean totalChunks?: number | null diskPath?: string | null createdAt?: Date | string updatedAt?: Date | string } export type CloudFolderUpdateWithoutParentInput = { name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUpdateManyWithoutParentNestedInput user?: UserUpdateOneRequiredWithoutCloudFoldersNestedInput files?: CloudFileUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateWithoutParentInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string children?: CloudFolderUncheckedUpdateManyWithoutParentNestedInput files?: CloudFileUncheckedUpdateManyWithoutFolderNestedInput } export type CloudFolderUncheckedUpdateManyWithoutParentInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileUpdateWithoutFolderInput = { name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutCloudFilesNestedInput chunks?: CloudFileChunkUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateWithoutFolderInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string chunks?: CloudFileChunkUncheckedUpdateManyWithoutFileNestedInput } export type CloudFileUncheckedUpdateManyWithoutFolderInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string mimeType?: NullableStringFieldUpdateOperationsInput | string | null fileSize?: BigIntFieldUpdateOperationsInput | bigint | number isComplete?: BoolFieldUpdateOperationsInput | boolean totalChunks?: NullableIntFieldUpdateOperationsInput | number | null diskPath?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkCreateManyFileInput = { id?: number seq: number data: Bytes createdAt?: Date | string } export type CloudFileChunkUpdateWithoutFileInput = { seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkUncheckedUpdateWithoutFileInput = { id?: IntFieldUpdateOperationsInput | number seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CloudFileChunkUncheckedUpdateManyWithoutFileInput = { id?: IntFieldUpdateOperationsInput | number seq?: IntFieldUpdateOperationsInput | number data?: BytesFieldUpdateOperationsInput | Bytes createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CommissionBatchItemCreateManyCommissionBatchInput = { id?: number paymentId: number collectionAmount: Decimal | DecimalJsLike | number | string } export type CommissionBatchItemUpdateWithoutCommissionBatchInput = { collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string payment?: PaymentUpdateOneRequiredWithoutCommissionBatchItemsNestedInput } export type CommissionBatchItemUncheckedUpdateWithoutCommissionBatchInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string } export type CommissionBatchItemUncheckedUpdateManyWithoutCommissionBatchInput = { id?: IntFieldUpdateOperationsInput | number paymentId?: IntFieldUpdateOperationsInput | number collectionAmount?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }