@goscribe/server 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/dist/context.d.ts +14 -1
  2. package/dist/context.js +23 -2
  3. package/dist/generated/prisma/client.d.ts +224 -0
  4. package/dist/generated/prisma/client.js +34 -0
  5. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  6. package/dist/generated/prisma/commonInputTypes.js +10 -0
  7. package/dist/generated/prisma/enums.d.ts +67 -0
  8. package/dist/generated/prisma/enums.js +66 -0
  9. package/dist/generated/prisma/internal/class.d.ts +539 -0
  10. package/dist/generated/prisma/internal/class.js +49 -0
  11. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  12. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  13. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  14. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  15. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  16. package/dist/generated/prisma/models/Artifact.js +1 -0
  17. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  18. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  19. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  20. package/dist/generated/prisma/models/Channel.js +1 -0
  21. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  22. package/dist/generated/prisma/models/Chat.js +1 -0
  23. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  24. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  25. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  26. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  27. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  28. package/dist/generated/prisma/models/FileAsset.js +1 -0
  29. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  30. package/dist/generated/prisma/models/Flashcard.js +1 -0
  31. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  32. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  33. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  34. package/dist/generated/prisma/models/Folder.js +1 -0
  35. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  36. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  37. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  38. package/dist/generated/prisma/models/Invoice.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  40. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  43. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  44. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  45. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  46. package/dist/generated/prisma/models/Notification.js +1 -0
  47. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  48. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  49. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  50. package/dist/generated/prisma/models/Plan.js +1 -0
  51. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  52. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  53. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  54. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  55. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  56. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  57. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  58. package/dist/generated/prisma/models/Role.js +1 -0
  59. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  60. package/dist/generated/prisma/models/Session.js +1 -0
  61. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  62. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  64. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  65. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  66. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  67. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  68. package/dist/generated/prisma/models/Subscription.js +1 -0
  69. package/dist/generated/prisma/models/User.d.ts +7559 -0
  70. package/dist/generated/prisma/models/User.js +1 -0
  71. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  72. package/dist/generated/prisma/models/UserCredit.js +1 -0
  73. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  74. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  76. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  78. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  79. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  80. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  81. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  82. package/dist/generated/prisma/models/Workspace.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  84. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  86. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  87. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  88. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  89. package/dist/generated/prisma/models.d.ts +39 -0
  90. package/dist/generated/prisma/models.js +1 -0
  91. package/dist/lib/ai/index.d.ts +3 -2
  92. package/dist/lib/ai/index.js +3 -2
  93. package/dist/lib/ai/llm-client.d.ts +1 -0
  94. package/dist/lib/ai/llm-client.js +17 -0
  95. package/dist/routers/_app.d.ts +40 -80
  96. package/dist/routers/auth.js +1 -1
  97. package/dist/routers/flashcards.d.ts +12 -1
  98. package/dist/routers/payment.d.ts +1 -12
  99. package/dist/routers/workspace.d.ts +27 -67
  100. package/dist/routers/workspace.js +1 -0
  101. package/dist/services/billing/payment.service.d.ts +1 -12
  102. package/dist/services/billing/payment.service.js +3 -6
  103. package/dist/services/billing/usage.service.d.ts +30 -10
  104. package/dist/services/billing/usage.service.js +87 -15
  105. package/dist/services/content/copilot.service.js +15 -29
  106. package/dist/services/content/flashcard-progress.service.js +9 -9
  107. package/dist/services/content/flashcard.service.d.ts +45 -1
  108. package/dist/services/content/flashcard.service.js +81 -68
  109. package/dist/services/content/media-analysis.service.js +27 -27
  110. package/dist/services/content/worksheet-generation.service.test.js +2 -2
  111. package/dist/services/workspace/workspace.service.d.ts +23 -67
  112. package/dist/services/workspace/workspace.service.js +69 -62
  113. package/dist/src/context.d.ts +27 -0
  114. package/dist/src/context.js +33 -0
  115. package/dist/src/index.d.ts +3 -0
  116. package/dist/src/index.js +1 -0
  117. package/dist/src/lib/ai/config.d.ts +20 -0
  118. package/dist/src/lib/ai/config.js +31 -0
  119. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  120. package/dist/src/lib/ai/embedding-client.js +30 -0
  121. package/dist/src/lib/ai/index.d.ts +48 -0
  122. package/dist/src/lib/ai/index.js +29 -0
  123. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  124. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  125. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  126. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  127. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  128. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  129. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  130. package/dist/src/lib/ai/json-parse.js +34 -0
  131. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  132. package/dist/src/lib/ai/llm-client.js +36 -0
  133. package/dist/src/lib/ai/mock.d.ts +2 -0
  134. package/dist/src/lib/ai/mock.js +10 -0
  135. package/dist/src/lib/ai/types.d.ts +9 -0
  136. package/dist/src/lib/ai/types.js +1 -0
  137. package/dist/src/lib/auth.d.ts +36 -0
  138. package/dist/src/lib/auth.js +117 -0
  139. package/dist/src/lib/chunking.d.ts +19 -0
  140. package/dist/src/lib/chunking.js +47 -0
  141. package/dist/src/lib/constants.d.ts +13 -0
  142. package/dist/src/lib/constants.js +12 -0
  143. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  144. package/dist/src/lib/curated-kb-seed.js +155 -0
  145. package/dist/src/lib/email.d.ts +11 -0
  146. package/dist/src/lib/email.js +152 -0
  147. package/dist/src/lib/embeddings.d.ts +2 -0
  148. package/dist/src/lib/embeddings.js +1 -0
  149. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  150. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  151. package/dist/src/lib/env.d.ts +41 -0
  152. package/dist/src/lib/env.js +57 -0
  153. package/dist/src/lib/errors.d.ts +33 -0
  154. package/dist/src/lib/errors.js +78 -0
  155. package/dist/src/lib/file.d.ts +0 -0
  156. package/dist/src/lib/file.js +1 -0
  157. package/dist/src/lib/inference.d.ts +1 -0
  158. package/dist/src/lib/inference.js +1 -0
  159. package/dist/src/lib/kb-meta.d.ts +8 -0
  160. package/dist/src/lib/kb-meta.js +77 -0
  161. package/dist/src/lib/logger.d.ts +62 -0
  162. package/dist/src/lib/logger.js +364 -0
  163. package/dist/src/lib/pdf.d.ts +11 -0
  164. package/dist/src/lib/pdf.js +11 -0
  165. package/dist/src/lib/prisma.d.ts +3 -0
  166. package/dist/src/lib/prisma.js +15 -0
  167. package/dist/src/lib/pusher.d.ts +38 -0
  168. package/dist/src/lib/pusher.js +170 -0
  169. package/dist/src/lib/retry.d.ts +15 -0
  170. package/dist/src/lib/retry.js +37 -0
  171. package/dist/src/lib/storage.d.ts +11 -0
  172. package/dist/src/lib/storage.js +71 -0
  173. package/dist/src/lib/stripe.d.ts +10 -0
  174. package/dist/src/lib/stripe.js +36 -0
  175. package/dist/src/lib/validation.d.ts +51 -0
  176. package/dist/src/lib/validation.js +64 -0
  177. package/dist/src/lib/workspace-kb.d.ts +5 -0
  178. package/dist/src/lib/workspace-kb.js +7 -0
  179. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  180. package/dist/src/repositories/artifact.repository.js +40 -0
  181. package/dist/src/repositories/base.repository.d.ts +14 -0
  182. package/dist/src/repositories/base.repository.js +14 -0
  183. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  184. package/dist/src/repositories/invitation.repository.js +44 -0
  185. package/dist/src/repositories/notification.repository.d.ts +76 -0
  186. package/dist/src/repositories/notification.repository.js +44 -0
  187. package/dist/src/repositories/user.repository.d.ts +84 -0
  188. package/dist/src/repositories/user.repository.js +37 -0
  189. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  190. package/dist/src/repositories/workspace-member.repository.js +31 -0
  191. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  192. package/dist/src/repositories/workspace.repository.js +79 -0
  193. package/dist/src/routers/_app.d.ts +3464 -0
  194. package/dist/src/routers/_app.js +36 -0
  195. package/dist/src/routers/admin.d.ts +358 -0
  196. package/dist/src/routers/admin.js +105 -0
  197. package/dist/src/routers/annotations.d.ts +219 -0
  198. package/dist/src/routers/annotations.js +29 -0
  199. package/dist/src/routers/artifactVersions.d.ts +65 -0
  200. package/dist/src/routers/artifactVersions.js +14 -0
  201. package/dist/src/routers/auth.d.ts +161 -0
  202. package/dist/src/routers/auth.js +97 -0
  203. package/dist/src/routers/chat.d.ts +170 -0
  204. package/dist/src/routers/chat.js +32 -0
  205. package/dist/src/routers/copilot.d.ts +200 -0
  206. package/dist/src/routers/copilot.js +52 -0
  207. package/dist/src/routers/flashcards.d.ts +336 -0
  208. package/dist/src/routers/flashcards.js +93 -0
  209. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  210. package/dist/src/routers/knowledgeBase.js +118 -0
  211. package/dist/src/routers/members.d.ts +169 -0
  212. package/dist/src/routers/members.js +47 -0
  213. package/dist/src/routers/notifications.d.ts +99 -0
  214. package/dist/src/routers/notifications.js +25 -0
  215. package/dist/src/routers/payment.d.ts +80 -0
  216. package/dist/src/routers/payment.js +21 -0
  217. package/dist/src/routers/podcast.d.ts +287 -0
  218. package/dist/src/routers/podcast.js +34 -0
  219. package/dist/src/routers/studyguide.d.ts +36 -0
  220. package/dist/src/routers/studyguide.js +8 -0
  221. package/dist/src/routers/worksheets.d.ts +429 -0
  222. package/dist/src/routers/worksheets.js +139 -0
  223. package/dist/src/routers/workspace.d.ts +563 -0
  224. package/dist/src/routers/workspace.js +104 -0
  225. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  226. package/dist/src/scripts/purge-deleted-users.js +148 -0
  227. package/dist/src/server.d.ts +1 -0
  228. package/dist/src/server.js +190 -0
  229. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  230. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  231. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  232. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  233. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  234. package/dist/src/services/activity/activity-log.service.js +276 -0
  235. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  236. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  237. package/dist/src/services/admin/admin.service.d.ts +270 -0
  238. package/dist/src/services/admin/admin.service.js +476 -0
  239. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  240. package/dist/src/services/ai/ai-session.service.js +4 -0
  241. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  242. package/dist/src/services/artifacts/annotation.service.js +154 -0
  243. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  244. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  245. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  246. package/dist/src/services/artifacts/chat.service.js +182 -0
  247. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  248. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  249. package/dist/src/services/auth/auth.service.d.ts +94 -0
  250. package/dist/src/services/auth/auth.service.js +368 -0
  251. package/dist/src/services/base.service.d.ts +14 -0
  252. package/dist/src/services/base.service.js +14 -0
  253. package/dist/src/services/billing/payment.service.d.ts +44 -0
  254. package/dist/src/services/billing/payment.service.js +365 -0
  255. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  256. package/dist/src/services/billing/subscription.service.js +654 -0
  257. package/dist/src/services/billing/usage.service.d.ts +47 -0
  258. package/dist/src/services/billing/usage.service.js +149 -0
  259. package/dist/src/services/content/copilot.service.d.ts +113 -0
  260. package/dist/src/services/content/copilot.service.js +439 -0
  261. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  262. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  263. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  264. package/dist/src/services/content/flashcard.service.js +339 -0
  265. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  266. package/dist/src/services/content/media-analysis.service.js +404 -0
  267. package/dist/src/services/content/podcast.service.d.ts +267 -0
  268. package/dist/src/services/content/podcast.service.js +653 -0
  269. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  270. package/dist/src/services/content/worksheet-content.service.js +84 -0
  271. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  272. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  273. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  274. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  275. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  276. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  277. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  278. package/dist/src/services/content/worksheet.service.js +599 -0
  279. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  280. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  281. package/dist/src/services/members/invitation.service.d.ts +66 -0
  282. package/dist/src/services/members/invitation.service.js +348 -0
  283. package/dist/src/services/members/member.service.d.ts +36 -0
  284. package/dist/src/services/members/member.service.js +193 -0
  285. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  286. package/dist/src/services/notifications/notification.service.js +550 -0
  287. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  288. package/dist/src/services/notifications/notification.service.test.js +87 -0
  289. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  290. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  291. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  292. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  293. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  294. package/dist/src/services/workspace/workspace.service.js +401 -0
  295. package/dist/src/trpc.d.ts +60 -0
  296. package/dist/src/trpc.js +217 -0
  297. package/dist/src/types/index.d.ts +126 -0
  298. package/dist/src/types/index.js +1 -0
  299. package/dist/trpc.d.ts +12 -4
  300. package/dist/trpc.js +5 -11
  301. package/package.json +8 -9
  302. package/prisma/schema.prisma +3 -4
  303. package/prisma/seed.mjs +5 -2
  304. package/prisma.config.ts +16 -0
  305. package/src/context.ts +33 -3
  306. package/src/lib/ai/index.ts +3 -0
  307. package/src/lib/ai/llm-client.ts +23 -0
  308. package/src/lib/prisma.ts +18 -9
  309. package/src/routers/auth.ts +1 -1
  310. package/src/routers/workspace.ts +4 -0
  311. package/src/scripts/purge-deleted-users.ts +1 -3
  312. package/src/services/billing/payment.service.ts +3 -6
  313. package/src/services/billing/usage.service.ts +190 -77
  314. package/src/services/content/copilot.service.ts +23 -32
  315. package/src/services/content/flashcard-progress.service.ts +12 -9
  316. package/src/services/content/flashcard.service.ts +89 -66
  317. package/src/services/content/media-analysis.service.ts +34 -29
  318. package/src/services/content/worksheet-generation.service.test.ts +2 -2
  319. package/src/services/workspace/workspace.service.ts +73 -66
  320. package/src/trpc.ts +5 -13
  321. package/tsconfig.json +3 -0
