index-browser.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. /* !!! This is code generated by Prisma. Do not edit directly. !!!
  2. /* eslint-disable */
  3. // biome-ignore-all lint: generated file
  4. Object.defineProperty(exports, "__esModule", { value: true });
  5. const {
  6. Decimal,
  7. objectEnumValues,
  8. makeStrictEnum,
  9. Public,
  10. getRuntime,
  11. skip
  12. } = require('./runtime/index-browser.js')
  13. const Prisma = {}
  14. exports.Prisma = Prisma
  15. exports.$Enums = {}
  16. /**
  17. * Prisma Client JS version: 6.19.2
  18. * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
  19. */
  20. Prisma.prismaVersion = {
  21. client: "6.19.2",
  22. engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7"
  23. }
  24. Prisma.PrismaClientKnownRequestError = () => {
  25. const runtimeName = getRuntime().prettyName;
  26. throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  27. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  28. )};
  29. Prisma.PrismaClientUnknownRequestError = () => {
  30. const runtimeName = getRuntime().prettyName;
  31. throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  32. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  33. )}
  34. Prisma.PrismaClientRustPanicError = () => {
  35. const runtimeName = getRuntime().prettyName;
  36. throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  37. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  38. )}
  39. Prisma.PrismaClientInitializationError = () => {
  40. const runtimeName = getRuntime().prettyName;
  41. throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  42. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  43. )}
  44. Prisma.PrismaClientValidationError = () => {
  45. const runtimeName = getRuntime().prettyName;
  46. throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  47. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  48. )}
  49. Prisma.Decimal = Decimal
  50. /**
  51. * Re-export of sql-template-tag
  52. */
  53. Prisma.sql = () => {
  54. const runtimeName = getRuntime().prettyName;
  55. throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  56. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  57. )}
  58. Prisma.empty = () => {
  59. const runtimeName = getRuntime().prettyName;
  60. throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  61. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  62. )}
  63. Prisma.join = () => {
  64. const runtimeName = getRuntime().prettyName;
  65. throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  66. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  67. )}
  68. Prisma.raw = () => {
  69. const runtimeName = getRuntime().prettyName;
  70. throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  71. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  72. )}
  73. Prisma.validator = Public.validator
  74. /**
  75. * Extensions
  76. */
  77. Prisma.getExtensionContext = () => {
  78. const runtimeName = getRuntime().prettyName;
  79. throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  80. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  81. )}
  82. Prisma.defineExtension = () => {
  83. const runtimeName = getRuntime().prettyName;
  84. throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
  85. In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
  86. )}
  87. /**
  88. * Shorthand utilities for JSON filtering
  89. */
  90. Prisma.DbNull = objectEnumValues.instances.DbNull
  91. Prisma.JsonNull = objectEnumValues.instances.JsonNull
  92. Prisma.AnyNull = objectEnumValues.instances.AnyNull
  93. Prisma.NullTypes = {
  94. DbNull: objectEnumValues.classes.DbNull,
  95. JsonNull: objectEnumValues.classes.JsonNull,
  96. AnyNull: objectEnumValues.classes.AnyNull
  97. }
  98. /**
  99. * Enums
  100. */
  101. exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
  102. ReadUncommitted: 'ReadUncommitted',
  103. ReadCommitted: 'ReadCommitted',
  104. RepeatableRead: 'RepeatableRead',
  105. Serializable: 'Serializable'
  106. });
  107. exports.Prisma.WorkspaceScalarFieldEnum = {
  108. id: 'id',
  109. name: 'name',
  110. slug: 'slug',
  111. sector: 'sector',
  112. companySize: 'companySize',
  113. contactEmail: 'contactEmail',
  114. tier: 'tier',
  115. llmCallsThisMonth: 'llmCallsThisMonth',
  116. llmCallsResetAt: 'llmCallsResetAt',
  117. autoRelanceEnabled: 'autoRelanceEnabled',
  118. exportsThisMonth: 'exportsThisMonth',
  119. exportsResetAt: 'exportsResetAt',
  120. lastVisitedAt: 'lastVisitedAt',
  121. createdAt: 'createdAt',
  122. updatedAt: 'updatedAt',
  123. ownerId: 'ownerId'
  124. };
  125. exports.Prisma.ManualRelanceLogScalarFieldEnum = {
  126. id: 'id',
  127. workspaceId: 'workspaceId',
  128. subject: 'subject',
  129. recipientCount: 'recipientCount',
  130. sentCount: 'sentCount',
  131. failedCount: 'failedCount',
  132. sentAt: 'sentAt'
  133. };
  134. exports.Prisma.ContributorScalarFieldEnum = {
  135. id: 'id',
  136. workspaceId: 'workspaceId',
  137. email: 'email',
  138. status: 'status',
  139. invitedAt: 'invitedAt',
  140. lastRemindedAt: 'lastRemindedAt',
  141. createdAt: 'createdAt'
  142. };
  143. exports.Prisma.IdeaScalarFieldEnum = {
  144. id: 'id',
  145. workspaceId: 'workspaceId',
  146. contributorEmail: 'contributorEmail',
  147. contributorId: 'contributorId',
  148. department: 'department',
  149. problemDescription: 'problemDescription',
  150. estimatedImpact: 'estimatedImpact',
  151. frequency: 'frequency',
  152. status: 'status',
  153. llmTitle: 'llmTitle',
  154. llmDomain: 'llmDomain',
  155. llmAiType: 'llmAiType',
  156. llmExplanation: 'llmExplanation',
  157. llmScoreImpact: 'llmScoreImpact',
  158. llmScoreFeasibility: 'llmScoreFeasibility',
  159. llmScoreUrgency: 'llmScoreUrgency',
  160. llmEnrichedAt: 'llmEnrichedAt',
  161. llmEnrichFailed: 'llmEnrichFailed',
  162. manualScoreImpact: 'manualScoreImpact',
  163. manualScoreFeasibility: 'manualScoreFeasibility',
  164. manualScoreUrgency: 'manualScoreUrgency',
  165. priorityOrder: 'priorityOrder',
  166. emailMessageId: 'emailMessageId',
  167. createdAt: 'createdAt',
  168. updatedAt: 'updatedAt'
  169. };
  170. exports.Prisma.PostScalarFieldEnum = {
  171. id: 'id',
  172. name: 'name',
  173. createdAt: 'createdAt',
  174. updatedAt: 'updatedAt',
  175. createdById: 'createdById'
  176. };
  177. exports.Prisma.AccountScalarFieldEnum = {
  178. id: 'id',
  179. userId: 'userId',
  180. type: 'type',
  181. provider: 'provider',
  182. providerAccountId: 'providerAccountId',
  183. refresh_token: 'refresh_token',
  184. access_token: 'access_token',
  185. expires_at: 'expires_at',
  186. token_type: 'token_type',
  187. scope: 'scope',
  188. id_token: 'id_token',
  189. session_state: 'session_state',
  190. refresh_token_expires_in: 'refresh_token_expires_in'
  191. };
  192. exports.Prisma.SessionScalarFieldEnum = {
  193. id: 'id',
  194. sessionToken: 'sessionToken',
  195. userId: 'userId',
  196. expires: 'expires'
  197. };
  198. exports.Prisma.UserScalarFieldEnum = {
  199. id: 'id',
  200. name: 'name',
  201. email: 'email',
  202. emailVerified: 'emailVerified',
  203. password: 'password',
  204. image: 'image'
  205. };
  206. exports.Prisma.VerificationTokenScalarFieldEnum = {
  207. identifier: 'identifier',
  208. token: 'token',
  209. expires: 'expires'
  210. };
  211. exports.Prisma.IdeaAttachmentScalarFieldEnum = {
  212. id: 'id',
  213. ideaId: 'ideaId',
  214. workspaceId: 'workspaceId',
  215. filename: 'filename',
  216. contentType: 'contentType',
  217. size: 'size',
  218. url: 'url',
  219. blobPath: 'blobPath',
  220. createdAt: 'createdAt'
  221. };
  222. exports.Prisma.QualificationQuestionScalarFieldEnum = {
  223. id: 'id',
  224. ideaId: 'ideaId',
  225. workspaceId: 'workspaceId',
  226. questionText: 'questionText',
  227. responseToken: 'responseToken',
  228. askedAt: 'askedAt',
  229. responseText: 'responseText',
  230. answeredAt: 'answeredAt'
  231. };
  232. exports.Prisma.LibraryCaseScalarFieldEnum = {
  233. id: 'id',
  234. sector: 'sector',
  235. department: 'department',
  236. title: 'title',
  237. description: 'description',
  238. createdAt: 'createdAt',
  239. updatedAt: 'updatedAt'
  240. };
  241. exports.Prisma.ShareLinkScalarFieldEnum = {
  242. id: 'id',
  243. workspaceId: 'workspaceId',
  244. token: 'token',
  245. expiresAt: 'expiresAt',
  246. createdAt: 'createdAt'
  247. };
  248. exports.Prisma.SortOrder = {
  249. asc: 'asc',
  250. desc: 'desc'
  251. };
  252. exports.Prisma.QueryMode = {
  253. default: 'default',
  254. insensitive: 'insensitive'
  255. };
  256. exports.Prisma.NullsOrder = {
  257. first: 'first',
  258. last: 'last'
  259. };
  260. exports.WorkspaceTier = exports.$Enums.WorkspaceTier = {
  261. FREE: 'FREE',
  262. PRO: 'PRO'
  263. };
  264. exports.ContributorStatus = exports.$Enums.ContributorStatus = {
  265. INVITED: 'INVITED',
  266. SUBMITTED: 'SUBMITTED',
  267. NOT_SUBMITTED: 'NOT_SUBMITTED'
  268. };
  269. exports.ImpactLevel = exports.$Enums.ImpactLevel = {
  270. FAIBLE: 'FAIBLE',
  271. MODERE: 'MODERE',
  272. ELEVE: 'ELEVE',
  273. CRITIQUE: 'CRITIQUE'
  274. };
  275. exports.Frequency = exports.$Enums.Frequency = {
  276. QUOTIDIENNE: 'QUOTIDIENNE',
  277. HEBDOMADAIRE: 'HEBDOMADAIRE',
  278. MENSUELLE: 'MENSUELLE',
  279. TRIMESTRIELLE: 'TRIMESTRIELLE',
  280. PONCTUELLE: 'PONCTUELLE'
  281. };
  282. exports.IdeaStatus = exports.$Enums.IdeaStatus = {
  283. SUBMITTED: 'SUBMITTED',
  284. IN_REVIEW: 'IN_REVIEW',
  285. ON_AGENDA: 'ON_AGENDA',
  286. IN_PROGRESS: 'IN_PROGRESS',
  287. NOT_PRIORITY: 'NOT_PRIORITY'
  288. };
  289. exports.Prisma.ModelName = {
  290. Workspace: 'Workspace',
  291. ManualRelanceLog: 'ManualRelanceLog',
  292. Contributor: 'Contributor',
  293. Idea: 'Idea',
  294. Post: 'Post',
  295. Account: 'Account',
  296. Session: 'Session',
  297. User: 'User',
  298. VerificationToken: 'VerificationToken',
  299. IdeaAttachment: 'IdeaAttachment',
  300. QualificationQuestion: 'QualificationQuestion',
  301. LibraryCase: 'LibraryCase',
  302. ShareLink: 'ShareLink'
  303. };
  304. /**
  305. * This is a stub Prisma Client that will error at runtime if called.
  306. */
  307. class PrismaClient {
  308. constructor() {
  309. return new Proxy(this, {
  310. get(target, prop) {
  311. let message
  312. const runtime = getRuntime()
  313. if (runtime.isEdge) {
  314. message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
  315. - Use Prisma Accelerate: https://pris.ly/d/accelerate
  316. - Use Driver Adapters: https://pris.ly/d/driver-adapters
  317. `;
  318. } else {
  319. message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
  320. }
  321. message += `
  322. If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
  323. throw new Error(message)
  324. }
  325. })
  326. }
  327. }
  328. exports.PrismaClient = PrismaClient
  329. Object.assign(exports, Prisma)