Files
DentalManagementMH07/packages/db/generated/prisma/index-browser.js
ff b1932fa3d6 feat: add Provider field to appointment form, drive AI claim automation
Adds an optional Provider (NPI) select to the Edit Appointment form,
sourced from Settings > NPI Providers. The AI "Claim for Column" batch
flow now prefers the appointment's own provider when resolving which
provider Selenium should select on the insurance site (e.g. MassHealth
rendering provider dropdown), falling back to the existing per-procedure
selection, active claim, or first configured provider.

Also resyncs packages/db's committed compiled schema/client artifacts
with their .ts sources — they had drifted out of sync (some untouched
since July), which was silently stripping the new npiProviderId field
via stale .strict() zod schemas.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-20 23:07:10 -04:00

730 lines
19 KiB
JavaScript

/* !!! This is code generated by Prisma. Do not edit directly. !!!
/* eslint-disable */
// biome-ignore-all lint: generated file
Object.defineProperty(exports, "__esModule", { value: true });
const {
Decimal,
DbNull,
JsonNull,
AnyNull,
NullTypes,
makeStrictEnum,
Public,
getRuntime,
skip
} = require('./runtime/index-browser.js')
const Prisma = {}
exports.Prisma = Prisma
exports.$Enums = {}
/**
* Prisma Client JS version: 7.4.1
* Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3
*/
Prisma.prismaVersion = {
client: "7.4.1",
engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3"
}
Prisma.PrismaClientKnownRequestError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)};
Prisma.PrismaClientUnknownRequestError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.PrismaClientRustPanicError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.PrismaClientInitializationError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.PrismaClientValidationError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.Decimal = Decimal
/**
* Re-export of sql-template-tag
*/
Prisma.sql = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.empty = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.join = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.raw = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.validator = Public.validator
/**
* Extensions
*/
Prisma.getExtensionContext = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.defineExtension = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
/**
* Shorthand utilities for JSON filtering
*/
Prisma.DbNull = DbNull
Prisma.JsonNull = JsonNull
Prisma.AnyNull = AnyNull
Prisma.NullTypes = NullTypes
/**
* Enums
*/
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
});
exports.Prisma.UserScalarFieldEnum = {
id: 'id',
username: 'username',
password: 'password',
autoBackupEnabled: 'autoBackupEnabled',
autoBackupHour: 'autoBackupHour',
usbBackupEnabled: 'usbBackupEnabled',
usbBackupHour: 'usbBackupHour',
autoMhCheckEnabled: 'autoMhCheckEnabled',
autoMhCheckDayOfWeek: 'autoMhCheckDayOfWeek',
autoMhCheckHour: 'autoMhCheckHour'
};
exports.Prisma.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'
};
exports.Prisma.AppointmentScalarFieldEnum = {
id: 'id',
patientId: 'patientId',
userId: 'userId',
staffId: 'staffId',
npiProviderId: 'npiProviderId',
title: 'title',
date: 'date',
startTime: 'startTime',
endTime: 'endTime',
type: 'type',
typeLocked: 'typeLocked',
notes: 'notes',
procedureCodeNotes: 'procedureCodeNotes',
status: 'status',
movedByAi: 'movedByAi',
createdAt: 'createdAt',
eligibilityStatus: 'eligibilityStatus'
};
exports.Prisma.AppointmentFileScalarFieldEnum = {
id: 'id',
appointmentId: 'appointmentId',
filename: 'filename',
mimeType: 'mimeType',
filePath: 'filePath'
};
exports.Prisma.StaffScalarFieldEnum = {
id: 'id',
userId: 'userId',
name: 'name',
email: 'email',
role: 'role',
phone: 'phone',
createdAt: 'createdAt'
};
exports.Prisma.NpiProviderScalarFieldEnum = {
id: 'id',
userId: 'userId',
npiNumber: 'npiNumber',
providerName: 'providerName',
sortOrder: 'sortOrder',
createdAt: 'createdAt'
};
exports.Prisma.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'
};
exports.Prisma.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'
};
exports.Prisma.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'
};
exports.Prisma.ClaimFileScalarFieldEnum = {
id: 'id',
claimId: 'claimId',
filename: 'filename',
mimeType: 'mimeType',
filePath: 'filePath'
};
exports.Prisma.InsuranceCredentialScalarFieldEnum = {
id: 'id',
userId: 'userId',
siteKey: 'siteKey',
username: 'username',
password: 'password'
};
exports.Prisma.ShoppingVendorScalarFieldEnum = {
id: 'id',
userId: 'userId',
vendorName: 'vendorName',
websiteUrl: 'websiteUrl',
loginUsername: 'loginUsername',
loginPassword: 'loginPassword'
};
exports.Prisma.PdfGroupScalarFieldEnum = {
id: 'id',
title: 'title',
titleKey: 'titleKey',
createdAt: 'createdAt',
patientId: 'patientId'
};
exports.Prisma.PdfFileScalarFieldEnum = {
id: 'id',
filename: 'filename',
pdfData: 'pdfData',
uploadedAt: 'uploadedAt',
groupId: 'groupId'
};
exports.Prisma.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'
};
exports.Prisma.ServiceLineTransactionScalarFieldEnum = {
id: 'id',
paymentId: 'paymentId',
serviceLineId: 'serviceLineId',
transactionId: 'transactionId',
paidAmount: 'paidAmount',
adjustedAmount: 'adjustedAmount',
method: 'method',
receivedDate: 'receivedDate',
payerName: 'payerName',
notes: 'notes',
createdAt: 'createdAt'
};
exports.Prisma.DatabaseBackupScalarFieldEnum = {
id: 'id',
userId: 'userId',
createdAt: 'createdAt'
};
exports.Prisma.BackupDestinationScalarFieldEnum = {
id: 'id',
userId: 'userId',
path: 'path',
isActive: 'isActive',
createdAt: 'createdAt'
};
exports.Prisma.NotificationScalarFieldEnum = {
id: 'id',
userId: 'userId',
type: 'type',
message: 'message',
createdAt: 'createdAt',
read: 'read'
};
exports.Prisma.CronJobLogScalarFieldEnum = {
id: 'id',
jobName: 'jobName',
status: 'status',
startedAt: 'startedAt',
completedAt: 'completedAt',
durationMs: 'durationMs',
errorMessage: 'errorMessage'
};
exports.Prisma.CloudFolderScalarFieldEnum = {
id: 'id',
userId: 'userId',
name: 'name',
parentId: 'parentId',
patientId: 'patientId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.CloudFileScalarFieldEnum = {
id: 'id',
userId: 'userId',
name: 'name',
mimeType: 'mimeType',
fileSize: 'fileSize',
folderId: 'folderId',
isComplete: 'isComplete',
totalChunks: 'totalChunks',
diskPath: 'diskPath',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.CloudFileChunkScalarFieldEnum = {
id: 'id',
fileId: 'fileId',
seq: 'seq',
data: 'data',
createdAt: 'createdAt'
};
exports.Prisma.CommunicationScalarFieldEnum = {
id: 'id',
patientId: 'patientId',
userId: 'userId',
channel: 'channel',
direction: 'direction',
status: 'status',
body: 'body',
callDuration: 'callDuration',
twilioSid: 'twilioSid',
createdAt: 'createdAt'
};
exports.Prisma.PatientDocumentScalarFieldEnum = {
id: 'id',
patientId: 'patientId',
filename: 'filename',
originalName: 'originalName',
mimeType: 'mimeType',
fileSize: 'fileSize',
filePath: 'filePath',
uploadedAt: 'uploadedAt',
updatedAt: 'updatedAt'
};
exports.Prisma.TwilioSettingsScalarFieldEnum = {
id: 'id',
userId: 'userId',
accountSid: 'accountSid',
authToken: 'authToken',
phoneNumber: 'phoneNumber',
greetingMessage: 'greetingMessage',
templates: 'templates'
};
exports.Prisma.AiSettingsScalarFieldEnum = {
id: 'id',
userId: 'userId',
apiKey: 'apiKey',
aiEnabled: 'aiEnabled',
openAiKey: 'openAiKey',
openAiEnabled: 'openAiEnabled',
claudeAiKey: 'claudeAiKey',
claudeAiEnabled: 'claudeAiEnabled',
claudeAiModel: 'claudeAiModel',
openAiModel: 'openAiModel',
googleAiModel: 'googleAiModel',
dentalMgmtKey: 'dentalMgmtKey',
dentalMgmtEnabled: 'dentalMgmtEnabled',
afterHoursEnabled: 'afterHoursEnabled',
openPhoneReply: 'openPhoneReply'
};
exports.Prisma.OfficeHoursScalarFieldEnum = {
id: 'id',
userId: 'userId',
data: 'data'
};
exports.Prisma.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'
};
exports.Prisma.InsuranceContactScalarFieldEnum = {
id: 'id',
userId: 'userId',
name: 'name',
phoneNumber: 'phoneNumber',
createdAt: 'createdAt'
};
exports.Prisma.ProcedureTimeslotScalarFieldEnum = {
id: 'id',
userId: 'userId',
data: 'data'
};
exports.Prisma.PatientConversationScalarFieldEnum = {
id: 'id',
patientId: 'patientId',
userId: 'userId',
stage: 'stage',
aiHandoff: 'aiHandoff',
updatedAt: 'updatedAt'
};
exports.Prisma.LabRxTemplateScalarFieldEnum = {
id: 'id',
userId: 'userId',
name: 'name',
labName: 'labName',
labPhone: 'labPhone',
labFax: 'labFax',
labAddress: 'labAddress',
labAccount: 'labAccount',
caseType: 'caseType',
material: 'material',
instructions: 'instructions',
sortOrder: 'sortOrder',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.CommissionBatchScalarFieldEnum = {
id: 'id',
npiProviderId: 'npiProviderId',
totalCollection: 'totalCollection',
commissionAmount: 'commissionAmount',
notes: 'notes',
createdAt: 'createdAt'
};
exports.Prisma.CommissionBatchItemScalarFieldEnum = {
id: 'id',
commissionBatchId: 'commissionBatchId',
paymentId: 'paymentId',
collectionAmount: 'collectionAmount'
};
exports.Prisma.SeleniumSettingsScalarFieldEnum = {
id: 'id',
userId: 'userId',
paymentGroupId: 'paymentGroupId'
};
exports.Prisma.SortOrder = {
asc: 'asc',
desc: 'desc'
};
exports.Prisma.NullableJsonNullValueInput = {
DbNull: Prisma.DbNull,
JsonNull: Prisma.JsonNull
};
exports.Prisma.JsonNullValueInput = {
JsonNull: Prisma.JsonNull
};
exports.Prisma.QueryMode = {
default: 'default',
insensitive: 'insensitive'
};
exports.Prisma.NullsOrder = {
first: 'first',
last: 'last'
};
exports.Prisma.JsonNullValueFilter = {
DbNull: Prisma.DbNull,
JsonNull: Prisma.JsonNull,
AnyNull: Prisma.AnyNull
};
exports.PatientStatus = exports.$Enums.PatientStatus = {
ACTIVE: 'ACTIVE',
INACTIVE: 'INACTIVE',
UNKNOWN: 'UNKNOWN',
PLAN_NOT_ACCEPTED: 'PLAN_NOT_ACCEPTED'
};
exports.ProcedureSource = exports.$Enums.ProcedureSource = {
COMBO: 'COMBO',
MANUAL: 'MANUAL'
};
exports.MissingTeethStatus = exports.$Enums.MissingTeethStatus = {
No_missing: 'No_missing',
endentulous: 'endentulous',
Yes_missing: 'Yes_missing'
};
exports.ClaimStatus = exports.$Enums.ClaimStatus = {
PENDING: 'PENDING',
APPROVED: 'APPROVED',
CANCELLED: 'CANCELLED',
REVIEW: 'REVIEW',
VOID: 'VOID',
PREAUTH: 'PREAUTH'
};
exports.ServiceLineStatus = exports.$Enums.ServiceLineStatus = {
PENDING: 'PENDING',
PARTIALLY_PAID: 'PARTIALLY_PAID',
PAID: 'PAID',
UNPAID: 'UNPAID',
ADJUSTED: 'ADJUSTED',
OVERPAID: 'OVERPAID',
DENIED: 'DENIED'
};
exports.PdfTitleKey = exports.$Enums.PdfTitleKey = {
INSURANCE_CLAIM: 'INSURANCE_CLAIM',
INSURANCE_CLAIM_PREAUTH: 'INSURANCE_CLAIM_PREAUTH',
ELIGIBILITY_STATUS: 'ELIGIBILITY_STATUS',
CLAIM_STATUS: 'CLAIM_STATUS',
OTHER: 'OTHER'
};
exports.PaymentStatus = exports.$Enums.PaymentStatus = {
PENDING: 'PENDING',
PARTIALLY_PAID: 'PARTIALLY_PAID',
PAID: 'PAID',
OVERPAID: 'OVERPAID',
DENIED: 'DENIED',
VOID: 'VOID'
};
exports.PaymentMethod = exports.$Enums.PaymentMethod = {
EFT: 'EFT',
CHECK: 'CHECK',
CASH: 'CASH',
CARD: 'CARD',
OTHER: 'OTHER'
};
exports.NotificationTypes = exports.$Enums.NotificationTypes = {
BACKUP: 'BACKUP',
CLAIM: 'CLAIM',
PAYMENT: 'PAYMENT',
ETC: 'ETC'
};
exports.CommunicationChannel = exports.$Enums.CommunicationChannel = {
sms: 'sms',
voice: 'voice'
};
exports.CommunicationDirection = exports.$Enums.CommunicationDirection = {
outbound: 'outbound',
inbound: 'inbound'
};
exports.CommunicationStatus = exports.$Enums.CommunicationStatus = {
queued: 'queued',
sent: 'sent',
delivered: 'delivered',
failed: 'failed',
completed: 'completed',
busy: 'busy',
no_answer: 'no_answer'
};
exports.Prisma.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',
LabRxTemplate: 'LabRxTemplate',
CommissionBatch: 'CommissionBatch',
CommissionBatchItem: 'CommissionBatchItem',
SeleniumSettings: 'SeleniumSettings'
};
/**
* This is a stub Prisma Client that will error at runtime if called.
*/
class PrismaClient {
constructor() {
return new Proxy(this, {
get(target, prop) {
let message
const runtime = getRuntime()
if (runtime.isEdge) {
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
- Use Prisma Accelerate: https://pris.ly/d/accelerate
- Use Driver Adapters: https://pris.ly/d/driver-adapters
`;
} else {
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
}
message += `
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
throw new Error(message)
}
})
}
}
exports.PrismaClient = PrismaClient
Object.assign(exports, Prisma)