@windrun-huaiin/backend-core 26.0.2 → 28.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/dist/app/api/ai/route.d.ts +2 -0
  2. package/dist/app/api/ai/route.d.ts.map +1 -0
  3. package/dist/app/api/ai/route.js +10 -0
  4. package/dist/app/api/ai/route.mjs +1 -0
  5. package/dist/app/api/stripe/checkout/route.js +1 -1
  6. package/dist/app/api/stripe/checkout/route.mjs +1 -1
  7. package/dist/app/api/stripe/customer-portal/route.js +1 -1
  8. package/dist/app/api/stripe/customer-portal/route.mjs +1 -1
  9. package/dist/app/api/webhook/clerk/user/route.js +1 -1
  10. package/dist/app/api/webhook/clerk/user/route.mjs +1 -1
  11. package/dist/auth/auth-utils.js +1 -1
  12. package/dist/auth/auth-utils.mjs +1 -1
  13. package/dist/config/fingerprint.d.ts +2 -0
  14. package/dist/config/fingerprint.d.ts.map +1 -0
  15. package/dist/config/fingerprint.js +7 -0
  16. package/dist/config/fingerprint.mjs +1 -0
  17. package/dist/config/money-price.d.ts +2 -0
  18. package/dist/config/money-price.d.ts.map +1 -0
  19. package/dist/config/money-price.js +10 -0
  20. package/dist/config/money-price.mjs +1 -0
  21. package/dist/core-prisma/browser.d.ts +40 -0
  22. package/dist/core-prisma/browser.d.ts.map +1 -0
  23. package/dist/core-prisma/client.d.ts +57 -0
  24. package/dist/core-prisma/client.d.ts.map +1 -0
  25. package/dist/core-prisma/client.js +55 -0
  26. package/dist/core-prisma/client.mjs +33 -0
  27. package/dist/core-prisma/commonInputTypes.d.ts +495 -0
  28. package/dist/core-prisma/commonInputTypes.d.ts.map +1 -0
  29. package/dist/core-prisma/enums.d.ts +2 -0
  30. package/dist/core-prisma/enums.d.ts.map +1 -0
  31. package/dist/core-prisma/internal/class.d.ts +193 -0
  32. package/dist/core-prisma/internal/class.d.ts.map +1 -0
  33. package/dist/core-prisma/internal/class.js +108 -0
  34. package/dist/core-prisma/internal/class.mjs +87 -0
  35. package/dist/core-prisma/internal/prismaNamespace.d.ts +1180 -0
  36. package/dist/core-prisma/internal/prismaNamespace.d.ts.map +1 -0
  37. package/dist/core-prisma/internal/prismaNamespace.js +278 -0
  38. package/dist/core-prisma/internal/prismaNamespace.mjs +226 -0
  39. package/dist/core-prisma/internal/prismaNamespaceBrowser.d.ts +233 -0
  40. package/dist/core-prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  41. package/dist/core-prisma/models/Apilog.d.ts +1088 -0
  42. package/dist/core-prisma/models/Apilog.d.ts.map +1 -0
  43. package/dist/core-prisma/models/Credit.d.ts +1554 -0
  44. package/dist/core-prisma/models/Credit.d.ts.map +1 -0
  45. package/dist/core-prisma/models/CreditAuditLog.d.ts +1362 -0
  46. package/dist/core-prisma/models/CreditAuditLog.d.ts.map +1 -0
  47. package/dist/core-prisma/models/Subscription.d.ts +1441 -0
  48. package/dist/core-prisma/models/Subscription.d.ts.map +1 -0
  49. package/dist/core-prisma/models/Transaction.d.ts +2222 -0
  50. package/dist/core-prisma/models/Transaction.d.ts.map +1 -0
  51. package/dist/core-prisma/models/User.d.ts +1775 -0
  52. package/dist/core-prisma/models/User.d.ts.map +1 -0
  53. package/dist/core-prisma/models/UserBackup.d.ts +1228 -0
  54. package/dist/core-prisma/models/UserBackup.d.ts.map +1 -0
  55. package/dist/core-prisma/models.d.ts +9 -0
  56. package/dist/core-prisma/models.d.ts.map +1 -0
  57. package/dist/credit/server.d.ts +2 -0
  58. package/dist/credit/server.d.ts.map +1 -0
  59. package/dist/credit/server.js +11 -0
  60. package/dist/credit/server.mjs +1 -0
  61. package/dist/index.d.ts +0 -1
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +7 -98
  64. package/dist/index.mjs +5 -14
  65. package/dist/lib/money-price-helper.d.ts.map +1 -1
  66. package/dist/lib/money-price-helper.js +1 -0
  67. package/dist/lib/money-price-helper.mjs +2 -1
  68. package/dist/lib/stripe-config.js +1 -1
  69. package/dist/lib/stripe-config.mjs +1 -1
  70. package/dist/pricing/server.d.ts +2 -0
  71. package/dist/pricing/server.d.ts.map +1 -0
  72. package/dist/pricing/server.js +7 -0
  73. package/dist/pricing/server.mjs +1 -0
  74. package/dist/prisma/index.d.ts +4 -1
  75. package/dist/prisma/index.d.ts.map +1 -1
  76. package/dist/prisma/index.js +6 -0
  77. package/dist/prisma/index.mjs +4 -1
  78. package/dist/prisma/prisma-transaction-util.d.ts +1 -1
  79. package/dist/prisma/prisma-transaction-util.d.ts.map +1 -1
  80. package/dist/prisma/prisma-transaction-util.js +1 -1
  81. package/dist/prisma/prisma-transaction-util.mjs +2 -2
  82. package/dist/prisma/prisma.d.ts +22 -3
  83. package/dist/prisma/prisma.d.ts.map +1 -1
  84. package/dist/prisma/prisma.js +83 -20
  85. package/dist/prisma/prisma.mjs +81 -21
  86. package/dist/services/aggregate/anonymous.aggregate.service.d.ts +2 -2
  87. package/dist/services/aggregate/anonymous.aggregate.service.d.ts.map +1 -1
  88. package/dist/services/aggregate/anonymous.aggregate.service.js +3 -2
  89. package/dist/services/aggregate/anonymous.aggregate.service.mjs +3 -2
  90. package/dist/services/aggregate/billing.aggregate.service.d.ts +2 -2
  91. package/dist/services/aggregate/billing.aggregate.service.d.ts.map +1 -1
  92. package/dist/services/aggregate/billing.aggregate.service.js +1 -1
  93. package/dist/services/aggregate/billing.aggregate.service.mjs +1 -1
  94. package/dist/services/aggregate/user.aggregate.service.d.ts +1 -1
  95. package/dist/services/aggregate/user.aggregate.service.d.ts.map +1 -1
  96. package/dist/services/aggregate/user.aggregate.service.js +3 -3
  97. package/dist/services/aggregate/user.aggregate.service.mjs +3 -3
  98. package/dist/services/context/index.js +1 -0
  99. package/dist/services/context/index.mjs +1 -1
  100. package/dist/services/context/user-context-finalizer.d.ts +1 -0
  101. package/dist/services/context/user-context-finalizer.d.ts.map +1 -1
  102. package/dist/services/context/user-context-finalizer.js +17 -0
  103. package/dist/services/context/user-context-finalizer.mjs +17 -1
  104. package/dist/services/context/user-context-service.js +1 -1
  105. package/dist/services/context/user-context-service.mjs +1 -1
  106. package/dist/services/database/apilog.service.d.ts +2 -2
  107. package/dist/services/database/apilog.service.d.ts.map +1 -1
  108. package/dist/services/database/apilog.service.js +1 -0
  109. package/dist/services/database/apilog.service.mjs +1 -0
  110. package/dist/services/database/credit.service.d.ts +2 -2
  111. package/dist/services/database/credit.service.d.ts.map +1 -1
  112. package/dist/services/database/credit.service.js +5 -4
  113. package/dist/services/database/credit.service.mjs +3 -2
  114. package/dist/services/database/creditAuditLog.service.d.ts +2 -2
  115. package/dist/services/database/creditAuditLog.service.d.ts.map +1 -1
  116. package/dist/services/database/creditAuditLog.service.js +5 -4
  117. package/dist/services/database/creditAuditLog.service.mjs +3 -2
  118. package/dist/services/database/prisma-model-type.d.ts +2 -2
  119. package/dist/services/database/prisma-model-type.d.ts.map +1 -1
  120. package/dist/services/database/subscription.service.d.ts +1 -1
  121. package/dist/services/database/subscription.service.d.ts.map +1 -1
  122. package/dist/services/database/subscription.service.js +1 -0
  123. package/dist/services/database/subscription.service.mjs +1 -0
  124. package/dist/services/database/transaction.service.d.ts +3 -3
  125. package/dist/services/database/transaction.service.d.ts.map +1 -1
  126. package/dist/services/database/transaction.service.js +5 -4
  127. package/dist/services/database/transaction.service.mjs +3 -2
  128. package/dist/services/database/user.service.d.ts +2 -2
  129. package/dist/services/database/user.service.d.ts.map +1 -1
  130. package/dist/services/database/user.service.js +1 -0
  131. package/dist/services/database/user.service.mjs +1 -0
  132. package/dist/services/database/userBackup.service.d.ts +2 -2
  133. package/dist/services/database/userBackup.service.d.ts.map +1 -1
  134. package/dist/services/database/userBackup.service.js +1 -0
  135. package/dist/services/database/userBackup.service.mjs +1 -0
  136. package/dist/services/stripe/webhook-handler.js +1 -1
  137. package/dist/services/stripe/webhook-handler.mjs +1 -1
  138. package/dist/upstash/server.d.ts +3 -0
  139. package/dist/upstash/server.d.ts.map +1 -0
  140. package/dist/{lib/index.js → upstash/server.js} +7 -32
  141. package/dist/upstash/server.mjs +7 -0
  142. package/package.json +44 -12
  143. package/prisma/schema.prisma +3 -1
  144. package/src/app/api/ai/route.ts +6 -0
  145. package/src/app/api/stripe/checkout/route.ts +4 -4
  146. package/src/app/api/stripe/customer-portal/route.ts +3 -3
  147. package/src/app/api/user/anonymous/init/route.ts +5 -5
  148. package/src/app/api/webhook/clerk/user/route.ts +3 -3
  149. package/src/app/api/webhook/stripe/route.ts +3 -3
  150. package/src/config/fingerprint.ts +1 -0
  151. package/src/config/money-price.ts +1 -0
  152. package/src/core-prisma/browser.ts +54 -0
  153. package/src/core-prisma/client.ts +78 -0
  154. package/src/core-prisma/commonInputTypes.ts +565 -0
  155. package/src/core-prisma/enums.ts +15 -0
  156. package/src/core-prisma/internal/class.ts +293 -0
  157. package/src/core-prisma/internal/prismaNamespace.ts +1419 -0
  158. package/src/core-prisma/internal/prismaNamespaceBrowser.ts +259 -0
  159. package/src/core-prisma/models/Apilog.ts +1244 -0
  160. package/src/core-prisma/models/Credit.ts +1722 -0
  161. package/src/core-prisma/models/CreditAuditLog.ts +1536 -0
  162. package/src/core-prisma/models/Subscription.ts +1610 -0
  163. package/src/core-prisma/models/Transaction.ts +2398 -0
  164. package/src/core-prisma/models/User.ts +1982 -0
  165. package/src/core-prisma/models/UserBackup.ts +1384 -0
  166. package/src/core-prisma/models.ts +18 -0
  167. package/src/credit/server.ts +1 -0
  168. package/src/index.ts +0 -1
  169. package/src/lib/money-price-helper.ts +3 -0
  170. package/src/pricing/server.ts +1 -0
  171. package/src/prisma/index.ts +18 -1
  172. package/src/prisma/prisma-transaction-util.ts +3 -3
  173. package/src/prisma/prisma.ts +130 -21
  174. package/src/services/aggregate/anonymous.aggregate.service.ts +7 -7
  175. package/src/services/aggregate/billing.aggregate.service.ts +3 -3
  176. package/src/services/aggregate/user.aggregate.service.ts +7 -6
  177. package/src/services/context/user-context-finalizer.ts +16 -0
  178. package/src/services/database/apilog.service.ts +3 -3
  179. package/src/services/database/credit.service.ts +7 -7
  180. package/src/services/database/creditAuditLog.service.ts +4 -4
  181. package/src/services/database/prisma-model-type.ts +2 -2
  182. package/src/services/database/subscription.service.ts +3 -3
  183. package/src/services/database/transaction.service.ts +4 -4
  184. package/src/services/database/user.service.ts +4 -4
  185. package/src/services/database/userBackup.service.ts +4 -4
  186. package/src/services/stripe/webhook-handler.ts +6 -6
  187. package/src/upstash/server.ts +2 -0
  188. package/dist/lib/index.d.ts +0 -8
  189. package/dist/lib/index.d.ts.map +0 -1
  190. package/dist/lib/index.mjs +0 -12
  191. package/src/lib/index.ts +0 -7
