Files
DentalManagementMH05/packages/db/generated/prisma/index-browser.js
Gitead 7929dc6e19 feat: office address, multi-template SMS manager, hardcoded defaults with auto-seed
- Add streetAddress/city/state/zipCode fields to OfficeContact (schema + storage + UI)
- Support {officeAddress} variable in batch reminder SMS
- Replace single SMS template field with full CRUD template list (add/rename/edit/delete)
- Store SMS template list under _sms_template_list; first template synced to batch reminder
- Hardcode all AI chat template defaults into codebase (reminder SMS, greetings, fallback)
- Add seed-templates.ts that auto-seeds default templates for all users on server boot
- Update README: note that templates are auto-configured on first boot

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 23:18:04 -04:00

654 lines
17 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',
usbBackupEnabled: 'usbBackupEnabled'
};
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',
title: 'title',
date: 'date',
startTime: 'startTime',
endTime: 'endTime',
type: 'type',
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',
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',
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.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',
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',
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',
afterHoursEnabled: 'afterHoursEnabled'
};
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.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'
};
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',
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'
};
/**
* 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)