index-browser.js 11 KB

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