@allbluecn/database 0.4.0 → 0.4.1

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,1707 @@
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
+ }
650
+
651
+ export type InvoiceUpsertWithWhereUniqueWithoutSubscriptionInput = {
652
+ where: Prisma.InvoiceWhereUniqueInput
653
+ update: Prisma.XOR<Prisma.InvoiceUpdateWithoutSubscriptionInput, Prisma.InvoiceUncheckedUpdateWithoutSubscriptionInput>
654
+ create: Prisma.XOR<Prisma.InvoiceCreateWithoutSubscriptionInput, Prisma.InvoiceUncheckedCreateWithoutSubscriptionInput>
655
+ }
656
+
657
+ export type InvoiceUpdateWithWhereUniqueWithoutSubscriptionInput = {
658
+ where: Prisma.InvoiceWhereUniqueInput
659
+ data: Prisma.XOR<Prisma.InvoiceUpdateWithoutSubscriptionInput, Prisma.InvoiceUncheckedUpdateWithoutSubscriptionInput>
660
+ }
661
+
662
+ export type InvoiceUpdateManyWithWhereWithoutSubscriptionInput = {
663
+ where: Prisma.InvoiceScalarWhereInput
664
+ data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyWithoutSubscriptionInput>
665
+ }
666
+
667
+ export type InvoiceScalarWhereInput = {
668
+ AND?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
669
+ OR?: Prisma.InvoiceScalarWhereInput[]
670
+ NOT?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
671
+ id?: Prisma.StringFilter<"Invoice"> | string
672
+ subscriptionId?: Prisma.StringFilter<"Invoice"> | string
673
+ providerInvoiceId?: Prisma.StringFilter<"Invoice"> | string
674
+ providerEventId?: Prisma.StringNullableFilter<"Invoice"> | string | null
675
+ amountDue?: Prisma.IntFilter<"Invoice"> | number
676
+ amountPaid?: Prisma.IntFilter<"Invoice"> | number
677
+ currency?: Prisma.StringFilter<"Invoice"> | string
678
+ status?: Prisma.StringFilter<"Invoice"> | string
679
+ pdfUrl?: Prisma.StringNullableFilter<"Invoice"> | string | null
680
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Invoice"> | string | null
681
+ periodStart?: Prisma.DateTimeFilter<"Invoice"> | Date | string
682
+ periodEnd?: Prisma.DateTimeFilter<"Invoice"> | Date | string
683
+ paidAt?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
684
+ createdAt?: Prisma.DateTimeFilter<"Invoice"> | Date | string
685
+ }
686
+
687
+ export type InvoiceCreateManySubscriptionInput = {
688
+ id?: string
689
+ providerInvoiceId: string
690
+ providerEventId?: string | null
691
+ amountDue: number
692
+ amountPaid: number
693
+ currency?: string
694
+ status: string
695
+ pdfUrl?: string | null
696
+ hostedInvoiceUrl?: string | null
697
+ periodStart: Date | string
698
+ periodEnd: Date | string
699
+ paidAt?: Date | string | null
700
+ createdAt?: Date | string
701
+ }
702
+
703
+ export type InvoiceUpdateWithoutSubscriptionInput = {
704
+ id?: Prisma.StringFieldUpdateOperationsInput | string
705
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
706
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
707
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
708
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
709
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
710
+ status?: Prisma.StringFieldUpdateOperationsInput | string
711
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
712
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
713
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
714
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
715
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
716
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
717
+ }
718
+
719
+ export type InvoiceUncheckedUpdateWithoutSubscriptionInput = {
720
+ id?: Prisma.StringFieldUpdateOperationsInput | string
721
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
722
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
723
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
724
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
725
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
726
+ status?: Prisma.StringFieldUpdateOperationsInput | string
727
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
728
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
729
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
730
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
731
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
732
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
733
+ }
734
+
735
+ export type InvoiceUncheckedUpdateManyWithoutSubscriptionInput = {
736
+ id?: Prisma.StringFieldUpdateOperationsInput | string
737
+ providerInvoiceId?: Prisma.StringFieldUpdateOperationsInput | string
738
+ providerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
739
+ amountDue?: Prisma.IntFieldUpdateOperationsInput | number
740
+ amountPaid?: Prisma.IntFieldUpdateOperationsInput | number
741
+ currency?: Prisma.StringFieldUpdateOperationsInput | string
742
+ status?: Prisma.StringFieldUpdateOperationsInput | string
743
+ pdfUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
744
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
745
+ periodStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
746
+ periodEnd?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
747
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
748
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
749
+ }
750
+
751
+
752
+
753
+ export type InvoiceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
754
+ id?: boolean
755
+ subscriptionId?: boolean
756
+ providerInvoiceId?: boolean
757
+ providerEventId?: boolean
758
+ amountDue?: boolean
759
+ amountPaid?: boolean
760
+ currency?: boolean
761
+ status?: boolean
762
+ pdfUrl?: boolean
763
+ hostedInvoiceUrl?: boolean
764
+ periodStart?: boolean
765
+ periodEnd?: boolean
766
+ paidAt?: boolean
767
+ createdAt?: boolean
768
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
769
+ }, ExtArgs["result"]["invoice"]>
770
+
771
+ export type InvoiceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
772
+ id?: boolean
773
+ subscriptionId?: boolean
774
+ providerInvoiceId?: boolean
775
+ providerEventId?: boolean
776
+ amountDue?: boolean
777
+ amountPaid?: boolean
778
+ currency?: boolean
779
+ status?: boolean
780
+ pdfUrl?: boolean
781
+ hostedInvoiceUrl?: boolean
782
+ periodStart?: boolean
783
+ periodEnd?: boolean
784
+ paidAt?: boolean
785
+ createdAt?: boolean
786
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
787
+ }, ExtArgs["result"]["invoice"]>
788
+
789
+ export type InvoiceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
790
+ id?: boolean
791
+ subscriptionId?: boolean
792
+ providerInvoiceId?: boolean
793
+ providerEventId?: boolean
794
+ amountDue?: boolean
795
+ amountPaid?: boolean
796
+ currency?: boolean
797
+ status?: boolean
798
+ pdfUrl?: boolean
799
+ hostedInvoiceUrl?: boolean
800
+ periodStart?: boolean
801
+ periodEnd?: boolean
802
+ paidAt?: boolean
803
+ createdAt?: boolean
804
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
805
+ }, ExtArgs["result"]["invoice"]>
806
+
807
+ export type InvoiceSelectScalar = {
808
+ id?: boolean
809
+ subscriptionId?: boolean
810
+ providerInvoiceId?: boolean
811
+ providerEventId?: boolean
812
+ amountDue?: boolean
813
+ amountPaid?: boolean
814
+ currency?: boolean
815
+ status?: boolean
816
+ pdfUrl?: boolean
817
+ hostedInvoiceUrl?: boolean
818
+ periodStart?: boolean
819
+ periodEnd?: boolean
820
+ paidAt?: boolean
821
+ createdAt?: boolean
822
+ }
823
+
824
+ 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"]>
825
+ export type InvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
826
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
827
+ }
828
+ export type InvoiceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
829
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
830
+ }
831
+ export type InvoiceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
832
+ subscription?: boolean | Prisma.SubscriptionDefaultArgs<ExtArgs>
833
+ }
834
+
835
+ export type $InvoicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
836
+ name: "Invoice"
837
+ objects: {
838
+ subscription: Prisma.$SubscriptionPayload<ExtArgs>
839
+ }
840
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
841
+ id: string
842
+ subscriptionId: string
843
+ providerInvoiceId: string
844
+ providerEventId: string | null
845
+ amountDue: number
846
+ amountPaid: number
847
+ currency: string
848
+ status: string
849
+ pdfUrl: string | null
850
+ hostedInvoiceUrl: string | null
851
+ periodStart: Date
852
+ periodEnd: Date
853
+ paidAt: Date | null
854
+ createdAt: Date
855
+ }, ExtArgs["result"]["invoice"]>
856
+ composites: {}
857
+ }
858
+
859
+ export type InvoiceGetPayload<S extends boolean | null | undefined | InvoiceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InvoicePayload, S>
860
+
861
+ export type InvoiceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
862
+ Omit<InvoiceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
863
+ select?: InvoiceCountAggregateInputType | true
864
+ }
865
+
866
+ export interface InvoiceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
867
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Invoice'], meta: { name: 'Invoice' } }
868
+ /**
869
+ * Find zero or one Invoice that matches the filter.
870
+ * @param {InvoiceFindUniqueArgs} args - Arguments to find a Invoice
871
+ * @example
872
+ * // Get one Invoice
873
+ * const invoice = await prisma.invoice.findUnique({
874
+ * where: {
875
+ * // ... provide filter here
876
+ * }
877
+ * })
878
+ */
879
+ 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>
880
+
881
+ /**
882
+ * Find one Invoice that matches the filter or throw an error with `error.code='P2025'`
883
+ * if no matches were found.
884
+ * @param {InvoiceFindUniqueOrThrowArgs} args - Arguments to find a Invoice
885
+ * @example
886
+ * // Get one Invoice
887
+ * const invoice = await prisma.invoice.findUniqueOrThrow({
888
+ * where: {
889
+ * // ... provide filter here
890
+ * }
891
+ * })
892
+ */
893
+ 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>
894
+
895
+ /**
896
+ * Find the first Invoice that matches the filter.
897
+ * Note, that providing `undefined` is treated as the value not being there.
898
+ * Read more here: https://pris.ly/d/null-undefined
899
+ * @param {InvoiceFindFirstArgs} args - Arguments to find a Invoice
900
+ * @example
901
+ * // Get one Invoice
902
+ * const invoice = await prisma.invoice.findFirst({
903
+ * where: {
904
+ * // ... provide filter here
905
+ * }
906
+ * })
907
+ */
908
+ 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>
909
+
910
+ /**
911
+ * Find the first Invoice that matches the filter or
912
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
913
+ * Note, that providing `undefined` is treated as the value not being there.
914
+ * Read more here: https://pris.ly/d/null-undefined
915
+ * @param {InvoiceFindFirstOrThrowArgs} args - Arguments to find a Invoice
916
+ * @example
917
+ * // Get one Invoice
918
+ * const invoice = await prisma.invoice.findFirstOrThrow({
919
+ * where: {
920
+ * // ... provide filter here
921
+ * }
922
+ * })
923
+ */
924
+ 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>
925
+
926
+ /**
927
+ * Find zero or more Invoices that matches the filter.
928
+ * Note, that providing `undefined` is treated as the value not being there.
929
+ * Read more here: https://pris.ly/d/null-undefined
930
+ * @param {InvoiceFindManyArgs} args - Arguments to filter and select certain fields only.
931
+ * @example
932
+ * // Get all Invoices
933
+ * const invoices = await prisma.invoice.findMany()
934
+ *
935
+ * // Get first 10 Invoices
936
+ * const invoices = await prisma.invoice.findMany({ take: 10 })
937
+ *
938
+ * // Only select the `id`
939
+ * const invoiceWithIdOnly = await prisma.invoice.findMany({ select: { id: true } })
940
+ *
941
+ */
942
+ findMany<T extends InvoiceFindManyArgs>(args?: Prisma.SelectSubset<T, InvoiceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
943
+
944
+ /**
945
+ * Create a Invoice.
946
+ * @param {InvoiceCreateArgs} args - Arguments to create a Invoice.
947
+ * @example
948
+ * // Create one Invoice
949
+ * const Invoice = await prisma.invoice.create({
950
+ * data: {
951
+ * // ... data to create a Invoice
952
+ * }
953
+ * })
954
+ *
955
+ */
956
+ 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>
957
+
958
+ /**
959
+ * Create many Invoices.
960
+ * @param {InvoiceCreateManyArgs} args - Arguments to create many Invoices.
961
+ * @example
962
+ * // Create many Invoices
963
+ * const invoice = await prisma.invoice.createMany({
964
+ * data: [
965
+ * // ... provide data here
966
+ * ]
967
+ * })
968
+ *
969
+ */
970
+ createMany<T extends InvoiceCreateManyArgs>(args?: Prisma.SelectSubset<T, InvoiceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
971
+
972
+ /**
973
+ * Create many Invoices and returns the data saved in the database.
974
+ * @param {InvoiceCreateManyAndReturnArgs} args - Arguments to create many Invoices.
975
+ * @example
976
+ * // Create many Invoices
977
+ * const invoice = await prisma.invoice.createManyAndReturn({
978
+ * data: [
979
+ * // ... provide data here
980
+ * ]
981
+ * })
982
+ *
983
+ * // Create many Invoices and only return the `id`
984
+ * const invoiceWithIdOnly = await prisma.invoice.createManyAndReturn({
985
+ * select: { id: true },
986
+ * data: [
987
+ * // ... provide data here
988
+ * ]
989
+ * })
990
+ * Note, that providing `undefined` is treated as the value not being there.
991
+ * Read more here: https://pris.ly/d/null-undefined
992
+ *
993
+ */
994
+ createManyAndReturn<T extends InvoiceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InvoiceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
995
+
996
+ /**
997
+ * Delete a Invoice.
998
+ * @param {InvoiceDeleteArgs} args - Arguments to delete one Invoice.
999
+ * @example
1000
+ * // Delete one Invoice
1001
+ * const Invoice = await prisma.invoice.delete({
1002
+ * where: {
1003
+ * // ... filter to delete one Invoice
1004
+ * }
1005
+ * })
1006
+ *
1007
+ */
1008
+ 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>
1009
+
1010
+ /**
1011
+ * Update one Invoice.
1012
+ * @param {InvoiceUpdateArgs} args - Arguments to update one Invoice.
1013
+ * @example
1014
+ * // Update one Invoice
1015
+ * const invoice = await prisma.invoice.update({
1016
+ * where: {
1017
+ * // ... provide filter here
1018
+ * },
1019
+ * data: {
1020
+ * // ... provide data here
1021
+ * }
1022
+ * })
1023
+ *
1024
+ */
1025
+ 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>
1026
+
1027
+ /**
1028
+ * Delete zero or more Invoices.
1029
+ * @param {InvoiceDeleteManyArgs} args - Arguments to filter Invoices to delete.
1030
+ * @example
1031
+ * // Delete a few Invoices
1032
+ * const { count } = await prisma.invoice.deleteMany({
1033
+ * where: {
1034
+ * // ... provide filter here
1035
+ * }
1036
+ * })
1037
+ *
1038
+ */
1039
+ deleteMany<T extends InvoiceDeleteManyArgs>(args?: Prisma.SelectSubset<T, InvoiceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1040
+
1041
+ /**
1042
+ * Update zero or more Invoices.
1043
+ * Note, that providing `undefined` is treated as the value not being there.
1044
+ * Read more here: https://pris.ly/d/null-undefined
1045
+ * @param {InvoiceUpdateManyArgs} args - Arguments to update one or more rows.
1046
+ * @example
1047
+ * // Update many Invoices
1048
+ * const invoice = await prisma.invoice.updateMany({
1049
+ * where: {
1050
+ * // ... provide filter here
1051
+ * },
1052
+ * data: {
1053
+ * // ... provide data here
1054
+ * }
1055
+ * })
1056
+ *
1057
+ */
1058
+ updateMany<T extends InvoiceUpdateManyArgs>(args: Prisma.SelectSubset<T, InvoiceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1059
+
1060
+ /**
1061
+ * Update zero or more Invoices and returns the data updated in the database.
1062
+ * @param {InvoiceUpdateManyAndReturnArgs} args - Arguments to update many Invoices.
1063
+ * @example
1064
+ * // Update many Invoices
1065
+ * const invoice = await prisma.invoice.updateManyAndReturn({
1066
+ * where: {
1067
+ * // ... provide filter here
1068
+ * },
1069
+ * data: [
1070
+ * // ... provide data here
1071
+ * ]
1072
+ * })
1073
+ *
1074
+ * // Update zero or more Invoices and only return the `id`
1075
+ * const invoiceWithIdOnly = await prisma.invoice.updateManyAndReturn({
1076
+ * select: { id: true },
1077
+ * where: {
1078
+ * // ... provide filter here
1079
+ * },
1080
+ * data: [
1081
+ * // ... provide data here
1082
+ * ]
1083
+ * })
1084
+ * Note, that providing `undefined` is treated as the value not being there.
1085
+ * Read more here: https://pris.ly/d/null-undefined
1086
+ *
1087
+ */
1088
+ updateManyAndReturn<T extends InvoiceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InvoiceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1089
+
1090
+ /**
1091
+ * Create or update one Invoice.
1092
+ * @param {InvoiceUpsertArgs} args - Arguments to update or create a Invoice.
1093
+ * @example
1094
+ * // Update or create a Invoice
1095
+ * const invoice = await prisma.invoice.upsert({
1096
+ * create: {
1097
+ * // ... data to create a Invoice
1098
+ * },
1099
+ * update: {
1100
+ * // ... in case it already exists, update
1101
+ * },
1102
+ * where: {
1103
+ * // ... the filter for the Invoice we want to update
1104
+ * }
1105
+ * })
1106
+ */
1107
+ 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>
1108
+
1109
+
1110
+ /**
1111
+ * Count the number of Invoices.
1112
+ * Note, that providing `undefined` is treated as the value not being there.
1113
+ * Read more here: https://pris.ly/d/null-undefined
1114
+ * @param {InvoiceCountArgs} args - Arguments to filter Invoices to count.
1115
+ * @example
1116
+ * // Count the number of Invoices
1117
+ * const count = await prisma.invoice.count({
1118
+ * where: {
1119
+ * // ... the filter for the Invoices we want to count
1120
+ * }
1121
+ * })
1122
+ **/
1123
+ count<T extends InvoiceCountArgs>(
1124
+ args?: Prisma.Subset<T, InvoiceCountArgs>,
1125
+ ): Prisma.PrismaPromise<
1126
+ T extends runtime.Types.Utils.Record<'select', any>
1127
+ ? T['select'] extends true
1128
+ ? number
1129
+ : Prisma.GetScalarType<T['select'], InvoiceCountAggregateOutputType>
1130
+ : number
1131
+ >
1132
+
1133
+ /**
1134
+ * Allows you to perform aggregations operations on a Invoice.
1135
+ * Note, that providing `undefined` is treated as the value not being there.
1136
+ * Read more here: https://pris.ly/d/null-undefined
1137
+ * @param {InvoiceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1138
+ * @example
1139
+ * // Ordered by age ascending
1140
+ * // Where email contains prisma.io
1141
+ * // Limited to the 10 users
1142
+ * const aggregations = await prisma.user.aggregate({
1143
+ * _avg: {
1144
+ * age: true,
1145
+ * },
1146
+ * where: {
1147
+ * email: {
1148
+ * contains: "prisma.io",
1149
+ * },
1150
+ * },
1151
+ * orderBy: {
1152
+ * age: "asc",
1153
+ * },
1154
+ * take: 10,
1155
+ * })
1156
+ **/
1157
+ aggregate<T extends InvoiceAggregateArgs>(args: Prisma.Subset<T, InvoiceAggregateArgs>): Prisma.PrismaPromise<GetInvoiceAggregateType<T>>
1158
+
1159
+ /**
1160
+ * Group by Invoice.
1161
+ * Note, that providing `undefined` is treated as the value not being there.
1162
+ * Read more here: https://pris.ly/d/null-undefined
1163
+ * @param {InvoiceGroupByArgs} args - Group by arguments.
1164
+ * @example
1165
+ * // Group by city, order by createdAt, get count
1166
+ * const result = await prisma.user.groupBy({
1167
+ * by: ['city', 'createdAt'],
1168
+ * orderBy: {
1169
+ * createdAt: true
1170
+ * },
1171
+ * _count: {
1172
+ * _all: true
1173
+ * },
1174
+ * })
1175
+ *
1176
+ **/
1177
+ groupBy<
1178
+ T extends InvoiceGroupByArgs,
1179
+ HasSelectOrTake extends Prisma.Or<
1180
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1181
+ Prisma.Extends<'take', Prisma.Keys<T>>
1182
+ >,
1183
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1184
+ ? { orderBy: InvoiceGroupByArgs['orderBy'] }
1185
+ : { orderBy?: InvoiceGroupByArgs['orderBy'] },
1186
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1187
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1188
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1189
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1190
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1191
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1192
+ InputErrors extends ByEmpty extends Prisma.True
1193
+ ? `Error: "by" must not be empty.`
1194
+ : HavingValid extends Prisma.False
1195
+ ? {
1196
+ [P in HavingFields]: P extends ByFields
1197
+ ? never
1198
+ : P extends string
1199
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1200
+ : [
1201
+ Error,
1202
+ 'Field ',
1203
+ P,
1204
+ ` in "having" needs to be provided in "by"`,
1205
+ ]
1206
+ }[HavingFields]
1207
+ : 'take' extends Prisma.Keys<T>
1208
+ ? 'orderBy' extends Prisma.Keys<T>
1209
+ ? ByValid extends Prisma.True
1210
+ ? {}
1211
+ : {
1212
+ [P in OrderFields]: P extends ByFields
1213
+ ? never
1214
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1215
+ }[OrderFields]
1216
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1217
+ : 'skip' extends Prisma.Keys<T>
1218
+ ? 'orderBy' extends Prisma.Keys<T>
1219
+ ? ByValid extends Prisma.True
1220
+ ? {}
1221
+ : {
1222
+ [P in OrderFields]: P extends ByFields
1223
+ ? never
1224
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1225
+ }[OrderFields]
1226
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1227
+ : ByValid extends Prisma.True
1228
+ ? {}
1229
+ : {
1230
+ [P in OrderFields]: P extends ByFields
1231
+ ? never
1232
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1233
+ }[OrderFields]
1234
+ >(args: Prisma.SubsetIntersection<T, InvoiceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoiceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1235
+ /**
1236
+ * Fields of the Invoice model
1237
+ */
1238
+ readonly fields: InvoiceFieldRefs;
1239
+ }
1240
+
1241
+ /**
1242
+ * The delegate class that acts as a "Promise-like" for Invoice.
1243
+ * Why is this prefixed with `Prisma__`?
1244
+ * Because we want to prevent naming conflicts as mentioned in
1245
+ * https://github.com/prisma/prisma-client-js/issues/707
1246
+ */
1247
+ export interface Prisma__InvoiceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1248
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1249
+ 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>
1250
+ /**
1251
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1252
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1253
+ * @param onrejected The callback to execute when the Promise is rejected.
1254
+ * @returns A Promise for the completion of which ever callback is executed.
1255
+ */
1256
+ 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>
1257
+ /**
1258
+ * Attaches a callback for only the rejection of the Promise.
1259
+ * @param onrejected The callback to execute when the Promise is rejected.
1260
+ * @returns A Promise for the completion of the callback.
1261
+ */
1262
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1263
+ /**
1264
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1265
+ * resolved value cannot be modified from the callback.
1266
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1267
+ * @returns A Promise for the completion of the callback.
1268
+ */
1269
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1270
+ }
1271
+
1272
+
1273
+
1274
+
1275
+ /**
1276
+ * Fields of the Invoice model
1277
+ */
1278
+ export interface InvoiceFieldRefs {
1279
+ readonly id: Prisma.FieldRef<"Invoice", 'String'>
1280
+ readonly subscriptionId: Prisma.FieldRef<"Invoice", 'String'>
1281
+ readonly providerInvoiceId: Prisma.FieldRef<"Invoice", 'String'>
1282
+ readonly providerEventId: Prisma.FieldRef<"Invoice", 'String'>
1283
+ readonly amountDue: Prisma.FieldRef<"Invoice", 'Int'>
1284
+ readonly amountPaid: Prisma.FieldRef<"Invoice", 'Int'>
1285
+ readonly currency: Prisma.FieldRef<"Invoice", 'String'>
1286
+ readonly status: Prisma.FieldRef<"Invoice", 'String'>
1287
+ readonly pdfUrl: Prisma.FieldRef<"Invoice", 'String'>
1288
+ readonly hostedInvoiceUrl: Prisma.FieldRef<"Invoice", 'String'>
1289
+ readonly periodStart: Prisma.FieldRef<"Invoice", 'DateTime'>
1290
+ readonly periodEnd: Prisma.FieldRef<"Invoice", 'DateTime'>
1291
+ readonly paidAt: Prisma.FieldRef<"Invoice", 'DateTime'>
1292
+ readonly createdAt: Prisma.FieldRef<"Invoice", 'DateTime'>
1293
+ }
1294
+
1295
+
1296
+ // Custom InputTypes
1297
+ /**
1298
+ * Invoice findUnique
1299
+ */
1300
+ export type InvoiceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1301
+ /**
1302
+ * Select specific fields to fetch from the Invoice
1303
+ */
1304
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1305
+ /**
1306
+ * Omit specific fields from the Invoice
1307
+ */
1308
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1309
+ /**
1310
+ * Choose, which related nodes to fetch as well
1311
+ */
1312
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1313
+ /**
1314
+ * Filter, which Invoice to fetch.
1315
+ */
1316
+ where: Prisma.InvoiceWhereUniqueInput
1317
+ }
1318
+
1319
+ /**
1320
+ * Invoice findUniqueOrThrow
1321
+ */
1322
+ export type InvoiceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1323
+ /**
1324
+ * Select specific fields to fetch from the Invoice
1325
+ */
1326
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1327
+ /**
1328
+ * Omit specific fields from the Invoice
1329
+ */
1330
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1331
+ /**
1332
+ * Choose, which related nodes to fetch as well
1333
+ */
1334
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1335
+ /**
1336
+ * Filter, which Invoice to fetch.
1337
+ */
1338
+ where: Prisma.InvoiceWhereUniqueInput
1339
+ }
1340
+
1341
+ /**
1342
+ * Invoice findFirst
1343
+ */
1344
+ export type InvoiceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1345
+ /**
1346
+ * Select specific fields to fetch from the Invoice
1347
+ */
1348
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1349
+ /**
1350
+ * Omit specific fields from the Invoice
1351
+ */
1352
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1353
+ /**
1354
+ * Choose, which related nodes to fetch as well
1355
+ */
1356
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1357
+ /**
1358
+ * Filter, which Invoice to fetch.
1359
+ */
1360
+ where?: Prisma.InvoiceWhereInput
1361
+ /**
1362
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1363
+ *
1364
+ * Determine the order of Invoices to fetch.
1365
+ */
1366
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
1367
+ /**
1368
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1369
+ *
1370
+ * Sets the position for searching for Invoices.
1371
+ */
1372
+ cursor?: Prisma.InvoiceWhereUniqueInput
1373
+ /**
1374
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1375
+ *
1376
+ * Take `±n` Invoices from the position of the cursor.
1377
+ */
1378
+ take?: number
1379
+ /**
1380
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1381
+ *
1382
+ * Skip the first `n` Invoices.
1383
+ */
1384
+ skip?: number
1385
+ /**
1386
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1387
+ *
1388
+ * Filter by unique combinations of Invoices.
1389
+ */
1390
+ distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
1391
+ }
1392
+
1393
+ /**
1394
+ * Invoice findFirstOrThrow
1395
+ */
1396
+ export type InvoiceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1397
+ /**
1398
+ * Select specific fields to fetch from the Invoice
1399
+ */
1400
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1401
+ /**
1402
+ * Omit specific fields from the Invoice
1403
+ */
1404
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1405
+ /**
1406
+ * Choose, which related nodes to fetch as well
1407
+ */
1408
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1409
+ /**
1410
+ * Filter, which Invoice to fetch.
1411
+ */
1412
+ where?: Prisma.InvoiceWhereInput
1413
+ /**
1414
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1415
+ *
1416
+ * Determine the order of Invoices to fetch.
1417
+ */
1418
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
1419
+ /**
1420
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1421
+ *
1422
+ * Sets the position for searching for Invoices.
1423
+ */
1424
+ cursor?: Prisma.InvoiceWhereUniqueInput
1425
+ /**
1426
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1427
+ *
1428
+ * Take `±n` Invoices from the position of the cursor.
1429
+ */
1430
+ take?: number
1431
+ /**
1432
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1433
+ *
1434
+ * Skip the first `n` Invoices.
1435
+ */
1436
+ skip?: number
1437
+ /**
1438
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1439
+ *
1440
+ * Filter by unique combinations of Invoices.
1441
+ */
1442
+ distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
1443
+ }
1444
+
1445
+ /**
1446
+ * Invoice findMany
1447
+ */
1448
+ export type InvoiceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1449
+ /**
1450
+ * Select specific fields to fetch from the Invoice
1451
+ */
1452
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1453
+ /**
1454
+ * Omit specific fields from the Invoice
1455
+ */
1456
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1457
+ /**
1458
+ * Choose, which related nodes to fetch as well
1459
+ */
1460
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1461
+ /**
1462
+ * Filter, which Invoices to fetch.
1463
+ */
1464
+ where?: Prisma.InvoiceWhereInput
1465
+ /**
1466
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1467
+ *
1468
+ * Determine the order of Invoices to fetch.
1469
+ */
1470
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
1471
+ /**
1472
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1473
+ *
1474
+ * Sets the position for listing Invoices.
1475
+ */
1476
+ cursor?: Prisma.InvoiceWhereUniqueInput
1477
+ /**
1478
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1479
+ *
1480
+ * Take `±n` Invoices from the position of the cursor.
1481
+ */
1482
+ take?: number
1483
+ /**
1484
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1485
+ *
1486
+ * Skip the first `n` Invoices.
1487
+ */
1488
+ skip?: number
1489
+ /**
1490
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1491
+ *
1492
+ * Filter by unique combinations of Invoices.
1493
+ */
1494
+ distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
1495
+ }
1496
+
1497
+ /**
1498
+ * Invoice create
1499
+ */
1500
+ export type InvoiceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1501
+ /**
1502
+ * Select specific fields to fetch from the Invoice
1503
+ */
1504
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1505
+ /**
1506
+ * Omit specific fields from the Invoice
1507
+ */
1508
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1509
+ /**
1510
+ * Choose, which related nodes to fetch as well
1511
+ */
1512
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1513
+ /**
1514
+ * The data needed to create a Invoice.
1515
+ */
1516
+ data: Prisma.XOR<Prisma.InvoiceCreateInput, Prisma.InvoiceUncheckedCreateInput>
1517
+ }
1518
+
1519
+ /**
1520
+ * Invoice createMany
1521
+ */
1522
+ export type InvoiceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * The data used to create many Invoices.
1525
+ */
1526
+ data: Prisma.InvoiceCreateManyInput | Prisma.InvoiceCreateManyInput[]
1527
+ }
1528
+
1529
+ /**
1530
+ * Invoice createManyAndReturn
1531
+ */
1532
+ export type InvoiceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1533
+ /**
1534
+ * Select specific fields to fetch from the Invoice
1535
+ */
1536
+ select?: Prisma.InvoiceSelectCreateManyAndReturn<ExtArgs> | null
1537
+ /**
1538
+ * Omit specific fields from the Invoice
1539
+ */
1540
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1541
+ /**
1542
+ * The data used to create many Invoices.
1543
+ */
1544
+ data: Prisma.InvoiceCreateManyInput | Prisma.InvoiceCreateManyInput[]
1545
+ /**
1546
+ * Choose, which related nodes to fetch as well
1547
+ */
1548
+ include?: Prisma.InvoiceIncludeCreateManyAndReturn<ExtArgs> | null
1549
+ }
1550
+
1551
+ /**
1552
+ * Invoice update
1553
+ */
1554
+ export type InvoiceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1555
+ /**
1556
+ * Select specific fields to fetch from the Invoice
1557
+ */
1558
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1559
+ /**
1560
+ * Omit specific fields from the Invoice
1561
+ */
1562
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1563
+ /**
1564
+ * Choose, which related nodes to fetch as well
1565
+ */
1566
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1567
+ /**
1568
+ * The data needed to update a Invoice.
1569
+ */
1570
+ data: Prisma.XOR<Prisma.InvoiceUpdateInput, Prisma.InvoiceUncheckedUpdateInput>
1571
+ /**
1572
+ * Choose, which Invoice to update.
1573
+ */
1574
+ where: Prisma.InvoiceWhereUniqueInput
1575
+ }
1576
+
1577
+ /**
1578
+ * Invoice updateMany
1579
+ */
1580
+ export type InvoiceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1581
+ /**
1582
+ * The data used to update Invoices.
1583
+ */
1584
+ data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyInput>
1585
+ /**
1586
+ * Filter which Invoices to update
1587
+ */
1588
+ where?: Prisma.InvoiceWhereInput
1589
+ /**
1590
+ * Limit how many Invoices to update.
1591
+ */
1592
+ limit?: number
1593
+ }
1594
+
1595
+ /**
1596
+ * Invoice updateManyAndReturn
1597
+ */
1598
+ export type InvoiceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1599
+ /**
1600
+ * Select specific fields to fetch from the Invoice
1601
+ */
1602
+ select?: Prisma.InvoiceSelectUpdateManyAndReturn<ExtArgs> | null
1603
+ /**
1604
+ * Omit specific fields from the Invoice
1605
+ */
1606
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1607
+ /**
1608
+ * The data used to update Invoices.
1609
+ */
1610
+ data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyInput>
1611
+ /**
1612
+ * Filter which Invoices to update
1613
+ */
1614
+ where?: Prisma.InvoiceWhereInput
1615
+ /**
1616
+ * Limit how many Invoices to update.
1617
+ */
1618
+ limit?: number
1619
+ /**
1620
+ * Choose, which related nodes to fetch as well
1621
+ */
1622
+ include?: Prisma.InvoiceIncludeUpdateManyAndReturn<ExtArgs> | null
1623
+ }
1624
+
1625
+ /**
1626
+ * Invoice upsert
1627
+ */
1628
+ export type InvoiceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1629
+ /**
1630
+ * Select specific fields to fetch from the Invoice
1631
+ */
1632
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1633
+ /**
1634
+ * Omit specific fields from the Invoice
1635
+ */
1636
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1637
+ /**
1638
+ * Choose, which related nodes to fetch as well
1639
+ */
1640
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1641
+ /**
1642
+ * The filter to search for the Invoice to update in case it exists.
1643
+ */
1644
+ where: Prisma.InvoiceWhereUniqueInput
1645
+ /**
1646
+ * In case the Invoice found by the `where` argument doesn't exist, create a new Invoice with this data.
1647
+ */
1648
+ create: Prisma.XOR<Prisma.InvoiceCreateInput, Prisma.InvoiceUncheckedCreateInput>
1649
+ /**
1650
+ * In case the Invoice was found with the provided `where` argument, update it with this data.
1651
+ */
1652
+ update: Prisma.XOR<Prisma.InvoiceUpdateInput, Prisma.InvoiceUncheckedUpdateInput>
1653
+ }
1654
+
1655
+ /**
1656
+ * Invoice delete
1657
+ */
1658
+ export type InvoiceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1659
+ /**
1660
+ * Select specific fields to fetch from the Invoice
1661
+ */
1662
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1663
+ /**
1664
+ * Omit specific fields from the Invoice
1665
+ */
1666
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1667
+ /**
1668
+ * Choose, which related nodes to fetch as well
1669
+ */
1670
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1671
+ /**
1672
+ * Filter which Invoice to delete.
1673
+ */
1674
+ where: Prisma.InvoiceWhereUniqueInput
1675
+ }
1676
+
1677
+ /**
1678
+ * Invoice deleteMany
1679
+ */
1680
+ export type InvoiceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1681
+ /**
1682
+ * Filter which Invoices to delete
1683
+ */
1684
+ where?: Prisma.InvoiceWhereInput
1685
+ /**
1686
+ * Limit how many Invoices to delete.
1687
+ */
1688
+ limit?: number
1689
+ }
1690
+
1691
+ /**
1692
+ * Invoice without action
1693
+ */
1694
+ export type InvoiceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1695
+ /**
1696
+ * Select specific fields to fetch from the Invoice
1697
+ */
1698
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
1699
+ /**
1700
+ * Omit specific fields from the Invoice
1701
+ */
1702
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
1703
+ /**
1704
+ * Choose, which related nodes to fetch as well
1705
+ */
1706
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
1707
+ }