68 lines
1.8 KiB
JavaScript
68 lines
1.8 KiB
JavaScript
// ESM wrapper for browser environment
|
|
// This file re-exports the browser-safe parts of Prisma
|
|
|
|
const Prisma = {
|
|
prismaVersion: {
|
|
client: "7.4.1",
|
|
engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3",
|
|
},
|
|
Decimal: class Decimal {
|
|
constructor(value) {
|
|
this.value = value;
|
|
}
|
|
toFixed = (digits, roundingMode) =>
|
|
Number(this.value).toFixed(digits, roundingMode);
|
|
toString = () => String(this.value);
|
|
toJSON = () => Number(this.value);
|
|
},
|
|
DecimalJsLike: {
|
|
d: [],
|
|
e: 0,
|
|
s: 1,
|
|
},
|
|
DbNull: Symbol.for("DbNull"),
|
|
JsonNull: Symbol.for("JsonNull"),
|
|
AnyNull: Symbol.for("AnyNull"),
|
|
NullTypes: {},
|
|
SortOrder: { asc: "asc", desc: "desc" },
|
|
QueryMode: { default: "default", insensitive: "insensitive" },
|
|
NullsOrder: { first: "first", last: "last" },
|
|
ModelName: {
|
|
User: "User",
|
|
Patient: "Patient",
|
|
Appointment: "Appointment",
|
|
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",
|
|
CloudFolder: "CloudFolder",
|
|
CloudFile: "CloudFile",
|
|
CloudFileChunk: "CloudFileChunk",
|
|
Communication: "Communication",
|
|
PatientDocument: "PatientDocument",
|
|
},
|
|
TransactionIsolationLevel: {
|
|
ReadUncommitted: "ReadUncommitted",
|
|
ReadCommitted: "ReadCommitted",
|
|
RepeatableRead: "RepeatableRead",
|
|
Serializable: "Serializable",
|
|
},
|
|
validator: (
|
|
() => (x) =>
|
|
x
|
|
)(),
|
|
};
|
|
|
|
export { Prisma };
|
|
export default Prisma;
|