@goscribe/server 1.6.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 (281) hide show
  1. package/dist/generated/prisma/client.d.ts +224 -0
  2. package/dist/generated/prisma/client.js +34 -0
  3. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  4. package/dist/generated/prisma/commonInputTypes.js +10 -0
  5. package/dist/generated/prisma/enums.d.ts +67 -0
  6. package/dist/generated/prisma/enums.js +66 -0
  7. package/dist/generated/prisma/internal/class.d.ts +539 -0
  8. package/dist/generated/prisma/internal/class.js +49 -0
  9. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  10. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  11. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  12. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  13. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  14. package/dist/generated/prisma/models/Artifact.js +1 -0
  15. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  16. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  17. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  18. package/dist/generated/prisma/models/Channel.js +1 -0
  19. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  20. package/dist/generated/prisma/models/Chat.js +1 -0
  21. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  22. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  23. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  24. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  25. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  26. package/dist/generated/prisma/models/FileAsset.js +1 -0
  27. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  28. package/dist/generated/prisma/models/Flashcard.js +1 -0
  29. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  30. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  31. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  32. package/dist/generated/prisma/models/Folder.js +1 -0
  33. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  34. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  35. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  36. package/dist/generated/prisma/models/Invoice.js +1 -0
  37. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  38. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  40. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  43. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  44. package/dist/generated/prisma/models/Notification.js +1 -0
  45. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  46. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  47. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  48. package/dist/generated/prisma/models/Plan.js +1 -0
  49. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  50. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  51. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  52. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  53. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  54. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  55. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  56. package/dist/generated/prisma/models/Role.js +1 -0
  57. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  58. package/dist/generated/prisma/models/Session.js +1 -0
  59. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  60. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  61. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  62. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  64. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  65. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  66. package/dist/generated/prisma/models/Subscription.js +1 -0
  67. package/dist/generated/prisma/models/User.d.ts +7559 -0
  68. package/dist/generated/prisma/models/User.js +1 -0
  69. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  70. package/dist/generated/prisma/models/UserCredit.js +1 -0
  71. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  72. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  73. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  74. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  76. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  78. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  79. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  80. package/dist/generated/prisma/models/Workspace.js +1 -0
  81. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  82. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  84. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  86. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  87. package/dist/generated/prisma/models.d.ts +39 -0
  88. package/dist/generated/prisma/models.js +1 -0
  89. package/dist/src/context.d.ts +27 -0
  90. package/dist/src/context.js +33 -0
  91. package/dist/src/index.d.ts +3 -0
  92. package/dist/src/index.js +1 -0
  93. package/dist/src/lib/ai/config.d.ts +20 -0
  94. package/dist/src/lib/ai/config.js +31 -0
  95. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  96. package/dist/src/lib/ai/embedding-client.js +30 -0
  97. package/dist/src/lib/ai/index.d.ts +48 -0
  98. package/dist/src/lib/ai/index.js +29 -0
  99. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  100. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  101. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  102. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  103. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  104. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  105. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  106. package/dist/src/lib/ai/json-parse.js +34 -0
  107. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  108. package/dist/src/lib/ai/llm-client.js +36 -0
  109. package/dist/src/lib/ai/mock.d.ts +2 -0
  110. package/dist/src/lib/ai/mock.js +10 -0
  111. package/dist/src/lib/ai/types.d.ts +9 -0
  112. package/dist/src/lib/ai/types.js +1 -0
  113. package/dist/src/lib/auth.d.ts +36 -0
  114. package/dist/src/lib/auth.js +117 -0
  115. package/dist/src/lib/chunking.d.ts +19 -0
  116. package/dist/src/lib/chunking.js +47 -0
  117. package/dist/src/lib/constants.d.ts +13 -0
  118. package/dist/src/lib/constants.js +12 -0
  119. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  120. package/dist/src/lib/curated-kb-seed.js +155 -0
  121. package/dist/src/lib/email.d.ts +11 -0
  122. package/dist/src/lib/email.js +152 -0
  123. package/dist/src/lib/embeddings.d.ts +2 -0
  124. package/dist/src/lib/embeddings.js +1 -0
  125. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  126. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  127. package/dist/src/lib/env.d.ts +41 -0
  128. package/dist/src/lib/env.js +57 -0
  129. package/dist/src/lib/errors.d.ts +33 -0
  130. package/dist/src/lib/errors.js +78 -0
  131. package/dist/src/lib/file.d.ts +0 -0
  132. package/dist/src/lib/file.js +1 -0
  133. package/dist/src/lib/inference.d.ts +1 -0
  134. package/dist/src/lib/inference.js +1 -0
  135. package/dist/src/lib/kb-meta.d.ts +8 -0
  136. package/dist/src/lib/kb-meta.js +77 -0
  137. package/dist/src/lib/logger.d.ts +62 -0
  138. package/dist/src/lib/logger.js +364 -0
  139. package/dist/src/lib/pdf.d.ts +11 -0
  140. package/dist/src/lib/pdf.js +11 -0
  141. package/dist/src/lib/prisma.d.ts +3 -0
  142. package/dist/src/lib/prisma.js +15 -0
  143. package/dist/src/lib/pusher.d.ts +38 -0
  144. package/dist/src/lib/pusher.js +170 -0
  145. package/dist/src/lib/retry.d.ts +15 -0
  146. package/dist/src/lib/retry.js +37 -0
  147. package/dist/src/lib/storage.d.ts +11 -0
  148. package/dist/src/lib/storage.js +71 -0
  149. package/dist/src/lib/stripe.d.ts +10 -0
  150. package/dist/src/lib/stripe.js +36 -0
  151. package/dist/src/lib/validation.d.ts +51 -0
  152. package/dist/src/lib/validation.js +64 -0
  153. package/dist/src/lib/workspace-kb.d.ts +5 -0
  154. package/dist/src/lib/workspace-kb.js +7 -0
  155. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  156. package/dist/src/repositories/artifact.repository.js +40 -0
  157. package/dist/src/repositories/base.repository.d.ts +14 -0
  158. package/dist/src/repositories/base.repository.js +14 -0
  159. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  160. package/dist/src/repositories/invitation.repository.js +44 -0
  161. package/dist/src/repositories/notification.repository.d.ts +76 -0
  162. package/dist/src/repositories/notification.repository.js +44 -0
  163. package/dist/src/repositories/user.repository.d.ts +84 -0
  164. package/dist/src/repositories/user.repository.js +37 -0
  165. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  166. package/dist/src/repositories/workspace-member.repository.js +31 -0
  167. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  168. package/dist/src/repositories/workspace.repository.js +79 -0
  169. package/dist/src/routers/_app.d.ts +3464 -0
  170. package/dist/src/routers/_app.js +36 -0
  171. package/dist/src/routers/admin.d.ts +358 -0
  172. package/dist/src/routers/admin.js +105 -0
  173. package/dist/src/routers/annotations.d.ts +219 -0
  174. package/dist/src/routers/annotations.js +29 -0
  175. package/dist/src/routers/artifactVersions.d.ts +65 -0
  176. package/dist/src/routers/artifactVersions.js +14 -0
  177. package/dist/src/routers/auth.d.ts +161 -0
  178. package/dist/src/routers/auth.js +97 -0
  179. package/dist/src/routers/chat.d.ts +170 -0
  180. package/dist/src/routers/chat.js +32 -0
  181. package/dist/src/routers/copilot.d.ts +200 -0
  182. package/dist/src/routers/copilot.js +52 -0
  183. package/dist/src/routers/flashcards.d.ts +336 -0
  184. package/dist/src/routers/flashcards.js +93 -0
  185. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  186. package/dist/src/routers/knowledgeBase.js +118 -0
  187. package/dist/src/routers/members.d.ts +169 -0
  188. package/dist/src/routers/members.js +47 -0
  189. package/dist/src/routers/notifications.d.ts +99 -0
  190. package/dist/src/routers/notifications.js +25 -0
  191. package/dist/src/routers/payment.d.ts +80 -0
  192. package/dist/src/routers/payment.js +21 -0
  193. package/dist/src/routers/podcast.d.ts +287 -0
  194. package/dist/src/routers/podcast.js +34 -0
  195. package/dist/src/routers/studyguide.d.ts +36 -0
  196. package/dist/src/routers/studyguide.js +8 -0
  197. package/dist/src/routers/worksheets.d.ts +429 -0
  198. package/dist/src/routers/worksheets.js +139 -0
  199. package/dist/src/routers/workspace.d.ts +563 -0
  200. package/dist/src/routers/workspace.js +104 -0
  201. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  202. package/dist/src/scripts/purge-deleted-users.js +148 -0
  203. package/dist/src/server.d.ts +1 -0
  204. package/dist/src/server.js +190 -0
  205. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  206. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  207. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  208. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  209. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  210. package/dist/src/services/activity/activity-log.service.js +276 -0
  211. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  212. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  213. package/dist/src/services/admin/admin.service.d.ts +270 -0
  214. package/dist/src/services/admin/admin.service.js +476 -0
  215. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  216. package/dist/src/services/ai/ai-session.service.js +4 -0
  217. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  218. package/dist/src/services/artifacts/annotation.service.js +154 -0
  219. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  220. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  221. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  222. package/dist/src/services/artifacts/chat.service.js +182 -0
  223. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  224. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  225. package/dist/src/services/auth/auth.service.d.ts +94 -0
  226. package/dist/src/services/auth/auth.service.js +368 -0
  227. package/dist/src/services/base.service.d.ts +14 -0
  228. package/dist/src/services/base.service.js +14 -0
  229. package/dist/src/services/billing/payment.service.d.ts +44 -0
  230. package/dist/src/services/billing/payment.service.js +365 -0
  231. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  232. package/dist/src/services/billing/subscription.service.js +654 -0
  233. package/dist/src/services/billing/usage.service.d.ts +47 -0
  234. package/dist/src/services/billing/usage.service.js +149 -0
  235. package/dist/src/services/content/copilot.service.d.ts +113 -0
  236. package/dist/src/services/content/copilot.service.js +439 -0
  237. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  238. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  239. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  240. package/dist/src/services/content/flashcard.service.js +339 -0
  241. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  242. package/dist/src/services/content/media-analysis.service.js +404 -0
  243. package/dist/src/services/content/podcast.service.d.ts +267 -0
  244. package/dist/src/services/content/podcast.service.js +653 -0
  245. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  246. package/dist/src/services/content/worksheet-content.service.js +84 -0
  247. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  248. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  249. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  250. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  251. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  252. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  253. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  254. package/dist/src/services/content/worksheet.service.js +599 -0
  255. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  256. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  257. package/dist/src/services/members/invitation.service.d.ts +66 -0
  258. package/dist/src/services/members/invitation.service.js +348 -0
  259. package/dist/src/services/members/member.service.d.ts +36 -0
  260. package/dist/src/services/members/member.service.js +193 -0
  261. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  262. package/dist/src/services/notifications/notification.service.js +550 -0
  263. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  264. package/dist/src/services/notifications/notification.service.test.js +87 -0
  265. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  266. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  267. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  268. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  269. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  270. package/dist/src/services/workspace/workspace.service.js +401 -0
  271. package/dist/src/trpc.d.ts +60 -0
  272. package/dist/src/trpc.js +217 -0
  273. package/dist/src/types/index.d.ts +126 -0
  274. package/dist/src/types/index.js +1 -0
  275. package/package.json +8 -9
  276. package/prisma/schema.prisma +3 -4
  277. package/prisma/seed.mjs +5 -2
  278. package/prisma.config.ts +16 -0
  279. package/src/lib/prisma.ts +18 -9
  280. package/src/scripts/purge-deleted-users.ts +1 -3
  281. package/tsconfig.json +3 -0
