560 lines
14 KiB
JavaScript
560 lines
14 KiB
JavaScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
/* eslint-disable */
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const {
|
|
Decimal,
|
|
objectEnumValues,
|
|
makeStrictEnum,
|
|
Public,
|
|
getRuntime,
|
|
skip
|
|
} = require('./runtime/index-browser.js')
|
|
|
|
|
|
const Prisma = {}
|
|
|
|
exports.Prisma = Prisma
|
|
exports.$Enums = {}
|
|
|
|
/**
|
|
* Prisma Client JS version: 6.12.0
|
|
* Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc
|
|
*/
|
|
Prisma.prismaVersion = {
|
|
client: "6.12.0",
|
|
engine: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc"
|
|
}
|
|
|
|
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 = objectEnumValues.instances.DbNull
|
|
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
|
|
Prisma.NullTypes = {
|
|
DbNull: objectEnumValues.classes.DbNull,
|
|
JsonNull: objectEnumValues.classes.JsonNull,
|
|
AnyNull: objectEnumValues.classes.AnyNull
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
|
|
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
});
|
|
|
|
exports.Prisma.UserScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
email: 'email',
|
|
emailVerified: 'emailVerified',
|
|
password: 'password',
|
|
phone: 'phone',
|
|
address: 'address',
|
|
image: 'image',
|
|
role: 'role',
|
|
createdAt: 'createdAt',
|
|
updateAt: 'updateAt',
|
|
familyName: 'familyName',
|
|
givenName: 'givenName'
|
|
};
|
|
|
|
exports.Prisma.AccountScalarFieldEnum = {
|
|
type: 'type',
|
|
provider: 'provider',
|
|
scope: 'scope',
|
|
access_token: 'access_token',
|
|
expires_at: 'expires_at',
|
|
id_token: 'id_token',
|
|
providerAccountId: 'providerAccountId',
|
|
refresh_token: 'refresh_token',
|
|
token_type: 'token_type',
|
|
userId: 'userId',
|
|
id: 'id',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.SessionScalarFieldEnum = {
|
|
id: 'id',
|
|
expires: 'expires',
|
|
sessionToken: 'sessionToken',
|
|
userId: 'userId',
|
|
accessToken: 'accessToken',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.OtpScalarFieldEnum = {
|
|
id: 'id',
|
|
email: 'email',
|
|
otp: 'otp',
|
|
expires: 'expires',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.KoasProfileScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
koasNumber: 'koasNumber',
|
|
age: 'age',
|
|
gender: 'gender',
|
|
departement: 'departement',
|
|
university: 'university',
|
|
bio: 'bio',
|
|
whatsappLink: 'whatsappLink',
|
|
status: 'status',
|
|
createdAt: 'createdAt',
|
|
updateAt: 'updateAt',
|
|
universityId: 'universityId',
|
|
experience: 'experience'
|
|
};
|
|
|
|
exports.Prisma.PasienProfileScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
age: 'age',
|
|
gender: 'gender',
|
|
bio: 'bio',
|
|
createdAt: 'createdAt',
|
|
updateAt: 'updateAt'
|
|
};
|
|
|
|
exports.Prisma.FasilitatorProfileScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
university: 'university'
|
|
};
|
|
|
|
exports.Prisma.UniversityScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
alias: 'alias',
|
|
location: 'location',
|
|
latitude: 'latitude',
|
|
longitude: 'longitude',
|
|
image: 'image',
|
|
createdAt: 'createdAt',
|
|
updateAt: 'updateAt'
|
|
};
|
|
|
|
exports.Prisma.PostScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
koasId: 'koasId',
|
|
treatmentId: 'treatmentId',
|
|
title: 'title',
|
|
desc: 'desc',
|
|
patientRequirement: 'patientRequirement',
|
|
status: 'status',
|
|
published: 'published',
|
|
createdAt: 'createdAt',
|
|
updateAt: 'updateAt',
|
|
requiredParticipant: 'requiredParticipant',
|
|
images: 'images'
|
|
};
|
|
|
|
exports.Prisma.LikeScalarFieldEnum = {
|
|
id: 'id',
|
|
postId: 'postId',
|
|
userId: 'userId',
|
|
createdAt: 'createdAt'
|
|
};
|
|
|
|
exports.Prisma.NotificationScalarFieldEnum = {
|
|
id: 'id',
|
|
message: 'message',
|
|
createdAt: 'createdAt',
|
|
koasId: 'koasId',
|
|
senderId: 'senderId',
|
|
status: 'status',
|
|
title: 'title',
|
|
updatedAt: 'updatedAt',
|
|
userId: 'userId'
|
|
};
|
|
|
|
exports.Prisma.TreatmentTypeScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
createdAt: 'createdAt',
|
|
updateAt: 'updateAt',
|
|
alias: 'alias',
|
|
image: 'image'
|
|
};
|
|
|
|
exports.Prisma.ScheduleScalarFieldEnum = {
|
|
id: 'id',
|
|
postId: 'postId',
|
|
createdAt: 'createdAt',
|
|
dateEnd: 'dateEnd',
|
|
dateStart: 'dateStart',
|
|
updateAt: 'updateAt'
|
|
};
|
|
|
|
exports.Prisma.TimeslotScalarFieldEnum = {
|
|
id: 'id',
|
|
startTime: 'startTime',
|
|
endTime: 'endTime',
|
|
maxParticipants: 'maxParticipants',
|
|
currentParticipants: 'currentParticipants',
|
|
isAvailable: 'isAvailable',
|
|
scheduleId: 'scheduleId'
|
|
};
|
|
|
|
exports.Prisma.ReviewScalarFieldEnum = {
|
|
id: 'id',
|
|
postId: 'postId',
|
|
pasienId: 'pasienId',
|
|
rating: 'rating',
|
|
comment: 'comment',
|
|
createdAt: 'createdAt',
|
|
koasId: 'koasId'
|
|
};
|
|
|
|
exports.Prisma.AppointmentScalarFieldEnum = {
|
|
id: 'id',
|
|
pasienId: 'pasienId',
|
|
koasId: 'koasId',
|
|
scheduleId: 'scheduleId',
|
|
timeslotId: 'timeslotId',
|
|
date: 'date',
|
|
status: 'status',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.VerificationrequestScalarFieldEnum = {
|
|
id: 'id',
|
|
token: 'token',
|
|
expires: 'expires',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
email: 'email'
|
|
};
|
|
|
|
exports.Prisma.SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
};
|
|
|
|
exports.Prisma.NullableJsonNullValueInput = {
|
|
DbNull: Prisma.DbNull,
|
|
JsonNull: Prisma.JsonNull
|
|
};
|
|
|
|
exports.Prisma.NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
};
|
|
|
|
exports.Prisma.UserOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
email: 'email',
|
|
password: 'password',
|
|
phone: 'phone',
|
|
address: 'address',
|
|
image: 'image',
|
|
familyName: 'familyName',
|
|
givenName: 'givenName'
|
|
};
|
|
|
|
exports.Prisma.AccountOrderByRelevanceFieldEnum = {
|
|
type: 'type',
|
|
provider: 'provider',
|
|
scope: 'scope',
|
|
access_token: 'access_token',
|
|
id_token: 'id_token',
|
|
providerAccountId: 'providerAccountId',
|
|
refresh_token: 'refresh_token',
|
|
token_type: 'token_type',
|
|
userId: 'userId',
|
|
id: 'id'
|
|
};
|
|
|
|
exports.Prisma.SessionOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
sessionToken: 'sessionToken',
|
|
userId: 'userId',
|
|
accessToken: 'accessToken'
|
|
};
|
|
|
|
exports.Prisma.OtpOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
email: 'email',
|
|
otp: 'otp'
|
|
};
|
|
|
|
exports.Prisma.KoasProfileOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
koasNumber: 'koasNumber',
|
|
age: 'age',
|
|
gender: 'gender',
|
|
departement: 'departement',
|
|
university: 'university',
|
|
bio: 'bio',
|
|
whatsappLink: 'whatsappLink',
|
|
universityId: 'universityId'
|
|
};
|
|
|
|
exports.Prisma.PasienProfileOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
age: 'age',
|
|
gender: 'gender',
|
|
bio: 'bio'
|
|
};
|
|
|
|
exports.Prisma.FasilitatorProfileOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
university: 'university'
|
|
};
|
|
|
|
exports.Prisma.UniversityOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
alias: 'alias',
|
|
location: 'location',
|
|
image: 'image'
|
|
};
|
|
|
|
exports.Prisma.JsonNullValueFilter = {
|
|
DbNull: Prisma.DbNull,
|
|
JsonNull: Prisma.JsonNull,
|
|
AnyNull: Prisma.AnyNull
|
|
};
|
|
|
|
exports.Prisma.QueryMode = {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
};
|
|
|
|
exports.Prisma.PostOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
koasId: 'koasId',
|
|
treatmentId: 'treatmentId',
|
|
title: 'title',
|
|
desc: 'desc'
|
|
};
|
|
|
|
exports.Prisma.LikeOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
postId: 'postId',
|
|
userId: 'userId'
|
|
};
|
|
|
|
exports.Prisma.NotificationOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
message: 'message',
|
|
koasId: 'koasId',
|
|
senderId: 'senderId',
|
|
title: 'title',
|
|
userId: 'userId'
|
|
};
|
|
|
|
exports.Prisma.TreatmentTypeOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
alias: 'alias',
|
|
image: 'image'
|
|
};
|
|
|
|
exports.Prisma.ScheduleOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
postId: 'postId'
|
|
};
|
|
|
|
exports.Prisma.TimeslotOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
startTime: 'startTime',
|
|
endTime: 'endTime',
|
|
scheduleId: 'scheduleId'
|
|
};
|
|
|
|
exports.Prisma.ReviewOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
postId: 'postId',
|
|
pasienId: 'pasienId',
|
|
comment: 'comment',
|
|
koasId: 'koasId'
|
|
};
|
|
|
|
exports.Prisma.AppointmentOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
pasienId: 'pasienId',
|
|
koasId: 'koasId',
|
|
scheduleId: 'scheduleId',
|
|
timeslotId: 'timeslotId',
|
|
date: 'date'
|
|
};
|
|
|
|
exports.Prisma.verificationrequestOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
token: 'token',
|
|
email: 'email'
|
|
};
|
|
exports.Role = exports.$Enums.Role = {
|
|
Admin: 'Admin',
|
|
Koas: 'Koas',
|
|
Pasien: 'Pasien',
|
|
Fasilitator: 'Fasilitator'
|
|
};
|
|
|
|
exports.StatusKoas = exports.$Enums.StatusKoas = {
|
|
Rejected: 'Rejected',
|
|
Pending: 'Pending',
|
|
Approved: 'Approved'
|
|
};
|
|
|
|
exports.StatusPost = exports.$Enums.StatusPost = {
|
|
Pending: 'Pending',
|
|
Open: 'Open',
|
|
Closed: 'Closed'
|
|
};
|
|
|
|
exports.StatusNotification = exports.$Enums.StatusNotification = {
|
|
Unread: 'Unread',
|
|
Read: 'Read'
|
|
};
|
|
|
|
exports.StatusAppointment = exports.$Enums.StatusAppointment = {
|
|
Canceled: 'Canceled',
|
|
Rejected: 'Rejected',
|
|
Pending: 'Pending',
|
|
Confirmed: 'Confirmed',
|
|
Ongoing: 'Ongoing',
|
|
Completed: 'Completed'
|
|
};
|
|
|
|
exports.Prisma.ModelName = {
|
|
User: 'User',
|
|
Account: 'Account',
|
|
Session: 'Session',
|
|
Otp: 'Otp',
|
|
KoasProfile: 'KoasProfile',
|
|
PasienProfile: 'PasienProfile',
|
|
FasilitatorProfile: 'FasilitatorProfile',
|
|
University: 'University',
|
|
Post: 'Post',
|
|
Like: 'Like',
|
|
Notification: 'Notification',
|
|
TreatmentType: 'TreatmentType',
|
|
Schedule: 'Schedule',
|
|
Timeslot: 'Timeslot',
|
|
Review: 'Review',
|
|
Appointment: 'Appointment',
|
|
verificationrequest: 'verificationrequest'
|
|
};
|
|
|
|
/**
|
|
* 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)
|