index-browser.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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. onboardingDismissed: 'onboardingDismissed',
  122. proModeAvailable: 'proModeAvailable',
  123. createdAt: 'createdAt',
  124. updatedAt: 'updatedAt',
  125. ownerId: 'ownerId'
  126. };
  127. exports.Prisma.ManualRelanceLogScalarFieldEnum = {
  128. id: 'id',
  129. workspaceId: 'workspaceId',
  130. subject: 'subject',
  131. recipientCount: 'recipientCount',
  132. sentCount: 'sentCount',
  133. failedCount: 'failedCount',
  134. sentAt: 'sentAt'
  135. };
  136. exports.Prisma.ContributorScalarFieldEnum = {
  137. id: 'id',
  138. workspaceId: 'workspaceId',
  139. email: 'email',
  140. service: 'service',
  141. status: 'status',
  142. invitedAt: 'invitedAt',
  143. lastRemindedAt: 'lastRemindedAt',
  144. createdAt: 'createdAt'
  145. };
  146. exports.Prisma.IdeaScalarFieldEnum = {
  147. id: 'id',
  148. workspaceId: 'workspaceId',
  149. contributorEmail: 'contributorEmail',
  150. contributorId: 'contributorId',
  151. department: 'department',
  152. problemDescription: 'problemDescription',
  153. estimatedImpact: 'estimatedImpact',
  154. frequency: 'frequency',
  155. optionalWhoAffected: 'optionalWhoAffected',
  156. optionalAlreadyTried: 'optionalAlreadyTried',
  157. optionalSuccessLooksLike: 'optionalSuccessLooksLike',
  158. status: 'status',
  159. llmTitle: 'llmTitle',
  160. llmDomain: 'llmDomain',
  161. llmAiType: 'llmAiType',
  162. llmExplanation: 'llmExplanation',
  163. llmScoreImpact: 'llmScoreImpact',
  164. llmScoreFeasibility: 'llmScoreFeasibility',
  165. llmScoreUrgency: 'llmScoreUrgency',
  166. llmEnrichedAt: 'llmEnrichedAt',
  167. llmEnrichFailed: 'llmEnrichFailed',
  168. manualScoreImpact: 'manualScoreImpact',
  169. manualScoreFeasibility: 'manualScoreFeasibility',
  170. manualScoreUrgency: 'manualScoreUrgency',
  171. priorityOrder: 'priorityOrder',
  172. emailMessageId: 'emailMessageId',
  173. createdAt: 'createdAt',
  174. updatedAt: 'updatedAt'
  175. };
  176. exports.Prisma.PostScalarFieldEnum = {
  177. id: 'id',
  178. name: 'name',
  179. createdAt: 'createdAt',
  180. updatedAt: 'updatedAt',
  181. createdById: 'createdById'
  182. };
  183. exports.Prisma.AccountScalarFieldEnum = {
  184. id: 'id',
  185. userId: 'userId',
  186. type: 'type',
  187. provider: 'provider',
  188. providerAccountId: 'providerAccountId',
  189. refresh_token: 'refresh_token',
  190. access_token: 'access_token',
  191. expires_at: 'expires_at',
  192. token_type: 'token_type',
  193. scope: 'scope',
  194. id_token: 'id_token',
  195. session_state: 'session_state',
  196. refresh_token_expires_in: 'refresh_token_expires_in'
  197. };
  198. exports.Prisma.SessionScalarFieldEnum = {
  199. id: 'id',
  200. sessionToken: 'sessionToken',
  201. userId: 'userId',
  202. expires: 'expires'
  203. };
  204. exports.Prisma.UserScalarFieldEnum = {
  205. id: 'id',
  206. name: 'name',
  207. email: 'email',
  208. emailVerified: 'emailVerified',
  209. password: 'password',
  210. legalTermsAcceptedAt: 'legalTermsAcceptedAt',
  211. image: 'image'
  212. };
  213. exports.Prisma.VerificationTokenScalarFieldEnum = {
  214. identifier: 'identifier',
  215. token: 'token',
  216. expires: 'expires'
  217. };
  218. exports.Prisma.IdeaAttachmentScalarFieldEnum = {
  219. id: 'id',
  220. ideaId: 'ideaId',
  221. workspaceId: 'workspaceId',
  222. filename: 'filename',
  223. contentType: 'contentType',
  224. size: 'size',
  225. url: 'url',
  226. blobPath: 'blobPath',
  227. createdAt: 'createdAt'
  228. };
  229. exports.Prisma.QualificationQuestionScalarFieldEnum = {
  230. id: 'id',
  231. ideaId: 'ideaId',
  232. workspaceId: 'workspaceId',
  233. questionText: 'questionText',
  234. responseToken: 'responseToken',
  235. askedAt: 'askedAt',
  236. responseText: 'responseText',
  237. answeredAt: 'answeredAt'
  238. };
  239. exports.Prisma.LibraryCaseScalarFieldEnum = {
  240. id: 'id',
  241. sector: 'sector',
  242. department: 'department',
  243. title: 'title',
  244. description: 'description',
  245. createdAt: 'createdAt',
  246. updatedAt: 'updatedAt'
  247. };
  248. exports.Prisma.AppFeedbackScalarFieldEnum = {
  249. id: 'id',
  250. userId: 'userId',
  251. workspaceId: 'workspaceId',
  252. type: 'type',
  253. message: 'message',
  254. createdAt: 'createdAt'
  255. };
  256. exports.Prisma.ShareLinkScalarFieldEnum = {
  257. id: 'id',
  258. workspaceId: 'workspaceId',
  259. token: 'token',
  260. expiresAt: 'expiresAt',
  261. createdAt: 'createdAt'
  262. };
  263. exports.Prisma.SortOrder = {
  264. asc: 'asc',
  265. desc: 'desc'
  266. };
  267. exports.Prisma.QueryMode = {
  268. default: 'default',
  269. insensitive: 'insensitive'
  270. };
  271. exports.Prisma.NullsOrder = {
  272. first: 'first',
  273. last: 'last'
  274. };
  275. exports.WorkspaceTier = exports.$Enums.WorkspaceTier = {
  276. FREE: 'FREE',
  277. PRO: 'PRO'
  278. };
  279. exports.ContributorStatus = exports.$Enums.ContributorStatus = {
  280. INVITED: 'INVITED',
  281. SUBMITTED: 'SUBMITTED',
  282. NOT_SUBMITTED: 'NOT_SUBMITTED'
  283. };
  284. exports.ImpactLevel = exports.$Enums.ImpactLevel = {
  285. FAIBLE: 'FAIBLE',
  286. MODERE: 'MODERE',
  287. ELEVE: 'ELEVE',
  288. CRITIQUE: 'CRITIQUE'
  289. };
  290. exports.Frequency = exports.$Enums.Frequency = {
  291. QUOTIDIENNE: 'QUOTIDIENNE',
  292. HEBDOMADAIRE: 'HEBDOMADAIRE',
  293. MENSUELLE: 'MENSUELLE',
  294. TRIMESTRIELLE: 'TRIMESTRIELLE',
  295. PONCTUELLE: 'PONCTUELLE'
  296. };
  297. exports.IdeaStatus = exports.$Enums.IdeaStatus = {
  298. SUBMITTED: 'SUBMITTED',
  299. IN_REVIEW: 'IN_REVIEW',
  300. ON_AGENDA: 'ON_AGENDA',
  301. IN_PROGRESS: 'IN_PROGRESS',
  302. NOT_PRIORITY: 'NOT_PRIORITY'
  303. };
  304. exports.FeedbackType = exports.$Enums.FeedbackType = {
  305. BUG: 'BUG',
  306. IMPROVEMENT: 'IMPROVEMENT'
  307. };
  308. exports.Prisma.ModelName = {
  309. Workspace: 'Workspace',
  310. ManualRelanceLog: 'ManualRelanceLog',
  311. Contributor: 'Contributor',
  312. Idea: 'Idea',
  313. Post: 'Post',
  314. Account: 'Account',
  315. Session: 'Session',
  316. User: 'User',
  317. VerificationToken: 'VerificationToken',
  318. IdeaAttachment: 'IdeaAttachment',
  319. QualificationQuestion: 'QualificationQuestion',
  320. LibraryCase: 'LibraryCase',
  321. AppFeedback: 'AppFeedback',
  322. ShareLink: 'ShareLink'
  323. };
  324. /**
  325. * This is a stub Prisma Client that will error at runtime if called.
  326. */
  327. class PrismaClient {
  328. constructor() {
  329. return new Proxy(this, {
  330. get(target, prop) {
  331. let message
  332. const runtime = getRuntime()
  333. if (runtime.isEdge) {
  334. message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
  335. - Use Prisma Accelerate: https://pris.ly/d/accelerate
  336. - Use Driver Adapters: https://pris.ly/d/driver-adapters
  337. `;
  338. } else {
  339. message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
  340. }
  341. message += `
  342. If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
  343. throw new Error(message)
  344. }
  345. })
  346. }
  347. }
  348. exports.PrismaClient = PrismaClient
  349. Object.assign(exports, Prisma)