@@ -0,0 +1,1491 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums";
3
+ import type * as Prisma from "../internal/prismaNamespace";
4
+ /**
5
+ * Model WorksheetQuestion
6
+ *
7
+ */
8
+ export type WorksheetQuestionModel = runtime.Types.Result.DefaultSelection<Prisma.$WorksheetQuestionPayload>;
9
+ export type AggregateWorksheetQuestion = {
10
+ _count: WorksheetQuestionCountAggregateOutputType | null;
11
+ _avg: WorksheetQuestionAvgAggregateOutputType | null;
12
+ _sum: WorksheetQuestionSumAggregateOutputType | null;
13
+ _min: WorksheetQuestionMinAggregateOutputType | null;
14
+ _max: WorksheetQuestionMaxAggregateOutputType | null;
15
+ };
16
+ export type WorksheetQuestionAvgAggregateOutputType = {
17
+ order: number | null;
18
+ };
19
+ export type WorksheetQuestionSumAggregateOutputType = {
20
+ order: number | null;
21
+ };
22
+ export type WorksheetQuestionMinAggregateOutputType = {
23
+ id: string | null;
24
+ artifactId: string | null;
25
+ prompt: string | null;
26
+ answer: string | null;
27
+ type: $Enums.QuestionType | null;
28
+ difficulty: $Enums.Difficulty | null;
29
+ order: number | null;
30
+ createdAt: Date | null;
31
+ };
32
+ export type WorksheetQuestionMaxAggregateOutputType = {
33
+ id: string | null;
34
+ artifactId: string | null;
35
+ prompt: string | null;
36
+ answer: string | null;
37
+ type: $Enums.QuestionType | null;
38
+ difficulty: $Enums.Difficulty | null;
39
+ order: number | null;
40
+ createdAt: Date | null;
41
+ };
42
+ export type WorksheetQuestionCountAggregateOutputType = {
43
+ id: number;
44
+ artifactId: number;
45
+ prompt: number;
46
+ answer: number;
47
+ type: number;
48
+ difficulty: number;
49
+ order: number;
50
+ meta: number;
51
+ createdAt: number;
52
+ _all: number;
53
+ };
54
+ export type WorksheetQuestionAvgAggregateInputType = {
55
+ order?: true;
56
+ };
57
+ export type WorksheetQuestionSumAggregateInputType = {
58
+ order?: true;
59
+ };
60
+ export type WorksheetQuestionMinAggregateInputType = {
61
+ id?: true;
62
+ artifactId?: true;
63
+ prompt?: true;
64
+ answer?: true;
65
+ type?: true;
66
+ difficulty?: true;
67
+ order?: true;
68
+ createdAt?: true;
69
+ };
70
+ export type WorksheetQuestionMaxAggregateInputType = {
71
+ id?: true;
72
+ artifactId?: true;
73
+ prompt?: true;
74
+ answer?: true;
75
+ type?: true;
76
+ difficulty?: true;
77
+ order?: true;
78
+ createdAt?: true;
79
+ };
80
+ export type WorksheetQuestionCountAggregateInputType = {
81
+ id?: true;
82
+ artifactId?: true;
83
+ prompt?: true;
84
+ answer?: true;
85
+ type?: true;
86
+ difficulty?: true;
87
+ order?: true;
88
+ meta?: true;
89
+ createdAt?: true;
90
+ _all?: true;
91
+ };
92
+ export type WorksheetQuestionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
93
+ /**
94
+ * Filter which WorksheetQuestion to aggregate.
95
+ */
96
+ where?: Prisma.WorksheetQuestionWhereInput;
97
+ /**
98
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
99
+ *
100
+ * Determine the order of WorksheetQuestions to fetch.
101
+ */
102
+ orderBy?: Prisma.WorksheetQuestionOrderByWithRelationInput | Prisma.WorksheetQuestionOrderByWithRelationInput[];
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
105
+ *
106
+ * Sets the start position
107
+ */
108
+ cursor?: Prisma.WorksheetQuestionWhereUniqueInput;
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
111
+ *
112
+ * Take `±n` WorksheetQuestions from the position of the cursor.
113
+ */
114
+ take?: number;
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
117
+ *
118
+ * Skip the first `n` WorksheetQuestions.
119
+ */
120
+ skip?: number;
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
123
+ *
124
+ * Count returned WorksheetQuestions
125
+ **/
126
+ _count?: true | WorksheetQuestionCountAggregateInputType;
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
129
+ *
130
+ * Select which fields to average
131
+ **/
132
+ _avg?: WorksheetQuestionAvgAggregateInputType;
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
135
+ *
136
+ * Select which fields to sum
137
+ **/
138
+ _sum?: WorksheetQuestionSumAggregateInputType;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Select which fields to find the minimum value
143
+ **/
144
+ _min?: WorksheetQuestionMinAggregateInputType;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the maximum value
149
+ **/
150
+ _max?: WorksheetQuestionMaxAggregateInputType;
151
+ };
152
+ export type GetWorksheetQuestionAggregateType<T extends WorksheetQuestionAggregateArgs> = {
153
+ [P in keyof T & keyof AggregateWorksheetQuestion]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateWorksheetQuestion[P]> : Prisma.GetScalarType<T[P], AggregateWorksheetQuestion[P]>;
154
+ };
155
+ export type WorksheetQuestionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
156
+ where?: Prisma.WorksheetQuestionWhereInput;
157
+ orderBy?: Prisma.WorksheetQuestionOrderByWithAggregationInput | Prisma.WorksheetQuestionOrderByWithAggregationInput[];
158
+ by: Prisma.WorksheetQuestionScalarFieldEnum[] | Prisma.WorksheetQuestionScalarFieldEnum;
159
+ having?: Prisma.WorksheetQuestionScalarWhereWithAggregatesInput;
160
+ take?: number;
161
+ skip?: number;
162
+ _count?: WorksheetQuestionCountAggregateInputType | true;
163
+ _avg?: WorksheetQuestionAvgAggregateInputType;
164
+ _sum?: WorksheetQuestionSumAggregateInputType;
165
+ _min?: WorksheetQuestionMinAggregateInputType;
166
+ _max?: WorksheetQuestionMaxAggregateInputType;
167
+ };
168
+ export type WorksheetQuestionGroupByOutputType = {
169
+ id: string;
170
+ artifactId: string;
171
+ prompt: string;
172
+ answer: string | null;
173
+ type: $Enums.QuestionType;
174
+ difficulty: $Enums.Difficulty;
175
+ order: number;
176
+ meta: runtime.JsonValue | null;
177
+ createdAt: Date;
178
+ _count: WorksheetQuestionCountAggregateOutputType | null;
179
+ _avg: WorksheetQuestionAvgAggregateOutputType | null;
180
+ _sum: WorksheetQuestionSumAggregateOutputType | null;
181
+ _min: WorksheetQuestionMinAggregateOutputType | null;
182
+ _max: WorksheetQuestionMaxAggregateOutputType | null;
183
+ };
184
+ export type GetWorksheetQuestionGroupByPayload<T extends WorksheetQuestionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<WorksheetQuestionGroupByOutputType, T['by']> & {
185
+ [P in ((keyof T) & (keyof WorksheetQuestionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], WorksheetQuestionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], WorksheetQuestionGroupByOutputType[P]>;
186
+ }>>;
187
+ export type WorksheetQuestionWhereInput = {
188
+ AND?: Prisma.WorksheetQuestionWhereInput | Prisma.WorksheetQuestionWhereInput[];
189
+ OR?: Prisma.WorksheetQuestionWhereInput[];
190
+ NOT?: Prisma.WorksheetQuestionWhereInput | Prisma.WorksheetQuestionWhereInput[];
191
+ id?: Prisma.StringFilter<"WorksheetQuestion"> | string;
192
+ artifactId?: Prisma.StringFilter<"WorksheetQuestion"> | string;
193
+ prompt?: Prisma.StringFilter<"WorksheetQuestion"> | string;
194
+ answer?: Prisma.StringNullableFilter<"WorksheetQuestion"> | string | null;
195
+ type?: Prisma.EnumQuestionTypeFilter<"WorksheetQuestion"> | $Enums.QuestionType;
196
+ difficulty?: Prisma.EnumDifficultyFilter<"WorksheetQuestion"> | $Enums.Difficulty;
197
+ order?: Prisma.IntFilter<"WorksheetQuestion"> | number;
198
+ meta?: Prisma.JsonNullableFilter<"WorksheetQuestion">;
199
+ createdAt?: Prisma.DateTimeFilter<"WorksheetQuestion"> | Date | string;
200
+ artifact?: Prisma.XOR<Prisma.ArtifactScalarRelationFilter, Prisma.ArtifactWhereInput>;
201
+ progress?: Prisma.WorksheetQuestionProgressListRelationFilter;
202
+ };
203
+ export type WorksheetQuestionOrderByWithRelationInput = {
204
+ id?: Prisma.SortOrder;
205
+ artifactId?: Prisma.SortOrder;
206
+ prompt?: Prisma.SortOrder;
207
+ answer?: Prisma.SortOrderInput | Prisma.SortOrder;
208
+ type?: Prisma.SortOrder;
209
+ difficulty?: Prisma.SortOrder;
210
+ order?: Prisma.SortOrder;
211
+ meta?: Prisma.SortOrderInput | Prisma.SortOrder;
212
+ createdAt?: Prisma.SortOrder;
213
+ artifact?: Prisma.ArtifactOrderByWithRelationInput;
214
+ progress?: Prisma.WorksheetQuestionProgressOrderByRelationAggregateInput;
215
+ };
216
+ export type WorksheetQuestionWhereUniqueInput = Prisma.AtLeast<{
217
+ id?: string;
218
+ AND?: Prisma.WorksheetQuestionWhereInput | Prisma.WorksheetQuestionWhereInput[];
219
+ OR?: Prisma.WorksheetQuestionWhereInput[];
220
+ NOT?: Prisma.WorksheetQuestionWhereInput | Prisma.WorksheetQuestionWhereInput[];
221
+ artifactId?: Prisma.StringFilter<"WorksheetQuestion"> | string;
222
+ prompt?: Prisma.StringFilter<"WorksheetQuestion"> | string;
223
+ answer?: Prisma.StringNullableFilter<"WorksheetQuestion"> | string | null;
224
+ type?: Prisma.EnumQuestionTypeFilter<"WorksheetQuestion"> | $Enums.QuestionType;
225
+ difficulty?: Prisma.EnumDifficultyFilter<"WorksheetQuestion"> | $Enums.Difficulty;
226
+ order?: Prisma.IntFilter<"WorksheetQuestion"> | number;
227
+ meta?: Prisma.JsonNullableFilter<"WorksheetQuestion">;
228
+ createdAt?: Prisma.DateTimeFilter<"WorksheetQuestion"> | Date | string;
229
+ artifact?: Prisma.XOR<Prisma.ArtifactScalarRelationFilter, Prisma.ArtifactWhereInput>;
230
+ progress?: Prisma.WorksheetQuestionProgressListRelationFilter;
231
+ }, "id">;
232
+ export type WorksheetQuestionOrderByWithAggregationInput = {
233
+ id?: Prisma.SortOrder;
234
+ artifactId?: Prisma.SortOrder;
235
+ prompt?: Prisma.SortOrder;
236
+ answer?: Prisma.SortOrderInput | Prisma.SortOrder;
237
+ type?: Prisma.SortOrder;
238
+ difficulty?: Prisma.SortOrder;
239
+ order?: Prisma.SortOrder;
240
+ meta?: Prisma.SortOrderInput | Prisma.SortOrder;
241
+ createdAt?: Prisma.SortOrder;
242
+ _count?: Prisma.WorksheetQuestionCountOrderByAggregateInput;
243
+ _avg?: Prisma.WorksheetQuestionAvgOrderByAggregateInput;
244
+ _max?: Prisma.WorksheetQuestionMaxOrderByAggregateInput;
245
+ _min?: Prisma.WorksheetQuestionMinOrderByAggregateInput;
246
+ _sum?: Prisma.WorksheetQuestionSumOrderByAggregateInput;
247
+ };
248
+ export type WorksheetQuestionScalarWhereWithAggregatesInput = {
249
+ AND?: Prisma.WorksheetQuestionScalarWhereWithAggregatesInput | Prisma.WorksheetQuestionScalarWhereWithAggregatesInput[];
250
+ OR?: Prisma.WorksheetQuestionScalarWhereWithAggregatesInput[];
251
+ NOT?: Prisma.WorksheetQuestionScalarWhereWithAggregatesInput | Prisma.WorksheetQuestionScalarWhereWithAggregatesInput[];
252
+ id?: Prisma.StringWithAggregatesFilter<"WorksheetQuestion"> | string;
253
+ artifactId?: Prisma.StringWithAggregatesFilter<"WorksheetQuestion"> | string;
254
+ prompt?: Prisma.StringWithAggregatesFilter<"WorksheetQuestion"> | string;
255
+ answer?: Prisma.StringNullableWithAggregatesFilter<"WorksheetQuestion"> | string | null;
256
+ type?: Prisma.EnumQuestionTypeWithAggregatesFilter<"WorksheetQuestion"> | $Enums.QuestionType;
257
+ difficulty?: Prisma.EnumDifficultyWithAggregatesFilter<"WorksheetQuestion"> | $Enums.Difficulty;
258
+ order?: Prisma.IntWithAggregatesFilter<"WorksheetQuestion"> | number;
259
+ meta?: Prisma.JsonNullableWithAggregatesFilter<"WorksheetQuestion">;
260
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"WorksheetQuestion"> | Date | string;
261
+ };
262
+ export type WorksheetQuestionCreateInput = {
263
+ id?: string;
264
+ prompt: string;
265
+ answer?: string | null;
266
+ type?: $Enums.QuestionType;
267
+ difficulty?: $Enums.Difficulty;
268
+ order?: number;
269
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
270
+ createdAt?: Date | string;
271
+ artifact: Prisma.ArtifactCreateNestedOneWithoutQuestionsInput;
272
+ progress?: Prisma.WorksheetQuestionProgressCreateNestedManyWithoutWorksheetQuestionInput;
273
+ };
274
+ export type WorksheetQuestionUncheckedCreateInput = {
275
+ id?: string;
276
+ artifactId: string;
277
+ prompt: string;
278
+ answer?: string | null;
279
+ type?: $Enums.QuestionType;
280
+ difficulty?: $Enums.Difficulty;
281
+ order?: number;
282
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
283
+ createdAt?: Date | string;
284
+ progress?: Prisma.WorksheetQuestionProgressUncheckedCreateNestedManyWithoutWorksheetQuestionInput;
285
+ };
286
+ export type WorksheetQuestionUpdateInput = {
287
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
289
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
290
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
291
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
292
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
293
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
294
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
295
+ artifact?: Prisma.ArtifactUpdateOneRequiredWithoutQuestionsNestedInput;
296
+ progress?: Prisma.WorksheetQuestionProgressUpdateManyWithoutWorksheetQuestionNestedInput;
297
+ };
298
+ export type WorksheetQuestionUncheckedUpdateInput = {
299
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
301
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
302
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
303
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
304
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
305
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
306
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
307
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
308
+ progress?: Prisma.WorksheetQuestionProgressUncheckedUpdateManyWithoutWorksheetQuestionNestedInput;
309
+ };
310
+ export type WorksheetQuestionCreateManyInput = {
311
+ id?: string;
312
+ artifactId: string;
313
+ prompt: string;
314
+ answer?: string | null;
315
+ type?: $Enums.QuestionType;
316
+ difficulty?: $Enums.Difficulty;
317
+ order?: number;
318
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
319
+ createdAt?: Date | string;
320
+ };
321
+ export type WorksheetQuestionUpdateManyMutationInput = {
322
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
325
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
326
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
327
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
328
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
329
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
330
+ };
331
+ export type WorksheetQuestionUncheckedUpdateManyInput = {
332
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
333
+ artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
336
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
337
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
338
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
339
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
340
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
341
+ };
342
+ export type WorksheetQuestionListRelationFilter = {
343
+ every?: Prisma.WorksheetQuestionWhereInput;
344
+ some?: Prisma.WorksheetQuestionWhereInput;
345
+ none?: Prisma.WorksheetQuestionWhereInput;
346
+ };
347
+ export type WorksheetQuestionOrderByRelationAggregateInput = {
348
+ _count?: Prisma.SortOrder;
349
+ };
350
+ export type WorksheetQuestionCountOrderByAggregateInput = {
351
+ id?: Prisma.SortOrder;
352
+ artifactId?: Prisma.SortOrder;
353
+ prompt?: Prisma.SortOrder;
354
+ answer?: Prisma.SortOrder;
355
+ type?: Prisma.SortOrder;
356
+ difficulty?: Prisma.SortOrder;
357
+ order?: Prisma.SortOrder;
358
+ meta?: Prisma.SortOrder;
359
+ createdAt?: Prisma.SortOrder;
360
+ };
361
+ export type WorksheetQuestionAvgOrderByAggregateInput = {
362
+ order?: Prisma.SortOrder;
363
+ };
364
+ export type WorksheetQuestionMaxOrderByAggregateInput = {
365
+ id?: Prisma.SortOrder;
366
+ artifactId?: Prisma.SortOrder;
367
+ prompt?: Prisma.SortOrder;
368
+ answer?: Prisma.SortOrder;
369
+ type?: Prisma.SortOrder;
370
+ difficulty?: Prisma.SortOrder;
371
+ order?: Prisma.SortOrder;
372
+ createdAt?: Prisma.SortOrder;
373
+ };
374
+ export type WorksheetQuestionMinOrderByAggregateInput = {
375
+ id?: Prisma.SortOrder;
376
+ artifactId?: Prisma.SortOrder;
377
+ prompt?: Prisma.SortOrder;
378
+ answer?: Prisma.SortOrder;
379
+ type?: Prisma.SortOrder;
380
+ difficulty?: Prisma.SortOrder;
381
+ order?: Prisma.SortOrder;
382
+ createdAt?: Prisma.SortOrder;
383
+ };
384
+ export type WorksheetQuestionSumOrderByAggregateInput = {
385
+ order?: Prisma.SortOrder;
386
+ };
387
+ export type WorksheetQuestionScalarRelationFilter = {
388
+ is?: Prisma.WorksheetQuestionWhereInput;
389
+ isNot?: Prisma.WorksheetQuestionWhereInput;
390
+ };
391
+ export type WorksheetQuestionCreateNestedManyWithoutArtifactInput = {
392
+ create?: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutArtifactInput, Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput> | Prisma.WorksheetQuestionCreateWithoutArtifactInput[] | Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput[];
393
+ connectOrCreate?: Prisma.WorksheetQuestionCreateOrConnectWithoutArtifactInput | Prisma.WorksheetQuestionCreateOrConnectWithoutArtifactInput[];
394
+ createMany?: Prisma.WorksheetQuestionCreateManyArtifactInputEnvelope;
395
+ connect?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
396
+ };
397
+ export type WorksheetQuestionUncheckedCreateNestedManyWithoutArtifactInput = {
398
+ create?: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutArtifactInput, Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput> | Prisma.WorksheetQuestionCreateWithoutArtifactInput[] | Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput[];
399
+ connectOrCreate?: Prisma.WorksheetQuestionCreateOrConnectWithoutArtifactInput | Prisma.WorksheetQuestionCreateOrConnectWithoutArtifactInput[];
400
+ createMany?: Prisma.WorksheetQuestionCreateManyArtifactInputEnvelope;
401
+ connect?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
402
+ };
403
+ export type WorksheetQuestionUpdateManyWithoutArtifactNestedInput = {
404
+ create?: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutArtifactInput, Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput> | Prisma.WorksheetQuestionCreateWithoutArtifactInput[] | Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput[];
405
+ connectOrCreate?: Prisma.WorksheetQuestionCreateOrConnectWithoutArtifactInput | Prisma.WorksheetQuestionCreateOrConnectWithoutArtifactInput[];
406
+ upsert?: Prisma.WorksheetQuestionUpsertWithWhereUniqueWithoutArtifactInput | Prisma.WorksheetQuestionUpsertWithWhereUniqueWithoutArtifactInput[];
407
+ createMany?: Prisma.WorksheetQuestionCreateManyArtifactInputEnvelope;
408
+ set?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
409
+ disconnect?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
410
+ delete?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
411
+ connect?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
412
+ update?: Prisma.WorksheetQuestionUpdateWithWhereUniqueWithoutArtifactInput | Prisma.WorksheetQuestionUpdateWithWhereUniqueWithoutArtifactInput[];
413
+ updateMany?: Prisma.WorksheetQuestionUpdateManyWithWhereWithoutArtifactInput | Prisma.WorksheetQuestionUpdateManyWithWhereWithoutArtifactInput[];
414
+ deleteMany?: Prisma.WorksheetQuestionScalarWhereInput | Prisma.WorksheetQuestionScalarWhereInput[];
415
+ };
416
+ export type WorksheetQuestionUncheckedUpdateManyWithoutArtifactNestedInput = {
417
+ create?: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutArtifactInput, Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput> | Prisma.WorksheetQuestionCreateWithoutArtifactInput[] | Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput[];
418
+ connectOrCreate?: Prisma.WorksheetQuestionCreateOrConnectWithoutArtifactInput | Prisma.WorksheetQuestionCreateOrConnectWithoutArtifactInput[];
419
+ upsert?: Prisma.WorksheetQuestionUpsertWithWhereUniqueWithoutArtifactInput | Prisma.WorksheetQuestionUpsertWithWhereUniqueWithoutArtifactInput[];
420
+ createMany?: Prisma.WorksheetQuestionCreateManyArtifactInputEnvelope;
421
+ set?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
422
+ disconnect?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
423
+ delete?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
424
+ connect?: Prisma.WorksheetQuestionWhereUniqueInput | Prisma.WorksheetQuestionWhereUniqueInput[];
425
+ update?: Prisma.WorksheetQuestionUpdateWithWhereUniqueWithoutArtifactInput | Prisma.WorksheetQuestionUpdateWithWhereUniqueWithoutArtifactInput[];
426
+ updateMany?: Prisma.WorksheetQuestionUpdateManyWithWhereWithoutArtifactInput | Prisma.WorksheetQuestionUpdateManyWithWhereWithoutArtifactInput[];
427
+ deleteMany?: Prisma.WorksheetQuestionScalarWhereInput | Prisma.WorksheetQuestionScalarWhereInput[];
428
+ };
429
+ export type EnumQuestionTypeFieldUpdateOperationsInput = {
430
+ set?: $Enums.QuestionType;
431
+ };
432
+ export type EnumDifficultyFieldUpdateOperationsInput = {
433
+ set?: $Enums.Difficulty;
434
+ };
435
+ export type WorksheetQuestionCreateNestedOneWithoutProgressInput = {
436
+ create?: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutProgressInput, Prisma.WorksheetQuestionUncheckedCreateWithoutProgressInput>;
437
+ connectOrCreate?: Prisma.WorksheetQuestionCreateOrConnectWithoutProgressInput;
438
+ connect?: Prisma.WorksheetQuestionWhereUniqueInput;
439
+ };
440
+ export type WorksheetQuestionUpdateOneRequiredWithoutProgressNestedInput = {
441
+ create?: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutProgressInput, Prisma.WorksheetQuestionUncheckedCreateWithoutProgressInput>;
442
+ connectOrCreate?: Prisma.WorksheetQuestionCreateOrConnectWithoutProgressInput;
443
+ upsert?: Prisma.WorksheetQuestionUpsertWithoutProgressInput;
444
+ connect?: Prisma.WorksheetQuestionWhereUniqueInput;
445
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorksheetQuestionUpdateToOneWithWhereWithoutProgressInput, Prisma.WorksheetQuestionUpdateWithoutProgressInput>, Prisma.WorksheetQuestionUncheckedUpdateWithoutProgressInput>;
446
+ };
447
+ export type WorksheetQuestionCreateWithoutArtifactInput = {
448
+ id?: string;
449
+ prompt: string;
450
+ answer?: string | null;
451
+ type?: $Enums.QuestionType;
452
+ difficulty?: $Enums.Difficulty;
453
+ order?: number;
454
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
455
+ createdAt?: Date | string;
456
+ progress?: Prisma.WorksheetQuestionProgressCreateNestedManyWithoutWorksheetQuestionInput;
457
+ };
458
+ export type WorksheetQuestionUncheckedCreateWithoutArtifactInput = {
459
+ id?: string;
460
+ prompt: string;
461
+ answer?: string | null;
462
+ type?: $Enums.QuestionType;
463
+ difficulty?: $Enums.Difficulty;
464
+ order?: number;
465
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
466
+ createdAt?: Date | string;
467
+ progress?: Prisma.WorksheetQuestionProgressUncheckedCreateNestedManyWithoutWorksheetQuestionInput;
468
+ };
469
+ export type WorksheetQuestionCreateOrConnectWithoutArtifactInput = {
470
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
471
+ create: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutArtifactInput, Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput>;
472
+ };
473
+ export type WorksheetQuestionCreateManyArtifactInputEnvelope = {
474
+ data: Prisma.WorksheetQuestionCreateManyArtifactInput | Prisma.WorksheetQuestionCreateManyArtifactInput[];
475
+ skipDuplicates?: boolean;
476
+ };
477
+ export type WorksheetQuestionUpsertWithWhereUniqueWithoutArtifactInput = {
478
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
479
+ update: Prisma.XOR<Prisma.WorksheetQuestionUpdateWithoutArtifactInput, Prisma.WorksheetQuestionUncheckedUpdateWithoutArtifactInput>;
480
+ create: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutArtifactInput, Prisma.WorksheetQuestionUncheckedCreateWithoutArtifactInput>;
481
+ };
482
+ export type WorksheetQuestionUpdateWithWhereUniqueWithoutArtifactInput = {
483
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
484
+ data: Prisma.XOR<Prisma.WorksheetQuestionUpdateWithoutArtifactInput, Prisma.WorksheetQuestionUncheckedUpdateWithoutArtifactInput>;
485
+ };
486
+ export type WorksheetQuestionUpdateManyWithWhereWithoutArtifactInput = {
487
+ where: Prisma.WorksheetQuestionScalarWhereInput;
488
+ data: Prisma.XOR<Prisma.WorksheetQuestionUpdateManyMutationInput, Prisma.WorksheetQuestionUncheckedUpdateManyWithoutArtifactInput>;
489
+ };
490
+ export type WorksheetQuestionScalarWhereInput = {
491
+ AND?: Prisma.WorksheetQuestionScalarWhereInput | Prisma.WorksheetQuestionScalarWhereInput[];
492
+ OR?: Prisma.WorksheetQuestionScalarWhereInput[];
493
+ NOT?: Prisma.WorksheetQuestionScalarWhereInput | Prisma.WorksheetQuestionScalarWhereInput[];
494
+ id?: Prisma.StringFilter<"WorksheetQuestion"> | string;
495
+ artifactId?: Prisma.StringFilter<"WorksheetQuestion"> | string;
496
+ prompt?: Prisma.StringFilter<"WorksheetQuestion"> | string;
497
+ answer?: Prisma.StringNullableFilter<"WorksheetQuestion"> | string | null;
498
+ type?: Prisma.EnumQuestionTypeFilter<"WorksheetQuestion"> | $Enums.QuestionType;
499
+ difficulty?: Prisma.EnumDifficultyFilter<"WorksheetQuestion"> | $Enums.Difficulty;
500
+ order?: Prisma.IntFilter<"WorksheetQuestion"> | number;
501
+ meta?: Prisma.JsonNullableFilter<"WorksheetQuestion">;
502
+ createdAt?: Prisma.DateTimeFilter<"WorksheetQuestion"> | Date | string;
503
+ };
504
+ export type WorksheetQuestionCreateWithoutProgressInput = {
505
+ id?: string;
506
+ prompt: string;
507
+ answer?: string | null;
508
+ type?: $Enums.QuestionType;
509
+ difficulty?: $Enums.Difficulty;
510
+ order?: number;
511
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
512
+ createdAt?: Date | string;
513
+ artifact: Prisma.ArtifactCreateNestedOneWithoutQuestionsInput;
514
+ };
515
+ export type WorksheetQuestionUncheckedCreateWithoutProgressInput = {
516
+ id?: string;
517
+ artifactId: string;
518
+ prompt: string;
519
+ answer?: string | null;
520
+ type?: $Enums.QuestionType;
521
+ difficulty?: $Enums.Difficulty;
522
+ order?: number;
523
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
524
+ createdAt?: Date | string;
525
+ };
526
+ export type WorksheetQuestionCreateOrConnectWithoutProgressInput = {
527
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
528
+ create: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutProgressInput, Prisma.WorksheetQuestionUncheckedCreateWithoutProgressInput>;
529
+ };
530
+ export type WorksheetQuestionUpsertWithoutProgressInput = {
531
+ update: Prisma.XOR<Prisma.WorksheetQuestionUpdateWithoutProgressInput, Prisma.WorksheetQuestionUncheckedUpdateWithoutProgressInput>;
532
+ create: Prisma.XOR<Prisma.WorksheetQuestionCreateWithoutProgressInput, Prisma.WorksheetQuestionUncheckedCreateWithoutProgressInput>;
533
+ where?: Prisma.WorksheetQuestionWhereInput;
534
+ };
535
+ export type WorksheetQuestionUpdateToOneWithWhereWithoutProgressInput = {
536
+ where?: Prisma.WorksheetQuestionWhereInput;
537
+ data: Prisma.XOR<Prisma.WorksheetQuestionUpdateWithoutProgressInput, Prisma.WorksheetQuestionUncheckedUpdateWithoutProgressInput>;
538
+ };
539
+ export type WorksheetQuestionUpdateWithoutProgressInput = {
540
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
541
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
542
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
543
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
544
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
545
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
546
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
547
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
548
+ artifact?: Prisma.ArtifactUpdateOneRequiredWithoutQuestionsNestedInput;
549
+ };
550
+ export type WorksheetQuestionUncheckedUpdateWithoutProgressInput = {
551
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
552
+ artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
553
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
554
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
555
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
556
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
557
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
558
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
559
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
560
+ };
561
+ export type WorksheetQuestionCreateManyArtifactInput = {
562
+ id?: string;
563
+ prompt: string;
564
+ answer?: string | null;
565
+ type?: $Enums.QuestionType;
566
+ difficulty?: $Enums.Difficulty;
567
+ order?: number;
568
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
569
+ createdAt?: Date | string;
570
+ };
571
+ export type WorksheetQuestionUpdateWithoutArtifactInput = {
572
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
573
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
574
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
575
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
576
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
577
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
578
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
579
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
580
+ progress?: Prisma.WorksheetQuestionProgressUpdateManyWithoutWorksheetQuestionNestedInput;
581
+ };
582
+ export type WorksheetQuestionUncheckedUpdateWithoutArtifactInput = {
583
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
584
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
585
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
586
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
587
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
588
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
589
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
590
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
591
+ progress?: Prisma.WorksheetQuestionProgressUncheckedUpdateManyWithoutWorksheetQuestionNestedInput;
592
+ };
593
+ export type WorksheetQuestionUncheckedUpdateManyWithoutArtifactInput = {
594
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
595
+ prompt?: Prisma.StringFieldUpdateOperationsInput | string;
596
+ answer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
597
+ type?: Prisma.EnumQuestionTypeFieldUpdateOperationsInput | $Enums.QuestionType;
598
+ difficulty?: Prisma.EnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty;
599
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
600
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
601
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
602
+ };
603
+ /**
604
+ * Count Type WorksheetQuestionCountOutputType
605
+ */
606
+ export type WorksheetQuestionCountOutputType = {
607
+ progress: number;
608
+ };
609
+ export type WorksheetQuestionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
610
+ progress?: boolean | WorksheetQuestionCountOutputTypeCountProgressArgs;
611
+ };
612
+ /**
613
+ * WorksheetQuestionCountOutputType without action
614
+ */
615
+ export type WorksheetQuestionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
616
+ /**
617
+ * Select specific fields to fetch from the WorksheetQuestionCountOutputType
618
+ */
619
+ select?: Prisma.WorksheetQuestionCountOutputTypeSelect<ExtArgs> | null;
620
+ };
621
+ /**
622
+ * WorksheetQuestionCountOutputType without action
623
+ */
624
+ export type WorksheetQuestionCountOutputTypeCountProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
625
+ where?: Prisma.WorksheetQuestionProgressWhereInput;
626
+ };
627
+ export type WorksheetQuestionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
628
+ id?: boolean;
629
+ artifactId?: boolean;
630
+ prompt?: boolean;
631
+ answer?: boolean;
632
+ type?: boolean;
633
+ difficulty?: boolean;
634
+ order?: boolean;
635
+ meta?: boolean;
636
+ createdAt?: boolean;
637
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
638
+ progress?: boolean | Prisma.WorksheetQuestion$progressArgs<ExtArgs>;
639
+ _count?: boolean | Prisma.WorksheetQuestionCountOutputTypeDefaultArgs<ExtArgs>;
640
+ }, ExtArgs["result"]["worksheetQuestion"]>;
641
+ export type WorksheetQuestionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
642
+ id?: boolean;
643
+ artifactId?: boolean;
644
+ prompt?: boolean;
645
+ answer?: boolean;
646
+ type?: boolean;
647
+ difficulty?: boolean;
648
+ order?: boolean;
649
+ meta?: boolean;
650
+ createdAt?: boolean;
651
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
652
+ }, ExtArgs["result"]["worksheetQuestion"]>;
653
+ export type WorksheetQuestionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
654
+ id?: boolean;
655
+ artifactId?: boolean;
656
+ prompt?: boolean;
657
+ answer?: boolean;
658
+ type?: boolean;
659
+ difficulty?: boolean;
660
+ order?: boolean;
661
+ meta?: boolean;
662
+ createdAt?: boolean;
663
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
664
+ }, ExtArgs["result"]["worksheetQuestion"]>;
665
+ export type WorksheetQuestionSelectScalar = {
666
+ id?: boolean;
667
+ artifactId?: boolean;
668
+ prompt?: boolean;
669
+ answer?: boolean;
670
+ type?: boolean;
671
+ difficulty?: boolean;
672
+ order?: boolean;
673
+ meta?: boolean;
674
+ createdAt?: boolean;
675
+ };
676
+ export type WorksheetQuestionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "artifactId" | "prompt" | "answer" | "type" | "difficulty" | "order" | "meta" | "createdAt", ExtArgs["result"]["worksheetQuestion"]>;
677
+ export type WorksheetQuestionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
678
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
679
+ progress?: boolean | Prisma.WorksheetQuestion$progressArgs<ExtArgs>;
680
+ _count?: boolean | Prisma.WorksheetQuestionCountOutputTypeDefaultArgs<ExtArgs>;
681
+ };
682
+ export type WorksheetQuestionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
683
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
684
+ };
685
+ export type WorksheetQuestionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
686
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
687
+ };
688
+ export type $WorksheetQuestionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
689
+ name: "WorksheetQuestion";
690
+ objects: {
691
+ artifact: Prisma.$ArtifactPayload<ExtArgs>;
692
+ progress: Prisma.$WorksheetQuestionProgressPayload<ExtArgs>[];
693
+ };
694
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
695
+ id: string;
696
+ artifactId: string;
697
+ prompt: string;
698
+ answer: string | null;
699
+ type: $Enums.QuestionType;
700
+ difficulty: $Enums.Difficulty;
701
+ order: number;
702
+ meta: runtime.JsonValue | null;
703
+ createdAt: Date;
704
+ }, ExtArgs["result"]["worksheetQuestion"]>;
705
+ composites: {};
706
+ };
707
+ export type WorksheetQuestionGetPayload<S extends boolean | null | undefined | WorksheetQuestionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload, S>;
708
+ export type WorksheetQuestionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<WorksheetQuestionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
709
+ select?: WorksheetQuestionCountAggregateInputType | true;
710
+ };
711
+ export interface WorksheetQuestionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
712
+ [K: symbol]: {
713
+ types: Prisma.TypeMap<ExtArgs>['model']['WorksheetQuestion'];
714
+ meta: {
715
+ name: 'WorksheetQuestion';
716
+ };
717
+ };
718
+ /**
719
+ * Find zero or one WorksheetQuestion that matches the filter.
720
+ * @param {WorksheetQuestionFindUniqueArgs} args - Arguments to find a WorksheetQuestion
721
+ * @example
722
+ * // Get one WorksheetQuestion
723
+ * const worksheetQuestion = await prisma.worksheetQuestion.findUnique({
724
+ * where: {
725
+ * // ... provide filter here
726
+ * }
727
+ * })
728
+ */
729
+ findUnique<T extends WorksheetQuestionFindUniqueArgs>(args: Prisma.SelectSubset<T, WorksheetQuestionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorksheetQuestionClient<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
730
+ /**
731
+ * Find one WorksheetQuestion that matches the filter or throw an error with `error.code='P2025'`
732
+ * if no matches were found.
733
+ * @param {WorksheetQuestionFindUniqueOrThrowArgs} args - Arguments to find a WorksheetQuestion
734
+ * @example
735
+ * // Get one WorksheetQuestion
736
+ * const worksheetQuestion = await prisma.worksheetQuestion.findUniqueOrThrow({
737
+ * where: {
738
+ * // ... provide filter here
739
+ * }
740
+ * })
741
+ */
742
+ findUniqueOrThrow<T extends WorksheetQuestionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorksheetQuestionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorksheetQuestionClient<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
743
+ /**
744
+ * Find the first WorksheetQuestion that matches the filter.
745
+ * Note, that providing `undefined` is treated as the value not being there.
746
+ * Read more here: https://pris.ly/d/null-undefined
747
+ * @param {WorksheetQuestionFindFirstArgs} args - Arguments to find a WorksheetQuestion
748
+ * @example
749
+ * // Get one WorksheetQuestion
750
+ * const worksheetQuestion = await prisma.worksheetQuestion.findFirst({
751
+ * where: {
752
+ * // ... provide filter here
753
+ * }
754
+ * })
755
+ */
756
+ findFirst<T extends WorksheetQuestionFindFirstArgs>(args?: Prisma.SelectSubset<T, WorksheetQuestionFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorksheetQuestionClient<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
757
+ /**
758
+ * Find the first WorksheetQuestion that matches the filter or
759
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
760
+ * Note, that providing `undefined` is treated as the value not being there.
761
+ * Read more here: https://pris.ly/d/null-undefined
762
+ * @param {WorksheetQuestionFindFirstOrThrowArgs} args - Arguments to find a WorksheetQuestion
763
+ * @example
764
+ * // Get one WorksheetQuestion
765
+ * const worksheetQuestion = await prisma.worksheetQuestion.findFirstOrThrow({
766
+ * where: {
767
+ * // ... provide filter here
768
+ * }
769
+ * })
770
+ */
771
+ findFirstOrThrow<T extends WorksheetQuestionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorksheetQuestionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorksheetQuestionClient<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
772
+ /**
773
+ * Find zero or more WorksheetQuestions that matches the filter.
774
+ * Note, that providing `undefined` is treated as the value not being there.
775
+ * Read more here: https://pris.ly/d/null-undefined
776
+ * @param {WorksheetQuestionFindManyArgs} args - Arguments to filter and select certain fields only.
777
+ * @example
778
+ * // Get all WorksheetQuestions
779
+ * const worksheetQuestions = await prisma.worksheetQuestion.findMany()
780
+ *
781
+ * // Get first 10 WorksheetQuestions
782
+ * const worksheetQuestions = await prisma.worksheetQuestion.findMany({ take: 10 })
783
+ *
784
+ * // Only select the `id`
785
+ * const worksheetQuestionWithIdOnly = await prisma.worksheetQuestion.findMany({ select: { id: true } })
786
+ *
787
+ */
788
+ findMany<T extends WorksheetQuestionFindManyArgs>(args?: Prisma.SelectSubset<T, WorksheetQuestionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
789
+ /**
790
+ * Create a WorksheetQuestion.
791
+ * @param {WorksheetQuestionCreateArgs} args - Arguments to create a WorksheetQuestion.
792
+ * @example
793
+ * // Create one WorksheetQuestion
794
+ * const WorksheetQuestion = await prisma.worksheetQuestion.create({
795
+ * data: {
796
+ * // ... data to create a WorksheetQuestion
797
+ * }
798
+ * })
799
+ *
800
+ */
801
+ create<T extends WorksheetQuestionCreateArgs>(args: Prisma.SelectSubset<T, WorksheetQuestionCreateArgs<ExtArgs>>): Prisma.Prisma__WorksheetQuestionClient<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
802
+ /**
803
+ * Create many WorksheetQuestions.
804
+ * @param {WorksheetQuestionCreateManyArgs} args - Arguments to create many WorksheetQuestions.
805
+ * @example
806
+ * // Create many WorksheetQuestions
807
+ * const worksheetQuestion = await prisma.worksheetQuestion.createMany({
808
+ * data: [
809
+ * // ... provide data here
810
+ * ]
811
+ * })
812
+ *
813
+ */
814
+ createMany<T extends WorksheetQuestionCreateManyArgs>(args?: Prisma.SelectSubset<T, WorksheetQuestionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
815
+ /**
816
+ * Create many WorksheetQuestions and returns the data saved in the database.
817
+ * @param {WorksheetQuestionCreateManyAndReturnArgs} args - Arguments to create many WorksheetQuestions.
818
+ * @example
819
+ * // Create many WorksheetQuestions
820
+ * const worksheetQuestion = await prisma.worksheetQuestion.createManyAndReturn({
821
+ * data: [
822
+ * // ... provide data here
823
+ * ]
824
+ * })
825
+ *
826
+ * // Create many WorksheetQuestions and only return the `id`
827
+ * const worksheetQuestionWithIdOnly = await prisma.worksheetQuestion.createManyAndReturn({
828
+ * select: { id: true },
829
+ * data: [
830
+ * // ... provide data here
831
+ * ]
832
+ * })
833
+ * Note, that providing `undefined` is treated as the value not being there.
834
+ * Read more here: https://pris.ly/d/null-undefined
835
+ *
836
+ */
837
+ createManyAndReturn<T extends WorksheetQuestionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorksheetQuestionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
838
+ /**
839
+ * Delete a WorksheetQuestion.
840
+ * @param {WorksheetQuestionDeleteArgs} args - Arguments to delete one WorksheetQuestion.
841
+ * @example
842
+ * // Delete one WorksheetQuestion
843
+ * const WorksheetQuestion = await prisma.worksheetQuestion.delete({
844
+ * where: {
845
+ * // ... filter to delete one WorksheetQuestion
846
+ * }
847
+ * })
848
+ *
849
+ */
850
+ delete<T extends WorksheetQuestionDeleteArgs>(args: Prisma.SelectSubset<T, WorksheetQuestionDeleteArgs<ExtArgs>>): Prisma.Prisma__WorksheetQuestionClient<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
851
+ /**
852
+ * Update one WorksheetQuestion.
853
+ * @param {WorksheetQuestionUpdateArgs} args - Arguments to update one WorksheetQuestion.
854
+ * @example
855
+ * // Update one WorksheetQuestion
856
+ * const worksheetQuestion = await prisma.worksheetQuestion.update({
857
+ * where: {
858
+ * // ... provide filter here
859
+ * },
860
+ * data: {
861
+ * // ... provide data here
862
+ * }
863
+ * })
864
+ *
865
+ */
866
+ update<T extends WorksheetQuestionUpdateArgs>(args: Prisma.SelectSubset<T, WorksheetQuestionUpdateArgs<ExtArgs>>): Prisma.Prisma__WorksheetQuestionClient<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
867
+ /**
868
+ * Delete zero or more WorksheetQuestions.
869
+ * @param {WorksheetQuestionDeleteManyArgs} args - Arguments to filter WorksheetQuestions to delete.
870
+ * @example
871
+ * // Delete a few WorksheetQuestions
872
+ * const { count } = await prisma.worksheetQuestion.deleteMany({
873
+ * where: {
874
+ * // ... provide filter here
875
+ * }
876
+ * })
877
+ *
878
+ */
879
+ deleteMany<T extends WorksheetQuestionDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorksheetQuestionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
880
+ /**
881
+ * Update zero or more WorksheetQuestions.
882
+ * Note, that providing `undefined` is treated as the value not being there.
883
+ * Read more here: https://pris.ly/d/null-undefined
884
+ * @param {WorksheetQuestionUpdateManyArgs} args - Arguments to update one or more rows.
885
+ * @example
886
+ * // Update many WorksheetQuestions
887
+ * const worksheetQuestion = await prisma.worksheetQuestion.updateMany({
888
+ * where: {
889
+ * // ... provide filter here
890
+ * },
891
+ * data: {
892
+ * // ... provide data here
893
+ * }
894
+ * })
895
+ *
896
+ */
897
+ updateMany<T extends WorksheetQuestionUpdateManyArgs>(args: Prisma.SelectSubset<T, WorksheetQuestionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
898
+ /**
899
+ * Update zero or more WorksheetQuestions and returns the data updated in the database.
900
+ * @param {WorksheetQuestionUpdateManyAndReturnArgs} args - Arguments to update many WorksheetQuestions.
901
+ * @example
902
+ * // Update many WorksheetQuestions
903
+ * const worksheetQuestion = await prisma.worksheetQuestion.updateManyAndReturn({
904
+ * where: {
905
+ * // ... provide filter here
906
+ * },
907
+ * data: [
908
+ * // ... provide data here
909
+ * ]
910
+ * })
911
+ *
912
+ * // Update zero or more WorksheetQuestions and only return the `id`
913
+ * const worksheetQuestionWithIdOnly = await prisma.worksheetQuestion.updateManyAndReturn({
914
+ * select: { id: true },
915
+ * where: {
916
+ * // ... provide filter here
917
+ * },
918
+ * data: [
919
+ * // ... provide data here
920
+ * ]
921
+ * })
922
+ * Note, that providing `undefined` is treated as the value not being there.
923
+ * Read more here: https://pris.ly/d/null-undefined
924
+ *
925
+ */
926
+ updateManyAndReturn<T extends WorksheetQuestionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorksheetQuestionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
927
+ /**
928
+ * Create or update one WorksheetQuestion.
929
+ * @param {WorksheetQuestionUpsertArgs} args - Arguments to update or create a WorksheetQuestion.
930
+ * @example
931
+ * // Update or create a WorksheetQuestion
932
+ * const worksheetQuestion = await prisma.worksheetQuestion.upsert({
933
+ * create: {
934
+ * // ... data to create a WorksheetQuestion
935
+ * },
936
+ * update: {
937
+ * // ... in case it already exists, update
938
+ * },
939
+ * where: {
940
+ * // ... the filter for the WorksheetQuestion we want to update
941
+ * }
942
+ * })
943
+ */
944
+ upsert<T extends WorksheetQuestionUpsertArgs>(args: Prisma.SelectSubset<T, WorksheetQuestionUpsertArgs<ExtArgs>>): Prisma.Prisma__WorksheetQuestionClient<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
945
+ /**
946
+ * Count the number of WorksheetQuestions.
947
+ * Note, that providing `undefined` is treated as the value not being there.
948
+ * Read more here: https://pris.ly/d/null-undefined
949
+ * @param {WorksheetQuestionCountArgs} args - Arguments to filter WorksheetQuestions to count.
950
+ * @example
951
+ * // Count the number of WorksheetQuestions
952
+ * const count = await prisma.worksheetQuestion.count({
953
+ * where: {
954
+ * // ... the filter for the WorksheetQuestions we want to count
955
+ * }
956
+ * })
957
+ **/
958
+ count<T extends WorksheetQuestionCountArgs>(args?: Prisma.Subset<T, WorksheetQuestionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], WorksheetQuestionCountAggregateOutputType> : number>;
959
+ /**
960
+ * Allows you to perform aggregations operations on a WorksheetQuestion.
961
+ * Note, that providing `undefined` is treated as the value not being there.
962
+ * Read more here: https://pris.ly/d/null-undefined
963
+ * @param {WorksheetQuestionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
964
+ * @example
965
+ * // Ordered by age ascending
966
+ * // Where email contains prisma.io
967
+ * // Limited to the 10 users
968
+ * const aggregations = await prisma.user.aggregate({
969
+ * _avg: {
970
+ * age: true,
971
+ * },
972
+ * where: {
973
+ * email: {
974
+ * contains: "prisma.io",
975
+ * },
976
+ * },
977
+ * orderBy: {
978
+ * age: "asc",
979
+ * },
980
+ * take: 10,
981
+ * })
982
+ **/
983
+ aggregate<T extends WorksheetQuestionAggregateArgs>(args: Prisma.Subset<T, WorksheetQuestionAggregateArgs>): Prisma.PrismaPromise<GetWorksheetQuestionAggregateType<T>>;
984
+ /**
985
+ * Group by WorksheetQuestion.
986
+ * Note, that providing `undefined` is treated as the value not being there.
987
+ * Read more here: https://pris.ly/d/null-undefined
988
+ * @param {WorksheetQuestionGroupByArgs} args - Group by arguments.
989
+ * @example
990
+ * // Group by city, order by createdAt, get count
991
+ * const result = await prisma.user.groupBy({
992
+ * by: ['city', 'createdAt'],
993
+ * orderBy: {
994
+ * createdAt: true
995
+ * },
996
+ * _count: {
997
+ * _all: true
998
+ * },
999
+ * })
1000
+ *
1001
+ **/
1002
+ groupBy<T extends WorksheetQuestionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1003
+ orderBy: WorksheetQuestionGroupByArgs['orderBy'];
1004
+ } : {
1005
+ orderBy?: WorksheetQuestionGroupByArgs['orderBy'];
1006
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1007
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1008
+ Error,
1009
+ 'Field ',
1010
+ P,
1011
+ ` in "having" needs to be provided in "by"`
1012
+ ];
1013
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1014
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1015
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1016
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1017
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1018
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1019
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, WorksheetQuestionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorksheetQuestionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1020
+ /**
1021
+ * Fields of the WorksheetQuestion model
1022
+ */
1023
+ readonly fields: WorksheetQuestionFieldRefs;
1024
+ }
1025
+ /**
1026
+ * The delegate class that acts as a "Promise-like" for WorksheetQuestion.
1027
+ * Why is this prefixed with `Prisma__`?
1028
+ * Because we want to prevent naming conflicts as mentioned in
1029
+ * https://github.com/prisma/prisma-client-js/issues/707
1030
+ */
1031
+ export interface Prisma__WorksheetQuestionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1032
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1033
+ artifact<T extends Prisma.ArtifactDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ArtifactDefaultArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1034
+ progress<T extends Prisma.WorksheetQuestion$progressArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorksheetQuestion$progressArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1035
+ /**
1036
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1037
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1038
+ * @param onrejected The callback to execute when the Promise is rejected.
1039
+ * @returns A Promise for the completion of which ever callback is executed.
1040
+ */
1041
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
1042
+ /**
1043
+ * Attaches a callback for only the rejection of the Promise.
1044
+ * @param onrejected The callback to execute when the Promise is rejected.
1045
+ * @returns A Promise for the completion of the callback.
1046
+ */
1047
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1048
+ /**
1049
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1050
+ * resolved value cannot be modified from the callback.
1051
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1052
+ * @returns A Promise for the completion of the callback.
1053
+ */
1054
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1055
+ }
1056
+ /**
1057
+ * Fields of the WorksheetQuestion model
1058
+ */
1059
+ export interface WorksheetQuestionFieldRefs {
1060
+ readonly id: Prisma.FieldRef<"WorksheetQuestion", 'String'>;
1061
+ readonly artifactId: Prisma.FieldRef<"WorksheetQuestion", 'String'>;
1062
+ readonly prompt: Prisma.FieldRef<"WorksheetQuestion", 'String'>;
1063
+ readonly answer: Prisma.FieldRef<"WorksheetQuestion", 'String'>;
1064
+ readonly type: Prisma.FieldRef<"WorksheetQuestion", 'QuestionType'>;
1065
+ readonly difficulty: Prisma.FieldRef<"WorksheetQuestion", 'Difficulty'>;
1066
+ readonly order: Prisma.FieldRef<"WorksheetQuestion", 'Int'>;
1067
+ readonly meta: Prisma.FieldRef<"WorksheetQuestion", 'Json'>;
1068
+ readonly createdAt: Prisma.FieldRef<"WorksheetQuestion", 'DateTime'>;
1069
+ }
1070
+ /**
1071
+ * WorksheetQuestion findUnique
1072
+ */
1073
+ export type WorksheetQuestionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1074
+ /**
1075
+ * Select specific fields to fetch from the WorksheetQuestion
1076
+ */
1077
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1078
+ /**
1079
+ * Omit specific fields from the WorksheetQuestion
1080
+ */
1081
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1082
+ /**
1083
+ * Choose, which related nodes to fetch as well
1084
+ */
1085
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1086
+ /**
1087
+ * Filter, which WorksheetQuestion to fetch.
1088
+ */
1089
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
1090
+ };
1091
+ /**
1092
+ * WorksheetQuestion findUniqueOrThrow
1093
+ */
1094
+ export type WorksheetQuestionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1095
+ /**
1096
+ * Select specific fields to fetch from the WorksheetQuestion
1097
+ */
1098
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1099
+ /**
1100
+ * Omit specific fields from the WorksheetQuestion
1101
+ */
1102
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1103
+ /**
1104
+ * Choose, which related nodes to fetch as well
1105
+ */
1106
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1107
+ /**
1108
+ * Filter, which WorksheetQuestion to fetch.
1109
+ */
1110
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
1111
+ };
1112
+ /**
1113
+ * WorksheetQuestion findFirst
1114
+ */
1115
+ export type WorksheetQuestionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1116
+ /**
1117
+ * Select specific fields to fetch from the WorksheetQuestion
1118
+ */
1119
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1120
+ /**
1121
+ * Omit specific fields from the WorksheetQuestion
1122
+ */
1123
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1124
+ /**
1125
+ * Choose, which related nodes to fetch as well
1126
+ */
1127
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1128
+ /**
1129
+ * Filter, which WorksheetQuestion to fetch.
1130
+ */
1131
+ where?: Prisma.WorksheetQuestionWhereInput;
1132
+ /**
1133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1134
+ *
1135
+ * Determine the order of WorksheetQuestions to fetch.
1136
+ */
1137
+ orderBy?: Prisma.WorksheetQuestionOrderByWithRelationInput | Prisma.WorksheetQuestionOrderByWithRelationInput[];
1138
+ /**
1139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1140
+ *
1141
+ * Sets the position for searching for WorksheetQuestions.
1142
+ */
1143
+ cursor?: Prisma.WorksheetQuestionWhereUniqueInput;
1144
+ /**
1145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1146
+ *
1147
+ * Take `±n` WorksheetQuestions from the position of the cursor.
1148
+ */
1149
+ take?: number;
1150
+ /**
1151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1152
+ *
1153
+ * Skip the first `n` WorksheetQuestions.
1154
+ */
1155
+ skip?: number;
1156
+ /**
1157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1158
+ *
1159
+ * Filter by unique combinations of WorksheetQuestions.
1160
+ */
1161
+ distinct?: Prisma.WorksheetQuestionScalarFieldEnum | Prisma.WorksheetQuestionScalarFieldEnum[];
1162
+ };
1163
+ /**
1164
+ * WorksheetQuestion findFirstOrThrow
1165
+ */
1166
+ export type WorksheetQuestionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1167
+ /**
1168
+ * Select specific fields to fetch from the WorksheetQuestion
1169
+ */
1170
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1171
+ /**
1172
+ * Omit specific fields from the WorksheetQuestion
1173
+ */
1174
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1175
+ /**
1176
+ * Choose, which related nodes to fetch as well
1177
+ */
1178
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1179
+ /**
1180
+ * Filter, which WorksheetQuestion to fetch.
1181
+ */
1182
+ where?: Prisma.WorksheetQuestionWhereInput;
1183
+ /**
1184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1185
+ *
1186
+ * Determine the order of WorksheetQuestions to fetch.
1187
+ */
1188
+ orderBy?: Prisma.WorksheetQuestionOrderByWithRelationInput | Prisma.WorksheetQuestionOrderByWithRelationInput[];
1189
+ /**
1190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1191
+ *
1192
+ * Sets the position for searching for WorksheetQuestions.
1193
+ */
1194
+ cursor?: Prisma.WorksheetQuestionWhereUniqueInput;
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1197
+ *
1198
+ * Take `±n` WorksheetQuestions from the position of the cursor.
1199
+ */
1200
+ take?: number;
1201
+ /**
1202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1203
+ *
1204
+ * Skip the first `n` WorksheetQuestions.
1205
+ */
1206
+ skip?: number;
1207
+ /**
1208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1209
+ *
1210
+ * Filter by unique combinations of WorksheetQuestions.
1211
+ */
1212
+ distinct?: Prisma.WorksheetQuestionScalarFieldEnum | Prisma.WorksheetQuestionScalarFieldEnum[];
1213
+ };
1214
+ /**
1215
+ * WorksheetQuestion findMany
1216
+ */
1217
+ export type WorksheetQuestionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1218
+ /**
1219
+ * Select specific fields to fetch from the WorksheetQuestion
1220
+ */
1221
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1222
+ /**
1223
+ * Omit specific fields from the WorksheetQuestion
1224
+ */
1225
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1226
+ /**
1227
+ * Choose, which related nodes to fetch as well
1228
+ */
1229
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1230
+ /**
1231
+ * Filter, which WorksheetQuestions to fetch.
1232
+ */
1233
+ where?: Prisma.WorksheetQuestionWhereInput;
1234
+ /**
1235
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1236
+ *
1237
+ * Determine the order of WorksheetQuestions to fetch.
1238
+ */
1239
+ orderBy?: Prisma.WorksheetQuestionOrderByWithRelationInput | Prisma.WorksheetQuestionOrderByWithRelationInput[];
1240
+ /**
1241
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1242
+ *
1243
+ * Sets the position for listing WorksheetQuestions.
1244
+ */
1245
+ cursor?: Prisma.WorksheetQuestionWhereUniqueInput;
1246
+ /**
1247
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1248
+ *
1249
+ * Take `±n` WorksheetQuestions from the position of the cursor.
1250
+ */
1251
+ take?: number;
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1254
+ *
1255
+ * Skip the first `n` WorksheetQuestions.
1256
+ */
1257
+ skip?: number;
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1260
+ *
1261
+ * Filter by unique combinations of WorksheetQuestions.
1262
+ */
1263
+ distinct?: Prisma.WorksheetQuestionScalarFieldEnum | Prisma.WorksheetQuestionScalarFieldEnum[];
1264
+ };
1265
+ /**
1266
+ * WorksheetQuestion create
1267
+ */
1268
+ export type WorksheetQuestionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1269
+ /**
1270
+ * Select specific fields to fetch from the WorksheetQuestion
1271
+ */
1272
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1273
+ /**
1274
+ * Omit specific fields from the WorksheetQuestion
1275
+ */
1276
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1277
+ /**
1278
+ * Choose, which related nodes to fetch as well
1279
+ */
1280
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1281
+ /**
1282
+ * The data needed to create a WorksheetQuestion.
1283
+ */
1284
+ data: Prisma.XOR<Prisma.WorksheetQuestionCreateInput, Prisma.WorksheetQuestionUncheckedCreateInput>;
1285
+ };
1286
+ /**
1287
+ * WorksheetQuestion createMany
1288
+ */
1289
+ export type WorksheetQuestionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1290
+ /**
1291
+ * The data used to create many WorksheetQuestions.
1292
+ */
1293
+ data: Prisma.WorksheetQuestionCreateManyInput | Prisma.WorksheetQuestionCreateManyInput[];
1294
+ skipDuplicates?: boolean;
1295
+ };
1296
+ /**
1297
+ * WorksheetQuestion createManyAndReturn
1298
+ */
1299
+ export type WorksheetQuestionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1300
+ /**
1301
+ * Select specific fields to fetch from the WorksheetQuestion
1302
+ */
1303
+ select?: Prisma.WorksheetQuestionSelectCreateManyAndReturn<ExtArgs> | null;
1304
+ /**
1305
+ * Omit specific fields from the WorksheetQuestion
1306
+ */
1307
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1308
+ /**
1309
+ * The data used to create many WorksheetQuestions.
1310
+ */
1311
+ data: Prisma.WorksheetQuestionCreateManyInput | Prisma.WorksheetQuestionCreateManyInput[];
1312
+ skipDuplicates?: boolean;
1313
+ /**
1314
+ * Choose, which related nodes to fetch as well
1315
+ */
1316
+ include?: Prisma.WorksheetQuestionIncludeCreateManyAndReturn<ExtArgs> | null;
1317
+ };
1318
+ /**
1319
+ * WorksheetQuestion update
1320
+ */
1321
+ export type WorksheetQuestionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
+ /**
1323
+ * Select specific fields to fetch from the WorksheetQuestion
1324
+ */
1325
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1326
+ /**
1327
+ * Omit specific fields from the WorksheetQuestion
1328
+ */
1329
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1330
+ /**
1331
+ * Choose, which related nodes to fetch as well
1332
+ */
1333
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1334
+ /**
1335
+ * The data needed to update a WorksheetQuestion.
1336
+ */
1337
+ data: Prisma.XOR<Prisma.WorksheetQuestionUpdateInput, Prisma.WorksheetQuestionUncheckedUpdateInput>;
1338
+ /**
1339
+ * Choose, which WorksheetQuestion to update.
1340
+ */
1341
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
1342
+ };
1343
+ /**
1344
+ * WorksheetQuestion updateMany
1345
+ */
1346
+ export type WorksheetQuestionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1347
+ /**
1348
+ * The data used to update WorksheetQuestions.
1349
+ */
1350
+ data: Prisma.XOR<Prisma.WorksheetQuestionUpdateManyMutationInput, Prisma.WorksheetQuestionUncheckedUpdateManyInput>;
1351
+ /**
1352
+ * Filter which WorksheetQuestions to update
1353
+ */
1354
+ where?: Prisma.WorksheetQuestionWhereInput;
1355
+ /**
1356
+ * Limit how many WorksheetQuestions to update.
1357
+ */
1358
+ limit?: number;
1359
+ };
1360
+ /**
1361
+ * WorksheetQuestion updateManyAndReturn
1362
+ */
1363
+ export type WorksheetQuestionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1364
+ /**
1365
+ * Select specific fields to fetch from the WorksheetQuestion
1366
+ */
1367
+ select?: Prisma.WorksheetQuestionSelectUpdateManyAndReturn<ExtArgs> | null;
1368
+ /**
1369
+ * Omit specific fields from the WorksheetQuestion
1370
+ */
1371
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1372
+ /**
1373
+ * The data used to update WorksheetQuestions.
1374
+ */
1375
+ data: Prisma.XOR<Prisma.WorksheetQuestionUpdateManyMutationInput, Prisma.WorksheetQuestionUncheckedUpdateManyInput>;
1376
+ /**
1377
+ * Filter which WorksheetQuestions to update
1378
+ */
1379
+ where?: Prisma.WorksheetQuestionWhereInput;
1380
+ /**
1381
+ * Limit how many WorksheetQuestions to update.
1382
+ */
1383
+ limit?: number;
1384
+ /**
1385
+ * Choose, which related nodes to fetch as well
1386
+ */
1387
+ include?: Prisma.WorksheetQuestionIncludeUpdateManyAndReturn<ExtArgs> | null;
1388
+ };
1389
+ /**
1390
+ * WorksheetQuestion upsert
1391
+ */
1392
+ export type WorksheetQuestionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1393
+ /**
1394
+ * Select specific fields to fetch from the WorksheetQuestion
1395
+ */
1396
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1397
+ /**
1398
+ * Omit specific fields from the WorksheetQuestion
1399
+ */
1400
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1401
+ /**
1402
+ * Choose, which related nodes to fetch as well
1403
+ */
1404
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1405
+ /**
1406
+ * The filter to search for the WorksheetQuestion to update in case it exists.
1407
+ */
1408
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
1409
+ /**
1410
+ * In case the WorksheetQuestion found by the `where` argument doesn't exist, create a new WorksheetQuestion with this data.
1411
+ */
1412
+ create: Prisma.XOR<Prisma.WorksheetQuestionCreateInput, Prisma.WorksheetQuestionUncheckedCreateInput>;
1413
+ /**
1414
+ * In case the WorksheetQuestion was found with the provided `where` argument, update it with this data.
1415
+ */
1416
+ update: Prisma.XOR<Prisma.WorksheetQuestionUpdateInput, Prisma.WorksheetQuestionUncheckedUpdateInput>;
1417
+ };
1418
+ /**
1419
+ * WorksheetQuestion delete
1420
+ */
1421
+ export type WorksheetQuestionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1422
+ /**
1423
+ * Select specific fields to fetch from the WorksheetQuestion
1424
+ */
1425
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1426
+ /**
1427
+ * Omit specific fields from the WorksheetQuestion
1428
+ */
1429
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1430
+ /**
1431
+ * Choose, which related nodes to fetch as well
1432
+ */
1433
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1434
+ /**
1435
+ * Filter which WorksheetQuestion to delete.
1436
+ */
1437
+ where: Prisma.WorksheetQuestionWhereUniqueInput;
1438
+ };
1439
+ /**
1440
+ * WorksheetQuestion deleteMany
1441
+ */
1442
+ export type WorksheetQuestionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1443
+ /**
1444
+ * Filter which WorksheetQuestions to delete
1445
+ */
1446
+ where?: Prisma.WorksheetQuestionWhereInput;
1447
+ /**
1448
+ * Limit how many WorksheetQuestions to delete.
1449
+ */
1450
+ limit?: number;
1451
+ };
1452
+ /**
1453
+ * WorksheetQuestion.progress
1454
+ */
1455
+ export type WorksheetQuestion$progressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1456
+ /**
1457
+ * Select specific fields to fetch from the WorksheetQuestionProgress
1458
+ */
1459
+ select?: Prisma.WorksheetQuestionProgressSelect<ExtArgs> | null;
1460
+ /**
1461
+ * Omit specific fields from the WorksheetQuestionProgress
1462
+ */
1463
+ omit?: Prisma.WorksheetQuestionProgressOmit<ExtArgs> | null;
1464
+ /**
1465
+ * Choose, which related nodes to fetch as well
1466
+ */
1467
+ include?: Prisma.WorksheetQuestionProgressInclude<ExtArgs> | null;
1468
+ where?: Prisma.WorksheetQuestionProgressWhereInput;
1469
+ orderBy?: Prisma.WorksheetQuestionProgressOrderByWithRelationInput | Prisma.WorksheetQuestionProgressOrderByWithRelationInput[];
1470
+ cursor?: Prisma.WorksheetQuestionProgressWhereUniqueInput;
1471
+ take?: number;
1472
+ skip?: number;
1473
+ distinct?: Prisma.WorksheetQuestionProgressScalarFieldEnum | Prisma.WorksheetQuestionProgressScalarFieldEnum[];
1474
+ };
1475
+ /**
1476
+ * WorksheetQuestion without action
1477
+ */
1478
+ export type WorksheetQuestionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1479
+ /**
1480
+ * Select specific fields to fetch from the WorksheetQuestion
1481
+ */
1482
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
1483
+ /**
1484
+ * Omit specific fields from the WorksheetQuestion
1485
+ */
1486
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
1487
+ /**
1488
+ * Choose, which related nodes to fetch as well
1489
+ */
1490
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
1491
+ };