@@ -0,0 +1,1081 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model StripeEvent
5
+ *
6
+ */
7
+ export type StripeEventModel = runtime.Types.Result.DefaultSelection<Prisma.$StripeEventPayload>;
8
+ export type AggregateStripeEvent = {
9
+ _count: StripeEventCountAggregateOutputType | null;
10
+ _min: StripeEventMinAggregateOutputType | null;
11
+ _max: StripeEventMaxAggregateOutputType | null;
12
+ };
13
+ export type StripeEventMinAggregateOutputType = {
14
+ id: string | null;
15
+ stripeEventId: string | null;
16
+ type: string | null;
17
+ status: string | null;
18
+ error: string | null;
19
+ processedAt: Date | null;
20
+ createdAt: Date | null;
21
+ updatedAt: Date | null;
22
+ };
23
+ export type StripeEventMaxAggregateOutputType = {
24
+ id: string | null;
25
+ stripeEventId: string | null;
26
+ type: string | null;
27
+ status: string | null;
28
+ error: string | null;
29
+ processedAt: Date | null;
30
+ createdAt: Date | null;
31
+ updatedAt: Date | null;
32
+ };
33
+ export type StripeEventCountAggregateOutputType = {
34
+ id: number;
35
+ stripeEventId: number;
36
+ type: number;
37
+ status: number;
38
+ error: number;
39
+ processedAt: number;
40
+ createdAt: number;
41
+ updatedAt: number;
42
+ _all: number;
43
+ };
44
+ export type StripeEventMinAggregateInputType = {
45
+ id?: true;
46
+ stripeEventId?: true;
47
+ type?: true;
48
+ status?: true;
49
+ error?: true;
50
+ processedAt?: true;
51
+ createdAt?: true;
52
+ updatedAt?: true;
53
+ };
54
+ export type StripeEventMaxAggregateInputType = {
55
+ id?: true;
56
+ stripeEventId?: true;
57
+ type?: true;
58
+ status?: true;
59
+ error?: true;
60
+ processedAt?: true;
61
+ createdAt?: true;
62
+ updatedAt?: true;
63
+ };
64
+ export type StripeEventCountAggregateInputType = {
65
+ id?: true;
66
+ stripeEventId?: true;
67
+ type?: true;
68
+ status?: true;
69
+ error?: true;
70
+ processedAt?: true;
71
+ createdAt?: true;
72
+ updatedAt?: true;
73
+ _all?: true;
74
+ };
75
+ export type StripeEventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
76
+ /**
77
+ * Filter which StripeEvent to aggregate.
78
+ */
79
+ where?: Prisma.StripeEventWhereInput;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
82
+ *
83
+ * Determine the order of StripeEvents to fetch.
84
+ */
85
+ orderBy?: Prisma.StripeEventOrderByWithRelationInput | Prisma.StripeEventOrderByWithRelationInput[];
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88
+ *
89
+ * Sets the start position
90
+ */
91
+ cursor?: Prisma.StripeEventWhereUniqueInput;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Take `±n` StripeEvents from the position of the cursor.
96
+ */
97
+ take?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
+ *
101
+ * Skip the first `n` StripeEvents.
102
+ */
103
+ skip?: number;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Count returned StripeEvents
108
+ **/
109
+ _count?: true | StripeEventCountAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the minimum value
114
+ **/
115
+ _min?: StripeEventMinAggregateInputType;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Select which fields to find the maximum value
120
+ **/
121
+ _max?: StripeEventMaxAggregateInputType;
122
+ };
123
+ export type GetStripeEventAggregateType<T extends StripeEventAggregateArgs> = {
124
+ [P in keyof T & keyof AggregateStripeEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateStripeEvent[P]> : Prisma.GetScalarType<T[P], AggregateStripeEvent[P]>;
125
+ };
126
+ export type StripeEventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ where?: Prisma.StripeEventWhereInput;
128
+ orderBy?: Prisma.StripeEventOrderByWithAggregationInput | Prisma.StripeEventOrderByWithAggregationInput[];
129
+ by: Prisma.StripeEventScalarFieldEnum[] | Prisma.StripeEventScalarFieldEnum;
130
+ having?: Prisma.StripeEventScalarWhereWithAggregatesInput;
131
+ take?: number;
132
+ skip?: number;
133
+ _count?: StripeEventCountAggregateInputType | true;
134
+ _min?: StripeEventMinAggregateInputType;
135
+ _max?: StripeEventMaxAggregateInputType;
136
+ };
137
+ export type StripeEventGroupByOutputType = {
138
+ id: string;
139
+ stripeEventId: string;
140
+ type: string;
141
+ status: string;
142
+ error: string | null;
143
+ processedAt: Date | null;
144
+ createdAt: Date;
145
+ updatedAt: Date;
146
+ _count: StripeEventCountAggregateOutputType | null;
147
+ _min: StripeEventMinAggregateOutputType | null;
148
+ _max: StripeEventMaxAggregateOutputType | null;
149
+ };
150
+ export type GetStripeEventGroupByPayload<T extends StripeEventGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<StripeEventGroupByOutputType, T['by']> & {
151
+ [P in ((keyof T) & (keyof StripeEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], StripeEventGroupByOutputType[P]> : Prisma.GetScalarType<T[P], StripeEventGroupByOutputType[P]>;
152
+ }>>;
153
+ export type StripeEventWhereInput = {
154
+ AND?: Prisma.StripeEventWhereInput | Prisma.StripeEventWhereInput[];
155
+ OR?: Prisma.StripeEventWhereInput[];
156
+ NOT?: Prisma.StripeEventWhereInput | Prisma.StripeEventWhereInput[];
157
+ id?: Prisma.StringFilter<"StripeEvent"> | string;
158
+ stripeEventId?: Prisma.StringFilter<"StripeEvent"> | string;
159
+ type?: Prisma.StringFilter<"StripeEvent"> | string;
160
+ status?: Prisma.StringFilter<"StripeEvent"> | string;
161
+ error?: Prisma.StringNullableFilter<"StripeEvent"> | string | null;
162
+ processedAt?: Prisma.DateTimeNullableFilter<"StripeEvent"> | Date | string | null;
163
+ createdAt?: Prisma.DateTimeFilter<"StripeEvent"> | Date | string;
164
+ updatedAt?: Prisma.DateTimeFilter<"StripeEvent"> | Date | string;
165
+ };
166
+ export type StripeEventOrderByWithRelationInput = {
167
+ id?: Prisma.SortOrder;
168
+ stripeEventId?: Prisma.SortOrder;
169
+ type?: Prisma.SortOrder;
170
+ status?: Prisma.SortOrder;
171
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
172
+ processedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
173
+ createdAt?: Prisma.SortOrder;
174
+ updatedAt?: Prisma.SortOrder;
175
+ };
176
+ export type StripeEventWhereUniqueInput = Prisma.AtLeast<{
177
+ id?: string;
178
+ stripeEventId?: string;
179
+ AND?: Prisma.StripeEventWhereInput | Prisma.StripeEventWhereInput[];
180
+ OR?: Prisma.StripeEventWhereInput[];
181
+ NOT?: Prisma.StripeEventWhereInput | Prisma.StripeEventWhereInput[];
182
+ type?: Prisma.StringFilter<"StripeEvent"> | string;
183
+ status?: Prisma.StringFilter<"StripeEvent"> | string;
184
+ error?: Prisma.StringNullableFilter<"StripeEvent"> | string | null;
185
+ processedAt?: Prisma.DateTimeNullableFilter<"StripeEvent"> | Date | string | null;
186
+ createdAt?: Prisma.DateTimeFilter<"StripeEvent"> | Date | string;
187
+ updatedAt?: Prisma.DateTimeFilter<"StripeEvent"> | Date | string;
188
+ }, "id" | "stripeEventId">;
189
+ export type StripeEventOrderByWithAggregationInput = {
190
+ id?: Prisma.SortOrder;
191
+ stripeEventId?: Prisma.SortOrder;
192
+ type?: Prisma.SortOrder;
193
+ status?: Prisma.SortOrder;
194
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
195
+ processedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
196
+ createdAt?: Prisma.SortOrder;
197
+ updatedAt?: Prisma.SortOrder;
198
+ _count?: Prisma.StripeEventCountOrderByAggregateInput;
199
+ _max?: Prisma.StripeEventMaxOrderByAggregateInput;
200
+ _min?: Prisma.StripeEventMinOrderByAggregateInput;
201
+ };
202
+ export type StripeEventScalarWhereWithAggregatesInput = {
203
+ AND?: Prisma.StripeEventScalarWhereWithAggregatesInput | Prisma.StripeEventScalarWhereWithAggregatesInput[];
204
+ OR?: Prisma.StripeEventScalarWhereWithAggregatesInput[];
205
+ NOT?: Prisma.StripeEventScalarWhereWithAggregatesInput | Prisma.StripeEventScalarWhereWithAggregatesInput[];
206
+ id?: Prisma.StringWithAggregatesFilter<"StripeEvent"> | string;
207
+ stripeEventId?: Prisma.StringWithAggregatesFilter<"StripeEvent"> | string;
208
+ type?: Prisma.StringWithAggregatesFilter<"StripeEvent"> | string;
209
+ status?: Prisma.StringWithAggregatesFilter<"StripeEvent"> | string;
210
+ error?: Prisma.StringNullableWithAggregatesFilter<"StripeEvent"> | string | null;
211
+ processedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"StripeEvent"> | Date | string | null;
212
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"StripeEvent"> | Date | string;
213
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StripeEvent"> | Date | string;
214
+ };
215
+ export type StripeEventCreateInput = {
216
+ id?: string;
217
+ stripeEventId: string;
218
+ type: string;
219
+ status?: string;
220
+ error?: string | null;
221
+ processedAt?: Date | string | null;
222
+ createdAt?: Date | string;
223
+ updatedAt?: Date | string;
224
+ };
225
+ export type StripeEventUncheckedCreateInput = {
226
+ id?: string;
227
+ stripeEventId: string;
228
+ type: string;
229
+ status?: string;
230
+ error?: string | null;
231
+ processedAt?: Date | string | null;
232
+ createdAt?: Date | string;
233
+ updatedAt?: Date | string;
234
+ };
235
+ export type StripeEventUpdateInput = {
236
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
237
+ stripeEventId?: Prisma.StringFieldUpdateOperationsInput | string;
238
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
239
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
240
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
241
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
242
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
243
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
244
+ };
245
+ export type StripeEventUncheckedUpdateInput = {
246
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
247
+ stripeEventId?: Prisma.StringFieldUpdateOperationsInput | string;
248
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
249
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
250
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
251
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
252
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
253
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
254
+ };
255
+ export type StripeEventCreateManyInput = {
256
+ id?: string;
257
+ stripeEventId: string;
258
+ type: string;
259
+ status?: string;
260
+ error?: string | null;
261
+ processedAt?: Date | string | null;
262
+ createdAt?: Date | string;
263
+ updatedAt?: Date | string;
264
+ };
265
+ export type StripeEventUpdateManyMutationInput = {
266
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ stripeEventId?: Prisma.StringFieldUpdateOperationsInput | string;
268
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
269
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
270
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
271
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
272
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
273
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
274
+ };
275
+ export type StripeEventUncheckedUpdateManyInput = {
276
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
277
+ stripeEventId?: Prisma.StringFieldUpdateOperationsInput | string;
278
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
279
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
280
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
281
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
282
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
283
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
284
+ };
285
+ export type StripeEventCountOrderByAggregateInput = {
286
+ id?: Prisma.SortOrder;
287
+ stripeEventId?: Prisma.SortOrder;
288
+ type?: Prisma.SortOrder;
289
+ status?: Prisma.SortOrder;
290
+ error?: Prisma.SortOrder;
291
+ processedAt?: Prisma.SortOrder;
292
+ createdAt?: Prisma.SortOrder;
293
+ updatedAt?: Prisma.SortOrder;
294
+ };
295
+ export type StripeEventMaxOrderByAggregateInput = {
296
+ id?: Prisma.SortOrder;
297
+ stripeEventId?: Prisma.SortOrder;
298
+ type?: Prisma.SortOrder;
299
+ status?: Prisma.SortOrder;
300
+ error?: Prisma.SortOrder;
301
+ processedAt?: Prisma.SortOrder;
302
+ createdAt?: Prisma.SortOrder;
303
+ updatedAt?: Prisma.SortOrder;
304
+ };
305
+ export type StripeEventMinOrderByAggregateInput = {
306
+ id?: Prisma.SortOrder;
307
+ stripeEventId?: Prisma.SortOrder;
308
+ type?: Prisma.SortOrder;
309
+ status?: Prisma.SortOrder;
310
+ error?: Prisma.SortOrder;
311
+ processedAt?: Prisma.SortOrder;
312
+ createdAt?: Prisma.SortOrder;
313
+ updatedAt?: Prisma.SortOrder;
314
+ };
315
+ export type StripeEventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
316
+ id?: boolean;
317
+ stripeEventId?: boolean;
318
+ type?: boolean;
319
+ status?: boolean;
320
+ error?: boolean;
321
+ processedAt?: boolean;
322
+ createdAt?: boolean;
323
+ updatedAt?: boolean;
324
+ }, ExtArgs["result"]["stripeEvent"]>;
325
+ export type StripeEventSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
326
+ id?: boolean;
327
+ stripeEventId?: boolean;
328
+ type?: boolean;
329
+ status?: boolean;
330
+ error?: boolean;
331
+ processedAt?: boolean;
332
+ createdAt?: boolean;
333
+ updatedAt?: boolean;
334
+ }, ExtArgs["result"]["stripeEvent"]>;
335
+ export type StripeEventSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
336
+ id?: boolean;
337
+ stripeEventId?: boolean;
338
+ type?: boolean;
339
+ status?: boolean;
340
+ error?: boolean;
341
+ processedAt?: boolean;
342
+ createdAt?: boolean;
343
+ updatedAt?: boolean;
344
+ }, ExtArgs["result"]["stripeEvent"]>;
345
+ export type StripeEventSelectScalar = {
346
+ id?: boolean;
347
+ stripeEventId?: boolean;
348
+ type?: boolean;
349
+ status?: boolean;
350
+ error?: boolean;
351
+ processedAt?: boolean;
352
+ createdAt?: boolean;
353
+ updatedAt?: boolean;
354
+ };
355
+ export type StripeEventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "stripeEventId" | "type" | "status" | "error" | "processedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["stripeEvent"]>;
356
+ export type $StripeEventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
357
+ name: "StripeEvent";
358
+ objects: {};
359
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
360
+ id: string;
361
+ stripeEventId: string;
362
+ type: string;
363
+ status: string;
364
+ error: string | null;
365
+ processedAt: Date | null;
366
+ createdAt: Date;
367
+ updatedAt: Date;
368
+ }, ExtArgs["result"]["stripeEvent"]>;
369
+ composites: {};
370
+ };
371
+ export type StripeEventGetPayload<S extends boolean | null | undefined | StripeEventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StripeEventPayload, S>;
372
+ export type StripeEventCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<StripeEventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
373
+ select?: StripeEventCountAggregateInputType | true;
374
+ };
375
+ export interface StripeEventDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
376
+ [K: symbol]: {
377
+ types: Prisma.TypeMap<ExtArgs>['model']['StripeEvent'];
378
+ meta: {
379
+ name: 'StripeEvent';
380
+ };
381
+ };
382
+ /**
383
+ * Find zero or one StripeEvent that matches the filter.
384
+ * @param {StripeEventFindUniqueArgs} args - Arguments to find a StripeEvent
385
+ * @example
386
+ * // Get one StripeEvent
387
+ * const stripeEvent = await prisma.stripeEvent.findUnique({
388
+ * where: {
389
+ * // ... provide filter here
390
+ * }
391
+ * })
392
+ */
393
+ findUnique<T extends StripeEventFindUniqueArgs>(args: Prisma.SelectSubset<T, StripeEventFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StripeEventClient<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
394
+ /**
395
+ * Find one StripeEvent that matches the filter or throw an error with `error.code='P2025'`
396
+ * if no matches were found.
397
+ * @param {StripeEventFindUniqueOrThrowArgs} args - Arguments to find a StripeEvent
398
+ * @example
399
+ * // Get one StripeEvent
400
+ * const stripeEvent = await prisma.stripeEvent.findUniqueOrThrow({
401
+ * where: {
402
+ * // ... provide filter here
403
+ * }
404
+ * })
405
+ */
406
+ findUniqueOrThrow<T extends StripeEventFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StripeEventFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StripeEventClient<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
407
+ /**
408
+ * Find the first StripeEvent that matches the filter.
409
+ * Note, that providing `undefined` is treated as the value not being there.
410
+ * Read more here: https://pris.ly/d/null-undefined
411
+ * @param {StripeEventFindFirstArgs} args - Arguments to find a StripeEvent
412
+ * @example
413
+ * // Get one StripeEvent
414
+ * const stripeEvent = await prisma.stripeEvent.findFirst({
415
+ * where: {
416
+ * // ... provide filter here
417
+ * }
418
+ * })
419
+ */
420
+ findFirst<T extends StripeEventFindFirstArgs>(args?: Prisma.SelectSubset<T, StripeEventFindFirstArgs<ExtArgs>>): Prisma.Prisma__StripeEventClient<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
421
+ /**
422
+ * Find the first StripeEvent that matches the filter or
423
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
424
+ * Note, that providing `undefined` is treated as the value not being there.
425
+ * Read more here: https://pris.ly/d/null-undefined
426
+ * @param {StripeEventFindFirstOrThrowArgs} args - Arguments to find a StripeEvent
427
+ * @example
428
+ * // Get one StripeEvent
429
+ * const stripeEvent = await prisma.stripeEvent.findFirstOrThrow({
430
+ * where: {
431
+ * // ... provide filter here
432
+ * }
433
+ * })
434
+ */
435
+ findFirstOrThrow<T extends StripeEventFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StripeEventFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StripeEventClient<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
436
+ /**
437
+ * Find zero or more StripeEvents that matches the filter.
438
+ * Note, that providing `undefined` is treated as the value not being there.
439
+ * Read more here: https://pris.ly/d/null-undefined
440
+ * @param {StripeEventFindManyArgs} args - Arguments to filter and select certain fields only.
441
+ * @example
442
+ * // Get all StripeEvents
443
+ * const stripeEvents = await prisma.stripeEvent.findMany()
444
+ *
445
+ * // Get first 10 StripeEvents
446
+ * const stripeEvents = await prisma.stripeEvent.findMany({ take: 10 })
447
+ *
448
+ * // Only select the `id`
449
+ * const stripeEventWithIdOnly = await prisma.stripeEvent.findMany({ select: { id: true } })
450
+ *
451
+ */
452
+ findMany<T extends StripeEventFindManyArgs>(args?: Prisma.SelectSubset<T, StripeEventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
453
+ /**
454
+ * Create a StripeEvent.
455
+ * @param {StripeEventCreateArgs} args - Arguments to create a StripeEvent.
456
+ * @example
457
+ * // Create one StripeEvent
458
+ * const StripeEvent = await prisma.stripeEvent.create({
459
+ * data: {
460
+ * // ... data to create a StripeEvent
461
+ * }
462
+ * })
463
+ *
464
+ */
465
+ create<T extends StripeEventCreateArgs>(args: Prisma.SelectSubset<T, StripeEventCreateArgs<ExtArgs>>): Prisma.Prisma__StripeEventClient<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
466
+ /**
467
+ * Create many StripeEvents.
468
+ * @param {StripeEventCreateManyArgs} args - Arguments to create many StripeEvents.
469
+ * @example
470
+ * // Create many StripeEvents
471
+ * const stripeEvent = await prisma.stripeEvent.createMany({
472
+ * data: [
473
+ * // ... provide data here
474
+ * ]
475
+ * })
476
+ *
477
+ */
478
+ createMany<T extends StripeEventCreateManyArgs>(args?: Prisma.SelectSubset<T, StripeEventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
479
+ /**
480
+ * Create many StripeEvents and returns the data saved in the database.
481
+ * @param {StripeEventCreateManyAndReturnArgs} args - Arguments to create many StripeEvents.
482
+ * @example
483
+ * // Create many StripeEvents
484
+ * const stripeEvent = await prisma.stripeEvent.createManyAndReturn({
485
+ * data: [
486
+ * // ... provide data here
487
+ * ]
488
+ * })
489
+ *
490
+ * // Create many StripeEvents and only return the `id`
491
+ * const stripeEventWithIdOnly = await prisma.stripeEvent.createManyAndReturn({
492
+ * select: { id: true },
493
+ * data: [
494
+ * // ... provide data here
495
+ * ]
496
+ * })
497
+ * Note, that providing `undefined` is treated as the value not being there.
498
+ * Read more here: https://pris.ly/d/null-undefined
499
+ *
500
+ */
501
+ createManyAndReturn<T extends StripeEventCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StripeEventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
502
+ /**
503
+ * Delete a StripeEvent.
504
+ * @param {StripeEventDeleteArgs} args - Arguments to delete one StripeEvent.
505
+ * @example
506
+ * // Delete one StripeEvent
507
+ * const StripeEvent = await prisma.stripeEvent.delete({
508
+ * where: {
509
+ * // ... filter to delete one StripeEvent
510
+ * }
511
+ * })
512
+ *
513
+ */
514
+ delete<T extends StripeEventDeleteArgs>(args: Prisma.SelectSubset<T, StripeEventDeleteArgs<ExtArgs>>): Prisma.Prisma__StripeEventClient<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
515
+ /**
516
+ * Update one StripeEvent.
517
+ * @param {StripeEventUpdateArgs} args - Arguments to update one StripeEvent.
518
+ * @example
519
+ * // Update one StripeEvent
520
+ * const stripeEvent = await prisma.stripeEvent.update({
521
+ * where: {
522
+ * // ... provide filter here
523
+ * },
524
+ * data: {
525
+ * // ... provide data here
526
+ * }
527
+ * })
528
+ *
529
+ */
530
+ update<T extends StripeEventUpdateArgs>(args: Prisma.SelectSubset<T, StripeEventUpdateArgs<ExtArgs>>): Prisma.Prisma__StripeEventClient<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
531
+ /**
532
+ * Delete zero or more StripeEvents.
533
+ * @param {StripeEventDeleteManyArgs} args - Arguments to filter StripeEvents to delete.
534
+ * @example
535
+ * // Delete a few StripeEvents
536
+ * const { count } = await prisma.stripeEvent.deleteMany({
537
+ * where: {
538
+ * // ... provide filter here
539
+ * }
540
+ * })
541
+ *
542
+ */
543
+ deleteMany<T extends StripeEventDeleteManyArgs>(args?: Prisma.SelectSubset<T, StripeEventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
544
+ /**
545
+ * Update zero or more StripeEvents.
546
+ * Note, that providing `undefined` is treated as the value not being there.
547
+ * Read more here: https://pris.ly/d/null-undefined
548
+ * @param {StripeEventUpdateManyArgs} args - Arguments to update one or more rows.
549
+ * @example
550
+ * // Update many StripeEvents
551
+ * const stripeEvent = await prisma.stripeEvent.updateMany({
552
+ * where: {
553
+ * // ... provide filter here
554
+ * },
555
+ * data: {
556
+ * // ... provide data here
557
+ * }
558
+ * })
559
+ *
560
+ */
561
+ updateMany<T extends StripeEventUpdateManyArgs>(args: Prisma.SelectSubset<T, StripeEventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
562
+ /**
563
+ * Update zero or more StripeEvents and returns the data updated in the database.
564
+ * @param {StripeEventUpdateManyAndReturnArgs} args - Arguments to update many StripeEvents.
565
+ * @example
566
+ * // Update many StripeEvents
567
+ * const stripeEvent = await prisma.stripeEvent.updateManyAndReturn({
568
+ * where: {
569
+ * // ... provide filter here
570
+ * },
571
+ * data: [
572
+ * // ... provide data here
573
+ * ]
574
+ * })
575
+ *
576
+ * // Update zero or more StripeEvents and only return the `id`
577
+ * const stripeEventWithIdOnly = await prisma.stripeEvent.updateManyAndReturn({
578
+ * select: { id: true },
579
+ * where: {
580
+ * // ... provide filter here
581
+ * },
582
+ * data: [
583
+ * // ... provide data here
584
+ * ]
585
+ * })
586
+ * Note, that providing `undefined` is treated as the value not being there.
587
+ * Read more here: https://pris.ly/d/null-undefined
588
+ *
589
+ */
590
+ updateManyAndReturn<T extends StripeEventUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StripeEventUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
591
+ /**
592
+ * Create or update one StripeEvent.
593
+ * @param {StripeEventUpsertArgs} args - Arguments to update or create a StripeEvent.
594
+ * @example
595
+ * // Update or create a StripeEvent
596
+ * const stripeEvent = await prisma.stripeEvent.upsert({
597
+ * create: {
598
+ * // ... data to create a StripeEvent
599
+ * },
600
+ * update: {
601
+ * // ... in case it already exists, update
602
+ * },
603
+ * where: {
604
+ * // ... the filter for the StripeEvent we want to update
605
+ * }
606
+ * })
607
+ */
608
+ upsert<T extends StripeEventUpsertArgs>(args: Prisma.SelectSubset<T, StripeEventUpsertArgs<ExtArgs>>): Prisma.Prisma__StripeEventClient<runtime.Types.Result.GetResult<Prisma.$StripeEventPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
609
+ /**
610
+ * Count the number of StripeEvents.
611
+ * Note, that providing `undefined` is treated as the value not being there.
612
+ * Read more here: https://pris.ly/d/null-undefined
613
+ * @param {StripeEventCountArgs} args - Arguments to filter StripeEvents to count.
614
+ * @example
615
+ * // Count the number of StripeEvents
616
+ * const count = await prisma.stripeEvent.count({
617
+ * where: {
618
+ * // ... the filter for the StripeEvents we want to count
619
+ * }
620
+ * })
621
+ **/
622
+ count<T extends StripeEventCountArgs>(args?: Prisma.Subset<T, StripeEventCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], StripeEventCountAggregateOutputType> : number>;
623
+ /**
624
+ * Allows you to perform aggregations operations on a StripeEvent.
625
+ * Note, that providing `undefined` is treated as the value not being there.
626
+ * Read more here: https://pris.ly/d/null-undefined
627
+ * @param {StripeEventAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
628
+ * @example
629
+ * // Ordered by age ascending
630
+ * // Where email contains prisma.io
631
+ * // Limited to the 10 users
632
+ * const aggregations = await prisma.user.aggregate({
633
+ * _avg: {
634
+ * age: true,
635
+ * },
636
+ * where: {
637
+ * email: {
638
+ * contains: "prisma.io",
639
+ * },
640
+ * },
641
+ * orderBy: {
642
+ * age: "asc",
643
+ * },
644
+ * take: 10,
645
+ * })
646
+ **/
647
+ aggregate<T extends StripeEventAggregateArgs>(args: Prisma.Subset<T, StripeEventAggregateArgs>): Prisma.PrismaPromise<GetStripeEventAggregateType<T>>;
648
+ /**
649
+ * Group by StripeEvent.
650
+ * Note, that providing `undefined` is treated as the value not being there.
651
+ * Read more here: https://pris.ly/d/null-undefined
652
+ * @param {StripeEventGroupByArgs} args - Group by arguments.
653
+ * @example
654
+ * // Group by city, order by createdAt, get count
655
+ * const result = await prisma.user.groupBy({
656
+ * by: ['city', 'createdAt'],
657
+ * orderBy: {
658
+ * createdAt: true
659
+ * },
660
+ * _count: {
661
+ * _all: true
662
+ * },
663
+ * })
664
+ *
665
+ **/
666
+ groupBy<T extends StripeEventGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
667
+ orderBy: StripeEventGroupByArgs['orderBy'];
668
+ } : {
669
+ orderBy?: StripeEventGroupByArgs['orderBy'];
670
+ }, 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 ? {
671
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
672
+ Error,
673
+ 'Field ',
674
+ P,
675
+ ` in "having" needs to be provided in "by"`
676
+ ];
677
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
678
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
679
+ }[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 ? {} : {
680
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
681
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
682
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
683
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, StripeEventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStripeEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
684
+ /**
685
+ * Fields of the StripeEvent model
686
+ */
687
+ readonly fields: StripeEventFieldRefs;
688
+ }
689
+ /**
690
+ * The delegate class that acts as a "Promise-like" for StripeEvent.
691
+ * Why is this prefixed with `Prisma__`?
692
+ * Because we want to prevent naming conflicts as mentioned in
693
+ * https://github.com/prisma/prisma-client-js/issues/707
694
+ */
695
+ export interface Prisma__StripeEventClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
696
+ readonly [Symbol.toStringTag]: "PrismaPromise";
697
+ /**
698
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
699
+ * @param onfulfilled The callback to execute when the Promise is resolved.
700
+ * @param onrejected The callback to execute when the Promise is rejected.
701
+ * @returns A Promise for the completion of which ever callback is executed.
702
+ */
703
+ 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>;
704
+ /**
705
+ * Attaches a callback for only the rejection of the Promise.
706
+ * @param onrejected The callback to execute when the Promise is rejected.
707
+ * @returns A Promise for the completion of the callback.
708
+ */
709
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
710
+ /**
711
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
712
+ * resolved value cannot be modified from the callback.
713
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
714
+ * @returns A Promise for the completion of the callback.
715
+ */
716
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
717
+ }
718
+ /**
719
+ * Fields of the StripeEvent model
720
+ */
721
+ export interface StripeEventFieldRefs {
722
+ readonly id: Prisma.FieldRef<"StripeEvent", 'String'>;
723
+ readonly stripeEventId: Prisma.FieldRef<"StripeEvent", 'String'>;
724
+ readonly type: Prisma.FieldRef<"StripeEvent", 'String'>;
725
+ readonly status: Prisma.FieldRef<"StripeEvent", 'String'>;
726
+ readonly error: Prisma.FieldRef<"StripeEvent", 'String'>;
727
+ readonly processedAt: Prisma.FieldRef<"StripeEvent", 'DateTime'>;
728
+ readonly createdAt: Prisma.FieldRef<"StripeEvent", 'DateTime'>;
729
+ readonly updatedAt: Prisma.FieldRef<"StripeEvent", 'DateTime'>;
730
+ }
731
+ /**
732
+ * StripeEvent findUnique
733
+ */
734
+ export type StripeEventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
735
+ /**
736
+ * Select specific fields to fetch from the StripeEvent
737
+ */
738
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
739
+ /**
740
+ * Omit specific fields from the StripeEvent
741
+ */
742
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
743
+ /**
744
+ * Filter, which StripeEvent to fetch.
745
+ */
746
+ where: Prisma.StripeEventWhereUniqueInput;
747
+ };
748
+ /**
749
+ * StripeEvent findUniqueOrThrow
750
+ */
751
+ export type StripeEventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
752
+ /**
753
+ * Select specific fields to fetch from the StripeEvent
754
+ */
755
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
756
+ /**
757
+ * Omit specific fields from the StripeEvent
758
+ */
759
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
760
+ /**
761
+ * Filter, which StripeEvent to fetch.
762
+ */
763
+ where: Prisma.StripeEventWhereUniqueInput;
764
+ };
765
+ /**
766
+ * StripeEvent findFirst
767
+ */
768
+ export type StripeEventFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
769
+ /**
770
+ * Select specific fields to fetch from the StripeEvent
771
+ */
772
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
773
+ /**
774
+ * Omit specific fields from the StripeEvent
775
+ */
776
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
777
+ /**
778
+ * Filter, which StripeEvent to fetch.
779
+ */
780
+ where?: Prisma.StripeEventWhereInput;
781
+ /**
782
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
783
+ *
784
+ * Determine the order of StripeEvents to fetch.
785
+ */
786
+ orderBy?: Prisma.StripeEventOrderByWithRelationInput | Prisma.StripeEventOrderByWithRelationInput[];
787
+ /**
788
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
789
+ *
790
+ * Sets the position for searching for StripeEvents.
791
+ */
792
+ cursor?: Prisma.StripeEventWhereUniqueInput;
793
+ /**
794
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
795
+ *
796
+ * Take `±n` StripeEvents from the position of the cursor.
797
+ */
798
+ take?: number;
799
+ /**
800
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
801
+ *
802
+ * Skip the first `n` StripeEvents.
803
+ */
804
+ skip?: number;
805
+ /**
806
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
807
+ *
808
+ * Filter by unique combinations of StripeEvents.
809
+ */
810
+ distinct?: Prisma.StripeEventScalarFieldEnum | Prisma.StripeEventScalarFieldEnum[];
811
+ };
812
+ /**
813
+ * StripeEvent findFirstOrThrow
814
+ */
815
+ export type StripeEventFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
816
+ /**
817
+ * Select specific fields to fetch from the StripeEvent
818
+ */
819
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
820
+ /**
821
+ * Omit specific fields from the StripeEvent
822
+ */
823
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
824
+ /**
825
+ * Filter, which StripeEvent to fetch.
826
+ */
827
+ where?: Prisma.StripeEventWhereInput;
828
+ /**
829
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
830
+ *
831
+ * Determine the order of StripeEvents to fetch.
832
+ */
833
+ orderBy?: Prisma.StripeEventOrderByWithRelationInput | Prisma.StripeEventOrderByWithRelationInput[];
834
+ /**
835
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
836
+ *
837
+ * Sets the position for searching for StripeEvents.
838
+ */
839
+ cursor?: Prisma.StripeEventWhereUniqueInput;
840
+ /**
841
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
842
+ *
843
+ * Take `±n` StripeEvents from the position of the cursor.
844
+ */
845
+ take?: number;
846
+ /**
847
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
848
+ *
849
+ * Skip the first `n` StripeEvents.
850
+ */
851
+ skip?: number;
852
+ /**
853
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
854
+ *
855
+ * Filter by unique combinations of StripeEvents.
856
+ */
857
+ distinct?: Prisma.StripeEventScalarFieldEnum | Prisma.StripeEventScalarFieldEnum[];
858
+ };
859
+ /**
860
+ * StripeEvent findMany
861
+ */
862
+ export type StripeEventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
863
+ /**
864
+ * Select specific fields to fetch from the StripeEvent
865
+ */
866
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
867
+ /**
868
+ * Omit specific fields from the StripeEvent
869
+ */
870
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
871
+ /**
872
+ * Filter, which StripeEvents to fetch.
873
+ */
874
+ where?: Prisma.StripeEventWhereInput;
875
+ /**
876
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
877
+ *
878
+ * Determine the order of StripeEvents to fetch.
879
+ */
880
+ orderBy?: Prisma.StripeEventOrderByWithRelationInput | Prisma.StripeEventOrderByWithRelationInput[];
881
+ /**
882
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
883
+ *
884
+ * Sets the position for listing StripeEvents.
885
+ */
886
+ cursor?: Prisma.StripeEventWhereUniqueInput;
887
+ /**
888
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
889
+ *
890
+ * Take `±n` StripeEvents from the position of the cursor.
891
+ */
892
+ take?: number;
893
+ /**
894
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
895
+ *
896
+ * Skip the first `n` StripeEvents.
897
+ */
898
+ skip?: number;
899
+ /**
900
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
901
+ *
902
+ * Filter by unique combinations of StripeEvents.
903
+ */
904
+ distinct?: Prisma.StripeEventScalarFieldEnum | Prisma.StripeEventScalarFieldEnum[];
905
+ };
906
+ /**
907
+ * StripeEvent create
908
+ */
909
+ export type StripeEventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
910
+ /**
911
+ * Select specific fields to fetch from the StripeEvent
912
+ */
913
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
914
+ /**
915
+ * Omit specific fields from the StripeEvent
916
+ */
917
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
918
+ /**
919
+ * The data needed to create a StripeEvent.
920
+ */
921
+ data: Prisma.XOR<Prisma.StripeEventCreateInput, Prisma.StripeEventUncheckedCreateInput>;
922
+ };
923
+ /**
924
+ * StripeEvent createMany
925
+ */
926
+ export type StripeEventCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
927
+ /**
928
+ * The data used to create many StripeEvents.
929
+ */
930
+ data: Prisma.StripeEventCreateManyInput | Prisma.StripeEventCreateManyInput[];
931
+ skipDuplicates?: boolean;
932
+ };
933
+ /**
934
+ * StripeEvent createManyAndReturn
935
+ */
936
+ export type StripeEventCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
937
+ /**
938
+ * Select specific fields to fetch from the StripeEvent
939
+ */
940
+ select?: Prisma.StripeEventSelectCreateManyAndReturn<ExtArgs> | null;
941
+ /**
942
+ * Omit specific fields from the StripeEvent
943
+ */
944
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
945
+ /**
946
+ * The data used to create many StripeEvents.
947
+ */
948
+ data: Prisma.StripeEventCreateManyInput | Prisma.StripeEventCreateManyInput[];
949
+ skipDuplicates?: boolean;
950
+ };
951
+ /**
952
+ * StripeEvent update
953
+ */
954
+ export type StripeEventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
955
+ /**
956
+ * Select specific fields to fetch from the StripeEvent
957
+ */
958
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
959
+ /**
960
+ * Omit specific fields from the StripeEvent
961
+ */
962
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
963
+ /**
964
+ * The data needed to update a StripeEvent.
965
+ */
966
+ data: Prisma.XOR<Prisma.StripeEventUpdateInput, Prisma.StripeEventUncheckedUpdateInput>;
967
+ /**
968
+ * Choose, which StripeEvent to update.
969
+ */
970
+ where: Prisma.StripeEventWhereUniqueInput;
971
+ };
972
+ /**
973
+ * StripeEvent updateMany
974
+ */
975
+ export type StripeEventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
976
+ /**
977
+ * The data used to update StripeEvents.
978
+ */
979
+ data: Prisma.XOR<Prisma.StripeEventUpdateManyMutationInput, Prisma.StripeEventUncheckedUpdateManyInput>;
980
+ /**
981
+ * Filter which StripeEvents to update
982
+ */
983
+ where?: Prisma.StripeEventWhereInput;
984
+ /**
985
+ * Limit how many StripeEvents to update.
986
+ */
987
+ limit?: number;
988
+ };
989
+ /**
990
+ * StripeEvent updateManyAndReturn
991
+ */
992
+ export type StripeEventUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
993
+ /**
994
+ * Select specific fields to fetch from the StripeEvent
995
+ */
996
+ select?: Prisma.StripeEventSelectUpdateManyAndReturn<ExtArgs> | null;
997
+ /**
998
+ * Omit specific fields from the StripeEvent
999
+ */
1000
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
1001
+ /**
1002
+ * The data used to update StripeEvents.
1003
+ */
1004
+ data: Prisma.XOR<Prisma.StripeEventUpdateManyMutationInput, Prisma.StripeEventUncheckedUpdateManyInput>;
1005
+ /**
1006
+ * Filter which StripeEvents to update
1007
+ */
1008
+ where?: Prisma.StripeEventWhereInput;
1009
+ /**
1010
+ * Limit how many StripeEvents to update.
1011
+ */
1012
+ limit?: number;
1013
+ };
1014
+ /**
1015
+ * StripeEvent upsert
1016
+ */
1017
+ export type StripeEventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1018
+ /**
1019
+ * Select specific fields to fetch from the StripeEvent
1020
+ */
1021
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
1022
+ /**
1023
+ * Omit specific fields from the StripeEvent
1024
+ */
1025
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
1026
+ /**
1027
+ * The filter to search for the StripeEvent to update in case it exists.
1028
+ */
1029
+ where: Prisma.StripeEventWhereUniqueInput;
1030
+ /**
1031
+ * In case the StripeEvent found by the `where` argument doesn't exist, create a new StripeEvent with this data.
1032
+ */
1033
+ create: Prisma.XOR<Prisma.StripeEventCreateInput, Prisma.StripeEventUncheckedCreateInput>;
1034
+ /**
1035
+ * In case the StripeEvent was found with the provided `where` argument, update it with this data.
1036
+ */
1037
+ update: Prisma.XOR<Prisma.StripeEventUpdateInput, Prisma.StripeEventUncheckedUpdateInput>;
1038
+ };
1039
+ /**
1040
+ * StripeEvent delete
1041
+ */
1042
+ export type StripeEventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1043
+ /**
1044
+ * Select specific fields to fetch from the StripeEvent
1045
+ */
1046
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
1047
+ /**
1048
+ * Omit specific fields from the StripeEvent
1049
+ */
1050
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
1051
+ /**
1052
+ * Filter which StripeEvent to delete.
1053
+ */
1054
+ where: Prisma.StripeEventWhereUniqueInput;
1055
+ };
1056
+ /**
1057
+ * StripeEvent deleteMany
1058
+ */
1059
+ export type StripeEventDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1060
+ /**
1061
+ * Filter which StripeEvents to delete
1062
+ */
1063
+ where?: Prisma.StripeEventWhereInput;
1064
+ /**
1065
+ * Limit how many StripeEvents to delete.
1066
+ */
1067
+ limit?: number;
1068
+ };
1069
+ /**
1070
+ * StripeEvent without action
1071
+ */
1072
+ export type StripeEventDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1073
+ /**
1074
+ * Select specific fields to fetch from the StripeEvent
1075
+ */
1076
+ select?: Prisma.StripeEventSelect<ExtArgs> | null;
1077
+ /**
1078
+ * Omit specific fields from the StripeEvent
1079
+ */
1080
+ omit?: Prisma.StripeEventOmit<ExtArgs> | null;
1081
+ };