@allbluecn/database 0.4.0 → 0.4.2

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 (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1710 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Invoice` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model Invoice
17
+ * 账单记录(Webhook 同步)
18
+ */
19
+ export type InvoiceModel = runtime.Types.Result.DefaultSelection<Prisma.$InvoicePayload>
20
+
21
+ export type AggregateInvoice = {
22
+ _count: InvoiceCountAggregateOutputType | null
23
+ _avg: InvoiceAvgAggregateOutputType | null
24
+ _sum: InvoiceSumAggregateOutputType | null
25
+ _min: InvoiceMinAggregateOutputType | null
26
+ _max: InvoiceMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type InvoiceAvgAggregateOutputType = {
30
+ amountDue: number | null
31
+ amountPaid: number | null
32
+ }
33
+
34
+ export type InvoiceSumAggregateOutputType = {
35
+ amountDue: number | null
36
+ amountPaid: number | null
37
+ }
38
+
39
+ export type InvoiceMinAggregateOutputType = {
40
+ id: string | null
41
+ subscriptionId: string | null
42
+ providerInvoiceId: string | null
43
+ providerEventId: string | null
44
+ amountDue: number | null
45
+ amountPaid: number | null
46
+ currency: string | null
47
+ status: string | null
48
+ pdfUrl: string | null
49
+ hostedInvoiceUrl: string | null
50
+ periodStart: Date | null
51
+ periodEnd: Date | null
52
+ paidAt: Date | null
53
+ createdAt: Date | null
54
+ }
55
+
56
+ export type InvoiceMaxAggregateOutputType = {
57
+ id: string | null
58
+ subscriptionId: string | null
59
+ providerInvoiceId: string | null
60
+ providerEventId: string | null
61
+ amountDue: number | null
62
+ amountPaid: number | null
63
+ currency: string | null
64
+ status: string | null
65
+ pdfUrl: string | null
66
+ hostedInvoiceUrl: string | null
67
+ periodStart: Date | null
68
+ periodEnd: Date | null
69
+ paidAt: Date | null
70
+ createdAt: Date | null
71
+ }
72
+
73
+ export type InvoiceCountAggregateOutputType = {
74
+ id: number
75
+ subscriptionId: number
76
+ providerInvoiceId: number
77
+ providerEventId: number
78
+ amountDue: number
79
+ amountPaid: number
80
+ currency: number
81
+ status: number
82
+ pdfUrl: number
83
+ hostedInvoiceUrl: number
84
+ periodStart: number
85
+ periodEnd: number
86
+ paidAt: number
87
+ createdAt: number
88
+ _all: number
89
+ }
90
+
91
+
92
+ export type InvoiceAvgAggregateInputType = {
93
+ amountDue?: true
94
+ amountPaid?: true
95
+ }
96
+
97
+ export type InvoiceSumAggregateInputType = {
98
+ amountDue?: true
99
+ amountPaid?: true
100
+ }
101
+
102
+ export type InvoiceMinAggregateInputType = {
103
+ id?: true
104
+ subscriptionId?: true
105
+ providerInvoiceId?: true
106
+ providerEventId?: true
107
+ amountDue?: true
108
+ amountPaid?: true
109
+ currency?: true
110
+ status?: true
111
+ pdfUrl?: true
112
+ hostedInvoiceUrl?: true
113
+ periodStart?: true
114
+ periodEnd?: true
115
+ paidAt?: true
116
+ createdAt?: true
117
+ }
118
+
119
+ export type InvoiceMaxAggregateInputType = {
120
+ id?: true
121
+ subscriptionId?: true
122
+ providerInvoiceId?: true
123
+ providerEventId?: true
124
+ amountDue?: true
125
+ amountPaid?: true
126
+ currency?: true
127
+ status?: true
128
+ pdfUrl?: true
129
+ hostedInvoiceUrl?: true
130
+ periodStart?: true
131
+ periodEnd?: true
132
+ paidAt?: true
133
+ createdAt?: true
134
+ }
135
+
136
+ export type InvoiceCountAggregateInputType = {
137
+ id?: true
138
+ subscriptionId?: true
139
+ providerInvoiceId?: true
140
+ providerEventId?: true
141
+ amountDue?: true
142
+ amountPaid?: true
143
+ currency?: true
144
+ status?: true
145
+ pdfUrl?: true
146
+ hostedInvoiceUrl?: true
147
+ periodStart?: true
148
+ periodEnd?: true
149
+ paidAt?: true
150
+ createdAt?: true
151
+ _all?: true
152
+ }
153
+
154
+ export type InvoiceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
155
+ /**
156
+ * Filter which Invoice to aggregate.
157
+ */
158
+ where?: Prisma.InvoiceWhereInput
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
161
+ *
162
+ * Determine the order of Invoices to fetch.
163
+ */
164
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
167
+ *
168
+ * Sets the start position
169
+ */
170
+ cursor?: Prisma.InvoiceWhereUniqueInput
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
173
+ *
174
+ * Take `±n` Invoices from the position of the cursor.
175
+ */
176
+ take?: number
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
179
+ *
180
+ * Skip the first `n` Invoices.
181
+ */
182
+ skip?: number
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Count returned Invoices
187
+ **/
188
+ _count?: true | InvoiceCountAggregateInputType
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Select which fields to average
193
+ **/
194
+ _avg?: InvoiceAvgAggregateInputType
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to sum
199
+ **/
200
+ _sum?: InvoiceSumAggregateInputType
201
+ /**
202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
203
+ *
204
+ * Select which fields to find the minimum value
205
+ **/
206
+ _min?: InvoiceMinAggregateInputType
207
+ /**
208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
209
+ *
210
+ * Select which fields to find the maximum value
211
+ **/
212
+ _max?: InvoiceMaxAggregateInputType
213
+ }
214
+
215
+ export type GetInvoiceAggregateType<T extends InvoiceAggregateArgs> = {
216
+ [P in keyof T & keyof AggregateInvoice]: P extends '_count' | 'count'
217
+ ? T[P] extends true
218
+ ? number
219
+ : Prisma.GetScalarType<T[P], AggregateInvoice[P]>
220
+ : Prisma.GetScalarType<T[P], AggregateInvoice[P]>
221
+ }
222
+
223
+
224
+
225
+
226
+ export type InvoiceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
227
+ where?: Prisma.InvoiceWhereInput
228
+ orderBy?: Prisma.InvoiceOrderByWithAggregationInput | Prisma.InvoiceOrderByWithAggregationInput[]
229
+ by: Prisma.InvoiceScalarFieldEnum[] | Prisma.InvoiceScalarFieldEnum
230
+ having?: Prisma.InvoiceScalarWhereWithAggregatesInput
231
+ take?: number
232
+ skip?: number
233
+ _count?: InvoiceCountAggregateInputType | true
234
+ _avg?: InvoiceAvgAggregateInputType
235
+ _sum?: InvoiceSumAggregateInputType
236
+ _min?: InvoiceMinAggregateInputType
237
+ _max?: InvoiceMaxAggregateInputType
238
+ }
239
+
240
+ export type InvoiceGroupByOutputType = {
241
+ id: string
242
+ subscriptionId: string
243
+ providerInvoiceId: string
244
+ providerEventId: string | null
245
+ amountDue: number
246
+ amountPaid: number
247
+ currency: string
248
+ status: string
249
+ pdfUrl: string | null
250
+ hostedInvoiceUrl: string | null
251
+ periodStart: Date
252
+ periodEnd: Date
253
+ paidAt: Date | null
254
+ createdAt: Date
255
+ _count: InvoiceCountAggregateOutputType | null
256
+ _avg: InvoiceAvgAggregateOutputType | null
257
+ _sum: InvoiceSumAggregateOutputType | null
258
+ _min: InvoiceMinAggregateOutputType | null
259
+ _max: InvoiceMaxAggregateOutputType | null
260
+ }
261
+
262
+ export type GetInvoiceGroupByPayload<T extends InvoiceGroupByArgs> = Prisma.PrismaPromise<
263
+ Array<
264
+ Prisma.PickEnumerable<InvoiceGroupByOutputType, T['by']> &
265
+ {
266
+ [P in ((keyof T) & (keyof InvoiceGroupByOutputType))]: P extends '_count'
267
+ ? T[P] extends boolean
268
+ ? number
269
+ : Prisma.GetScalarType<T[P], InvoiceGroupByOutputType[P]>
270
+ : Prisma.GetScalarType<T[P], InvoiceGroupByOutputType[P]>
271
+ }
272
+ >
273
+ >
274
+
275
+
276
+
277
+ export type InvoiceWhereInput = {
278
+ AND?: Prisma.InvoiceWhereInput | Prisma.InvoiceWhereInput[]
279
+ OR?: Prisma.InvoiceWhereInput[]
280
+ NOT?: Prisma.InvoiceWhereInput | Prisma.InvoiceWhereInput[]
281
+ id?: Prisma.StringFilter<"Invoice"> | string
282
+ subscriptionId?: Prisma.StringFilter<"Invoice"> | string
283
+ providerInvoiceId?: Prisma.StringFilter<"Invoice"> | string
284
+ providerEventId?: Prisma.StringNullableFilter<"Invoice"> | string | null
285
+ amountDue?: Prisma.IntFilter<"Invoice"> | number
286
+ amountPaid?: Prisma.IntFilter<"Invoice"> | number
287
+ currency?: Prisma.StringFilter<"Invoice"> | string
288
+ status?: Prisma.StringFilter<"Invoice"> | string
289
+ pdfUrl?: Prisma.StringNullableFilter<"Invoice"> | string | null
290
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Invoice"> | string | null
291
+ periodStart?: Prisma.DateTimeFilter<"Invoice"> | Date | string
292
+ periodEnd?: Prisma.DateTimeFilter<"Invoice"> | Date | string
293
+ paidAt?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
294
+ createdAt?: Prisma.DateTimeFilter<"Invoice"> | Date | string
295
+ subscription?: Prisma.XOR<Prisma.SubscriptionScalarRelationFilter, Prisma.SubscriptionWhereInput>
296
+ }
297
+
298
+ export type InvoiceOrderByWithRelationInput = {
299
+ id?: Prisma.SortOrder
300
+ subscriptionId?: Prisma.SortOrder
301
+ providerInvoiceId?: Prisma.SortOrder
302
+ providerEventId?: Prisma.SortOrderInput | Prisma.SortOrder
303
+ amountDue?: Prisma.SortOrder
304
+ amountPaid?: Prisma.SortOrder
305
+ currency?: Prisma.SortOrder
306
+ status?: Prisma.SortOrder
307
+ pdfUrl?: Prisma.SortOrderInput | Prisma.SortOrder
308
+ hostedInvoiceUrl?: Prisma.SortOrderInput | Prisma.SortOrder
309
+ periodStart?: Prisma.SortOrder
310
+ periodEnd?: Prisma.SortOrder
311
+ paidAt?: Prisma.SortOrderInput | Prisma.SortOrder
312
+ createdAt?: Prisma.SortOrder
313
+ subscription?: Prisma.SubscriptionOrderByWithRelationInput
314
+ }
315
+
316
+ export type InvoiceWhereUniqueInput = Prisma.AtLeast<{
317
+ id?: string
318
+ providerInvoiceId?: string
319
+ AND?: Prisma.InvoiceWhereInput | Prisma.InvoiceWhereInput[]
320
+ OR?: Prisma.InvoiceWhereInput[]
321
+ NOT?: Prisma.InvoiceWhereInput | Prisma.InvoiceWhereInput[]
322
+ subscriptionId?: Prisma.StringFilter<"Invoice"> | string
323
+ providerEventId?: Prisma.StringNullableFilter<"Invoice"> | string | null
324
+ amountDue?: Prisma.IntFilter<"Invoice"> | number
325
+ amountPaid?: Prisma.IntFilter<"Invoice"> | number
326
+ currency?: Prisma.StringFilter<"Invoice"> | string
327
+ status?: Prisma.StringFilter<"Invoice"> | string
328
+ pdfUrl?: Prisma.StringNullableFilter<"Invoice"> | string | null
329
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Invoice"> | string | null
330
+ periodStart?: Prisma.DateTimeFilter<"Invoice"> | Date | string
331
+ periodEnd?: Prisma.DateTimeFilter<"Invoice"> | Date | string
332
+ paidAt?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
333
+ createdAt?: Prisma.DateTimeFilter<"Invoice"> | Date | string
334
+ subscription?: Prisma.XOR<Prisma.SubscriptionScalarRelationFilter, Prisma.SubscriptionWhereInput>
335
+ }, "id" | "providerInvoiceId">
336
+
337
+ export type InvoiceOrderByWithAggregationInput = {
338
+ id?: Prisma.SortOrder
339
+ subscriptionId?: Prisma.SortOrder
340
+ providerInvoiceId?: Prisma.SortOrder
341
+ providerEventId?: Prisma.SortOrderInput | Prisma.SortOrder
342
+ amountDue?: Prisma.SortOrder
343
+ amountPaid?: Prisma.SortOrder
344
+ currency?: Prisma.SortOrder
345
+ status?: Prisma.SortOrder
346
+ pdfUrl?: Prisma.SortOrderInput | Prisma.SortOrder
347
+ hostedInvoiceUrl?: Prisma.SortOrderInput | Prisma.SortOrder
348
+ periodStart?: Prisma.SortOrder
349
+ periodEnd?: Prisma.SortOrder
350
+ paidAt?: Prisma.SortOrderInput | Prisma.SortOrder
351
+ createdAt?: Prisma.SortOrder
352
+ _count?: Prisma.InvoiceCountOrderByAggregateInput
353
+ _avg?: Prisma.InvoiceAvgOrderByAggregateInput
354
+ _max?: Prisma.InvoiceMaxOrderByAggregateInput
355
+ _min?: Prisma.InvoiceMinOrderByAggregateInput
356
+ _sum?: Prisma.InvoiceSumOrderByAggregateInput
357
+ }
358
+
359
+ export type InvoiceScalarWhereWithAggregatesInput = {
360
+ AND?: Prisma.InvoiceScalarWhereWithAggregatesInput | Prisma.InvoiceScalarWhereWithAggregatesInput[]
361
+ OR?: Prisma.InvoiceScalarWhereWithAggregatesInput[]
362
+ NOT?: Prisma.InvoiceScalarWhereWithAggregatesInput | Prisma.InvoiceScalarWhereWithAggregatesInput[]
363
+ id?: Prisma.StringWithAggregatesFilter<"Invoice"> | string
364
+ subscriptionId?: Prisma.StringWithAggregatesFilter<"Invoice"> | string
365
+ providerInvoiceId?: Prisma.StringWithAggregatesFilter<"Invoice"> | string
366
+ providerEventId?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
367
+ amountDue?: Prisma.IntWithAggregatesFilter<"Invoice"> | number
368
+ amountPaid?: Prisma.IntWithAggregatesFilter<"Invoice"> | number
369
+ currency?: Prisma.StringWithAggregatesFilter<"Invoice"> | string
370
+ status?: Prisma.StringWithAggregatesFilter<"Invoice"> | string
371
+ pdfUrl?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
372
+ hostedInvoiceUrl?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
373
+ periodStart?: Prisma.DateTimeWithAggregatesFilter<"Invoice"> | Date | string
374
+ periodEnd?: Prisma.DateTimeWithAggregatesFilter<"Invoice"> | Date | string
375
+ paidAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Invoice"> | Date | string | null
376
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Invoice"> | Date | string
377
+ }
378
+
379
+ export type InvoiceCreateInput = {
380
+ id?: string
381
+ providerInvoiceId: string
382
+ providerEventId?: string | null
383
+ amountDue: number
384
+ amountPaid: number
385
+ currency?: string
386
+ status: string
387
+ pdfUrl?: string | null
388
+ hostedInvoiceUrl?: string | null
389
+ periodStart: Date | string
390
+ periodEnd: Date | string
391
+ paidAt?: Date | string | null
392
+ createdAt?: Date | string
393
+ subscription: Prisma.SubscriptionCreateNestedOneWithoutInvoicesInput
394
+ }
395
+
396
+ export type InvoiceUncheckedCreateInput = {
397
+ id?: string
398
+ subscriptionId: string
399
+ providerInvoiceId: string
400
+ providerEventId?: string | null
401
+ amountDue: number
402
+ amountPaid: number
403
+ currency?: string
404
+ status: string
405
+ pdfUrl?: string | null
406
+ hostedInvoiceUrl?: string | null
407
+ periodStart: Date | string
408
+ periodEnd: Date | string
409
+ paidAt?: Date | string | null
410
+ createdAt?: Date | string
411
+ }
412
+
413
+ export type InvoiceUpdateInput = {
414
+ id?: Prisma.StringFieldUpdateOperationsInput | string
415
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
416
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
417
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
418
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
419
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
420
+ status?: Prisma.StringFieldUpdateOperationsInput | string
421
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
422
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
423
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
424
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
425
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
426
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
427
+ subscription?: Prisma.SubscriptionUpdateOneRequiredWithoutInvoicesNestedInput
428
+ }
429
+
430
+ export type InvoiceUncheckedUpdateInput = {
431
+ id?: Prisma.StringFieldUpdateOperationsInput | string
432
+ subscriptionId?: Prisma.StringFieldUpdateOperationsInput | string
433
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
434
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
435
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
436
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
437
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
438
+ status?: Prisma.StringFieldUpdateOperationsInput | string
439
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
440
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
441
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
442
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
443
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
444
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
445
+ }
446
+
447
+ export type InvoiceCreateManyInput = {
448
+ id?: string
449
+ subscriptionId: string
450
+ providerInvoiceId: string
451
+ providerEventId?: string | null
452
+ amountDue: number
453
+ amountPaid: number
454
+ currency?: string
455
+ status: string
456
+ pdfUrl?: string | null
457
+ hostedInvoiceUrl?: string | null
458
+ periodStart: Date | string
459
+ periodEnd: Date | string
460
+ paidAt?: Date | string | null
461
+ createdAt?: Date | string
462
+ }
463
+
464
+ export type InvoiceUpdateManyMutationInput = {
465
+ id?: Prisma.StringFieldUpdateOperationsInput | string
466
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
467
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
468
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
469
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
470
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
471
+ status?: Prisma.StringFieldUpdateOperationsInput | string
472
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
473
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
474
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
475
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
476
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
477
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
478
+ }
479
+
480
+ export type InvoiceUncheckedUpdateManyInput = {
481
+ id?: Prisma.StringFieldUpdateOperationsInput | string
482
+ subscriptionId?: Prisma.StringFieldUpdateOperationsInput | string
483
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
484
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
485
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
486
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
487
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
488
+ status?: Prisma.StringFieldUpdateOperationsInput | string
489
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
490
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
491
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
492
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
493
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
494
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
495
+ }
496
+
497
+ export type InvoiceListRelationFilter = {
498
+ every?: Prisma.InvoiceWhereInput
499
+ some?: Prisma.InvoiceWhereInput
500
+ none?: Prisma.InvoiceWhereInput
501
+ }
502
+
503
+ export type InvoiceOrderByRelationAggregateInput = {
504
+ _count?: Prisma.SortOrder
505
+ }
506
+
507
+ export type InvoiceCountOrderByAggregateInput = {
508
+ id?: Prisma.SortOrder
509
+ subscriptionId?: Prisma.SortOrder
510
+ providerInvoiceId?: Prisma.SortOrder
511
+ providerEventId?: Prisma.SortOrder
512
+ amountDue?: Prisma.SortOrder
513
+ amountPaid?: Prisma.SortOrder
514
+ currency?: Prisma.SortOrder
515
+ status?: Prisma.SortOrder
516
+ pdfUrl?: Prisma.SortOrder
517
+ hostedInvoiceUrl?: Prisma.SortOrder
518
+ periodStart?: Prisma.SortOrder
519
+ periodEnd?: Prisma.SortOrder
520
+ paidAt?: Prisma.SortOrder
521
+ createdAt?: Prisma.SortOrder
522
+ }
523
+
524
+ export type InvoiceAvgOrderByAggregateInput = {
525
+ amountDue?: Prisma.SortOrder
526
+ amountPaid?: Prisma.SortOrder
527
+ }
528
+
529
+ export type InvoiceMaxOrderByAggregateInput = {
530
+ id?: Prisma.SortOrder
531
+ subscriptionId?: Prisma.SortOrder
532
+ providerInvoiceId?: Prisma.SortOrder
533
+ providerEventId?: Prisma.SortOrder
534
+ amountDue?: Prisma.SortOrder
535
+ amountPaid?: Prisma.SortOrder
536
+ currency?: Prisma.SortOrder
537
+ status?: Prisma.SortOrder
538
+ pdfUrl?: Prisma.SortOrder
539
+ hostedInvoiceUrl?: Prisma.SortOrder
540
+ periodStart?: Prisma.SortOrder
541
+ periodEnd?: Prisma.SortOrder
542
+ paidAt?: Prisma.SortOrder
543
+ createdAt?: Prisma.SortOrder
544
+ }
545
+
546
+ export type InvoiceMinOrderByAggregateInput = {
547
+ id?: Prisma.SortOrder
548
+ subscriptionId?: Prisma.SortOrder
549
+ providerInvoiceId?: Prisma.SortOrder
550
+ providerEventId?: Prisma.SortOrder
551
+ amountDue?: Prisma.SortOrder
552
+ amountPaid?: Prisma.SortOrder
553
+ currency?: Prisma.SortOrder
554
+ status?: Prisma.SortOrder
555
+ pdfUrl?: Prisma.SortOrder
556
+ hostedInvoiceUrl?: Prisma.SortOrder
557
+ periodStart?: Prisma.SortOrder
558
+ periodEnd?: Prisma.SortOrder
559
+ paidAt?: Prisma.SortOrder
560
+ createdAt?: Prisma.SortOrder
561
+ }
562
+
563
+ export type InvoiceSumOrderByAggregateInput = {
564
+ amountDue?: Prisma.SortOrder
565
+ amountPaid?: Prisma.SortOrder
566
+ }
567
+
568
+ export type InvoiceCreateNestedManyWithoutSubscriptionInput = {
569
+ create?: Prisma.XOR<Prisma.InvoiceCreateWithoutSubscriptionInput, Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput> | Prisma.InvoiceCreateWithoutSubscriptionInput[] | Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput[]
570
+ connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutSubscriptionInput | Prisma.InvoiceCreateOrConnectWithoutSubscriptionInput[]
571
+ createMany?: Prisma.InvoiceCreateManySubscriptionInputEnvelope
572
+ connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
573
+ }
574
+
575
+ export type InvoiceUncheckedCreateNestedManyWithoutSubscriptionInput = {
576
+ create?: Prisma.XOR<Prisma.InvoiceCreateWithoutSubscriptionInput, Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput> | Prisma.InvoiceCreateWithoutSubscriptionInput[] | Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput[]
577
+ connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutSubscriptionInput | Prisma.InvoiceCreateOrConnectWithoutSubscriptionInput[]
578
+ createMany?: Prisma.InvoiceCreateManySubscriptionInputEnvelope
579
+ connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
580
+ }
581
+
582
+ export type InvoiceUpdateManyWithoutSubscriptionNestedInput = {
583
+ create?: Prisma.XOR<Prisma.InvoiceCreateWithoutSubscriptionInput, Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput> | Prisma.InvoiceCreateWithoutSubscriptionInput[] | Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput[]
584
+ connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutSubscriptionInput | Prisma.InvoiceCreateOrConnectWithoutSubscriptionInput[]
585
+ upsert?: Prisma.InvoiceUpsertWithWhereUniqueWithoutSubscriptionInput | Prisma.InvoiceUpsertWithWhereUniqueWithoutSubscriptionInput[]
586
+ createMany?: Prisma.InvoiceCreateManySubscriptionInputEnvelope
587
+ set?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
588
+ disconnect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
589
+ delete?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
590
+ connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
591
+ update?: Prisma.InvoiceUpdateWithWhereUniqueWithoutSubscriptionInput | Prisma.InvoiceUpdateWithWhereUniqueWithoutSubscriptionInput[]
592
+ updateMany?: Prisma.InvoiceUpdateManyWithWhereWithoutSubscriptionInput | Prisma.InvoiceUpdateManyWithWhereWithoutSubscriptionInput[]
593
+ deleteMany?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
594
+ }
595
+
596
+ export type InvoiceUncheckedUpdateManyWithoutSubscriptionNestedInput = {
597
+ create?: Prisma.XOR<Prisma.InvoiceCreateWithoutSubscriptionInput, Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput> | Prisma.InvoiceCreateWithoutSubscriptionInput[] | Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput[]
598
+ connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutSubscriptionInput | Prisma.InvoiceCreateOrConnectWithoutSubscriptionInput[]
599
+ upsert?: Prisma.InvoiceUpsertWithWhereUniqueWithoutSubscriptionInput | Prisma.InvoiceUpsertWithWhereUniqueWithoutSubscriptionInput[]
600
+ createMany?: Prisma.InvoiceCreateManySubscriptionInputEnvelope
601
+ set?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
602
+ disconnect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
603
+ delete?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
604
+ connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
605
+ update?: Prisma.InvoiceUpdateWithWhereUniqueWithoutSubscriptionInput | Prisma.InvoiceUpdateWithWhereUniqueWithoutSubscriptionInput[]
606
+ updateMany?: Prisma.InvoiceUpdateManyWithWhereWithoutSubscriptionInput | Prisma.InvoiceUpdateManyWithWhereWithoutSubscriptionInput[]
607
+ deleteMany?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
608
+ }
609
+
610
+ export type InvoiceCreateWithoutSubscriptionInput = {
611
+ id?: string
612
+ providerInvoiceId: string
613
+ providerEventId?: string | null
614
+ amountDue: number
615
+ amountPaid: number
616
+ currency?: string
617
+ status: string
618
+ pdfUrl?: string | null
619
+ hostedInvoiceUrl?: string | null
620
+ periodStart: Date | string
621
+ periodEnd: Date | string
622
+ paidAt?: Date | string | null
623
+ createdAt?: Date | string
624
+ }
625
+
626
+ export type InvoiceUncheckedCreateWithoutSubscriptionInput = {
627
+ id?: string
628
+ providerInvoiceId: string
629
+ providerEventId?: string | null
630
+ amountDue: number
631
+ amountPaid: number
632
+ currency?: string
633
+ status: string
634
+ pdfUrl?: string | null
635
+ hostedInvoiceUrl?: string | null
636
+ periodStart: Date | string
637
+ periodEnd: Date | string
638
+ paidAt?: Date | string | null
639
+ createdAt?: Date | string
640
+ }
641
+
642
+ export type InvoiceCreateOrConnectWithoutSubscriptionInput = {
643
+ where: Prisma.InvoiceWhereUniqueInput
644
+ create: Prisma.XOR<Prisma.InvoiceCreateWithoutSubscriptionInput, Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput>
645
+ }
646
+
647
+ export type InvoiceCreateManySubscriptionInputEnvelope = {
648
+ data: Prisma.InvoiceCreateManySubscriptionInput | Prisma.InvoiceCreateManySubscriptionInput[]
649
+ skipDuplicates?: boolean
650
+ }
651
+
652
+ export type InvoiceUpsertWithWhereUniqueWithoutSubscriptionInput = {
653
+ where: Prisma.InvoiceWhereUniqueInput
654
+ update: Prisma.XOR<Prisma.InvoiceUpdateWithoutSubscriptionInput, Prisma.InvoiceUncheckedUpdateWithoutSubscriptionInput>
655
+ create: Prisma.XOR<Prisma.InvoiceCreateWithoutSubscriptionInput, Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput>
656
+ }
657
+
658
+ export type InvoiceUpdateWithWhereUniqueWithoutSubscriptionInput = {
659
+ where: Prisma.InvoiceWhereUniqueInput
660
+ data: Prisma.XOR<Prisma.InvoiceUpdateWithoutSubscriptionInput, Prisma.InvoiceUncheckedUpdateWithoutSubscriptionInput>
661
+ }
662
+
663
+ export type InvoiceUpdateManyWithWhereWithoutSubscriptionInput = {
664
+ where: Prisma.InvoiceScalarWhereInput
665
+ data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyWithoutSubscriptionInput>
666
+ }
667
+
668
+ export type InvoiceScalarWhereInput = {
669
+ AND?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
670
+ OR?: Prisma.InvoiceScalarWhereInput[]
671
+ NOT?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
672
+ id?: Prisma.StringFilter<"Invoice"> | string
673
+ subscriptionId?: Prisma.StringFilter<"Invoice"> | string
674
+ providerInvoiceId?: Prisma.StringFilter<"Invoice"> | string
675
+ providerEventId?: Prisma.StringNullableFilter<"Invoice"> | string | null
676
+ amountDue?: Prisma.IntFilter<"Invoice"> | number
677
+ amountPaid?: Prisma.IntFilter<"Invoice"> | number
678
+ currency?: Prisma.StringFilter<"Invoice"> | string
679
+ status?: Prisma.StringFilter<"Invoice"> | string
680
+ pdfUrl?: Prisma.StringNullableFilter<"Invoice"> | string | null
681
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Invoice"> | string | null
682
+ periodStart?: Prisma.DateTimeFilter<"Invoice"> | Date | string
683
+ periodEnd?: Prisma.DateTimeFilter<"Invoice"> | Date | string
684
+ paidAt?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
685
+ createdAt?: Prisma.DateTimeFilter<"Invoice"> | Date | string
686
+ }
687
+
688
+ export type InvoiceCreateManySubscriptionInput = {
689
+ id?: string
690
+ providerInvoiceId: string
691
+ providerEventId?: string | null
692
+ amountDue: number
693
+ amountPaid: number
694
+ currency?: string
695
+ status: string
696
+ pdfUrl?: string | null
697
+ hostedInvoiceUrl?: string | null
698
+ periodStart: Date | string
699
+ periodEnd: Date | string
700
+ paidAt?: Date | string | null
701
+ createdAt?: Date | string
702
+ }
703
+
704
+ export type InvoiceUpdateWithoutSubscriptionInput = {
705
+ id?: Prisma.StringFieldUpdateOperationsInput | string
706
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
707
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
708
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
709
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
710
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
711
+ status?: Prisma.StringFieldUpdateOperationsInput | string
712
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
713
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
714
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
715
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
716
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
717
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
718
+ }
719
+
720
+ export type InvoiceUncheckedUpdateWithoutSubscriptionInput = {
721
+ id?: Prisma.StringFieldUpdateOperationsInput | string
722
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
723
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
724
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
725
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
726
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
727
+ status?: Prisma.StringFieldUpdateOperationsInput | string
728
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
729
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
730
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
731
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
732
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
733
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
734
+ }
735
+
736
+ export type InvoiceUncheckedUpdateManyWithoutSubscriptionInput = {
737
+ id?: Prisma.StringFieldUpdateOperationsInput | string
738
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
739
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
740
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
741
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
742
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
743
+ status?: Prisma.StringFieldUpdateOperationsInput | string
744
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
745
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
746
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
747
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
748
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
749
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
750
+ }
751
+
752
+
753
+
754
+ export type InvoiceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
755
+ id?: boolean
756
+ subscriptionId?: boolean
757
+ providerInvoiceId?: boolean
758
+ providerEventId?: boolean
759
+ amountDue?: boolean
760
+ amountPaid?: boolean
761
+ currency?: boolean
762
+ status?: boolean
763
+ pdfUrl?: boolean
764
+ hostedInvoiceUrl?: boolean
765
+ periodStart?: boolean
766
+ periodEnd?: boolean
767
+ paidAt?: boolean
768
+ createdAt?: boolean
769
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
770
+ }, ExtArgs["result"]["invoice"]>
771
+
772
+ export type InvoiceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
773
+ id?: boolean
774
+ subscriptionId?: boolean
775
+ providerInvoiceId?: boolean
776
+ providerEventId?: boolean
777
+ amountDue?: boolean
778
+ amountPaid?: boolean
779
+ currency?: boolean
780
+ status?: boolean
781
+ pdfUrl?: boolean
782
+ hostedInvoiceUrl?: boolean
783
+ periodStart?: boolean
784
+ periodEnd?: boolean
785
+ paidAt?: boolean
786
+ createdAt?: boolean
787
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
788
+ }, ExtArgs["result"]["invoice"]>
789
+
790
+ export type InvoiceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
791
+ id?: boolean
792
+ subscriptionId?: boolean
793
+ providerInvoiceId?: boolean
794
+ providerEventId?: boolean
795
+ amountDue?: boolean
796
+ amountPaid?: boolean
797
+ currency?: boolean
798
+ status?: boolean
799
+ pdfUrl?: boolean
800
+ hostedInvoiceUrl?: boolean
801
+ periodStart?: boolean
802
+ periodEnd?: boolean
803
+ paidAt?: boolean
804
+ createdAt?: boolean
805
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
806
+ }, ExtArgs["result"]["invoice"]>
807
+
808
+ export type InvoiceSelectScalar = {
809
+ id?: boolean
810
+ subscriptionId?: boolean
811
+ providerInvoiceId?: boolean
812
+ providerEventId?: boolean
813
+ amountDue?: boolean
814
+ amountPaid?: boolean
815
+ currency?: boolean
816
+ status?: boolean
817
+ pdfUrl?: boolean
818
+ hostedInvoiceUrl?: boolean
819
+ periodStart?: boolean
820
+ periodEnd?: boolean
821
+ paidAt?: boolean
822
+ createdAt?: boolean
823
+ }
824
+
825
+ export type InvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "subscriptionId" | "providerInvoiceId" | "providerEventId" | "amountDue" | "amountPaid" | "currency" | "status" | "pdfUrl" | "hostedInvoiceUrl" | "periodStart" | "periodEnd" | "paidAt" | "createdAt", ExtArgs["result"]["invoice"]>
826
+ export type InvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
827
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
828
+ }
829
+ export type InvoiceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
830
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
831
+ }
832
+ export type InvoiceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
833
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
834
+ }
835
+
836
+ export type $InvoicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
837
+ name: "Invoice"
838
+ objects: {
839
+ subscription: Prisma.$SubscriptionPayload<ExtArgs>
840
+ }
841
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
842
+ id: string
843
+ subscriptionId: string
844
+ providerInvoiceId: string
845
+ providerEventId: string | null
846
+ amountDue: number
847
+ amountPaid: number
848
+ currency: string
849
+ status: string
850
+ pdfUrl: string | null
851
+ hostedInvoiceUrl: string | null
852
+ periodStart: Date
853
+ periodEnd: Date
854
+ paidAt: Date | null
855
+ createdAt: Date
856
+ }, ExtArgs["result"]["invoice"]>
857
+ composites: {}
858
+ }
859
+
860
+ export type InvoiceGetPayload<S extends boolean | null | undefined | InvoiceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InvoicePayload, S>
861
+
862
+ export type InvoiceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
863
+ Omit<InvoiceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
864
+ select?: InvoiceCountAggregateInputType | true
865
+ }
866
+
867
+ export interface InvoiceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
868
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Invoice'], meta: { name: 'Invoice' } }
869
+ /**
870
+ * Find zero or one Invoice that matches the filter.
871
+ * @param {InvoiceFindUniqueArgs} args - Arguments to find a Invoice
872
+ * @example
873
+ * // Get one Invoice
874
+ * const invoice = await prisma.invoice.findUnique({
875
+ * where: {
876
+ * // ... provide filter here
877
+ * }
878
+ * })
879
+ */
880
+ findUnique<T extends InvoiceFindUniqueArgs>(args: Prisma.SelectSubset<T, InvoiceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
881
+
882
+ /**
883
+ * Find one Invoice that matches the filter or throw an error with `error.code='P2025'`
884
+ * if no matches were found.
885
+ * @param {InvoiceFindUniqueOrThrowArgs} args - Arguments to find a Invoice
886
+ * @example
887
+ * // Get one Invoice
888
+ * const invoice = await prisma.invoice.findUniqueOrThrow({
889
+ * where: {
890
+ * // ... provide filter here
891
+ * }
892
+ * })
893
+ */
894
+ findUniqueOrThrow<T extends InvoiceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InvoiceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
895
+
896
+ /**
897
+ * Find the first Invoice that matches the filter.
898
+ * Note, that providing `undefined` is treated as the value not being there.
899
+ * Read more here: https://pris.ly/d/null-undefined
900
+ * @param {InvoiceFindFirstArgs} args - Arguments to find a Invoice
901
+ * @example
902
+ * // Get one Invoice
903
+ * const invoice = await prisma.invoice.findFirst({
904
+ * where: {
905
+ * // ... provide filter here
906
+ * }
907
+ * })
908
+ */
909
+ findFirst<T extends InvoiceFindFirstArgs>(args?: Prisma.SelectSubset<T, InvoiceFindFirstArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
910
+
911
+ /**
912
+ * Find the first Invoice that matches the filter or
913
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
914
+ * Note, that providing `undefined` is treated as the value not being there.
915
+ * Read more here: https://pris.ly/d/null-undefined
916
+ * @param {InvoiceFindFirstOrThrowArgs} args - Arguments to find a Invoice
917
+ * @example
918
+ * // Get one Invoice
919
+ * const invoice = await prisma.invoice.findFirstOrThrow({
920
+ * where: {
921
+ * // ... provide filter here
922
+ * }
923
+ * })
924
+ */
925
+ findFirstOrThrow<T extends InvoiceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InvoiceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
926
+
927
+ /**
928
+ * Find zero or more Invoices that matches the filter.
929
+ * Note, that providing `undefined` is treated as the value not being there.
930
+ * Read more here: https://pris.ly/d/null-undefined
931
+ * @param {InvoiceFindManyArgs} args - Arguments to filter and select certain fields only.
932
+ * @example
933
+ * // Get all Invoices
934
+ * const invoices = await prisma.invoice.findMany()
935
+ *
936
+ * // Get first 10 Invoices
937
+ * const invoices = await prisma.invoice.findMany({ take: 10 })
938
+ *
939
+ * // Only select the `id`
940
+ * const invoiceWithIdOnly = await prisma.invoice.findMany({ select: { id: true } })
941
+ *
942
+ */
943
+ findMany<T extends InvoiceFindManyArgs>(args?: Prisma.SelectSubset<T, InvoiceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
944
+
945
+ /**
946
+ * Create a Invoice.
947
+ * @param {InvoiceCreateArgs} args - Arguments to create a Invoice.
948
+ * @example
949
+ * // Create one Invoice
950
+ * const Invoice = await prisma.invoice.create({
951
+ * data: {
952
+ * // ... data to create a Invoice
953
+ * }
954
+ * })
955
+ *
956
+ */
957
+ create<T extends InvoiceCreateArgs>(args: Prisma.SelectSubset<T, InvoiceCreateArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
958
+
959
+ /**
960
+ * Create many Invoices.
961
+ * @param {InvoiceCreateManyArgs} args - Arguments to create many Invoices.
962
+ * @example
963
+ * // Create many Invoices
964
+ * const invoice = await prisma.invoice.createMany({
965
+ * data: [
966
+ * // ... provide data here
967
+ * ]
968
+ * })
969
+ *
970
+ */
971
+ createMany<T extends InvoiceCreateManyArgs>(args?: Prisma.SelectSubset<T, InvoiceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
972
+
973
+ /**
974
+ * Create many Invoices and returns the data saved in the database.
975
+ * @param {InvoiceCreateManyAndReturnArgs} args - Arguments to create many Invoices.
976
+ * @example
977
+ * // Create many Invoices
978
+ * const invoice = await prisma.invoice.createManyAndReturn({
979
+ * data: [
980
+ * // ... provide data here
981
+ * ]
982
+ * })
983
+ *
984
+ * // Create many Invoices and only return the `id`
985
+ * const invoiceWithIdOnly = await prisma.invoice.createManyAndReturn({
986
+ * select: { id: true },
987
+ * data: [
988
+ * // ... provide data here
989
+ * ]
990
+ * })
991
+ * Note, that providing `undefined` is treated as the value not being there.
992
+ * Read more here: https://pris.ly/d/null-undefined
993
+ *
994
+ */
995
+ createManyAndReturn<T extends InvoiceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InvoiceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
996
+
997
+ /**
998
+ * Delete a Invoice.
999
+ * @param {InvoiceDeleteArgs} args - Arguments to delete one Invoice.
1000
+ * @example
1001
+ * // Delete one Invoice
1002
+ * const Invoice = await prisma.invoice.delete({
1003
+ * where: {
1004
+ * // ... filter to delete one Invoice
1005
+ * }
1006
+ * })
1007
+ *
1008
+ */
1009
+ delete<T extends InvoiceDeleteArgs>(args: Prisma.SelectSubset<T, InvoiceDeleteArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1010
+
1011
+ /**
1012
+ * Update one Invoice.
1013
+ * @param {InvoiceUpdateArgs} args - Arguments to update one Invoice.
1014
+ * @example
1015
+ * // Update one Invoice
1016
+ * const invoice = await prisma.invoice.update({
1017
+ * where: {
1018
+ * // ... provide filter here
1019
+ * },
1020
+ * data: {
1021
+ * // ... provide data here
1022
+ * }
1023
+ * })
1024
+ *
1025
+ */
1026
+ update<T extends InvoiceUpdateArgs>(args: Prisma.SelectSubset<T, InvoiceUpdateArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1027
+
1028
+ /**
1029
+ * Delete zero or more Invoices.
1030
+ * @param {InvoiceDeleteManyArgs} args - Arguments to filter Invoices to delete.
1031
+ * @example
1032
+ * // Delete a few Invoices
1033
+ * const { count } = await prisma.invoice.deleteMany({
1034
+ * where: {
1035
+ * // ... provide filter here
1036
+ * }
1037
+ * })
1038
+ *
1039
+ */
1040
+ deleteMany<T extends InvoiceDeleteManyArgs>(args?: Prisma.SelectSubset<T, InvoiceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1041
+
1042
+ /**
1043
+ * Update zero or more Invoices.
1044
+ * Note, that providing `undefined` is treated as the value not being there.
1045
+ * Read more here: https://pris.ly/d/null-undefined
1046
+ * @param {InvoiceUpdateManyArgs} args - Arguments to update one or more rows.
1047
+ * @example
1048
+ * // Update many Invoices
1049
+ * const invoice = await prisma.invoice.updateMany({
1050
+ * where: {
1051
+ * // ... provide filter here
1052
+ * },
1053
+ * data: {
1054
+ * // ... provide data here
1055
+ * }
1056
+ * })
1057
+ *
1058
+ */
1059
+ updateMany<T extends InvoiceUpdateManyArgs>(args: Prisma.SelectSubset<T, InvoiceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1060
+
1061
+ /**
1062
+ * Update zero or more Invoices and returns the data updated in the database.
1063
+ * @param {InvoiceUpdateManyAndReturnArgs} args - Arguments to update many Invoices.
1064
+ * @example
1065
+ * // Update many Invoices
1066
+ * const invoice = await prisma.invoice.updateManyAndReturn({
1067
+ * where: {
1068
+ * // ... provide filter here
1069
+ * },
1070
+ * data: [
1071
+ * // ... provide data here
1072
+ * ]
1073
+ * })
1074
+ *
1075
+ * // Update zero or more Invoices and only return the `id`
1076
+ * const invoiceWithIdOnly = await prisma.invoice.updateManyAndReturn({
1077
+ * select: { id: true },
1078
+ * where: {
1079
+ * // ... provide filter here
1080
+ * },
1081
+ * data: [
1082
+ * // ... provide data here
1083
+ * ]
1084
+ * })
1085
+ * Note, that providing `undefined` is treated as the value not being there.
1086
+ * Read more here: https://pris.ly/d/null-undefined
1087
+ *
1088
+ */
1089
+ updateManyAndReturn<T extends InvoiceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InvoiceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1090
+
1091
+ /**
1092
+ * Create or update one Invoice.
1093
+ * @param {InvoiceUpsertArgs} args - Arguments to update or create a Invoice.
1094
+ * @example
1095
+ * // Update or create a Invoice
1096
+ * const invoice = await prisma.invoice.upsert({
1097
+ * create: {
1098
+ * // ... data to create a Invoice
1099
+ * },
1100
+ * update: {
1101
+ * // ... in case it already exists, update
1102
+ * },
1103
+ * where: {
1104
+ * // ... the filter for the Invoice we want to update
1105
+ * }
1106
+ * })
1107
+ */
1108
+ upsert<T extends InvoiceUpsertArgs>(args: Prisma.SelectSubset<T, InvoiceUpsertArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1109
+
1110
+
1111
+ /**
1112
+ * Count the number of Invoices.
1113
+ * Note, that providing `undefined` is treated as the value not being there.
1114
+ * Read more here: https://pris.ly/d/null-undefined
1115
+ * @param {InvoiceCountArgs} args - Arguments to filter Invoices to count.
1116
+ * @example
1117
+ * // Count the number of Invoices
1118
+ * const count = await prisma.invoice.count({
1119
+ * where: {
1120
+ * // ... the filter for the Invoices we want to count
1121
+ * }
1122
+ * })
1123
+ **/
1124
+ count<T extends InvoiceCountArgs>(
1125
+ args?: Prisma.Subset<T, InvoiceCountArgs>,
1126
+ ): Prisma.PrismaPromise<
1127
+ T extends runtime.Types.Utils.Record<'select', any>
1128
+ ? T['select'] extends true
1129
+ ? number
1130
+ : Prisma.GetScalarType<T['select'], InvoiceCountAggregateOutputType>
1131
+ : number
1132
+ >
1133
+
1134
+ /**
1135
+ * Allows you to perform aggregations operations on a Invoice.
1136
+ * Note, that providing `undefined` is treated as the value not being there.
1137
+ * Read more here: https://pris.ly/d/null-undefined
1138
+ * @param {InvoiceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1139
+ * @example
1140
+ * // Ordered by age ascending
1141
+ * // Where email contains prisma.io
1142
+ * // Limited to the 10 users
1143
+ * const aggregations = await prisma.user.aggregate({
1144
+ * _avg: {
1145
+ * age: true,
1146
+ * },
1147
+ * where: {
1148
+ * email: {
1149
+ * contains: "prisma.io",
1150
+ * },
1151
+ * },
1152
+ * orderBy: {
1153
+ * age: "asc",
1154
+ * },
1155
+ * take: 10,
1156
+ * })
1157
+ **/
1158
+ aggregate<T extends InvoiceAggregateArgs>(args: Prisma.Subset<T, InvoiceAggregateArgs>): Prisma.PrismaPromise<GetInvoiceAggregateType<T>>
1159
+
1160
+ /**
1161
+ * Group by Invoice.
1162
+ * Note, that providing `undefined` is treated as the value not being there.
1163
+ * Read more here: https://pris.ly/d/null-undefined
1164
+ * @param {InvoiceGroupByArgs} args - Group by arguments.
1165
+ * @example
1166
+ * // Group by city, order by createdAt, get count
1167
+ * const result = await prisma.user.groupBy({
1168
+ * by: ['city', 'createdAt'],
1169
+ * orderBy: {
1170
+ * createdAt: true
1171
+ * },
1172
+ * _count: {
1173
+ * _all: true
1174
+ * },
1175
+ * })
1176
+ *
1177
+ **/
1178
+ groupBy<
1179
+ T extends InvoiceGroupByArgs,
1180
+ HasSelectOrTake extends Prisma.Or<
1181
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1182
+ Prisma.Extends<'take', Prisma.Keys<T>>
1183
+ >,
1184
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1185
+ ? { orderBy: InvoiceGroupByArgs['orderBy'] }
1186
+ : { orderBy?: InvoiceGroupByArgs['orderBy'] },
1187
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1188
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1189
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1190
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1191
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1192
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1193
+ InputErrors extends ByEmpty extends Prisma.True
1194
+ ? `Error: "by" must not be empty.`
1195
+ : HavingValid extends Prisma.False
1196
+ ? {
1197
+ [P in HavingFields]: P extends ByFields
1198
+ ? never
1199
+ : P extends string
1200
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1201
+ : [
1202
+ Error,
1203
+ 'Field ',
1204
+ P,
1205
+ ` in "having" needs to be provided in "by"`,
1206
+ ]
1207
+ }[HavingFields]
1208
+ : 'take' extends Prisma.Keys<T>
1209
+ ? 'orderBy' extends Prisma.Keys<T>
1210
+ ? ByValid extends Prisma.True
1211
+ ? {}
1212
+ : {
1213
+ [P in OrderFields]: P extends ByFields
1214
+ ? never
1215
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1216
+ }[OrderFields]
1217
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1218
+ : 'skip' extends Prisma.Keys<T>
1219
+ ? 'orderBy' extends Prisma.Keys<T>
1220
+ ? ByValid extends Prisma.True
1221
+ ? {}
1222
+ : {
1223
+ [P in OrderFields]: P extends ByFields
1224
+ ? never
1225
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1226
+ }[OrderFields]
1227
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1228
+ : ByValid extends Prisma.True
1229
+ ? {}
1230
+ : {
1231
+ [P in OrderFields]: P extends ByFields
1232
+ ? never
1233
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1234
+ }[OrderFields]
1235
+ >(args: Prisma.SubsetIntersection<T, InvoiceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoiceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1236
+ /**
1237
+ * Fields of the Invoice model
1238
+ */
1239
+ readonly fields: InvoiceFieldRefs;
1240
+ }
1241
+
1242
+ /**
1243
+ * The delegate class that acts as a "Promise-like" for Invoice.
1244
+ * Why is this prefixed with `Prisma__`?
1245
+ * Because we want to prevent naming conflicts as mentioned in
1246
+ * https://github.com/prisma/prisma-client-js/issues/707
1247
+ */
1248
+ export interface Prisma__InvoiceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1249
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1250
+ subscription<T extends Prisma.SubscriptionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubscriptionDefaultArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1251
+ /**
1252
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1253
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1254
+ * @param onrejected The callback to execute when the Promise is rejected.
1255
+ * @returns A Promise for the completion of which ever callback is executed.
1256
+ */
1257
+ 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>
1258
+ /**
1259
+ * Attaches a callback for only the rejection of the Promise.
1260
+ * @param onrejected The callback to execute when the Promise is rejected.
1261
+ * @returns A Promise for the completion of the callback.
1262
+ */
1263
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1264
+ /**
1265
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1266
+ * resolved value cannot be modified from the callback.
1267
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1268
+ * @returns A Promise for the completion of the callback.
1269
+ */
1270
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1271
+ }
1272
+
1273
+
1274
+
1275
+
1276
+ /**
1277
+ * Fields of the Invoice model
1278
+ */
1279
+ export interface InvoiceFieldRefs {
1280
+ readonly id: Prisma.FieldRef<"Invoice", 'String'>
1281
+ readonly subscriptionId: Prisma.FieldRef<"Invoice", 'String'>
1282
+ readonly providerInvoiceId: Prisma.FieldRef<"Invoice", 'String'>
1283
+ readonly providerEventId: Prisma.FieldRef<"Invoice", 'String'>
1284
+ readonly amountDue: Prisma.FieldRef<"Invoice", 'Int'>
1285
+ readonly amountPaid: Prisma.FieldRef<"Invoice", 'Int'>
1286
+ readonly currency: Prisma.FieldRef<"Invoice", 'String'>
1287
+ readonly status: Prisma.FieldRef<"Invoice", 'String'>
1288
+ readonly pdfUrl: Prisma.FieldRef<"Invoice", 'String'>
1289
+ readonly hostedInvoiceUrl: Prisma.FieldRef<"Invoice", 'String'>
1290
+ readonly periodStart: Prisma.FieldRef<"Invoice", 'DateTime'>
1291
+ readonly periodEnd: Prisma.FieldRef<"Invoice", 'DateTime'>
1292
+ readonly paidAt: Prisma.FieldRef<"Invoice", 'DateTime'>
1293
+ readonly createdAt: Prisma.FieldRef<"Invoice", 'DateTime'>
1294
+ }
1295
+
1296
+
1297
+ // Custom InputTypes
1298
+ /**
1299
+ * Invoice findUnique
1300
+ */
1301
+ export type InvoiceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1302
+ /**
1303
+ * Select specific fields to fetch from the Invoice
1304
+ */
1305
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1306
+ /**
1307
+ * Omit specific fields from the Invoice
1308
+ */
1309
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1310
+ /**
1311
+ * Choose, which related nodes to fetch as well
1312
+ */
1313
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1314
+ /**
1315
+ * Filter, which Invoice to fetch.
1316
+ */
1317
+ where: Prisma.InvoiceWhereUniqueInput
1318
+ }
1319
+
1320
+ /**
1321
+ * Invoice findUniqueOrThrow
1322
+ */
1323
+ export type InvoiceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1324
+ /**
1325
+ * Select specific fields to fetch from the Invoice
1326
+ */
1327
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1328
+ /**
1329
+ * Omit specific fields from the Invoice
1330
+ */
1331
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1332
+ /**
1333
+ * Choose, which related nodes to fetch as well
1334
+ */
1335
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1336
+ /**
1337
+ * Filter, which Invoice to fetch.
1338
+ */
1339
+ where: Prisma.InvoiceWhereUniqueInput
1340
+ }
1341
+
1342
+ /**
1343
+ * Invoice findFirst
1344
+ */
1345
+ export type InvoiceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1346
+ /**
1347
+ * Select specific fields to fetch from the Invoice
1348
+ */
1349
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1350
+ /**
1351
+ * Omit specific fields from the Invoice
1352
+ */
1353
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1354
+ /**
1355
+ * Choose, which related nodes to fetch as well
1356
+ */
1357
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1358
+ /**
1359
+ * Filter, which Invoice to fetch.
1360
+ */
1361
+ where?: Prisma.InvoiceWhereInput
1362
+ /**
1363
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1364
+ *
1365
+ * Determine the order of Invoices to fetch.
1366
+ */
1367
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
1368
+ /**
1369
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1370
+ *
1371
+ * Sets the position for searching for Invoices.
1372
+ */
1373
+ cursor?: Prisma.InvoiceWhereUniqueInput
1374
+ /**
1375
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1376
+ *
1377
+ * Take `±n` Invoices from the position of the cursor.
1378
+ */
1379
+ take?: number
1380
+ /**
1381
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1382
+ *
1383
+ * Skip the first `n` Invoices.
1384
+ */
1385
+ skip?: number
1386
+ /**
1387
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1388
+ *
1389
+ * Filter by unique combinations of Invoices.
1390
+ */
1391
+ distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
1392
+ }
1393
+
1394
+ /**
1395
+ * Invoice findFirstOrThrow
1396
+ */
1397
+ export type InvoiceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1398
+ /**
1399
+ * Select specific fields to fetch from the Invoice
1400
+ */
1401
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1402
+ /**
1403
+ * Omit specific fields from the Invoice
1404
+ */
1405
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1406
+ /**
1407
+ * Choose, which related nodes to fetch as well
1408
+ */
1409
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1410
+ /**
1411
+ * Filter, which Invoice to fetch.
1412
+ */
1413
+ where?: Prisma.InvoiceWhereInput
1414
+ /**
1415
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1416
+ *
1417
+ * Determine the order of Invoices to fetch.
1418
+ */
1419
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
1420
+ /**
1421
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1422
+ *
1423
+ * Sets the position for searching for Invoices.
1424
+ */
1425
+ cursor?: Prisma.InvoiceWhereUniqueInput
1426
+ /**
1427
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1428
+ *
1429
+ * Take `±n` Invoices from the position of the cursor.
1430
+ */
1431
+ take?: number
1432
+ /**
1433
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1434
+ *
1435
+ * Skip the first `n` Invoices.
1436
+ */
1437
+ skip?: number
1438
+ /**
1439
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1440
+ *
1441
+ * Filter by unique combinations of Invoices.
1442
+ */
1443
+ distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
1444
+ }
1445
+
1446
+ /**
1447
+ * Invoice findMany
1448
+ */
1449
+ export type InvoiceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1450
+ /**
1451
+ * Select specific fields to fetch from the Invoice
1452
+ */
1453
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1454
+ /**
1455
+ * Omit specific fields from the Invoice
1456
+ */
1457
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1458
+ /**
1459
+ * Choose, which related nodes to fetch as well
1460
+ */
1461
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1462
+ /**
1463
+ * Filter, which Invoices to fetch.
1464
+ */
1465
+ where?: Prisma.InvoiceWhereInput
1466
+ /**
1467
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1468
+ *
1469
+ * Determine the order of Invoices to fetch.
1470
+ */
1471
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
1472
+ /**
1473
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1474
+ *
1475
+ * Sets the position for listing Invoices.
1476
+ */
1477
+ cursor?: Prisma.InvoiceWhereUniqueInput
1478
+ /**
1479
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1480
+ *
1481
+ * Take `±n` Invoices from the position of the cursor.
1482
+ */
1483
+ take?: number
1484
+ /**
1485
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1486
+ *
1487
+ * Skip the first `n` Invoices.
1488
+ */
1489
+ skip?: number
1490
+ /**
1491
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1492
+ *
1493
+ * Filter by unique combinations of Invoices.
1494
+ */
1495
+ distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
1496
+ }
1497
+
1498
+ /**
1499
+ * Invoice create
1500
+ */
1501
+ export type InvoiceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ /**
1503
+ * Select specific fields to fetch from the Invoice
1504
+ */
1505
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1506
+ /**
1507
+ * Omit specific fields from the Invoice
1508
+ */
1509
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1510
+ /**
1511
+ * Choose, which related nodes to fetch as well
1512
+ */
1513
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1514
+ /**
1515
+ * The data needed to create a Invoice.
1516
+ */
1517
+ data: Prisma.XOR<Prisma.InvoiceCreateInput, Prisma.InvoiceUncheckedCreateInput>
1518
+ }
1519
+
1520
+ /**
1521
+ * Invoice createMany
1522
+ */
1523
+ export type InvoiceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1524
+ /**
1525
+ * The data used to create many Invoices.
1526
+ */
1527
+ data: Prisma.InvoiceCreateManyInput | Prisma.InvoiceCreateManyInput[]
1528
+ skipDuplicates?: boolean
1529
+ }
1530
+
1531
+ /**
1532
+ * Invoice createManyAndReturn
1533
+ */
1534
+ export type InvoiceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1535
+ /**
1536
+ * Select specific fields to fetch from the Invoice
1537
+ */
1538
+ select?: Prisma.InvoiceSelectCreateManyAndReturn<ExtArgs> | null
1539
+ /**
1540
+ * Omit specific fields from the Invoice
1541
+ */
1542
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1543
+ /**
1544
+ * The data used to create many Invoices.
1545
+ */
1546
+ data: Prisma.InvoiceCreateManyInput | Prisma.InvoiceCreateManyInput[]
1547
+ skipDuplicates?: boolean
1548
+ /**
1549
+ * Choose, which related nodes to fetch as well
1550
+ */
1551
+ include?: Prisma.InvoiceIncludeCreateManyAndReturn<ExtArgs> | null
1552
+ }
1553
+
1554
+ /**
1555
+ * Invoice update
1556
+ */
1557
+ export type InvoiceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1558
+ /**
1559
+ * Select specific fields to fetch from the Invoice
1560
+ */
1561
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1562
+ /**
1563
+ * Omit specific fields from the Invoice
1564
+ */
1565
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1566
+ /**
1567
+ * Choose, which related nodes to fetch as well
1568
+ */
1569
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1570
+ /**
1571
+ * The data needed to update a Invoice.
1572
+ */
1573
+ data: Prisma.XOR<Prisma.InvoiceUpdateInput, Prisma.InvoiceUncheckedUpdateInput>
1574
+ /**
1575
+ * Choose, which Invoice to update.
1576
+ */
1577
+ where: Prisma.InvoiceWhereUniqueInput
1578
+ }
1579
+
1580
+ /**
1581
+ * Invoice updateMany
1582
+ */
1583
+ export type InvoiceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1584
+ /**
1585
+ * The data used to update Invoices.
1586
+ */
1587
+ data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyInput>
1588
+ /**
1589
+ * Filter which Invoices to update
1590
+ */
1591
+ where?: Prisma.InvoiceWhereInput
1592
+ /**
1593
+ * Limit how many Invoices to update.
1594
+ */
1595
+ limit?: number
1596
+ }
1597
+
1598
+ /**
1599
+ * Invoice updateManyAndReturn
1600
+ */
1601
+ export type InvoiceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * Select specific fields to fetch from the Invoice
1604
+ */
1605
+ select?: Prisma.InvoiceSelectUpdateManyAndReturn<ExtArgs> | null
1606
+ /**
1607
+ * Omit specific fields from the Invoice
1608
+ */
1609
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1610
+ /**
1611
+ * The data used to update Invoices.
1612
+ */
1613
+ data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyInput>
1614
+ /**
1615
+ * Filter which Invoices to update
1616
+ */
1617
+ where?: Prisma.InvoiceWhereInput
1618
+ /**
1619
+ * Limit how many Invoices to update.
1620
+ */
1621
+ limit?: number
1622
+ /**
1623
+ * Choose, which related nodes to fetch as well
1624
+ */
1625
+ include?: Prisma.InvoiceIncludeUpdateManyAndReturn<ExtArgs> | null
1626
+ }
1627
+
1628
+ /**
1629
+ * Invoice upsert
1630
+ */
1631
+ export type InvoiceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1632
+ /**
1633
+ * Select specific fields to fetch from the Invoice
1634
+ */
1635
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1636
+ /**
1637
+ * Omit specific fields from the Invoice
1638
+ */
1639
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1640
+ /**
1641
+ * Choose, which related nodes to fetch as well
1642
+ */
1643
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1644
+ /**
1645
+ * The filter to search for the Invoice to update in case it exists.
1646
+ */
1647
+ where: Prisma.InvoiceWhereUniqueInput
1648
+ /**
1649
+ * In case the Invoice found by the `where` argument doesn't exist, create a new Invoice with this data.
1650
+ */
1651
+ create: Prisma.XOR<Prisma.InvoiceCreateInput, Prisma.InvoiceUncheckedCreateInput>
1652
+ /**
1653
+ * In case the Invoice was found with the provided `where` argument, update it with this data.
1654
+ */
1655
+ update: Prisma.XOR<Prisma.InvoiceUpdateInput, Prisma.InvoiceUncheckedUpdateInput>
1656
+ }
1657
+
1658
+ /**
1659
+ * Invoice delete
1660
+ */
1661
+ export type InvoiceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1662
+ /**
1663
+ * Select specific fields to fetch from the Invoice
1664
+ */
1665
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1666
+ /**
1667
+ * Omit specific fields from the Invoice
1668
+ */
1669
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1670
+ /**
1671
+ * Choose, which related nodes to fetch as well
1672
+ */
1673
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1674
+ /**
1675
+ * Filter which Invoice to delete.
1676
+ */
1677
+ where: Prisma.InvoiceWhereUniqueInput
1678
+ }
1679
+
1680
+ /**
1681
+ * Invoice deleteMany
1682
+ */
1683
+ export type InvoiceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1684
+ /**
1685
+ * Filter which Invoices to delete
1686
+ */
1687
+ where?: Prisma.InvoiceWhereInput
1688
+ /**
1689
+ * Limit how many Invoices to delete.
1690
+ */
1691
+ limit?: number
1692
+ }
1693
+
1694
+ /**
1695
+ * Invoice without action
1696
+ */
1697
+ export type InvoiceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1698
+ /**
1699
+ * Select specific fields to fetch from the Invoice
1700
+ */
1701
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1702
+ /**
1703
+ * Omit specific fields from the Invoice
1704
+ */
1705
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1706
+ /**
1707
+ * Choose, which related nodes to fetch as well
1708
+ */
1709
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1710
+ }