@@ -0,0 +1,2222 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model Transaction
5
+ *
6
+ */
7
+ export type TransactionModel = runtime.Types.Result.DefaultSelection<Prisma.$TransactionPayload>;
8
+ export type AggregateTransaction = {
9
+ _count: TransactionCountAggregateOutputType | null;
10
+ _avg: TransactionAvgAggregateOutputType | null;
11
+ _sum: TransactionSumAggregateOutputType | null;
12
+ _min: TransactionMinAggregateOutputType | null;
13
+ _max: TransactionMaxAggregateOutputType | null;
14
+ };
15
+ export type TransactionAvgAggregateOutputType = {
16
+ id: number | null;
17
+ amount: runtime.Decimal | null;
18
+ creditsGranted: number | null;
19
+ deleted: number | null;
20
+ };
21
+ export type TransactionSumAggregateOutputType = {
22
+ id: bigint | null;
23
+ amount: runtime.Decimal | null;
24
+ creditsGranted: number | null;
25
+ deleted: number | null;
26
+ };
27
+ export type TransactionMinAggregateOutputType = {
28
+ id: bigint | null;
29
+ userId: string | null;
30
+ orderId: string | null;
31
+ orderStatus: string | null;
32
+ orderCreatedAt: Date | null;
33
+ orderExpiredAt: Date | null;
34
+ orderUpdatedAt: Date | null;
35
+ type: string | null;
36
+ paySupplier: string | null;
37
+ paySessionId: string | null;
38
+ payTransactionId: string | null;
39
+ paySubscriptionId: string | null;
40
+ subPeriodStart: Date | null;
41
+ subPeriodEnd: Date | null;
42
+ subLastTryCancelAt: Date | null;
43
+ subPeriodCanceledAt: Date | null;
44
+ subCancellationDetail: string | null;
45
+ priceId: string | null;
46
+ priceName: string | null;
47
+ amount: runtime.Decimal | null;
48
+ currency: string | null;
49
+ creditsGranted: number | null;
50
+ payInvoiceId: string | null;
51
+ paymentStatus: string | null;
52
+ billingReason: string | null;
53
+ hostedInvoiceUrl: string | null;
54
+ invoicePdf: string | null;
55
+ orderDetail: string | null;
56
+ paidEmail: string | null;
57
+ paidAt: Date | null;
58
+ paidDetail: string | null;
59
+ payUpdatedAt: Date | null;
60
+ deleted: number | null;
61
+ };
62
+ export type TransactionMaxAggregateOutputType = {
63
+ id: bigint | null;
64
+ userId: string | null;
65
+ orderId: string | null;
66
+ orderStatus: string | null;
67
+ orderCreatedAt: Date | null;
68
+ orderExpiredAt: Date | null;
69
+ orderUpdatedAt: Date | null;
70
+ type: string | null;
71
+ paySupplier: string | null;
72
+ paySessionId: string | null;
73
+ payTransactionId: string | null;
74
+ paySubscriptionId: string | null;
75
+ subPeriodStart: Date | null;
76
+ subPeriodEnd: Date | null;
77
+ subLastTryCancelAt: Date | null;
78
+ subPeriodCanceledAt: Date | null;
79
+ subCancellationDetail: string | null;
80
+ priceId: string | null;
81
+ priceName: string | null;
82
+ amount: runtime.Decimal | null;
83
+ currency: string | null;
84
+ creditsGranted: number | null;
85
+ payInvoiceId: string | null;
86
+ paymentStatus: string | null;
87
+ billingReason: string | null;
88
+ hostedInvoiceUrl: string | null;
89
+ invoicePdf: string | null;
90
+ orderDetail: string | null;
91
+ paidEmail: string | null;
92
+ paidAt: Date | null;
93
+ paidDetail: string | null;
94
+ payUpdatedAt: Date | null;
95
+ deleted: number | null;
96
+ };
97
+ export type TransactionCountAggregateOutputType = {
98
+ id: number;
99
+ userId: number;
100
+ orderId: number;
101
+ orderStatus: number;
102
+ orderCreatedAt: number;
103
+ orderExpiredAt: number;
104
+ orderUpdatedAt: number;
105
+ type: number;
106
+ paySupplier: number;
107
+ paySessionId: number;
108
+ payTransactionId: number;
109
+ paySubscriptionId: number;
110
+ subPeriodStart: number;
111
+ subPeriodEnd: number;
112
+ subLastTryCancelAt: number;
113
+ subPeriodCanceledAt: number;
114
+ subCancellationDetail: number;
115
+ priceId: number;
116
+ priceName: number;
117
+ amount: number;
118
+ currency: number;
119
+ creditsGranted: number;
120
+ payInvoiceId: number;
121
+ paymentStatus: number;
122
+ billingReason: number;
123
+ hostedInvoiceUrl: number;
124
+ invoicePdf: number;
125
+ orderDetail: number;
126
+ paidEmail: number;
127
+ paidAt: number;
128
+ paidDetail: number;
129
+ payUpdatedAt: number;
130
+ deleted: number;
131
+ _all: number;
132
+ };
133
+ export type TransactionAvgAggregateInputType = {
134
+ id?: true;
135
+ amount?: true;
136
+ creditsGranted?: true;
137
+ deleted?: true;
138
+ };
139
+ export type TransactionSumAggregateInputType = {
140
+ id?: true;
141
+ amount?: true;
142
+ creditsGranted?: true;
143
+ deleted?: true;
144
+ };
145
+ export type TransactionMinAggregateInputType = {
146
+ id?: true;
147
+ userId?: true;
148
+ orderId?: true;
149
+ orderStatus?: true;
150
+ orderCreatedAt?: true;
151
+ orderExpiredAt?: true;
152
+ orderUpdatedAt?: true;
153
+ type?: true;
154
+ paySupplier?: true;
155
+ paySessionId?: true;
156
+ payTransactionId?: true;
157
+ paySubscriptionId?: true;
158
+ subPeriodStart?: true;
159
+ subPeriodEnd?: true;
160
+ subLastTryCancelAt?: true;
161
+ subPeriodCanceledAt?: true;
162
+ subCancellationDetail?: true;
163
+ priceId?: true;
164
+ priceName?: true;
165
+ amount?: true;
166
+ currency?: true;
167
+ creditsGranted?: true;
168
+ payInvoiceId?: true;
169
+ paymentStatus?: true;
170
+ billingReason?: true;
171
+ hostedInvoiceUrl?: true;
172
+ invoicePdf?: true;
173
+ orderDetail?: true;
174
+ paidEmail?: true;
175
+ paidAt?: true;
176
+ paidDetail?: true;
177
+ payUpdatedAt?: true;
178
+ deleted?: true;
179
+ };
180
+ export type TransactionMaxAggregateInputType = {
181
+ id?: true;
182
+ userId?: true;
183
+ orderId?: true;
184
+ orderStatus?: true;
185
+ orderCreatedAt?: true;
186
+ orderExpiredAt?: true;
187
+ orderUpdatedAt?: true;
188
+ type?: true;
189
+ paySupplier?: true;
190
+ paySessionId?: true;
191
+ payTransactionId?: true;
192
+ paySubscriptionId?: true;
193
+ subPeriodStart?: true;
194
+ subPeriodEnd?: true;
195
+ subLastTryCancelAt?: true;
196
+ subPeriodCanceledAt?: true;
197
+ subCancellationDetail?: true;
198
+ priceId?: true;
199
+ priceName?: true;
200
+ amount?: true;
201
+ currency?: true;
202
+ creditsGranted?: true;
203
+ payInvoiceId?: true;
204
+ paymentStatus?: true;
205
+ billingReason?: true;
206
+ hostedInvoiceUrl?: true;
207
+ invoicePdf?: true;
208
+ orderDetail?: true;
209
+ paidEmail?: true;
210
+ paidAt?: true;
211
+ paidDetail?: true;
212
+ payUpdatedAt?: true;
213
+ deleted?: true;
214
+ };
215
+ export type TransactionCountAggregateInputType = {
216
+ id?: true;
217
+ userId?: true;
218
+ orderId?: true;
219
+ orderStatus?: true;
220
+ orderCreatedAt?: true;
221
+ orderExpiredAt?: true;
222
+ orderUpdatedAt?: true;
223
+ type?: true;
224
+ paySupplier?: true;
225
+ paySessionId?: true;
226
+ payTransactionId?: true;
227
+ paySubscriptionId?: true;
228
+ subPeriodStart?: true;
229
+ subPeriodEnd?: true;
230
+ subLastTryCancelAt?: true;
231
+ subPeriodCanceledAt?: true;
232
+ subCancellationDetail?: true;
233
+ priceId?: true;
234
+ priceName?: true;
235
+ amount?: true;
236
+ currency?: true;
237
+ creditsGranted?: true;
238
+ payInvoiceId?: true;
239
+ paymentStatus?: true;
240
+ billingReason?: true;
241
+ hostedInvoiceUrl?: true;
242
+ invoicePdf?: true;
243
+ orderDetail?: true;
244
+ paidEmail?: true;
245
+ paidAt?: true;
246
+ paidDetail?: true;
247
+ payUpdatedAt?: true;
248
+ deleted?: true;
249
+ _all?: true;
250
+ };
251
+ export type TransactionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
252
+ /**
253
+ * Filter which Transaction to aggregate.
254
+ */
255
+ where?: Prisma.TransactionWhereInput;
256
+ /**
257
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
258
+ *
259
+ * Determine the order of Transactions to fetch.
260
+ */
261
+ orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[];
262
+ /**
263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
264
+ *
265
+ * Sets the start position
266
+ */
267
+ cursor?: Prisma.TransactionWhereUniqueInput;
268
+ /**
269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
270
+ *
271
+ * Take `±n` Transactions from the position of the cursor.
272
+ */
273
+ take?: number;
274
+ /**
275
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
276
+ *
277
+ * Skip the first `n` Transactions.
278
+ */
279
+ skip?: number;
280
+ /**
281
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
282
+ *
283
+ * Count returned Transactions
284
+ **/
285
+ _count?: true | TransactionCountAggregateInputType;
286
+ /**
287
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
288
+ *
289
+ * Select which fields to average
290
+ **/
291
+ _avg?: TransactionAvgAggregateInputType;
292
+ /**
293
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
294
+ *
295
+ * Select which fields to sum
296
+ **/
297
+ _sum?: TransactionSumAggregateInputType;
298
+ /**
299
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
300
+ *
301
+ * Select which fields to find the minimum value
302
+ **/
303
+ _min?: TransactionMinAggregateInputType;
304
+ /**
305
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
306
+ *
307
+ * Select which fields to find the maximum value
308
+ **/
309
+ _max?: TransactionMaxAggregateInputType;
310
+ };
311
+ export type GetTransactionAggregateType<T extends TransactionAggregateArgs> = {
312
+ [P in keyof T & keyof AggregateTransaction]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateTransaction[P]> : Prisma.GetScalarType<T[P], AggregateTransaction[P]>;
313
+ };
314
+ export type TransactionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
315
+ where?: Prisma.TransactionWhereInput;
316
+ orderBy?: Prisma.TransactionOrderByWithAggregationInput | Prisma.TransactionOrderByWithAggregationInput[];
317
+ by: Prisma.TransactionScalarFieldEnum[] | Prisma.TransactionScalarFieldEnum;
318
+ having?: Prisma.TransactionScalarWhereWithAggregatesInput;
319
+ take?: number;
320
+ skip?: number;
321
+ _count?: TransactionCountAggregateInputType | true;
322
+ _avg?: TransactionAvgAggregateInputType;
323
+ _sum?: TransactionSumAggregateInputType;
324
+ _min?: TransactionMinAggregateInputType;
325
+ _max?: TransactionMaxAggregateInputType;
326
+ };
327
+ export type TransactionGroupByOutputType = {
328
+ id: bigint;
329
+ userId: string;
330
+ orderId: string;
331
+ orderStatus: string;
332
+ orderCreatedAt: Date | null;
333
+ orderExpiredAt: Date | null;
334
+ orderUpdatedAt: Date | null;
335
+ type: string | null;
336
+ paySupplier: string | null;
337
+ paySessionId: string | null;
338
+ payTransactionId: string | null;
339
+ paySubscriptionId: string | null;
340
+ subPeriodStart: Date | null;
341
+ subPeriodEnd: Date | null;
342
+ subLastTryCancelAt: Date | null;
343
+ subPeriodCanceledAt: Date | null;
344
+ subCancellationDetail: string | null;
345
+ priceId: string | null;
346
+ priceName: string | null;
347
+ amount: runtime.Decimal | null;
348
+ currency: string | null;
349
+ creditsGranted: number | null;
350
+ payInvoiceId: string | null;
351
+ paymentStatus: string;
352
+ billingReason: string | null;
353
+ hostedInvoiceUrl: string | null;
354
+ invoicePdf: string | null;
355
+ orderDetail: string | null;
356
+ paidEmail: string | null;
357
+ paidAt: Date | null;
358
+ paidDetail: string | null;
359
+ payUpdatedAt: Date | null;
360
+ deleted: number;
361
+ _count: TransactionCountAggregateOutputType | null;
362
+ _avg: TransactionAvgAggregateOutputType | null;
363
+ _sum: TransactionSumAggregateOutputType | null;
364
+ _min: TransactionMinAggregateOutputType | null;
365
+ _max: TransactionMaxAggregateOutputType | null;
366
+ };
367
+ type GetTransactionGroupByPayload<T extends TransactionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<TransactionGroupByOutputType, T['by']> & {
368
+ [P in ((keyof T) & (keyof TransactionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], TransactionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], TransactionGroupByOutputType[P]>;
369
+ }>>;
370
+ export type TransactionWhereInput = {
371
+ AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[];
372
+ OR?: Prisma.TransactionWhereInput[];
373
+ NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[];
374
+ id?: Prisma.BigIntFilter<"Transaction"> | bigint | number;
375
+ userId?: Prisma.UuidFilter<"Transaction"> | string;
376
+ orderId?: Prisma.StringFilter<"Transaction"> | string;
377
+ orderStatus?: Prisma.StringFilter<"Transaction"> | string;
378
+ orderCreatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
379
+ orderExpiredAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
380
+ orderUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
381
+ type?: Prisma.StringNullableFilter<"Transaction"> | string | null;
382
+ paySupplier?: Prisma.StringNullableFilter<"Transaction"> | string | null;
383
+ paySessionId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
384
+ payTransactionId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
385
+ paySubscriptionId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
386
+ subPeriodStart?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
387
+ subPeriodEnd?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
388
+ subLastTryCancelAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
389
+ subPeriodCanceledAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
390
+ subCancellationDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
391
+ priceId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
392
+ priceName?: Prisma.StringNullableFilter<"Transaction"> | string | null;
393
+ amount?: Prisma.DecimalNullableFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
394
+ currency?: Prisma.StringNullableFilter<"Transaction"> | string | null;
395
+ creditsGranted?: Prisma.IntNullableFilter<"Transaction"> | number | null;
396
+ payInvoiceId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
397
+ paymentStatus?: Prisma.StringFilter<"Transaction"> | string;
398
+ billingReason?: Prisma.StringNullableFilter<"Transaction"> | string | null;
399
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Transaction"> | string | null;
400
+ invoicePdf?: Prisma.StringNullableFilter<"Transaction"> | string | null;
401
+ orderDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
402
+ paidEmail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
403
+ paidAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
404
+ paidDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
405
+ payUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
406
+ deleted?: Prisma.IntFilter<"Transaction"> | number;
407
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
408
+ };
409
+ export type TransactionOrderByWithRelationInput = {
410
+ id?: Prisma.SortOrder;
411
+ userId?: Prisma.SortOrder;
412
+ orderId?: Prisma.SortOrder;
413
+ orderStatus?: Prisma.SortOrder;
414
+ orderCreatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
415
+ orderExpiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
416
+ orderUpdatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
417
+ type?: Prisma.SortOrderInput | Prisma.SortOrder;
418
+ paySupplier?: Prisma.SortOrderInput | Prisma.SortOrder;
419
+ paySessionId?: Prisma.SortOrderInput | Prisma.SortOrder;
420
+ payTransactionId?: Prisma.SortOrderInput | Prisma.SortOrder;
421
+ paySubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder;
422
+ subPeriodStart?: Prisma.SortOrderInput | Prisma.SortOrder;
423
+ subPeriodEnd?: Prisma.SortOrderInput | Prisma.SortOrder;
424
+ subLastTryCancelAt?: Prisma.SortOrderInput | Prisma.SortOrder;
425
+ subPeriodCanceledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
426
+ subCancellationDetail?: Prisma.SortOrderInput | Prisma.SortOrder;
427
+ priceId?: Prisma.SortOrderInput | Prisma.SortOrder;
428
+ priceName?: Prisma.SortOrderInput | Prisma.SortOrder;
429
+ amount?: Prisma.SortOrderInput | Prisma.SortOrder;
430
+ currency?: Prisma.SortOrderInput | Prisma.SortOrder;
431
+ creditsGranted?: Prisma.SortOrderInput | Prisma.SortOrder;
432
+ payInvoiceId?: Prisma.SortOrderInput | Prisma.SortOrder;
433
+ paymentStatus?: Prisma.SortOrder;
434
+ billingReason?: Prisma.SortOrderInput | Prisma.SortOrder;
435
+ hostedInvoiceUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
436
+ invoicePdf?: Prisma.SortOrderInput | Prisma.SortOrder;
437
+ orderDetail?: Prisma.SortOrderInput | Prisma.SortOrder;
438
+ paidEmail?: Prisma.SortOrderInput | Prisma.SortOrder;
439
+ paidAt?: Prisma.SortOrderInput | Prisma.SortOrder;
440
+ paidDetail?: Prisma.SortOrderInput | Prisma.SortOrder;
441
+ payUpdatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
442
+ deleted?: Prisma.SortOrder;
443
+ user?: Prisma.UserOrderByWithRelationInput;
444
+ };
445
+ export type TransactionWhereUniqueInput = Prisma.AtLeast<{
446
+ id?: bigint | number;
447
+ orderId?: string;
448
+ payTransactionId?: string;
449
+ AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[];
450
+ OR?: Prisma.TransactionWhereInput[];
451
+ NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[];
452
+ userId?: Prisma.UuidFilter<"Transaction"> | string;
453
+ orderStatus?: Prisma.StringFilter<"Transaction"> | string;
454
+ orderCreatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
455
+ orderExpiredAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
456
+ orderUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
457
+ type?: Prisma.StringNullableFilter<"Transaction"> | string | null;
458
+ paySupplier?: Prisma.StringNullableFilter<"Transaction"> | string | null;
459
+ paySessionId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
460
+ paySubscriptionId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
461
+ subPeriodStart?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
462
+ subPeriodEnd?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
463
+ subLastTryCancelAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
464
+ subPeriodCanceledAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
465
+ subCancellationDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
466
+ priceId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
467
+ priceName?: Prisma.StringNullableFilter<"Transaction"> | string | null;
468
+ amount?: Prisma.DecimalNullableFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
469
+ currency?: Prisma.StringNullableFilter<"Transaction"> | string | null;
470
+ creditsGranted?: Prisma.IntNullableFilter<"Transaction"> | number | null;
471
+ payInvoiceId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
472
+ paymentStatus?: Prisma.StringFilter<"Transaction"> | string;
473
+ billingReason?: Prisma.StringNullableFilter<"Transaction"> | string | null;
474
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Transaction"> | string | null;
475
+ invoicePdf?: Prisma.StringNullableFilter<"Transaction"> | string | null;
476
+ orderDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
477
+ paidEmail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
478
+ paidAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
479
+ paidDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
480
+ payUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
481
+ deleted?: Prisma.IntFilter<"Transaction"> | number;
482
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
483
+ }, "id" | "orderId" | "payTransactionId">;
484
+ export type TransactionOrderByWithAggregationInput = {
485
+ id?: Prisma.SortOrder;
486
+ userId?: Prisma.SortOrder;
487
+ orderId?: Prisma.SortOrder;
488
+ orderStatus?: Prisma.SortOrder;
489
+ orderCreatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
490
+ orderExpiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
491
+ orderUpdatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
492
+ type?: Prisma.SortOrderInput | Prisma.SortOrder;
493
+ paySupplier?: Prisma.SortOrderInput | Prisma.SortOrder;
494
+ paySessionId?: Prisma.SortOrderInput | Prisma.SortOrder;
495
+ payTransactionId?: Prisma.SortOrderInput | Prisma.SortOrder;
496
+ paySubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder;
497
+ subPeriodStart?: Prisma.SortOrderInput | Prisma.SortOrder;
498
+ subPeriodEnd?: Prisma.SortOrderInput | Prisma.SortOrder;
499
+ subLastTryCancelAt?: Prisma.SortOrderInput | Prisma.SortOrder;
500
+ subPeriodCanceledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
501
+ subCancellationDetail?: Prisma.SortOrderInput | Prisma.SortOrder;
502
+ priceId?: Prisma.SortOrderInput | Prisma.SortOrder;
503
+ priceName?: Prisma.SortOrderInput | Prisma.SortOrder;
504
+ amount?: Prisma.SortOrderInput | Prisma.SortOrder;
505
+ currency?: Prisma.SortOrderInput | Prisma.SortOrder;
506
+ creditsGranted?: Prisma.SortOrderInput | Prisma.SortOrder;
507
+ payInvoiceId?: Prisma.SortOrderInput | Prisma.SortOrder;
508
+ paymentStatus?: Prisma.SortOrder;
509
+ billingReason?: Prisma.SortOrderInput | Prisma.SortOrder;
510
+ hostedInvoiceUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
511
+ invoicePdf?: Prisma.SortOrderInput | Prisma.SortOrder;
512
+ orderDetail?: Prisma.SortOrderInput | Prisma.SortOrder;
513
+ paidEmail?: Prisma.SortOrderInput | Prisma.SortOrder;
514
+ paidAt?: Prisma.SortOrderInput | Prisma.SortOrder;
515
+ paidDetail?: Prisma.SortOrderInput | Prisma.SortOrder;
516
+ payUpdatedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
517
+ deleted?: Prisma.SortOrder;
518
+ _count?: Prisma.TransactionCountOrderByAggregateInput;
519
+ _avg?: Prisma.TransactionAvgOrderByAggregateInput;
520
+ _max?: Prisma.TransactionMaxOrderByAggregateInput;
521
+ _min?: Prisma.TransactionMinOrderByAggregateInput;
522
+ _sum?: Prisma.TransactionSumOrderByAggregateInput;
523
+ };
524
+ export type TransactionScalarWhereWithAggregatesInput = {
525
+ AND?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[];
526
+ OR?: Prisma.TransactionScalarWhereWithAggregatesInput[];
527
+ NOT?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[];
528
+ id?: Prisma.BigIntWithAggregatesFilter<"Transaction"> | bigint | number;
529
+ userId?: Prisma.UuidWithAggregatesFilter<"Transaction"> | string;
530
+ orderId?: Prisma.StringWithAggregatesFilter<"Transaction"> | string;
531
+ orderStatus?: Prisma.StringWithAggregatesFilter<"Transaction"> | string;
532
+ orderCreatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
533
+ orderExpiredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
534
+ orderUpdatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
535
+ type?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
536
+ paySupplier?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
537
+ paySessionId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
538
+ payTransactionId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
539
+ paySubscriptionId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
540
+ subPeriodStart?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
541
+ subPeriodEnd?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
542
+ subLastTryCancelAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
543
+ subPeriodCanceledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
544
+ subCancellationDetail?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
545
+ priceId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
546
+ priceName?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
547
+ amount?: Prisma.DecimalNullableWithAggregatesFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
548
+ currency?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
549
+ creditsGranted?: Prisma.IntNullableWithAggregatesFilter<"Transaction"> | number | null;
550
+ payInvoiceId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
551
+ paymentStatus?: Prisma.StringWithAggregatesFilter<"Transaction"> | string;
552
+ billingReason?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
553
+ hostedInvoiceUrl?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
554
+ invoicePdf?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
555
+ orderDetail?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
556
+ paidEmail?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
557
+ paidAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
558
+ paidDetail?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null;
559
+ payUpdatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null;
560
+ deleted?: Prisma.IntWithAggregatesFilter<"Transaction"> | number;
561
+ };
562
+ export type TransactionCreateInput = {
563
+ id?: bigint | number;
564
+ orderId: string;
565
+ orderStatus?: string;
566
+ orderCreatedAt?: Date | string | null;
567
+ orderExpiredAt?: Date | string | null;
568
+ orderUpdatedAt?: Date | string | null;
569
+ type?: string | null;
570
+ paySupplier?: string | null;
571
+ paySessionId?: string | null;
572
+ payTransactionId?: string | null;
573
+ paySubscriptionId?: string | null;
574
+ subPeriodStart?: Date | string | null;
575
+ subPeriodEnd?: Date | string | null;
576
+ subLastTryCancelAt?: Date | string | null;
577
+ subPeriodCanceledAt?: Date | string | null;
578
+ subCancellationDetail?: string | null;
579
+ priceId?: string | null;
580
+ priceName?: string | null;
581
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
582
+ currency?: string | null;
583
+ creditsGranted?: number | null;
584
+ payInvoiceId?: string | null;
585
+ paymentStatus?: string;
586
+ billingReason?: string | null;
587
+ hostedInvoiceUrl?: string | null;
588
+ invoicePdf?: string | null;
589
+ orderDetail?: string | null;
590
+ paidEmail?: string | null;
591
+ paidAt?: Date | string | null;
592
+ paidDetail?: string | null;
593
+ payUpdatedAt?: Date | string | null;
594
+ deleted?: number;
595
+ user: Prisma.UserCreateNestedOneWithoutTransactionsInput;
596
+ };
597
+ export type TransactionUncheckedCreateInput = {
598
+ id?: bigint | number;
599
+ userId: string;
600
+ orderId: string;
601
+ orderStatus?: string;
602
+ orderCreatedAt?: Date | string | null;
603
+ orderExpiredAt?: Date | string | null;
604
+ orderUpdatedAt?: Date | string | null;
605
+ type?: string | null;
606
+ paySupplier?: string | null;
607
+ paySessionId?: string | null;
608
+ payTransactionId?: string | null;
609
+ paySubscriptionId?: string | null;
610
+ subPeriodStart?: Date | string | null;
611
+ subPeriodEnd?: Date | string | null;
612
+ subLastTryCancelAt?: Date | string | null;
613
+ subPeriodCanceledAt?: Date | string | null;
614
+ subCancellationDetail?: string | null;
615
+ priceId?: string | null;
616
+ priceName?: string | null;
617
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
618
+ currency?: string | null;
619
+ creditsGranted?: number | null;
620
+ payInvoiceId?: string | null;
621
+ paymentStatus?: string;
622
+ billingReason?: string | null;
623
+ hostedInvoiceUrl?: string | null;
624
+ invoicePdf?: string | null;
625
+ orderDetail?: string | null;
626
+ paidEmail?: string | null;
627
+ paidAt?: Date | string | null;
628
+ paidDetail?: string | null;
629
+ payUpdatedAt?: Date | string | null;
630
+ deleted?: number;
631
+ };
632
+ export type TransactionUpdateInput = {
633
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
634
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string;
635
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string;
636
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
637
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
638
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
639
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
640
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
641
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
642
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
643
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
644
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
645
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
646
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
647
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
648
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
649
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
650
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
651
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
652
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
653
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
654
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
655
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string;
656
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
657
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
658
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
659
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
660
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
661
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
662
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
663
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
664
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number;
665
+ user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput;
666
+ };
667
+ export type TransactionUncheckedUpdateInput = {
668
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
669
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
670
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string;
671
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string;
672
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
673
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
674
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
675
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
676
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
677
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
678
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
679
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
680
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
681
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
682
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
683
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
684
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
685
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
686
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
687
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
688
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
689
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
690
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
691
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string;
692
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
693
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
694
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
695
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
696
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
697
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
698
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
699
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
700
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number;
701
+ };
702
+ export type TransactionCreateManyInput = {
703
+ id?: bigint | number;
704
+ userId: string;
705
+ orderId: string;
706
+ orderStatus?: string;
707
+ orderCreatedAt?: Date | string | null;
708
+ orderExpiredAt?: Date | string | null;
709
+ orderUpdatedAt?: Date | string | null;
710
+ type?: string | null;
711
+ paySupplier?: string | null;
712
+ paySessionId?: string | null;
713
+ payTransactionId?: string | null;
714
+ paySubscriptionId?: string | null;
715
+ subPeriodStart?: Date | string | null;
716
+ subPeriodEnd?: Date | string | null;
717
+ subLastTryCancelAt?: Date | string | null;
718
+ subPeriodCanceledAt?: Date | string | null;
719
+ subCancellationDetail?: string | null;
720
+ priceId?: string | null;
721
+ priceName?: string | null;
722
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
723
+ currency?: string | null;
724
+ creditsGranted?: number | null;
725
+ payInvoiceId?: string | null;
726
+ paymentStatus?: string;
727
+ billingReason?: string | null;
728
+ hostedInvoiceUrl?: string | null;
729
+ invoicePdf?: string | null;
730
+ orderDetail?: string | null;
731
+ paidEmail?: string | null;
732
+ paidAt?: Date | string | null;
733
+ paidDetail?: string | null;
734
+ payUpdatedAt?: Date | string | null;
735
+ deleted?: number;
736
+ };
737
+ export type TransactionUpdateManyMutationInput = {
738
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
739
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string;
740
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string;
741
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
742
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
743
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
744
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
745
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
746
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
747
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
748
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
749
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
750
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
751
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
752
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
753
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
754
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
755
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
756
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
757
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
758
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
759
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
760
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string;
761
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
762
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
763
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
764
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
765
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
766
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
767
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
768
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
769
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number;
770
+ };
771
+ export type TransactionUncheckedUpdateManyInput = {
772
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
773
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
774
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string;
775
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string;
776
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
777
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
778
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
779
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
780
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
781
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
782
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
783
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
784
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
785
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
786
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
787
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
788
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
789
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
790
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
791
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
792
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
793
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
794
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
795
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string;
796
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
797
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
798
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
799
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
800
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
801
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
802
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
803
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
804
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number;
805
+ };
806
+ export type TransactionListRelationFilter = {
807
+ every?: Prisma.TransactionWhereInput;
808
+ some?: Prisma.TransactionWhereInput;
809
+ none?: Prisma.TransactionWhereInput;
810
+ };
811
+ export type TransactionOrderByRelationAggregateInput = {
812
+ _count?: Prisma.SortOrder;
813
+ };
814
+ export type TransactionCountOrderByAggregateInput = {
815
+ id?: Prisma.SortOrder;
816
+ userId?: Prisma.SortOrder;
817
+ orderId?: Prisma.SortOrder;
818
+ orderStatus?: Prisma.SortOrder;
819
+ orderCreatedAt?: Prisma.SortOrder;
820
+ orderExpiredAt?: Prisma.SortOrder;
821
+ orderUpdatedAt?: Prisma.SortOrder;
822
+ type?: Prisma.SortOrder;
823
+ paySupplier?: Prisma.SortOrder;
824
+ paySessionId?: Prisma.SortOrder;
825
+ payTransactionId?: Prisma.SortOrder;
826
+ paySubscriptionId?: Prisma.SortOrder;
827
+ subPeriodStart?: Prisma.SortOrder;
828
+ subPeriodEnd?: Prisma.SortOrder;
829
+ subLastTryCancelAt?: Prisma.SortOrder;
830
+ subPeriodCanceledAt?: Prisma.SortOrder;
831
+ subCancellationDetail?: Prisma.SortOrder;
832
+ priceId?: Prisma.SortOrder;
833
+ priceName?: Prisma.SortOrder;
834
+ amount?: Prisma.SortOrder;
835
+ currency?: Prisma.SortOrder;
836
+ creditsGranted?: Prisma.SortOrder;
837
+ payInvoiceId?: Prisma.SortOrder;
838
+ paymentStatus?: Prisma.SortOrder;
839
+ billingReason?: Prisma.SortOrder;
840
+ hostedInvoiceUrl?: Prisma.SortOrder;
841
+ invoicePdf?: Prisma.SortOrder;
842
+ orderDetail?: Prisma.SortOrder;
843
+ paidEmail?: Prisma.SortOrder;
844
+ paidAt?: Prisma.SortOrder;
845
+ paidDetail?: Prisma.SortOrder;
846
+ payUpdatedAt?: Prisma.SortOrder;
847
+ deleted?: Prisma.SortOrder;
848
+ };
849
+ export type TransactionAvgOrderByAggregateInput = {
850
+ id?: Prisma.SortOrder;
851
+ amount?: Prisma.SortOrder;
852
+ creditsGranted?: Prisma.SortOrder;
853
+ deleted?: Prisma.SortOrder;
854
+ };
855
+ export type TransactionMaxOrderByAggregateInput = {
856
+ id?: Prisma.SortOrder;
857
+ userId?: Prisma.SortOrder;
858
+ orderId?: Prisma.SortOrder;
859
+ orderStatus?: Prisma.SortOrder;
860
+ orderCreatedAt?: Prisma.SortOrder;
861
+ orderExpiredAt?: Prisma.SortOrder;
862
+ orderUpdatedAt?: Prisma.SortOrder;
863
+ type?: Prisma.SortOrder;
864
+ paySupplier?: Prisma.SortOrder;
865
+ paySessionId?: Prisma.SortOrder;
866
+ payTransactionId?: Prisma.SortOrder;
867
+ paySubscriptionId?: Prisma.SortOrder;
868
+ subPeriodStart?: Prisma.SortOrder;
869
+ subPeriodEnd?: Prisma.SortOrder;
870
+ subLastTryCancelAt?: Prisma.SortOrder;
871
+ subPeriodCanceledAt?: Prisma.SortOrder;
872
+ subCancellationDetail?: Prisma.SortOrder;
873
+ priceId?: Prisma.SortOrder;
874
+ priceName?: Prisma.SortOrder;
875
+ amount?: Prisma.SortOrder;
876
+ currency?: Prisma.SortOrder;
877
+ creditsGranted?: Prisma.SortOrder;
878
+ payInvoiceId?: Prisma.SortOrder;
879
+ paymentStatus?: Prisma.SortOrder;
880
+ billingReason?: Prisma.SortOrder;
881
+ hostedInvoiceUrl?: Prisma.SortOrder;
882
+ invoicePdf?: Prisma.SortOrder;
883
+ orderDetail?: Prisma.SortOrder;
884
+ paidEmail?: Prisma.SortOrder;
885
+ paidAt?: Prisma.SortOrder;
886
+ paidDetail?: Prisma.SortOrder;
887
+ payUpdatedAt?: Prisma.SortOrder;
888
+ deleted?: Prisma.SortOrder;
889
+ };
890
+ export type TransactionMinOrderByAggregateInput = {
891
+ id?: Prisma.SortOrder;
892
+ userId?: Prisma.SortOrder;
893
+ orderId?: Prisma.SortOrder;
894
+ orderStatus?: Prisma.SortOrder;
895
+ orderCreatedAt?: Prisma.SortOrder;
896
+ orderExpiredAt?: Prisma.SortOrder;
897
+ orderUpdatedAt?: Prisma.SortOrder;
898
+ type?: Prisma.SortOrder;
899
+ paySupplier?: Prisma.SortOrder;
900
+ paySessionId?: Prisma.SortOrder;
901
+ payTransactionId?: Prisma.SortOrder;
902
+ paySubscriptionId?: Prisma.SortOrder;
903
+ subPeriodStart?: Prisma.SortOrder;
904
+ subPeriodEnd?: Prisma.SortOrder;
905
+ subLastTryCancelAt?: Prisma.SortOrder;
906
+ subPeriodCanceledAt?: Prisma.SortOrder;
907
+ subCancellationDetail?: Prisma.SortOrder;
908
+ priceId?: Prisma.SortOrder;
909
+ priceName?: Prisma.SortOrder;
910
+ amount?: Prisma.SortOrder;
911
+ currency?: Prisma.SortOrder;
912
+ creditsGranted?: Prisma.SortOrder;
913
+ payInvoiceId?: Prisma.SortOrder;
914
+ paymentStatus?: Prisma.SortOrder;
915
+ billingReason?: Prisma.SortOrder;
916
+ hostedInvoiceUrl?: Prisma.SortOrder;
917
+ invoicePdf?: Prisma.SortOrder;
918
+ orderDetail?: Prisma.SortOrder;
919
+ paidEmail?: Prisma.SortOrder;
920
+ paidAt?: Prisma.SortOrder;
921
+ paidDetail?: Prisma.SortOrder;
922
+ payUpdatedAt?: Prisma.SortOrder;
923
+ deleted?: Prisma.SortOrder;
924
+ };
925
+ export type TransactionSumOrderByAggregateInput = {
926
+ id?: Prisma.SortOrder;
927
+ amount?: Prisma.SortOrder;
928
+ creditsGranted?: Prisma.SortOrder;
929
+ deleted?: Prisma.SortOrder;
930
+ };
931
+ export type TransactionCreateNestedManyWithoutUserInput = {
932
+ create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[];
933
+ connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[];
934
+ createMany?: Prisma.TransactionCreateManyUserInputEnvelope;
935
+ connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
936
+ };
937
+ export type TransactionUncheckedCreateNestedManyWithoutUserInput = {
938
+ create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[];
939
+ connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[];
940
+ createMany?: Prisma.TransactionCreateManyUserInputEnvelope;
941
+ connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
942
+ };
943
+ export type TransactionUpdateManyWithoutUserNestedInput = {
944
+ create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[];
945
+ connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[];
946
+ upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[];
947
+ createMany?: Prisma.TransactionCreateManyUserInputEnvelope;
948
+ set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
949
+ disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
950
+ delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
951
+ connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
952
+ update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[];
953
+ updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[];
954
+ deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
955
+ };
956
+ export type TransactionUncheckedUpdateManyWithoutUserNestedInput = {
957
+ create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[];
958
+ connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[];
959
+ upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[];
960
+ createMany?: Prisma.TransactionCreateManyUserInputEnvelope;
961
+ set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
962
+ disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
963
+ delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
964
+ connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[];
965
+ update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[];
966
+ updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[];
967
+ deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
968
+ };
969
+ export type NullableDecimalFieldUpdateOperationsInput = {
970
+ set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
971
+ increment?: runtime.Decimal | runtime.DecimalJsLike | number | string;
972
+ decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string;
973
+ multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string;
974
+ divide?: runtime.Decimal | runtime.DecimalJsLike | number | string;
975
+ };
976
+ export type NullableIntFieldUpdateOperationsInput = {
977
+ set?: number | null;
978
+ increment?: number;
979
+ decrement?: number;
980
+ multiply?: number;
981
+ divide?: number;
982
+ };
983
+ export type TransactionCreateWithoutUserInput = {
984
+ id?: bigint | number;
985
+ orderId: string;
986
+ orderStatus?: string;
987
+ orderCreatedAt?: Date | string | null;
988
+ orderExpiredAt?: Date | string | null;
989
+ orderUpdatedAt?: Date | string | null;
990
+ type?: string | null;
991
+ paySupplier?: string | null;
992
+ paySessionId?: string | null;
993
+ payTransactionId?: string | null;
994
+ paySubscriptionId?: string | null;
995
+ subPeriodStart?: Date | string | null;
996
+ subPeriodEnd?: Date | string | null;
997
+ subLastTryCancelAt?: Date | string | null;
998
+ subPeriodCanceledAt?: Date | string | null;
999
+ subCancellationDetail?: string | null;
1000
+ priceId?: string | null;
1001
+ priceName?: string | null;
1002
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1003
+ currency?: string | null;
1004
+ creditsGranted?: number | null;
1005
+ payInvoiceId?: string | null;
1006
+ paymentStatus?: string;
1007
+ billingReason?: string | null;
1008
+ hostedInvoiceUrl?: string | null;
1009
+ invoicePdf?: string | null;
1010
+ orderDetail?: string | null;
1011
+ paidEmail?: string | null;
1012
+ paidAt?: Date | string | null;
1013
+ paidDetail?: string | null;
1014
+ payUpdatedAt?: Date | string | null;
1015
+ deleted?: number;
1016
+ };
1017
+ export type TransactionUncheckedCreateWithoutUserInput = {
1018
+ id?: bigint | number;
1019
+ orderId: string;
1020
+ orderStatus?: string;
1021
+ orderCreatedAt?: Date | string | null;
1022
+ orderExpiredAt?: Date | string | null;
1023
+ orderUpdatedAt?: Date | string | null;
1024
+ type?: string | null;
1025
+ paySupplier?: string | null;
1026
+ paySessionId?: string | null;
1027
+ payTransactionId?: string | null;
1028
+ paySubscriptionId?: string | null;
1029
+ subPeriodStart?: Date | string | null;
1030
+ subPeriodEnd?: Date | string | null;
1031
+ subLastTryCancelAt?: Date | string | null;
1032
+ subPeriodCanceledAt?: Date | string | null;
1033
+ subCancellationDetail?: string | null;
1034
+ priceId?: string | null;
1035
+ priceName?: string | null;
1036
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1037
+ currency?: string | null;
1038
+ creditsGranted?: number | null;
1039
+ payInvoiceId?: string | null;
1040
+ paymentStatus?: string;
1041
+ billingReason?: string | null;
1042
+ hostedInvoiceUrl?: string | null;
1043
+ invoicePdf?: string | null;
1044
+ orderDetail?: string | null;
1045
+ paidEmail?: string | null;
1046
+ paidAt?: Date | string | null;
1047
+ paidDetail?: string | null;
1048
+ payUpdatedAt?: Date | string | null;
1049
+ deleted?: number;
1050
+ };
1051
+ export type TransactionCreateOrConnectWithoutUserInput = {
1052
+ where: Prisma.TransactionWhereUniqueInput;
1053
+ create: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput>;
1054
+ };
1055
+ export type TransactionCreateManyUserInputEnvelope = {
1056
+ data: Prisma.TransactionCreateManyUserInput | Prisma.TransactionCreateManyUserInput[];
1057
+ skipDuplicates?: boolean;
1058
+ };
1059
+ export type TransactionUpsertWithWhereUniqueWithoutUserInput = {
1060
+ where: Prisma.TransactionWhereUniqueInput;
1061
+ update: Prisma.XOR<Prisma.TransactionUpdateWithoutUserInput, Prisma.TransactionUncheckedUpdateWithoutUserInput>;
1062
+ create: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput>;
1063
+ };
1064
+ export type TransactionUpdateWithWhereUniqueWithoutUserInput = {
1065
+ where: Prisma.TransactionWhereUniqueInput;
1066
+ data: Prisma.XOR<Prisma.TransactionUpdateWithoutUserInput, Prisma.TransactionUncheckedUpdateWithoutUserInput>;
1067
+ };
1068
+ export type TransactionUpdateManyWithWhereWithoutUserInput = {
1069
+ where: Prisma.TransactionScalarWhereInput;
1070
+ data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyWithoutUserInput>;
1071
+ };
1072
+ export type TransactionScalarWhereInput = {
1073
+ AND?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
1074
+ OR?: Prisma.TransactionScalarWhereInput[];
1075
+ NOT?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[];
1076
+ id?: Prisma.BigIntFilter<"Transaction"> | bigint | number;
1077
+ userId?: Prisma.UuidFilter<"Transaction"> | string;
1078
+ orderId?: Prisma.StringFilter<"Transaction"> | string;
1079
+ orderStatus?: Prisma.StringFilter<"Transaction"> | string;
1080
+ orderCreatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1081
+ orderExpiredAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1082
+ orderUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1083
+ type?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1084
+ paySupplier?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1085
+ paySessionId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1086
+ payTransactionId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1087
+ paySubscriptionId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1088
+ subPeriodStart?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1089
+ subPeriodEnd?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1090
+ subLastTryCancelAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1091
+ subPeriodCanceledAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1092
+ subCancellationDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1093
+ priceId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1094
+ priceName?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1095
+ amount?: Prisma.DecimalNullableFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1096
+ currency?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1097
+ creditsGranted?: Prisma.IntNullableFilter<"Transaction"> | number | null;
1098
+ payInvoiceId?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1099
+ paymentStatus?: Prisma.StringFilter<"Transaction"> | string;
1100
+ billingReason?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1101
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1102
+ invoicePdf?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1103
+ orderDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1104
+ paidEmail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1105
+ paidAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1106
+ paidDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null;
1107
+ payUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null;
1108
+ deleted?: Prisma.IntFilter<"Transaction"> | number;
1109
+ };
1110
+ export type TransactionCreateManyUserInput = {
1111
+ id?: bigint | number;
1112
+ orderId: string;
1113
+ orderStatus?: string;
1114
+ orderCreatedAt?: Date | string | null;
1115
+ orderExpiredAt?: Date | string | null;
1116
+ orderUpdatedAt?: Date | string | null;
1117
+ type?: string | null;
1118
+ paySupplier?: string | null;
1119
+ paySessionId?: string | null;
1120
+ payTransactionId?: string | null;
1121
+ paySubscriptionId?: string | null;
1122
+ subPeriodStart?: Date | string | null;
1123
+ subPeriodEnd?: Date | string | null;
1124
+ subLastTryCancelAt?: Date | string | null;
1125
+ subPeriodCanceledAt?: Date | string | null;
1126
+ subCancellationDetail?: string | null;
1127
+ priceId?: string | null;
1128
+ priceName?: string | null;
1129
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1130
+ currency?: string | null;
1131
+ creditsGranted?: number | null;
1132
+ payInvoiceId?: string | null;
1133
+ paymentStatus?: string;
1134
+ billingReason?: string | null;
1135
+ hostedInvoiceUrl?: string | null;
1136
+ invoicePdf?: string | null;
1137
+ orderDetail?: string | null;
1138
+ paidEmail?: string | null;
1139
+ paidAt?: Date | string | null;
1140
+ paidDetail?: string | null;
1141
+ payUpdatedAt?: Date | string | null;
1142
+ deleted?: number;
1143
+ };
1144
+ export type TransactionUpdateWithoutUserInput = {
1145
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1146
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string;
1147
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string;
1148
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1149
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1150
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1151
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1152
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1153
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1154
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1155
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1156
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1157
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1158
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1159
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1160
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1161
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1162
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1163
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1164
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1165
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1166
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1167
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string;
1168
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1169
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1170
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1171
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1172
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1173
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1174
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1175
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1176
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number;
1177
+ };
1178
+ export type TransactionUncheckedUpdateWithoutUserInput = {
1179
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1180
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string;
1181
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string;
1182
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1183
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1184
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1185
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1186
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1187
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1188
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1189
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1190
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1191
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1192
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1193
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1194
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1195
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1196
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1197
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1198
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1199
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1200
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1201
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string;
1202
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1203
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1204
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1205
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1206
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1207
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1208
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1209
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1210
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number;
1211
+ };
1212
+ export type TransactionUncheckedUpdateManyWithoutUserInput = {
1213
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1214
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string;
1215
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string;
1216
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1217
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1218
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1219
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1220
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1221
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1222
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1223
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1224
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1225
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1226
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1227
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1228
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1229
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1230
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1231
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1232
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1233
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1234
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1235
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string;
1236
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1237
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1238
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1239
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1240
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1241
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1242
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1243
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1244
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number;
1245
+ };
1246
+ export type TransactionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1247
+ id?: boolean;
1248
+ userId?: boolean;
1249
+ orderId?: boolean;
1250
+ orderStatus?: boolean;
1251
+ orderCreatedAt?: boolean;
1252
+ orderExpiredAt?: boolean;
1253
+ orderUpdatedAt?: boolean;
1254
+ type?: boolean;
1255
+ paySupplier?: boolean;
1256
+ paySessionId?: boolean;
1257
+ payTransactionId?: boolean;
1258
+ paySubscriptionId?: boolean;
1259
+ subPeriodStart?: boolean;
1260
+ subPeriodEnd?: boolean;
1261
+ subLastTryCancelAt?: boolean;
1262
+ subPeriodCanceledAt?: boolean;
1263
+ subCancellationDetail?: boolean;
1264
+ priceId?: boolean;
1265
+ priceName?: boolean;
1266
+ amount?: boolean;
1267
+ currency?: boolean;
1268
+ creditsGranted?: boolean;
1269
+ payInvoiceId?: boolean;
1270
+ paymentStatus?: boolean;
1271
+ billingReason?: boolean;
1272
+ hostedInvoiceUrl?: boolean;
1273
+ invoicePdf?: boolean;
1274
+ orderDetail?: boolean;
1275
+ paidEmail?: boolean;
1276
+ paidAt?: boolean;
1277
+ paidDetail?: boolean;
1278
+ payUpdatedAt?: boolean;
1279
+ deleted?: boolean;
1280
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1281
+ }, ExtArgs["result"]["transaction"]>;
1282
+ export type TransactionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1283
+ id?: boolean;
1284
+ userId?: boolean;
1285
+ orderId?: boolean;
1286
+ orderStatus?: boolean;
1287
+ orderCreatedAt?: boolean;
1288
+ orderExpiredAt?: boolean;
1289
+ orderUpdatedAt?: boolean;
1290
+ type?: boolean;
1291
+ paySupplier?: boolean;
1292
+ paySessionId?: boolean;
1293
+ payTransactionId?: boolean;
1294
+ paySubscriptionId?: boolean;
1295
+ subPeriodStart?: boolean;
1296
+ subPeriodEnd?: boolean;
1297
+ subLastTryCancelAt?: boolean;
1298
+ subPeriodCanceledAt?: boolean;
1299
+ subCancellationDetail?: boolean;
1300
+ priceId?: boolean;
1301
+ priceName?: boolean;
1302
+ amount?: boolean;
1303
+ currency?: boolean;
1304
+ creditsGranted?: boolean;
1305
+ payInvoiceId?: boolean;
1306
+ paymentStatus?: boolean;
1307
+ billingReason?: boolean;
1308
+ hostedInvoiceUrl?: boolean;
1309
+ invoicePdf?: boolean;
1310
+ orderDetail?: boolean;
1311
+ paidEmail?: boolean;
1312
+ paidAt?: boolean;
1313
+ paidDetail?: boolean;
1314
+ payUpdatedAt?: boolean;
1315
+ deleted?: boolean;
1316
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1317
+ }, ExtArgs["result"]["transaction"]>;
1318
+ export type TransactionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1319
+ id?: boolean;
1320
+ userId?: boolean;
1321
+ orderId?: boolean;
1322
+ orderStatus?: boolean;
1323
+ orderCreatedAt?: boolean;
1324
+ orderExpiredAt?: boolean;
1325
+ orderUpdatedAt?: boolean;
1326
+ type?: boolean;
1327
+ paySupplier?: boolean;
1328
+ paySessionId?: boolean;
1329
+ payTransactionId?: boolean;
1330
+ paySubscriptionId?: boolean;
1331
+ subPeriodStart?: boolean;
1332
+ subPeriodEnd?: boolean;
1333
+ subLastTryCancelAt?: boolean;
1334
+ subPeriodCanceledAt?: boolean;
1335
+ subCancellationDetail?: boolean;
1336
+ priceId?: boolean;
1337
+ priceName?: boolean;
1338
+ amount?: boolean;
1339
+ currency?: boolean;
1340
+ creditsGranted?: boolean;
1341
+ payInvoiceId?: boolean;
1342
+ paymentStatus?: boolean;
1343
+ billingReason?: boolean;
1344
+ hostedInvoiceUrl?: boolean;
1345
+ invoicePdf?: boolean;
1346
+ orderDetail?: boolean;
1347
+ paidEmail?: boolean;
1348
+ paidAt?: boolean;
1349
+ paidDetail?: boolean;
1350
+ payUpdatedAt?: boolean;
1351
+ deleted?: boolean;
1352
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1353
+ }, ExtArgs["result"]["transaction"]>;
1354
+ export type TransactionSelectScalar = {
1355
+ id?: boolean;
1356
+ userId?: boolean;
1357
+ orderId?: boolean;
1358
+ orderStatus?: boolean;
1359
+ orderCreatedAt?: boolean;
1360
+ orderExpiredAt?: boolean;
1361
+ orderUpdatedAt?: boolean;
1362
+ type?: boolean;
1363
+ paySupplier?: boolean;
1364
+ paySessionId?: boolean;
1365
+ payTransactionId?: boolean;
1366
+ paySubscriptionId?: boolean;
1367
+ subPeriodStart?: boolean;
1368
+ subPeriodEnd?: boolean;
1369
+ subLastTryCancelAt?: boolean;
1370
+ subPeriodCanceledAt?: boolean;
1371
+ subCancellationDetail?: boolean;
1372
+ priceId?: boolean;
1373
+ priceName?: boolean;
1374
+ amount?: boolean;
1375
+ currency?: boolean;
1376
+ creditsGranted?: boolean;
1377
+ payInvoiceId?: boolean;
1378
+ paymentStatus?: boolean;
1379
+ billingReason?: boolean;
1380
+ hostedInvoiceUrl?: boolean;
1381
+ invoicePdf?: boolean;
1382
+ orderDetail?: boolean;
1383
+ paidEmail?: boolean;
1384
+ paidAt?: boolean;
1385
+ paidDetail?: boolean;
1386
+ payUpdatedAt?: boolean;
1387
+ deleted?: boolean;
1388
+ };
1389
+ export type TransactionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "orderId" | "orderStatus" | "orderCreatedAt" | "orderExpiredAt" | "orderUpdatedAt" | "type" | "paySupplier" | "paySessionId" | "payTransactionId" | "paySubscriptionId" | "subPeriodStart" | "subPeriodEnd" | "subLastTryCancelAt" | "subPeriodCanceledAt" | "subCancellationDetail" | "priceId" | "priceName" | "amount" | "currency" | "creditsGranted" | "payInvoiceId" | "paymentStatus" | "billingReason" | "hostedInvoiceUrl" | "invoicePdf" | "orderDetail" | "paidEmail" | "paidAt" | "paidDetail" | "payUpdatedAt" | "deleted", ExtArgs["result"]["transaction"]>;
1390
+ export type TransactionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1391
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1392
+ };
1393
+ export type TransactionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1394
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1395
+ };
1396
+ export type TransactionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1397
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1398
+ };
1399
+ export type $TransactionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
+ name: "Transaction";
1401
+ objects: {
1402
+ user: Prisma.$UserPayload<ExtArgs>;
1403
+ };
1404
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1405
+ id: bigint;
1406
+ userId: string;
1407
+ orderId: string;
1408
+ orderStatus: string;
1409
+ orderCreatedAt: Date | null;
1410
+ orderExpiredAt: Date | null;
1411
+ orderUpdatedAt: Date | null;
1412
+ type: string | null;
1413
+ paySupplier: string | null;
1414
+ paySessionId: string | null;
1415
+ payTransactionId: string | null;
1416
+ paySubscriptionId: string | null;
1417
+ subPeriodStart: Date | null;
1418
+ subPeriodEnd: Date | null;
1419
+ subLastTryCancelAt: Date | null;
1420
+ subPeriodCanceledAt: Date | null;
1421
+ subCancellationDetail: string | null;
1422
+ priceId: string | null;
1423
+ priceName: string | null;
1424
+ amount: runtime.Decimal | null;
1425
+ currency: string | null;
1426
+ creditsGranted: number | null;
1427
+ payInvoiceId: string | null;
1428
+ paymentStatus: string;
1429
+ billingReason: string | null;
1430
+ hostedInvoiceUrl: string | null;
1431
+ invoicePdf: string | null;
1432
+ orderDetail: string | null;
1433
+ paidEmail: string | null;
1434
+ paidAt: Date | null;
1435
+ paidDetail: string | null;
1436
+ payUpdatedAt: Date | null;
1437
+ deleted: number;
1438
+ }, ExtArgs["result"]["transaction"]>;
1439
+ composites: {};
1440
+ };
1441
+ export type TransactionGetPayload<S extends boolean | null | undefined | TransactionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TransactionPayload, S>;
1442
+ export type TransactionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<TransactionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1443
+ select?: TransactionCountAggregateInputType | true;
1444
+ };
1445
+ export interface TransactionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1446
+ [K: symbol]: {
1447
+ types: Prisma.TypeMap<ExtArgs>['model']['Transaction'];
1448
+ meta: {
1449
+ name: 'Transaction';
1450
+ };
1451
+ };
1452
+ /**
1453
+ * Find zero or one Transaction that matches the filter.
1454
+ * @param {TransactionFindUniqueArgs} args - Arguments to find a Transaction
1455
+ * @example
1456
+ * // Get one Transaction
1457
+ * const transaction = await prisma.transaction.findUnique({
1458
+ * where: {
1459
+ * // ... provide filter here
1460
+ * }
1461
+ * })
1462
+ */
1463
+ findUnique<T extends TransactionFindUniqueArgs>(args: Prisma.SelectSubset<T, TransactionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1464
+ /**
1465
+ * Find one Transaction that matches the filter or throw an error with `error.code='P2025'`
1466
+ * if no matches were found.
1467
+ * @param {TransactionFindUniqueOrThrowArgs} args - Arguments to find a Transaction
1468
+ * @example
1469
+ * // Get one Transaction
1470
+ * const transaction = await prisma.transaction.findUniqueOrThrow({
1471
+ * where: {
1472
+ * // ... provide filter here
1473
+ * }
1474
+ * })
1475
+ */
1476
+ findUniqueOrThrow<T extends TransactionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TransactionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1477
+ /**
1478
+ * Find the first Transaction that matches the filter.
1479
+ * Note, that providing `undefined` is treated as the value not being there.
1480
+ * Read more here: https://pris.ly/d/null-undefined
1481
+ * @param {TransactionFindFirstArgs} args - Arguments to find a Transaction
1482
+ * @example
1483
+ * // Get one Transaction
1484
+ * const transaction = await prisma.transaction.findFirst({
1485
+ * where: {
1486
+ * // ... provide filter here
1487
+ * }
1488
+ * })
1489
+ */
1490
+ findFirst<T extends TransactionFindFirstArgs>(args?: Prisma.SelectSubset<T, TransactionFindFirstArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1491
+ /**
1492
+ * Find the first Transaction that matches the filter or
1493
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1494
+ * Note, that providing `undefined` is treated as the value not being there.
1495
+ * Read more here: https://pris.ly/d/null-undefined
1496
+ * @param {TransactionFindFirstOrThrowArgs} args - Arguments to find a Transaction
1497
+ * @example
1498
+ * // Get one Transaction
1499
+ * const transaction = await prisma.transaction.findFirstOrThrow({
1500
+ * where: {
1501
+ * // ... provide filter here
1502
+ * }
1503
+ * })
1504
+ */
1505
+ findFirstOrThrow<T extends TransactionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TransactionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1506
+ /**
1507
+ * Find zero or more Transactions that matches the filter.
1508
+ * Note, that providing `undefined` is treated as the value not being there.
1509
+ * Read more here: https://pris.ly/d/null-undefined
1510
+ * @param {TransactionFindManyArgs} args - Arguments to filter and select certain fields only.
1511
+ * @example
1512
+ * // Get all Transactions
1513
+ * const transactions = await prisma.transaction.findMany()
1514
+ *
1515
+ * // Get first 10 Transactions
1516
+ * const transactions = await prisma.transaction.findMany({ take: 10 })
1517
+ *
1518
+ * // Only select the `id`
1519
+ * const transactionWithIdOnly = await prisma.transaction.findMany({ select: { id: true } })
1520
+ *
1521
+ */
1522
+ findMany<T extends TransactionFindManyArgs>(args?: Prisma.SelectSubset<T, TransactionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1523
+ /**
1524
+ * Create a Transaction.
1525
+ * @param {TransactionCreateArgs} args - Arguments to create a Transaction.
1526
+ * @example
1527
+ * // Create one Transaction
1528
+ * const Transaction = await prisma.transaction.create({
1529
+ * data: {
1530
+ * // ... data to create a Transaction
1531
+ * }
1532
+ * })
1533
+ *
1534
+ */
1535
+ create<T extends TransactionCreateArgs>(args: Prisma.SelectSubset<T, TransactionCreateArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1536
+ /**
1537
+ * Create many Transactions.
1538
+ * @param {TransactionCreateManyArgs} args - Arguments to create many Transactions.
1539
+ * @example
1540
+ * // Create many Transactions
1541
+ * const transaction = await prisma.transaction.createMany({
1542
+ * data: [
1543
+ * // ... provide data here
1544
+ * ]
1545
+ * })
1546
+ *
1547
+ */
1548
+ createMany<T extends TransactionCreateManyArgs>(args?: Prisma.SelectSubset<T, TransactionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1549
+ /**
1550
+ * Create many Transactions and returns the data saved in the database.
1551
+ * @param {TransactionCreateManyAndReturnArgs} args - Arguments to create many Transactions.
1552
+ * @example
1553
+ * // Create many Transactions
1554
+ * const transaction = await prisma.transaction.createManyAndReturn({
1555
+ * data: [
1556
+ * // ... provide data here
1557
+ * ]
1558
+ * })
1559
+ *
1560
+ * // Create many Transactions and only return the `id`
1561
+ * const transactionWithIdOnly = await prisma.transaction.createManyAndReturn({
1562
+ * select: { id: true },
1563
+ * data: [
1564
+ * // ... provide data here
1565
+ * ]
1566
+ * })
1567
+ * Note, that providing `undefined` is treated as the value not being there.
1568
+ * Read more here: https://pris.ly/d/null-undefined
1569
+ *
1570
+ */
1571
+ createManyAndReturn<T extends TransactionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TransactionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1572
+ /**
1573
+ * Delete a Transaction.
1574
+ * @param {TransactionDeleteArgs} args - Arguments to delete one Transaction.
1575
+ * @example
1576
+ * // Delete one Transaction
1577
+ * const Transaction = await prisma.transaction.delete({
1578
+ * where: {
1579
+ * // ... filter to delete one Transaction
1580
+ * }
1581
+ * })
1582
+ *
1583
+ */
1584
+ delete<T extends TransactionDeleteArgs>(args: Prisma.SelectSubset<T, TransactionDeleteArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1585
+ /**
1586
+ * Update one Transaction.
1587
+ * @param {TransactionUpdateArgs} args - Arguments to update one Transaction.
1588
+ * @example
1589
+ * // Update one Transaction
1590
+ * const transaction = await prisma.transaction.update({
1591
+ * where: {
1592
+ * // ... provide filter here
1593
+ * },
1594
+ * data: {
1595
+ * // ... provide data here
1596
+ * }
1597
+ * })
1598
+ *
1599
+ */
1600
+ update<T extends TransactionUpdateArgs>(args: Prisma.SelectSubset<T, TransactionUpdateArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1601
+ /**
1602
+ * Delete zero or more Transactions.
1603
+ * @param {TransactionDeleteManyArgs} args - Arguments to filter Transactions to delete.
1604
+ * @example
1605
+ * // Delete a few Transactions
1606
+ * const { count } = await prisma.transaction.deleteMany({
1607
+ * where: {
1608
+ * // ... provide filter here
1609
+ * }
1610
+ * })
1611
+ *
1612
+ */
1613
+ deleteMany<T extends TransactionDeleteManyArgs>(args?: Prisma.SelectSubset<T, TransactionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1614
+ /**
1615
+ * Update zero or more Transactions.
1616
+ * Note, that providing `undefined` is treated as the value not being there.
1617
+ * Read more here: https://pris.ly/d/null-undefined
1618
+ * @param {TransactionUpdateManyArgs} args - Arguments to update one or more rows.
1619
+ * @example
1620
+ * // Update many Transactions
1621
+ * const transaction = await prisma.transaction.updateMany({
1622
+ * where: {
1623
+ * // ... provide filter here
1624
+ * },
1625
+ * data: {
1626
+ * // ... provide data here
1627
+ * }
1628
+ * })
1629
+ *
1630
+ */
1631
+ updateMany<T extends TransactionUpdateManyArgs>(args: Prisma.SelectSubset<T, TransactionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1632
+ /**
1633
+ * Update zero or more Transactions and returns the data updated in the database.
1634
+ * @param {TransactionUpdateManyAndReturnArgs} args - Arguments to update many Transactions.
1635
+ * @example
1636
+ * // Update many Transactions
1637
+ * const transaction = await prisma.transaction.updateManyAndReturn({
1638
+ * where: {
1639
+ * // ... provide filter here
1640
+ * },
1641
+ * data: [
1642
+ * // ... provide data here
1643
+ * ]
1644
+ * })
1645
+ *
1646
+ * // Update zero or more Transactions and only return the `id`
1647
+ * const transactionWithIdOnly = await prisma.transaction.updateManyAndReturn({
1648
+ * select: { id: true },
1649
+ * where: {
1650
+ * // ... provide filter here
1651
+ * },
1652
+ * data: [
1653
+ * // ... provide data here
1654
+ * ]
1655
+ * })
1656
+ * Note, that providing `undefined` is treated as the value not being there.
1657
+ * Read more here: https://pris.ly/d/null-undefined
1658
+ *
1659
+ */
1660
+ updateManyAndReturn<T extends TransactionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TransactionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1661
+ /**
1662
+ * Create or update one Transaction.
1663
+ * @param {TransactionUpsertArgs} args - Arguments to update or create a Transaction.
1664
+ * @example
1665
+ * // Update or create a Transaction
1666
+ * const transaction = await prisma.transaction.upsert({
1667
+ * create: {
1668
+ * // ... data to create a Transaction
1669
+ * },
1670
+ * update: {
1671
+ * // ... in case it already exists, update
1672
+ * },
1673
+ * where: {
1674
+ * // ... the filter for the Transaction we want to update
1675
+ * }
1676
+ * })
1677
+ */
1678
+ upsert<T extends TransactionUpsertArgs>(args: Prisma.SelectSubset<T, TransactionUpsertArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1679
+ /**
1680
+ * Count the number of Transactions.
1681
+ * Note, that providing `undefined` is treated as the value not being there.
1682
+ * Read more here: https://pris.ly/d/null-undefined
1683
+ * @param {TransactionCountArgs} args - Arguments to filter Transactions to count.
1684
+ * @example
1685
+ * // Count the number of Transactions
1686
+ * const count = await prisma.transaction.count({
1687
+ * where: {
1688
+ * // ... the filter for the Transactions we want to count
1689
+ * }
1690
+ * })
1691
+ **/
1692
+ count<T extends TransactionCountArgs>(args?: Prisma.Subset<T, TransactionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], TransactionCountAggregateOutputType> : number>;
1693
+ /**
1694
+ * Allows you to perform aggregations operations on a Transaction.
1695
+ * Note, that providing `undefined` is treated as the value not being there.
1696
+ * Read more here: https://pris.ly/d/null-undefined
1697
+ * @param {TransactionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1698
+ * @example
1699
+ * // Ordered by age ascending
1700
+ * // Where email contains prisma.io
1701
+ * // Limited to the 10 users
1702
+ * const aggregations = await prisma.user.aggregate({
1703
+ * _avg: {
1704
+ * age: true,
1705
+ * },
1706
+ * where: {
1707
+ * email: {
1708
+ * contains: "prisma.io",
1709
+ * },
1710
+ * },
1711
+ * orderBy: {
1712
+ * age: "asc",
1713
+ * },
1714
+ * take: 10,
1715
+ * })
1716
+ **/
1717
+ aggregate<T extends TransactionAggregateArgs>(args: Prisma.Subset<T, TransactionAggregateArgs>): Prisma.PrismaPromise<GetTransactionAggregateType<T>>;
1718
+ /**
1719
+ * Group by Transaction.
1720
+ * Note, that providing `undefined` is treated as the value not being there.
1721
+ * Read more here: https://pris.ly/d/null-undefined
1722
+ * @param {TransactionGroupByArgs} args - Group by arguments.
1723
+ * @example
1724
+ * // Group by city, order by createdAt, get count
1725
+ * const result = await prisma.user.groupBy({
1726
+ * by: ['city', 'createdAt'],
1727
+ * orderBy: {
1728
+ * createdAt: true
1729
+ * },
1730
+ * _count: {
1731
+ * _all: true
1732
+ * },
1733
+ * })
1734
+ *
1735
+ **/
1736
+ groupBy<T extends TransactionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1737
+ orderBy: TransactionGroupByArgs['orderBy'];
1738
+ } : {
1739
+ orderBy?: TransactionGroupByArgs['orderBy'];
1740
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1741
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1742
+ Error,
1743
+ 'Field ',
1744
+ P,
1745
+ ` in "having" needs to be provided in "by"`
1746
+ ];
1747
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1748
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1749
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1750
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1751
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1752
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1753
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, TransactionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTransactionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1754
+ /**
1755
+ * Fields of the Transaction model
1756
+ */
1757
+ readonly fields: TransactionFieldRefs;
1758
+ }
1759
+ /**
1760
+ * The delegate class that acts as a "Promise-like" for Transaction.
1761
+ * Why is this prefixed with `Prisma__`?
1762
+ * Because we want to prevent naming conflicts as mentioned in
1763
+ * https://github.com/prisma/prisma-client-js/issues/707
1764
+ */
1765
+ export interface Prisma__TransactionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1766
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1767
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1768
+ /**
1769
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1770
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1771
+ * @param onrejected The callback to execute when the Promise is rejected.
1772
+ * @returns A Promise for the completion of which ever callback is executed.
1773
+ */
1774
+ 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>;
1775
+ /**
1776
+ * Attaches a callback for only the rejection of the Promise.
1777
+ * @param onrejected The callback to execute when the Promise is rejected.
1778
+ * @returns A Promise for the completion of the callback.
1779
+ */
1780
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1781
+ /**
1782
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1783
+ * resolved value cannot be modified from the callback.
1784
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1785
+ * @returns A Promise for the completion of the callback.
1786
+ */
1787
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1788
+ }
1789
+ /**
1790
+ * Fields of the Transaction model
1791
+ */
1792
+ export interface TransactionFieldRefs {
1793
+ readonly id: Prisma.FieldRef<"Transaction", 'BigInt'>;
1794
+ readonly userId: Prisma.FieldRef<"Transaction", 'String'>;
1795
+ readonly orderId: Prisma.FieldRef<"Transaction", 'String'>;
1796
+ readonly orderStatus: Prisma.FieldRef<"Transaction", 'String'>;
1797
+ readonly orderCreatedAt: Prisma.FieldRef<"Transaction", 'DateTime'>;
1798
+ readonly orderExpiredAt: Prisma.FieldRef<"Transaction", 'DateTime'>;
1799
+ readonly orderUpdatedAt: Prisma.FieldRef<"Transaction", 'DateTime'>;
1800
+ readonly type: Prisma.FieldRef<"Transaction", 'String'>;
1801
+ readonly paySupplier: Prisma.FieldRef<"Transaction", 'String'>;
1802
+ readonly paySessionId: Prisma.FieldRef<"Transaction", 'String'>;
1803
+ readonly payTransactionId: Prisma.FieldRef<"Transaction", 'String'>;
1804
+ readonly paySubscriptionId: Prisma.FieldRef<"Transaction", 'String'>;
1805
+ readonly subPeriodStart: Prisma.FieldRef<"Transaction", 'DateTime'>;
1806
+ readonly subPeriodEnd: Prisma.FieldRef<"Transaction", 'DateTime'>;
1807
+ readonly subLastTryCancelAt: Prisma.FieldRef<"Transaction", 'DateTime'>;
1808
+ readonly subPeriodCanceledAt: Prisma.FieldRef<"Transaction", 'DateTime'>;
1809
+ readonly subCancellationDetail: Prisma.FieldRef<"Transaction", 'String'>;
1810
+ readonly priceId: Prisma.FieldRef<"Transaction", 'String'>;
1811
+ readonly priceName: Prisma.FieldRef<"Transaction", 'String'>;
1812
+ readonly amount: Prisma.FieldRef<"Transaction", 'Decimal'>;
1813
+ readonly currency: Prisma.FieldRef<"Transaction", 'String'>;
1814
+ readonly creditsGranted: Prisma.FieldRef<"Transaction", 'Int'>;
1815
+ readonly payInvoiceId: Prisma.FieldRef<"Transaction", 'String'>;
1816
+ readonly paymentStatus: Prisma.FieldRef<"Transaction", 'String'>;
1817
+ readonly billingReason: Prisma.FieldRef<"Transaction", 'String'>;
1818
+ readonly hostedInvoiceUrl: Prisma.FieldRef<"Transaction", 'String'>;
1819
+ readonly invoicePdf: Prisma.FieldRef<"Transaction", 'String'>;
1820
+ readonly orderDetail: Prisma.FieldRef<"Transaction", 'String'>;
1821
+ readonly paidEmail: Prisma.FieldRef<"Transaction", 'String'>;
1822
+ readonly paidAt: Prisma.FieldRef<"Transaction", 'DateTime'>;
1823
+ readonly paidDetail: Prisma.FieldRef<"Transaction", 'String'>;
1824
+ readonly payUpdatedAt: Prisma.FieldRef<"Transaction", 'DateTime'>;
1825
+ readonly deleted: Prisma.FieldRef<"Transaction", 'Int'>;
1826
+ }
1827
+ /**
1828
+ * Transaction findUnique
1829
+ */
1830
+ export type TransactionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1831
+ /**
1832
+ * Select specific fields to fetch from the Transaction
1833
+ */
1834
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
1835
+ /**
1836
+ * Omit specific fields from the Transaction
1837
+ */
1838
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
1839
+ /**
1840
+ * Choose, which related nodes to fetch as well
1841
+ */
1842
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
1843
+ /**
1844
+ * Filter, which Transaction to fetch.
1845
+ */
1846
+ where: Prisma.TransactionWhereUniqueInput;
1847
+ };
1848
+ /**
1849
+ * Transaction findUniqueOrThrow
1850
+ */
1851
+ export type TransactionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1852
+ /**
1853
+ * Select specific fields to fetch from the Transaction
1854
+ */
1855
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
1856
+ /**
1857
+ * Omit specific fields from the Transaction
1858
+ */
1859
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
1860
+ /**
1861
+ * Choose, which related nodes to fetch as well
1862
+ */
1863
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
1864
+ /**
1865
+ * Filter, which Transaction to fetch.
1866
+ */
1867
+ where: Prisma.TransactionWhereUniqueInput;
1868
+ };
1869
+ /**
1870
+ * Transaction findFirst
1871
+ */
1872
+ export type TransactionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1873
+ /**
1874
+ * Select specific fields to fetch from the Transaction
1875
+ */
1876
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
1877
+ /**
1878
+ * Omit specific fields from the Transaction
1879
+ */
1880
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
1881
+ /**
1882
+ * Choose, which related nodes to fetch as well
1883
+ */
1884
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
1885
+ /**
1886
+ * Filter, which Transaction to fetch.
1887
+ */
1888
+ where?: Prisma.TransactionWhereInput;
1889
+ /**
1890
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1891
+ *
1892
+ * Determine the order of Transactions to fetch.
1893
+ */
1894
+ orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[];
1895
+ /**
1896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1897
+ *
1898
+ * Sets the position for searching for Transactions.
1899
+ */
1900
+ cursor?: Prisma.TransactionWhereUniqueInput;
1901
+ /**
1902
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1903
+ *
1904
+ * Take `±n` Transactions from the position of the cursor.
1905
+ */
1906
+ take?: number;
1907
+ /**
1908
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1909
+ *
1910
+ * Skip the first `n` Transactions.
1911
+ */
1912
+ skip?: number;
1913
+ /**
1914
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1915
+ *
1916
+ * Filter by unique combinations of Transactions.
1917
+ */
1918
+ distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[];
1919
+ };
1920
+ /**
1921
+ * Transaction findFirstOrThrow
1922
+ */
1923
+ export type TransactionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1924
+ /**
1925
+ * Select specific fields to fetch from the Transaction
1926
+ */
1927
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
1928
+ /**
1929
+ * Omit specific fields from the Transaction
1930
+ */
1931
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
1932
+ /**
1933
+ * Choose, which related nodes to fetch as well
1934
+ */
1935
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
1936
+ /**
1937
+ * Filter, which Transaction to fetch.
1938
+ */
1939
+ where?: Prisma.TransactionWhereInput;
1940
+ /**
1941
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1942
+ *
1943
+ * Determine the order of Transactions to fetch.
1944
+ */
1945
+ orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[];
1946
+ /**
1947
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1948
+ *
1949
+ * Sets the position for searching for Transactions.
1950
+ */
1951
+ cursor?: Prisma.TransactionWhereUniqueInput;
1952
+ /**
1953
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1954
+ *
1955
+ * Take `±n` Transactions from the position of the cursor.
1956
+ */
1957
+ take?: number;
1958
+ /**
1959
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1960
+ *
1961
+ * Skip the first `n` Transactions.
1962
+ */
1963
+ skip?: number;
1964
+ /**
1965
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1966
+ *
1967
+ * Filter by unique combinations of Transactions.
1968
+ */
1969
+ distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[];
1970
+ };
1971
+ /**
1972
+ * Transaction findMany
1973
+ */
1974
+ export type TransactionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1975
+ /**
1976
+ * Select specific fields to fetch from the Transaction
1977
+ */
1978
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
1979
+ /**
1980
+ * Omit specific fields from the Transaction
1981
+ */
1982
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
1983
+ /**
1984
+ * Choose, which related nodes to fetch as well
1985
+ */
1986
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
1987
+ /**
1988
+ * Filter, which Transactions to fetch.
1989
+ */
1990
+ where?: Prisma.TransactionWhereInput;
1991
+ /**
1992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1993
+ *
1994
+ * Determine the order of Transactions to fetch.
1995
+ */
1996
+ orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[];
1997
+ /**
1998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1999
+ *
2000
+ * Sets the position for listing Transactions.
2001
+ */
2002
+ cursor?: Prisma.TransactionWhereUniqueInput;
2003
+ /**
2004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2005
+ *
2006
+ * Take `±n` Transactions from the position of the cursor.
2007
+ */
2008
+ take?: number;
2009
+ /**
2010
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2011
+ *
2012
+ * Skip the first `n` Transactions.
2013
+ */
2014
+ skip?: number;
2015
+ distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[];
2016
+ };
2017
+ /**
2018
+ * Transaction create
2019
+ */
2020
+ export type TransactionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2021
+ /**
2022
+ * Select specific fields to fetch from the Transaction
2023
+ */
2024
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
2025
+ /**
2026
+ * Omit specific fields from the Transaction
2027
+ */
2028
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
2029
+ /**
2030
+ * Choose, which related nodes to fetch as well
2031
+ */
2032
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
2033
+ /**
2034
+ * The data needed to create a Transaction.
2035
+ */
2036
+ data: Prisma.XOR<Prisma.TransactionCreateInput, Prisma.TransactionUncheckedCreateInput>;
2037
+ };
2038
+ /**
2039
+ * Transaction createMany
2040
+ */
2041
+ export type TransactionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2042
+ /**
2043
+ * The data used to create many Transactions.
2044
+ */
2045
+ data: Prisma.TransactionCreateManyInput | Prisma.TransactionCreateManyInput[];
2046
+ skipDuplicates?: boolean;
2047
+ };
2048
+ /**
2049
+ * Transaction createManyAndReturn
2050
+ */
2051
+ export type TransactionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2052
+ /**
2053
+ * Select specific fields to fetch from the Transaction
2054
+ */
2055
+ select?: Prisma.TransactionSelectCreateManyAndReturn<ExtArgs> | null;
2056
+ /**
2057
+ * Omit specific fields from the Transaction
2058
+ */
2059
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
2060
+ /**
2061
+ * The data used to create many Transactions.
2062
+ */
2063
+ data: Prisma.TransactionCreateManyInput | Prisma.TransactionCreateManyInput[];
2064
+ skipDuplicates?: boolean;
2065
+ /**
2066
+ * Choose, which related nodes to fetch as well
2067
+ */
2068
+ include?: Prisma.TransactionIncludeCreateManyAndReturn<ExtArgs> | null;
2069
+ };
2070
+ /**
2071
+ * Transaction update
2072
+ */
2073
+ export type TransactionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2074
+ /**
2075
+ * Select specific fields to fetch from the Transaction
2076
+ */
2077
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
2078
+ /**
2079
+ * Omit specific fields from the Transaction
2080
+ */
2081
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
2082
+ /**
2083
+ * Choose, which related nodes to fetch as well
2084
+ */
2085
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
2086
+ /**
2087
+ * The data needed to update a Transaction.
2088
+ */
2089
+ data: Prisma.XOR<Prisma.TransactionUpdateInput, Prisma.TransactionUncheckedUpdateInput>;
2090
+ /**
2091
+ * Choose, which Transaction to update.
2092
+ */
2093
+ where: Prisma.TransactionWhereUniqueInput;
2094
+ };
2095
+ /**
2096
+ * Transaction updateMany
2097
+ */
2098
+ export type TransactionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2099
+ /**
2100
+ * The data used to update Transactions.
2101
+ */
2102
+ data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyInput>;
2103
+ /**
2104
+ * Filter which Transactions to update
2105
+ */
2106
+ where?: Prisma.TransactionWhereInput;
2107
+ /**
2108
+ * Limit how many Transactions to update.
2109
+ */
2110
+ limit?: number;
2111
+ };
2112
+ /**
2113
+ * Transaction updateManyAndReturn
2114
+ */
2115
+ export type TransactionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2116
+ /**
2117
+ * Select specific fields to fetch from the Transaction
2118
+ */
2119
+ select?: Prisma.TransactionSelectUpdateManyAndReturn<ExtArgs> | null;
2120
+ /**
2121
+ * Omit specific fields from the Transaction
2122
+ */
2123
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
2124
+ /**
2125
+ * The data used to update Transactions.
2126
+ */
2127
+ data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyInput>;
2128
+ /**
2129
+ * Filter which Transactions to update
2130
+ */
2131
+ where?: Prisma.TransactionWhereInput;
2132
+ /**
2133
+ * Limit how many Transactions to update.
2134
+ */
2135
+ limit?: number;
2136
+ /**
2137
+ * Choose, which related nodes to fetch as well
2138
+ */
2139
+ include?: Prisma.TransactionIncludeUpdateManyAndReturn<ExtArgs> | null;
2140
+ };
2141
+ /**
2142
+ * Transaction upsert
2143
+ */
2144
+ export type TransactionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2145
+ /**
2146
+ * Select specific fields to fetch from the Transaction
2147
+ */
2148
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
2149
+ /**
2150
+ * Omit specific fields from the Transaction
2151
+ */
2152
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
2153
+ /**
2154
+ * Choose, which related nodes to fetch as well
2155
+ */
2156
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
2157
+ /**
2158
+ * The filter to search for the Transaction to update in case it exists.
2159
+ */
2160
+ where: Prisma.TransactionWhereUniqueInput;
2161
+ /**
2162
+ * In case the Transaction found by the `where` argument doesn't exist, create a new Transaction with this data.
2163
+ */
2164
+ create: Prisma.XOR<Prisma.TransactionCreateInput, Prisma.TransactionUncheckedCreateInput>;
2165
+ /**
2166
+ * In case the Transaction was found with the provided `where` argument, update it with this data.
2167
+ */
2168
+ update: Prisma.XOR<Prisma.TransactionUpdateInput, Prisma.TransactionUncheckedUpdateInput>;
2169
+ };
2170
+ /**
2171
+ * Transaction delete
2172
+ */
2173
+ export type TransactionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2174
+ /**
2175
+ * Select specific fields to fetch from the Transaction
2176
+ */
2177
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
2178
+ /**
2179
+ * Omit specific fields from the Transaction
2180
+ */
2181
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
2182
+ /**
2183
+ * Choose, which related nodes to fetch as well
2184
+ */
2185
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
2186
+ /**
2187
+ * Filter which Transaction to delete.
2188
+ */
2189
+ where: Prisma.TransactionWhereUniqueInput;
2190
+ };
2191
+ /**
2192
+ * Transaction deleteMany
2193
+ */
2194
+ export type TransactionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2195
+ /**
2196
+ * Filter which Transactions to delete
2197
+ */
2198
+ where?: Prisma.TransactionWhereInput;
2199
+ /**
2200
+ * Limit how many Transactions to delete.
2201
+ */
2202
+ limit?: number;
2203
+ };
2204
+ /**
2205
+ * Transaction without action
2206
+ */
2207
+ export type TransactionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2208
+ /**
2209
+ * Select specific fields to fetch from the Transaction
2210
+ */
2211
+ select?: Prisma.TransactionSelect<ExtArgs> | null;
2212
+ /**
2213
+ * Omit specific fields from the Transaction
2214
+ */
2215
+ omit?: Prisma.TransactionOmit<ExtArgs> | null;
2216
+ /**
2217
+ * Choose, which related nodes to fetch as well
2218
+ */
2219
+ include?: Prisma.TransactionInclude<ExtArgs> | null;
2220
+ };
2221
+ export {};
2222
+ //# sourceMappingURL=Transaction.d.ts.map