@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,1008 @@
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 ResourcePrice
6
+ *
7
+ */
8
+ export type ResourcePriceModel = runtime.Types.Result.DefaultSelection<Prisma.$ResourcePricePayload>;
9
+ export type AggregateResourcePrice = {
10
+ _count: ResourcePriceCountAggregateOutputType | null;
11
+ _avg: ResourcePriceAvgAggregateOutputType | null;
12
+ _sum: ResourcePriceSumAggregateOutputType | null;
13
+ _min: ResourcePriceMinAggregateOutputType | null;
14
+ _max: ResourcePriceMaxAggregateOutputType | null;
15
+ };
16
+ export type ResourcePriceAvgAggregateOutputType = {
17
+ priceCents: number | null;
18
+ };
19
+ export type ResourcePriceSumAggregateOutputType = {
20
+ priceCents: number | null;
21
+ };
22
+ export type ResourcePriceMinAggregateOutputType = {
23
+ id: string | null;
24
+ resourceType: $Enums.ArtifactType | null;
25
+ priceCents: number | null;
26
+ updatedAt: Date | null;
27
+ };
28
+ export type ResourcePriceMaxAggregateOutputType = {
29
+ id: string | null;
30
+ resourceType: $Enums.ArtifactType | null;
31
+ priceCents: number | null;
32
+ updatedAt: Date | null;
33
+ };
34
+ export type ResourcePriceCountAggregateOutputType = {
35
+ id: number;
36
+ resourceType: number;
37
+ priceCents: number;
38
+ updatedAt: number;
39
+ _all: number;
40
+ };
41
+ export type ResourcePriceAvgAggregateInputType = {
42
+ priceCents?: true;
43
+ };
44
+ export type ResourcePriceSumAggregateInputType = {
45
+ priceCents?: true;
46
+ };
47
+ export type ResourcePriceMinAggregateInputType = {
48
+ id?: true;
49
+ resourceType?: true;
50
+ priceCents?: true;
51
+ updatedAt?: true;
52
+ };
53
+ export type ResourcePriceMaxAggregateInputType = {
54
+ id?: true;
55
+ resourceType?: true;
56
+ priceCents?: true;
57
+ updatedAt?: true;
58
+ };
59
+ export type ResourcePriceCountAggregateInputType = {
60
+ id?: true;
61
+ resourceType?: true;
62
+ priceCents?: true;
63
+ updatedAt?: true;
64
+ _all?: true;
65
+ };
66
+ export type ResourcePriceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
67
+ /**
68
+ * Filter which ResourcePrice to aggregate.
69
+ */
70
+ where?: Prisma.ResourcePriceWhereInput;
71
+ /**
72
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
73
+ *
74
+ * Determine the order of ResourcePrices to fetch.
75
+ */
76
+ orderBy?: Prisma.ResourcePriceOrderByWithRelationInput | Prisma.ResourcePriceOrderByWithRelationInput[];
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
79
+ *
80
+ * Sets the start position
81
+ */
82
+ cursor?: Prisma.ResourcePriceWhereUniqueInput;
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
85
+ *
86
+ * Take `±n` ResourcePrices from the position of the cursor.
87
+ */
88
+ take?: number;
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Skip the first `n` ResourcePrices.
93
+ */
94
+ skip?: number;
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
97
+ *
98
+ * Count returned ResourcePrices
99
+ **/
100
+ _count?: true | ResourcePriceCountAggregateInputType;
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Select which fields to average
105
+ **/
106
+ _avg?: ResourcePriceAvgAggregateInputType;
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to sum
111
+ **/
112
+ _sum?: ResourcePriceSumAggregateInputType;
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Select which fields to find the minimum value
117
+ **/
118
+ _min?: ResourcePriceMinAggregateInputType;
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Select which fields to find the maximum value
123
+ **/
124
+ _max?: ResourcePriceMaxAggregateInputType;
125
+ };
126
+ export type GetResourcePriceAggregateType<T extends ResourcePriceAggregateArgs> = {
127
+ [P in keyof T & keyof AggregateResourcePrice]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateResourcePrice[P]> : Prisma.GetScalarType<T[P], AggregateResourcePrice[P]>;
128
+ };
129
+ export type ResourcePriceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
130
+ where?: Prisma.ResourcePriceWhereInput;
131
+ orderBy?: Prisma.ResourcePriceOrderByWithAggregationInput | Prisma.ResourcePriceOrderByWithAggregationInput[];
132
+ by: Prisma.ResourcePriceScalarFieldEnum[] | Prisma.ResourcePriceScalarFieldEnum;
133
+ having?: Prisma.ResourcePriceScalarWhereWithAggregatesInput;
134
+ take?: number;
135
+ skip?: number;
136
+ _count?: ResourcePriceCountAggregateInputType | true;
137
+ _avg?: ResourcePriceAvgAggregateInputType;
138
+ _sum?: ResourcePriceSumAggregateInputType;
139
+ _min?: ResourcePriceMinAggregateInputType;
140
+ _max?: ResourcePriceMaxAggregateInputType;
141
+ };
142
+ export type ResourcePriceGroupByOutputType = {
143
+ id: string;
144
+ resourceType: $Enums.ArtifactType;
145
+ priceCents: number;
146
+ updatedAt: Date;
147
+ _count: ResourcePriceCountAggregateOutputType | null;
148
+ _avg: ResourcePriceAvgAggregateOutputType | null;
149
+ _sum: ResourcePriceSumAggregateOutputType | null;
150
+ _min: ResourcePriceMinAggregateOutputType | null;
151
+ _max: ResourcePriceMaxAggregateOutputType | null;
152
+ };
153
+ export type GetResourcePriceGroupByPayload<T extends ResourcePriceGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ResourcePriceGroupByOutputType, T['by']> & {
154
+ [P in ((keyof T) & (keyof ResourcePriceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ResourcePriceGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ResourcePriceGroupByOutputType[P]>;
155
+ }>>;
156
+ export type ResourcePriceWhereInput = {
157
+ AND?: Prisma.ResourcePriceWhereInput | Prisma.ResourcePriceWhereInput[];
158
+ OR?: Prisma.ResourcePriceWhereInput[];
159
+ NOT?: Prisma.ResourcePriceWhereInput | Prisma.ResourcePriceWhereInput[];
160
+ id?: Prisma.StringFilter<"ResourcePrice"> | string;
161
+ resourceType?: Prisma.EnumArtifactTypeFilter<"ResourcePrice"> | $Enums.ArtifactType;
162
+ priceCents?: Prisma.IntFilter<"ResourcePrice"> | number;
163
+ updatedAt?: Prisma.DateTimeFilter<"ResourcePrice"> | Date | string;
164
+ };
165
+ export type ResourcePriceOrderByWithRelationInput = {
166
+ id?: Prisma.SortOrder;
167
+ resourceType?: Prisma.SortOrder;
168
+ priceCents?: Prisma.SortOrder;
169
+ updatedAt?: Prisma.SortOrder;
170
+ };
171
+ export type ResourcePriceWhereUniqueInput = Prisma.AtLeast<{
172
+ id?: string;
173
+ resourceType?: $Enums.ArtifactType;
174
+ AND?: Prisma.ResourcePriceWhereInput | Prisma.ResourcePriceWhereInput[];
175
+ OR?: Prisma.ResourcePriceWhereInput[];
176
+ NOT?: Prisma.ResourcePriceWhereInput | Prisma.ResourcePriceWhereInput[];
177
+ priceCents?: Prisma.IntFilter<"ResourcePrice"> | number;
178
+ updatedAt?: Prisma.DateTimeFilter<"ResourcePrice"> | Date | string;
179
+ }, "id" | "resourceType">;
180
+ export type ResourcePriceOrderByWithAggregationInput = {
181
+ id?: Prisma.SortOrder;
182
+ resourceType?: Prisma.SortOrder;
183
+ priceCents?: Prisma.SortOrder;
184
+ updatedAt?: Prisma.SortOrder;
185
+ _count?: Prisma.ResourcePriceCountOrderByAggregateInput;
186
+ _avg?: Prisma.ResourcePriceAvgOrderByAggregateInput;
187
+ _max?: Prisma.ResourcePriceMaxOrderByAggregateInput;
188
+ _min?: Prisma.ResourcePriceMinOrderByAggregateInput;
189
+ _sum?: Prisma.ResourcePriceSumOrderByAggregateInput;
190
+ };
191
+ export type ResourcePriceScalarWhereWithAggregatesInput = {
192
+ AND?: Prisma.ResourcePriceScalarWhereWithAggregatesInput | Prisma.ResourcePriceScalarWhereWithAggregatesInput[];
193
+ OR?: Prisma.ResourcePriceScalarWhereWithAggregatesInput[];
194
+ NOT?: Prisma.ResourcePriceScalarWhereWithAggregatesInput | Prisma.ResourcePriceScalarWhereWithAggregatesInput[];
195
+ id?: Prisma.StringWithAggregatesFilter<"ResourcePrice"> | string;
196
+ resourceType?: Prisma.EnumArtifactTypeWithAggregatesFilter<"ResourcePrice"> | $Enums.ArtifactType;
197
+ priceCents?: Prisma.IntWithAggregatesFilter<"ResourcePrice"> | number;
198
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ResourcePrice"> | Date | string;
199
+ };
200
+ export type ResourcePriceCreateInput = {
201
+ id?: string;
202
+ resourceType: $Enums.ArtifactType;
203
+ priceCents: number;
204
+ updatedAt?: Date | string;
205
+ };
206
+ export type ResourcePriceUncheckedCreateInput = {
207
+ id?: string;
208
+ resourceType: $Enums.ArtifactType;
209
+ priceCents: number;
210
+ updatedAt?: Date | string;
211
+ };
212
+ export type ResourcePriceUpdateInput = {
213
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
214
+ resourceType?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
215
+ priceCents?: Prisma.IntFieldUpdateOperationsInput | number;
216
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
217
+ };
218
+ export type ResourcePriceUncheckedUpdateInput = {
219
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
220
+ resourceType?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
221
+ priceCents?: Prisma.IntFieldUpdateOperationsInput | number;
222
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
223
+ };
224
+ export type ResourcePriceCreateManyInput = {
225
+ id?: string;
226
+ resourceType: $Enums.ArtifactType;
227
+ priceCents: number;
228
+ updatedAt?: Date | string;
229
+ };
230
+ export type ResourcePriceUpdateManyMutationInput = {
231
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
232
+ resourceType?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
233
+ priceCents?: Prisma.IntFieldUpdateOperationsInput | number;
234
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
235
+ };
236
+ export type ResourcePriceUncheckedUpdateManyInput = {
237
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
238
+ resourceType?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
239
+ priceCents?: Prisma.IntFieldUpdateOperationsInput | number;
240
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
241
+ };
242
+ export type ResourcePriceCountOrderByAggregateInput = {
243
+ id?: Prisma.SortOrder;
244
+ resourceType?: Prisma.SortOrder;
245
+ priceCents?: Prisma.SortOrder;
246
+ updatedAt?: Prisma.SortOrder;
247
+ };
248
+ export type ResourcePriceAvgOrderByAggregateInput = {
249
+ priceCents?: Prisma.SortOrder;
250
+ };
251
+ export type ResourcePriceMaxOrderByAggregateInput = {
252
+ id?: Prisma.SortOrder;
253
+ resourceType?: Prisma.SortOrder;
254
+ priceCents?: Prisma.SortOrder;
255
+ updatedAt?: Prisma.SortOrder;
256
+ };
257
+ export type ResourcePriceMinOrderByAggregateInput = {
258
+ id?: Prisma.SortOrder;
259
+ resourceType?: Prisma.SortOrder;
260
+ priceCents?: Prisma.SortOrder;
261
+ updatedAt?: Prisma.SortOrder;
262
+ };
263
+ export type ResourcePriceSumOrderByAggregateInput = {
264
+ priceCents?: Prisma.SortOrder;
265
+ };
266
+ export type ResourcePriceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
267
+ id?: boolean;
268
+ resourceType?: boolean;
269
+ priceCents?: boolean;
270
+ updatedAt?: boolean;
271
+ }, ExtArgs["result"]["resourcePrice"]>;
272
+ export type ResourcePriceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
273
+ id?: boolean;
274
+ resourceType?: boolean;
275
+ priceCents?: boolean;
276
+ updatedAt?: boolean;
277
+ }, ExtArgs["result"]["resourcePrice"]>;
278
+ export type ResourcePriceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
279
+ id?: boolean;
280
+ resourceType?: boolean;
281
+ priceCents?: boolean;
282
+ updatedAt?: boolean;
283
+ }, ExtArgs["result"]["resourcePrice"]>;
284
+ export type ResourcePriceSelectScalar = {
285
+ id?: boolean;
286
+ resourceType?: boolean;
287
+ priceCents?: boolean;
288
+ updatedAt?: boolean;
289
+ };
290
+ export type ResourcePriceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "resourceType" | "priceCents" | "updatedAt", ExtArgs["result"]["resourcePrice"]>;
291
+ export type $ResourcePricePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
292
+ name: "ResourcePrice";
293
+ objects: {};
294
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
295
+ id: string;
296
+ resourceType: $Enums.ArtifactType;
297
+ priceCents: number;
298
+ updatedAt: Date;
299
+ }, ExtArgs["result"]["resourcePrice"]>;
300
+ composites: {};
301
+ };
302
+ export type ResourcePriceGetPayload<S extends boolean | null | undefined | ResourcePriceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload, S>;
303
+ export type ResourcePriceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ResourcePriceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
304
+ select?: ResourcePriceCountAggregateInputType | true;
305
+ };
306
+ export interface ResourcePriceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
307
+ [K: symbol]: {
308
+ types: Prisma.TypeMap<ExtArgs>['model']['ResourcePrice'];
309
+ meta: {
310
+ name: 'ResourcePrice';
311
+ };
312
+ };
313
+ /**
314
+ * Find zero or one ResourcePrice that matches the filter.
315
+ * @param {ResourcePriceFindUniqueArgs} args - Arguments to find a ResourcePrice
316
+ * @example
317
+ * // Get one ResourcePrice
318
+ * const resourcePrice = await prisma.resourcePrice.findUnique({
319
+ * where: {
320
+ * // ... provide filter here
321
+ * }
322
+ * })
323
+ */
324
+ findUnique<T extends ResourcePriceFindUniqueArgs>(args: Prisma.SelectSubset<T, ResourcePriceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ResourcePriceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
325
+ /**
326
+ * Find one ResourcePrice that matches the filter or throw an error with `error.code='P2025'`
327
+ * if no matches were found.
328
+ * @param {ResourcePriceFindUniqueOrThrowArgs} args - Arguments to find a ResourcePrice
329
+ * @example
330
+ * // Get one ResourcePrice
331
+ * const resourcePrice = await prisma.resourcePrice.findUniqueOrThrow({
332
+ * where: {
333
+ * // ... provide filter here
334
+ * }
335
+ * })
336
+ */
337
+ findUniqueOrThrow<T extends ResourcePriceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ResourcePriceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ResourcePriceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
338
+ /**
339
+ * Find the first ResourcePrice that matches the filter.
340
+ * Note, that providing `undefined` is treated as the value not being there.
341
+ * Read more here: https://pris.ly/d/null-undefined
342
+ * @param {ResourcePriceFindFirstArgs} args - Arguments to find a ResourcePrice
343
+ * @example
344
+ * // Get one ResourcePrice
345
+ * const resourcePrice = await prisma.resourcePrice.findFirst({
346
+ * where: {
347
+ * // ... provide filter here
348
+ * }
349
+ * })
350
+ */
351
+ findFirst<T extends ResourcePriceFindFirstArgs>(args?: Prisma.SelectSubset<T, ResourcePriceFindFirstArgs<ExtArgs>>): Prisma.Prisma__ResourcePriceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
352
+ /**
353
+ * Find the first ResourcePrice that matches the filter or
354
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
355
+ * Note, that providing `undefined` is treated as the value not being there.
356
+ * Read more here: https://pris.ly/d/null-undefined
357
+ * @param {ResourcePriceFindFirstOrThrowArgs} args - Arguments to find a ResourcePrice
358
+ * @example
359
+ * // Get one ResourcePrice
360
+ * const resourcePrice = await prisma.resourcePrice.findFirstOrThrow({
361
+ * where: {
362
+ * // ... provide filter here
363
+ * }
364
+ * })
365
+ */
366
+ findFirstOrThrow<T extends ResourcePriceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ResourcePriceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ResourcePriceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
367
+ /**
368
+ * Find zero or more ResourcePrices that matches the filter.
369
+ * Note, that providing `undefined` is treated as the value not being there.
370
+ * Read more here: https://pris.ly/d/null-undefined
371
+ * @param {ResourcePriceFindManyArgs} args - Arguments to filter and select certain fields only.
372
+ * @example
373
+ * // Get all ResourcePrices
374
+ * const resourcePrices = await prisma.resourcePrice.findMany()
375
+ *
376
+ * // Get first 10 ResourcePrices
377
+ * const resourcePrices = await prisma.resourcePrice.findMany({ take: 10 })
378
+ *
379
+ * // Only select the `id`
380
+ * const resourcePriceWithIdOnly = await prisma.resourcePrice.findMany({ select: { id: true } })
381
+ *
382
+ */
383
+ findMany<T extends ResourcePriceFindManyArgs>(args?: Prisma.SelectSubset<T, ResourcePriceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
384
+ /**
385
+ * Create a ResourcePrice.
386
+ * @param {ResourcePriceCreateArgs} args - Arguments to create a ResourcePrice.
387
+ * @example
388
+ * // Create one ResourcePrice
389
+ * const ResourcePrice = await prisma.resourcePrice.create({
390
+ * data: {
391
+ * // ... data to create a ResourcePrice
392
+ * }
393
+ * })
394
+ *
395
+ */
396
+ create<T extends ResourcePriceCreateArgs>(args: Prisma.SelectSubset<T, ResourcePriceCreateArgs<ExtArgs>>): Prisma.Prisma__ResourcePriceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
397
+ /**
398
+ * Create many ResourcePrices.
399
+ * @param {ResourcePriceCreateManyArgs} args - Arguments to create many ResourcePrices.
400
+ * @example
401
+ * // Create many ResourcePrices
402
+ * const resourcePrice = await prisma.resourcePrice.createMany({
403
+ * data: [
404
+ * // ... provide data here
405
+ * ]
406
+ * })
407
+ *
408
+ */
409
+ createMany<T extends ResourcePriceCreateManyArgs>(args?: Prisma.SelectSubset<T, ResourcePriceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
410
+ /**
411
+ * Create many ResourcePrices and returns the data saved in the database.
412
+ * @param {ResourcePriceCreateManyAndReturnArgs} args - Arguments to create many ResourcePrices.
413
+ * @example
414
+ * // Create many ResourcePrices
415
+ * const resourcePrice = await prisma.resourcePrice.createManyAndReturn({
416
+ * data: [
417
+ * // ... provide data here
418
+ * ]
419
+ * })
420
+ *
421
+ * // Create many ResourcePrices and only return the `id`
422
+ * const resourcePriceWithIdOnly = await prisma.resourcePrice.createManyAndReturn({
423
+ * select: { id: true },
424
+ * data: [
425
+ * // ... provide data here
426
+ * ]
427
+ * })
428
+ * Note, that providing `undefined` is treated as the value not being there.
429
+ * Read more here: https://pris.ly/d/null-undefined
430
+ *
431
+ */
432
+ createManyAndReturn<T extends ResourcePriceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ResourcePriceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
433
+ /**
434
+ * Delete a ResourcePrice.
435
+ * @param {ResourcePriceDeleteArgs} args - Arguments to delete one ResourcePrice.
436
+ * @example
437
+ * // Delete one ResourcePrice
438
+ * const ResourcePrice = await prisma.resourcePrice.delete({
439
+ * where: {
440
+ * // ... filter to delete one ResourcePrice
441
+ * }
442
+ * })
443
+ *
444
+ */
445
+ delete<T extends ResourcePriceDeleteArgs>(args: Prisma.SelectSubset<T, ResourcePriceDeleteArgs<ExtArgs>>): Prisma.Prisma__ResourcePriceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
446
+ /**
447
+ * Update one ResourcePrice.
448
+ * @param {ResourcePriceUpdateArgs} args - Arguments to update one ResourcePrice.
449
+ * @example
450
+ * // Update one ResourcePrice
451
+ * const resourcePrice = await prisma.resourcePrice.update({
452
+ * where: {
453
+ * // ... provide filter here
454
+ * },
455
+ * data: {
456
+ * // ... provide data here
457
+ * }
458
+ * })
459
+ *
460
+ */
461
+ update<T extends ResourcePriceUpdateArgs>(args: Prisma.SelectSubset<T, ResourcePriceUpdateArgs<ExtArgs>>): Prisma.Prisma__ResourcePriceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
462
+ /**
463
+ * Delete zero or more ResourcePrices.
464
+ * @param {ResourcePriceDeleteManyArgs} args - Arguments to filter ResourcePrices to delete.
465
+ * @example
466
+ * // Delete a few ResourcePrices
467
+ * const { count } = await prisma.resourcePrice.deleteMany({
468
+ * where: {
469
+ * // ... provide filter here
470
+ * }
471
+ * })
472
+ *
473
+ */
474
+ deleteMany<T extends ResourcePriceDeleteManyArgs>(args?: Prisma.SelectSubset<T, ResourcePriceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
475
+ /**
476
+ * Update zero or more ResourcePrices.
477
+ * Note, that providing `undefined` is treated as the value not being there.
478
+ * Read more here: https://pris.ly/d/null-undefined
479
+ * @param {ResourcePriceUpdateManyArgs} args - Arguments to update one or more rows.
480
+ * @example
481
+ * // Update many ResourcePrices
482
+ * const resourcePrice = await prisma.resourcePrice.updateMany({
483
+ * where: {
484
+ * // ... provide filter here
485
+ * },
486
+ * data: {
487
+ * // ... provide data here
488
+ * }
489
+ * })
490
+ *
491
+ */
492
+ updateMany<T extends ResourcePriceUpdateManyArgs>(args: Prisma.SelectSubset<T, ResourcePriceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
493
+ /**
494
+ * Update zero or more ResourcePrices and returns the data updated in the database.
495
+ * @param {ResourcePriceUpdateManyAndReturnArgs} args - Arguments to update many ResourcePrices.
496
+ * @example
497
+ * // Update many ResourcePrices
498
+ * const resourcePrice = await prisma.resourcePrice.updateManyAndReturn({
499
+ * where: {
500
+ * // ... provide filter here
501
+ * },
502
+ * data: [
503
+ * // ... provide data here
504
+ * ]
505
+ * })
506
+ *
507
+ * // Update zero or more ResourcePrices and only return the `id`
508
+ * const resourcePriceWithIdOnly = await prisma.resourcePrice.updateManyAndReturn({
509
+ * select: { id: true },
510
+ * where: {
511
+ * // ... provide filter here
512
+ * },
513
+ * data: [
514
+ * // ... provide data here
515
+ * ]
516
+ * })
517
+ * Note, that providing `undefined` is treated as the value not being there.
518
+ * Read more here: https://pris.ly/d/null-undefined
519
+ *
520
+ */
521
+ updateManyAndReturn<T extends ResourcePriceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ResourcePriceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
522
+ /**
523
+ * Create or update one ResourcePrice.
524
+ * @param {ResourcePriceUpsertArgs} args - Arguments to update or create a ResourcePrice.
525
+ * @example
526
+ * // Update or create a ResourcePrice
527
+ * const resourcePrice = await prisma.resourcePrice.upsert({
528
+ * create: {
529
+ * // ... data to create a ResourcePrice
530
+ * },
531
+ * update: {
532
+ * // ... in case it already exists, update
533
+ * },
534
+ * where: {
535
+ * // ... the filter for the ResourcePrice we want to update
536
+ * }
537
+ * })
538
+ */
539
+ upsert<T extends ResourcePriceUpsertArgs>(args: Prisma.SelectSubset<T, ResourcePriceUpsertArgs<ExtArgs>>): Prisma.Prisma__ResourcePriceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePricePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
540
+ /**
541
+ * Count the number of ResourcePrices.
542
+ * Note, that providing `undefined` is treated as the value not being there.
543
+ * Read more here: https://pris.ly/d/null-undefined
544
+ * @param {ResourcePriceCountArgs} args - Arguments to filter ResourcePrices to count.
545
+ * @example
546
+ * // Count the number of ResourcePrices
547
+ * const count = await prisma.resourcePrice.count({
548
+ * where: {
549
+ * // ... the filter for the ResourcePrices we want to count
550
+ * }
551
+ * })
552
+ **/
553
+ count<T extends ResourcePriceCountArgs>(args?: Prisma.Subset<T, ResourcePriceCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ResourcePriceCountAggregateOutputType> : number>;
554
+ /**
555
+ * Allows you to perform aggregations operations on a ResourcePrice.
556
+ * Note, that providing `undefined` is treated as the value not being there.
557
+ * Read more here: https://pris.ly/d/null-undefined
558
+ * @param {ResourcePriceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
559
+ * @example
560
+ * // Ordered by age ascending
561
+ * // Where email contains prisma.io
562
+ * // Limited to the 10 users
563
+ * const aggregations = await prisma.user.aggregate({
564
+ * _avg: {
565
+ * age: true,
566
+ * },
567
+ * where: {
568
+ * email: {
569
+ * contains: "prisma.io",
570
+ * },
571
+ * },
572
+ * orderBy: {
573
+ * age: "asc",
574
+ * },
575
+ * take: 10,
576
+ * })
577
+ **/
578
+ aggregate<T extends ResourcePriceAggregateArgs>(args: Prisma.Subset<T, ResourcePriceAggregateArgs>): Prisma.PrismaPromise<GetResourcePriceAggregateType<T>>;
579
+ /**
580
+ * Group by ResourcePrice.
581
+ * Note, that providing `undefined` is treated as the value not being there.
582
+ * Read more here: https://pris.ly/d/null-undefined
583
+ * @param {ResourcePriceGroupByArgs} args - Group by arguments.
584
+ * @example
585
+ * // Group by city, order by createdAt, get count
586
+ * const result = await prisma.user.groupBy({
587
+ * by: ['city', 'createdAt'],
588
+ * orderBy: {
589
+ * createdAt: true
590
+ * },
591
+ * _count: {
592
+ * _all: true
593
+ * },
594
+ * })
595
+ *
596
+ **/
597
+ groupBy<T extends ResourcePriceGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
598
+ orderBy: ResourcePriceGroupByArgs['orderBy'];
599
+ } : {
600
+ orderBy?: ResourcePriceGroupByArgs['orderBy'];
601
+ }, 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 ? {
602
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
603
+ Error,
604
+ 'Field ',
605
+ P,
606
+ ` in "having" needs to be provided in "by"`
607
+ ];
608
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
609
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
610
+ }[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 ? {} : {
611
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
612
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
613
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
614
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ResourcePriceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetResourcePriceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
615
+ /**
616
+ * Fields of the ResourcePrice model
617
+ */
618
+ readonly fields: ResourcePriceFieldRefs;
619
+ }
620
+ /**
621
+ * The delegate class that acts as a "Promise-like" for ResourcePrice.
622
+ * Why is this prefixed with `Prisma__`?
623
+ * Because we want to prevent naming conflicts as mentioned in
624
+ * https://github.com/prisma/prisma-client-js/issues/707
625
+ */
626
+ export interface Prisma__ResourcePriceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
627
+ readonly [Symbol.toStringTag]: "PrismaPromise";
628
+ /**
629
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
630
+ * @param onfulfilled The callback to execute when the Promise is resolved.
631
+ * @param onrejected The callback to execute when the Promise is rejected.
632
+ * @returns A Promise for the completion of which ever callback is executed.
633
+ */
634
+ 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>;
635
+ /**
636
+ * Attaches a callback for only the rejection of the Promise.
637
+ * @param onrejected The callback to execute when the Promise is rejected.
638
+ * @returns A Promise for the completion of the callback.
639
+ */
640
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
641
+ /**
642
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
643
+ * resolved value cannot be modified from the callback.
644
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
645
+ * @returns A Promise for the completion of the callback.
646
+ */
647
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
648
+ }
649
+ /**
650
+ * Fields of the ResourcePrice model
651
+ */
652
+ export interface ResourcePriceFieldRefs {
653
+ readonly id: Prisma.FieldRef<"ResourcePrice", 'String'>;
654
+ readonly resourceType: Prisma.FieldRef<"ResourcePrice", 'ArtifactType'>;
655
+ readonly priceCents: Prisma.FieldRef<"ResourcePrice", 'Int'>;
656
+ readonly updatedAt: Prisma.FieldRef<"ResourcePrice", 'DateTime'>;
657
+ }
658
+ /**
659
+ * ResourcePrice findUnique
660
+ */
661
+ export type ResourcePriceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
662
+ /**
663
+ * Select specific fields to fetch from the ResourcePrice
664
+ */
665
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
666
+ /**
667
+ * Omit specific fields from the ResourcePrice
668
+ */
669
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
670
+ /**
671
+ * Filter, which ResourcePrice to fetch.
672
+ */
673
+ where: Prisma.ResourcePriceWhereUniqueInput;
674
+ };
675
+ /**
676
+ * ResourcePrice findUniqueOrThrow
677
+ */
678
+ export type ResourcePriceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
679
+ /**
680
+ * Select specific fields to fetch from the ResourcePrice
681
+ */
682
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
683
+ /**
684
+ * Omit specific fields from the ResourcePrice
685
+ */
686
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
687
+ /**
688
+ * Filter, which ResourcePrice to fetch.
689
+ */
690
+ where: Prisma.ResourcePriceWhereUniqueInput;
691
+ };
692
+ /**
693
+ * ResourcePrice findFirst
694
+ */
695
+ export type ResourcePriceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
696
+ /**
697
+ * Select specific fields to fetch from the ResourcePrice
698
+ */
699
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
700
+ /**
701
+ * Omit specific fields from the ResourcePrice
702
+ */
703
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
704
+ /**
705
+ * Filter, which ResourcePrice to fetch.
706
+ */
707
+ where?: Prisma.ResourcePriceWhereInput;
708
+ /**
709
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
710
+ *
711
+ * Determine the order of ResourcePrices to fetch.
712
+ */
713
+ orderBy?: Prisma.ResourcePriceOrderByWithRelationInput | Prisma.ResourcePriceOrderByWithRelationInput[];
714
+ /**
715
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
716
+ *
717
+ * Sets the position for searching for ResourcePrices.
718
+ */
719
+ cursor?: Prisma.ResourcePriceWhereUniqueInput;
720
+ /**
721
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
722
+ *
723
+ * Take `±n` ResourcePrices from the position of the cursor.
724
+ */
725
+ take?: number;
726
+ /**
727
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
728
+ *
729
+ * Skip the first `n` ResourcePrices.
730
+ */
731
+ skip?: number;
732
+ /**
733
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
734
+ *
735
+ * Filter by unique combinations of ResourcePrices.
736
+ */
737
+ distinct?: Prisma.ResourcePriceScalarFieldEnum | Prisma.ResourcePriceScalarFieldEnum[];
738
+ };
739
+ /**
740
+ * ResourcePrice findFirstOrThrow
741
+ */
742
+ export type ResourcePriceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
743
+ /**
744
+ * Select specific fields to fetch from the ResourcePrice
745
+ */
746
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
747
+ /**
748
+ * Omit specific fields from the ResourcePrice
749
+ */
750
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
751
+ /**
752
+ * Filter, which ResourcePrice to fetch.
753
+ */
754
+ where?: Prisma.ResourcePriceWhereInput;
755
+ /**
756
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
757
+ *
758
+ * Determine the order of ResourcePrices to fetch.
759
+ */
760
+ orderBy?: Prisma.ResourcePriceOrderByWithRelationInput | Prisma.ResourcePriceOrderByWithRelationInput[];
761
+ /**
762
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
763
+ *
764
+ * Sets the position for searching for ResourcePrices.
765
+ */
766
+ cursor?: Prisma.ResourcePriceWhereUniqueInput;
767
+ /**
768
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
769
+ *
770
+ * Take `±n` ResourcePrices from the position of the cursor.
771
+ */
772
+ take?: number;
773
+ /**
774
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
775
+ *
776
+ * Skip the first `n` ResourcePrices.
777
+ */
778
+ skip?: number;
779
+ /**
780
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
781
+ *
782
+ * Filter by unique combinations of ResourcePrices.
783
+ */
784
+ distinct?: Prisma.ResourcePriceScalarFieldEnum | Prisma.ResourcePriceScalarFieldEnum[];
785
+ };
786
+ /**
787
+ * ResourcePrice findMany
788
+ */
789
+ export type ResourcePriceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
790
+ /**
791
+ * Select specific fields to fetch from the ResourcePrice
792
+ */
793
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
794
+ /**
795
+ * Omit specific fields from the ResourcePrice
796
+ */
797
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
798
+ /**
799
+ * Filter, which ResourcePrices to fetch.
800
+ */
801
+ where?: Prisma.ResourcePriceWhereInput;
802
+ /**
803
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
804
+ *
805
+ * Determine the order of ResourcePrices to fetch.
806
+ */
807
+ orderBy?: Prisma.ResourcePriceOrderByWithRelationInput | Prisma.ResourcePriceOrderByWithRelationInput[];
808
+ /**
809
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
810
+ *
811
+ * Sets the position for listing ResourcePrices.
812
+ */
813
+ cursor?: Prisma.ResourcePriceWhereUniqueInput;
814
+ /**
815
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
816
+ *
817
+ * Take `±n` ResourcePrices from the position of the cursor.
818
+ */
819
+ take?: number;
820
+ /**
821
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
822
+ *
823
+ * Skip the first `n` ResourcePrices.
824
+ */
825
+ skip?: number;
826
+ /**
827
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
828
+ *
829
+ * Filter by unique combinations of ResourcePrices.
830
+ */
831
+ distinct?: Prisma.ResourcePriceScalarFieldEnum | Prisma.ResourcePriceScalarFieldEnum[];
832
+ };
833
+ /**
834
+ * ResourcePrice create
835
+ */
836
+ export type ResourcePriceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
837
+ /**
838
+ * Select specific fields to fetch from the ResourcePrice
839
+ */
840
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
841
+ /**
842
+ * Omit specific fields from the ResourcePrice
843
+ */
844
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
845
+ /**
846
+ * The data needed to create a ResourcePrice.
847
+ */
848
+ data: Prisma.XOR<Prisma.ResourcePriceCreateInput, Prisma.ResourcePriceUncheckedCreateInput>;
849
+ };
850
+ /**
851
+ * ResourcePrice createMany
852
+ */
853
+ export type ResourcePriceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
854
+ /**
855
+ * The data used to create many ResourcePrices.
856
+ */
857
+ data: Prisma.ResourcePriceCreateManyInput | Prisma.ResourcePriceCreateManyInput[];
858
+ skipDuplicates?: boolean;
859
+ };
860
+ /**
861
+ * ResourcePrice createManyAndReturn
862
+ */
863
+ export type ResourcePriceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
864
+ /**
865
+ * Select specific fields to fetch from the ResourcePrice
866
+ */
867
+ select?: Prisma.ResourcePriceSelectCreateManyAndReturn<ExtArgs> | null;
868
+ /**
869
+ * Omit specific fields from the ResourcePrice
870
+ */
871
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
872
+ /**
873
+ * The data used to create many ResourcePrices.
874
+ */
875
+ data: Prisma.ResourcePriceCreateManyInput | Prisma.ResourcePriceCreateManyInput[];
876
+ skipDuplicates?: boolean;
877
+ };
878
+ /**
879
+ * ResourcePrice update
880
+ */
881
+ export type ResourcePriceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
882
+ /**
883
+ * Select specific fields to fetch from the ResourcePrice
884
+ */
885
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
886
+ /**
887
+ * Omit specific fields from the ResourcePrice
888
+ */
889
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
890
+ /**
891
+ * The data needed to update a ResourcePrice.
892
+ */
893
+ data: Prisma.XOR<Prisma.ResourcePriceUpdateInput, Prisma.ResourcePriceUncheckedUpdateInput>;
894
+ /**
895
+ * Choose, which ResourcePrice to update.
896
+ */
897
+ where: Prisma.ResourcePriceWhereUniqueInput;
898
+ };
899
+ /**
900
+ * ResourcePrice updateMany
901
+ */
902
+ export type ResourcePriceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
903
+ /**
904
+ * The data used to update ResourcePrices.
905
+ */
906
+ data: Prisma.XOR<Prisma.ResourcePriceUpdateManyMutationInput, Prisma.ResourcePriceUncheckedUpdateManyInput>;
907
+ /**
908
+ * Filter which ResourcePrices to update
909
+ */
910
+ where?: Prisma.ResourcePriceWhereInput;
911
+ /**
912
+ * Limit how many ResourcePrices to update.
913
+ */
914
+ limit?: number;
915
+ };
916
+ /**
917
+ * ResourcePrice updateManyAndReturn
918
+ */
919
+ export type ResourcePriceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
920
+ /**
921
+ * Select specific fields to fetch from the ResourcePrice
922
+ */
923
+ select?: Prisma.ResourcePriceSelectUpdateManyAndReturn<ExtArgs> | null;
924
+ /**
925
+ * Omit specific fields from the ResourcePrice
926
+ */
927
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
928
+ /**
929
+ * The data used to update ResourcePrices.
930
+ */
931
+ data: Prisma.XOR<Prisma.ResourcePriceUpdateManyMutationInput, Prisma.ResourcePriceUncheckedUpdateManyInput>;
932
+ /**
933
+ * Filter which ResourcePrices to update
934
+ */
935
+ where?: Prisma.ResourcePriceWhereInput;
936
+ /**
937
+ * Limit how many ResourcePrices to update.
938
+ */
939
+ limit?: number;
940
+ };
941
+ /**
942
+ * ResourcePrice upsert
943
+ */
944
+ export type ResourcePriceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
945
+ /**
946
+ * Select specific fields to fetch from the ResourcePrice
947
+ */
948
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
949
+ /**
950
+ * Omit specific fields from the ResourcePrice
951
+ */
952
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
953
+ /**
954
+ * The filter to search for the ResourcePrice to update in case it exists.
955
+ */
956
+ where: Prisma.ResourcePriceWhereUniqueInput;
957
+ /**
958
+ * In case the ResourcePrice found by the `where` argument doesn't exist, create a new ResourcePrice with this data.
959
+ */
960
+ create: Prisma.XOR<Prisma.ResourcePriceCreateInput, Prisma.ResourcePriceUncheckedCreateInput>;
961
+ /**
962
+ * In case the ResourcePrice was found with the provided `where` argument, update it with this data.
963
+ */
964
+ update: Prisma.XOR<Prisma.ResourcePriceUpdateInput, Prisma.ResourcePriceUncheckedUpdateInput>;
965
+ };
966
+ /**
967
+ * ResourcePrice delete
968
+ */
969
+ export type ResourcePriceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
970
+ /**
971
+ * Select specific fields to fetch from the ResourcePrice
972
+ */
973
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
974
+ /**
975
+ * Omit specific fields from the ResourcePrice
976
+ */
977
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
978
+ /**
979
+ * Filter which ResourcePrice to delete.
980
+ */
981
+ where: Prisma.ResourcePriceWhereUniqueInput;
982
+ };
983
+ /**
984
+ * ResourcePrice deleteMany
985
+ */
986
+ export type ResourcePriceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
987
+ /**
988
+ * Filter which ResourcePrices to delete
989
+ */
990
+ where?: Prisma.ResourcePriceWhereInput;
991
+ /**
992
+ * Limit how many ResourcePrices to delete.
993
+ */
994
+ limit?: number;
995
+ };
996
+ /**
997
+ * ResourcePrice without action
998
+ */
999
+ export type ResourcePriceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1000
+ /**
1001
+ * Select specific fields to fetch from the ResourcePrice
1002
+ */
1003
+ select?: Prisma.ResourcePriceSelect<ExtArgs> | null;
1004
+ /**
1005
+ * Omit specific fields from the ResourcePrice
1006
+ */
1007
+ omit?: Prisma.ResourcePriceOmit<ExtArgs> | null;
1008
+ };