@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,1536 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `CreditAuditLog` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model CreditAuditLog
17
+ *
18
+ */
19
+ export type CreditAuditLogModel = runtime.Types.Result.DefaultSelection<Prisma.$CreditAuditLogPayload>
20
+
21
+ export type AggregateCreditAuditLog = {
22
+ _count: CreditAuditLogCountAggregateOutputType | null
23
+ _avg: CreditAuditLogAvgAggregateOutputType | null
24
+ _sum: CreditAuditLogSumAggregateOutputType | null
25
+ _min: CreditAuditLogMinAggregateOutputType | null
26
+ _max: CreditAuditLogMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type CreditAuditLogAvgAggregateOutputType = {
30
+ id: number | null
31
+ creditsChange: number | null
32
+ deleted: number | null
33
+ }
34
+
35
+ export type CreditAuditLogSumAggregateOutputType = {
36
+ id: bigint | null
37
+ creditsChange: number | null
38
+ deleted: number | null
39
+ }
40
+
41
+ export type CreditAuditLogMinAggregateOutputType = {
42
+ id: bigint | null
43
+ userId: string | null
44
+ creditsChange: number | null
45
+ feature: string | null
46
+ creditType: string | null
47
+ operationType: string | null
48
+ operationReferId: string | null
49
+ createdAt: Date | null
50
+ deleted: number | null
51
+ }
52
+
53
+ export type CreditAuditLogMaxAggregateOutputType = {
54
+ id: bigint | null
55
+ userId: string | null
56
+ creditsChange: number | null
57
+ feature: string | null
58
+ creditType: string | null
59
+ operationType: string | null
60
+ operationReferId: string | null
61
+ createdAt: Date | null
62
+ deleted: number | null
63
+ }
64
+
65
+ export type CreditAuditLogCountAggregateOutputType = {
66
+ id: number
67
+ userId: number
68
+ creditsChange: number
69
+ feature: number
70
+ creditType: number
71
+ operationType: number
72
+ operationReferId: number
73
+ createdAt: number
74
+ deleted: number
75
+ _all: number
76
+ }
77
+
78
+
79
+ export type CreditAuditLogAvgAggregateInputType = {
80
+ id?: true
81
+ creditsChange?: true
82
+ deleted?: true
83
+ }
84
+
85
+ export type CreditAuditLogSumAggregateInputType = {
86
+ id?: true
87
+ creditsChange?: true
88
+ deleted?: true
89
+ }
90
+
91
+ export type CreditAuditLogMinAggregateInputType = {
92
+ id?: true
93
+ userId?: true
94
+ creditsChange?: true
95
+ feature?: true
96
+ creditType?: true
97
+ operationType?: true
98
+ operationReferId?: true
99
+ createdAt?: true
100
+ deleted?: true
101
+ }
102
+
103
+ export type CreditAuditLogMaxAggregateInputType = {
104
+ id?: true
105
+ userId?: true
106
+ creditsChange?: true
107
+ feature?: true
108
+ creditType?: true
109
+ operationType?: true
110
+ operationReferId?: true
111
+ createdAt?: true
112
+ deleted?: true
113
+ }
114
+
115
+ export type CreditAuditLogCountAggregateInputType = {
116
+ id?: true
117
+ userId?: true
118
+ creditsChange?: true
119
+ feature?: true
120
+ creditType?: true
121
+ operationType?: true
122
+ operationReferId?: true
123
+ createdAt?: true
124
+ deleted?: true
125
+ _all?: true
126
+ }
127
+
128
+ export type CreditAuditLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
129
+ /**
130
+ * Filter which CreditAuditLog to aggregate.
131
+ */
132
+ where?: Prisma.CreditAuditLogWhereInput
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
135
+ *
136
+ * Determine the order of CreditAuditLogs to fetch.
137
+ */
138
+ orderBy?: Prisma.CreditAuditLogOrderByWithRelationInput | Prisma.CreditAuditLogOrderByWithRelationInput[]
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
141
+ *
142
+ * Sets the start position
143
+ */
144
+ cursor?: Prisma.CreditAuditLogWhereUniqueInput
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
147
+ *
148
+ * Take `±n` CreditAuditLogs from the position of the cursor.
149
+ */
150
+ take?: number
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
153
+ *
154
+ * Skip the first `n` CreditAuditLogs.
155
+ */
156
+ skip?: number
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
+ *
160
+ * Count returned CreditAuditLogs
161
+ **/
162
+ _count?: true | CreditAuditLogCountAggregateInputType
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
+ *
166
+ * Select which fields to average
167
+ **/
168
+ _avg?: CreditAuditLogAvgAggregateInputType
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
+ *
172
+ * Select which fields to sum
173
+ **/
174
+ _sum?: CreditAuditLogSumAggregateInputType
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
177
+ *
178
+ * Select which fields to find the minimum value
179
+ **/
180
+ _min?: CreditAuditLogMinAggregateInputType
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
183
+ *
184
+ * Select which fields to find the maximum value
185
+ **/
186
+ _max?: CreditAuditLogMaxAggregateInputType
187
+ }
188
+
189
+ export type GetCreditAuditLogAggregateType<T extends CreditAuditLogAggregateArgs> = {
190
+ [P in keyof T & keyof AggregateCreditAuditLog]: P extends '_count' | 'count'
191
+ ? T[P] extends true
192
+ ? number
193
+ : Prisma.GetScalarType<T[P], AggregateCreditAuditLog[P]>
194
+ : Prisma.GetScalarType<T[P], AggregateCreditAuditLog[P]>
195
+ }
196
+
197
+
198
+
199
+
200
+ export type CreditAuditLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
201
+ where?: Prisma.CreditAuditLogWhereInput
202
+ orderBy?: Prisma.CreditAuditLogOrderByWithAggregationInput | Prisma.CreditAuditLogOrderByWithAggregationInput[]
203
+ by: Prisma.CreditAuditLogScalarFieldEnum[] | Prisma.CreditAuditLogScalarFieldEnum
204
+ having?: Prisma.CreditAuditLogScalarWhereWithAggregatesInput
205
+ take?: number
206
+ skip?: number
207
+ _count?: CreditAuditLogCountAggregateInputType | true
208
+ _avg?: CreditAuditLogAvgAggregateInputType
209
+ _sum?: CreditAuditLogSumAggregateInputType
210
+ _min?: CreditAuditLogMinAggregateInputType
211
+ _max?: CreditAuditLogMaxAggregateInputType
212
+ }
213
+
214
+ export type CreditAuditLogGroupByOutputType = {
215
+ id: bigint
216
+ userId: string
217
+ creditsChange: number
218
+ feature: string | null
219
+ creditType: string
220
+ operationType: string
221
+ operationReferId: string | null
222
+ createdAt: Date | null
223
+ deleted: number
224
+ _count: CreditAuditLogCountAggregateOutputType | null
225
+ _avg: CreditAuditLogAvgAggregateOutputType | null
226
+ _sum: CreditAuditLogSumAggregateOutputType | null
227
+ _min: CreditAuditLogMinAggregateOutputType | null
228
+ _max: CreditAuditLogMaxAggregateOutputType | null
229
+ }
230
+
231
+ type GetCreditAuditLogGroupByPayload<T extends CreditAuditLogGroupByArgs> = Prisma.PrismaPromise<
232
+ Array<
233
+ Prisma.PickEnumerable<CreditAuditLogGroupByOutputType, T['by']> &
234
+ {
235
+ [P in ((keyof T) & (keyof CreditAuditLogGroupByOutputType))]: P extends '_count'
236
+ ? T[P] extends boolean
237
+ ? number
238
+ : Prisma.GetScalarType<T[P], CreditAuditLogGroupByOutputType[P]>
239
+ : Prisma.GetScalarType<T[P], CreditAuditLogGroupByOutputType[P]>
240
+ }
241
+ >
242
+ >
243
+
244
+
245
+
246
+ export type CreditAuditLogWhereInput = {
247
+ AND?: Prisma.CreditAuditLogWhereInput | Prisma.CreditAuditLogWhereInput[]
248
+ OR?: Prisma.CreditAuditLogWhereInput[]
249
+ NOT?: Prisma.CreditAuditLogWhereInput | Prisma.CreditAuditLogWhereInput[]
250
+ id?: Prisma.BigIntFilter<"CreditAuditLog"> | bigint | number
251
+ userId?: Prisma.UuidFilter<"CreditAuditLog"> | string
252
+ creditsChange?: Prisma.IntFilter<"CreditAuditLog"> | number
253
+ feature?: Prisma.StringNullableFilter<"CreditAuditLog"> | string | null
254
+ creditType?: Prisma.StringFilter<"CreditAuditLog"> | string
255
+ operationType?: Prisma.StringFilter<"CreditAuditLog"> | string
256
+ operationReferId?: Prisma.StringNullableFilter<"CreditAuditLog"> | string | null
257
+ createdAt?: Prisma.DateTimeNullableFilter<"CreditAuditLog"> | Date | string | null
258
+ deleted?: Prisma.IntFilter<"CreditAuditLog"> | number
259
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
260
+ }
261
+
262
+ export type CreditAuditLogOrderByWithRelationInput = {
263
+ id?: Prisma.SortOrder
264
+ userId?: Prisma.SortOrder
265
+ creditsChange?: Prisma.SortOrder
266
+ feature?: Prisma.SortOrderInput | Prisma.SortOrder
267
+ creditType?: Prisma.SortOrder
268
+ operationType?: Prisma.SortOrder
269
+ operationReferId?: Prisma.SortOrderInput | Prisma.SortOrder
270
+ createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
271
+ deleted?: Prisma.SortOrder
272
+ user?: Prisma.UserOrderByWithRelationInput
273
+ }
274
+
275
+ export type CreditAuditLogWhereUniqueInput = Prisma.AtLeast<{
276
+ id?: bigint | number
277
+ AND?: Prisma.CreditAuditLogWhereInput | Prisma.CreditAuditLogWhereInput[]
278
+ OR?: Prisma.CreditAuditLogWhereInput[]
279
+ NOT?: Prisma.CreditAuditLogWhereInput | Prisma.CreditAuditLogWhereInput[]
280
+ userId?: Prisma.UuidFilter<"CreditAuditLog"> | string
281
+ creditsChange?: Prisma.IntFilter<"CreditAuditLog"> | number
282
+ feature?: Prisma.StringNullableFilter<"CreditAuditLog"> | string | null
283
+ creditType?: Prisma.StringFilter<"CreditAuditLog"> | string
284
+ operationType?: Prisma.StringFilter<"CreditAuditLog"> | string
285
+ operationReferId?: Prisma.StringNullableFilter<"CreditAuditLog"> | string | null
286
+ createdAt?: Prisma.DateTimeNullableFilter<"CreditAuditLog"> | Date | string | null
287
+ deleted?: Prisma.IntFilter<"CreditAuditLog"> | number
288
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
289
+ }, "id">
290
+
291
+ export type CreditAuditLogOrderByWithAggregationInput = {
292
+ id?: Prisma.SortOrder
293
+ userId?: Prisma.SortOrder
294
+ creditsChange?: Prisma.SortOrder
295
+ feature?: Prisma.SortOrderInput | Prisma.SortOrder
296
+ creditType?: Prisma.SortOrder
297
+ operationType?: Prisma.SortOrder
298
+ operationReferId?: Prisma.SortOrderInput | Prisma.SortOrder
299
+ createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
300
+ deleted?: Prisma.SortOrder
301
+ _count?: Prisma.CreditAuditLogCountOrderByAggregateInput
302
+ _avg?: Prisma.CreditAuditLogAvgOrderByAggregateInput
303
+ _max?: Prisma.CreditAuditLogMaxOrderByAggregateInput
304
+ _min?: Prisma.CreditAuditLogMinOrderByAggregateInput
305
+ _sum?: Prisma.CreditAuditLogSumOrderByAggregateInput
306
+ }
307
+
308
+ export type CreditAuditLogScalarWhereWithAggregatesInput = {
309
+ AND?: Prisma.CreditAuditLogScalarWhereWithAggregatesInput | Prisma.CreditAuditLogScalarWhereWithAggregatesInput[]
310
+ OR?: Prisma.CreditAuditLogScalarWhereWithAggregatesInput[]
311
+ NOT?: Prisma.CreditAuditLogScalarWhereWithAggregatesInput | Prisma.CreditAuditLogScalarWhereWithAggregatesInput[]
312
+ id?: Prisma.BigIntWithAggregatesFilter<"CreditAuditLog"> | bigint | number
313
+ userId?: Prisma.UuidWithAggregatesFilter<"CreditAuditLog"> | string
314
+ creditsChange?: Prisma.IntWithAggregatesFilter<"CreditAuditLog"> | number
315
+ feature?: Prisma.StringNullableWithAggregatesFilter<"CreditAuditLog"> | string | null
316
+ creditType?: Prisma.StringWithAggregatesFilter<"CreditAuditLog"> | string
317
+ operationType?: Prisma.StringWithAggregatesFilter<"CreditAuditLog"> | string
318
+ operationReferId?: Prisma.StringNullableWithAggregatesFilter<"CreditAuditLog"> | string | null
319
+ createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"CreditAuditLog"> | Date | string | null
320
+ deleted?: Prisma.IntWithAggregatesFilter<"CreditAuditLog"> | number
321
+ }
322
+
323
+ export type CreditAuditLogCreateInput = {
324
+ id?: bigint | number
325
+ creditsChange: number
326
+ feature?: string | null
327
+ creditType: string
328
+ operationType: string
329
+ operationReferId?: string | null
330
+ createdAt?: Date | string | null
331
+ deleted?: number
332
+ user: Prisma.UserCreateNestedOneWithoutCreditAuditLogsInput
333
+ }
334
+
335
+ export type CreditAuditLogUncheckedCreateInput = {
336
+ id?: bigint | number
337
+ userId: string
338
+ creditsChange: number
339
+ feature?: string | null
340
+ creditType: string
341
+ operationType: string
342
+ operationReferId?: string | null
343
+ createdAt?: Date | string | null
344
+ deleted?: number
345
+ }
346
+
347
+ export type CreditAuditLogUpdateInput = {
348
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
349
+ creditsChange?: Prisma.IntFieldUpdateOperationsInput | number
350
+ feature?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
351
+ creditType?: Prisma.StringFieldUpdateOperationsInput | string
352
+ operationType?: Prisma.StringFieldUpdateOperationsInput | string
353
+ operationReferId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
354
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
355
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
356
+ user?: Prisma.UserUpdateOneRequiredWithoutCreditAuditLogsNestedInput
357
+ }
358
+
359
+ export type CreditAuditLogUncheckedUpdateInput = {
360
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
361
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
362
+ creditsChange?: Prisma.IntFieldUpdateOperationsInput | number
363
+ feature?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
364
+ creditType?: Prisma.StringFieldUpdateOperationsInput | string
365
+ operationType?: Prisma.StringFieldUpdateOperationsInput | string
366
+ operationReferId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
367
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
368
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
369
+ }
370
+
371
+ export type CreditAuditLogCreateManyInput = {
372
+ id?: bigint | number
373
+ userId: string
374
+ creditsChange: number
375
+ feature?: string | null
376
+ creditType: string
377
+ operationType: string
378
+ operationReferId?: string | null
379
+ createdAt?: Date | string | null
380
+ deleted?: number
381
+ }
382
+
383
+ export type CreditAuditLogUpdateManyMutationInput = {
384
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
385
+ creditsChange?: Prisma.IntFieldUpdateOperationsInput | number
386
+ feature?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
387
+ creditType?: Prisma.StringFieldUpdateOperationsInput | string
388
+ operationType?: Prisma.StringFieldUpdateOperationsInput | string
389
+ operationReferId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
390
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
391
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
392
+ }
393
+
394
+ export type CreditAuditLogUncheckedUpdateManyInput = {
395
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
396
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
397
+ creditsChange?: Prisma.IntFieldUpdateOperationsInput | number
398
+ feature?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
399
+ creditType?: Prisma.StringFieldUpdateOperationsInput | string
400
+ operationType?: Prisma.StringFieldUpdateOperationsInput | string
401
+ operationReferId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
402
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
403
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
404
+ }
405
+
406
+ export type CreditAuditLogListRelationFilter = {
407
+ every?: Prisma.CreditAuditLogWhereInput
408
+ some?: Prisma.CreditAuditLogWhereInput
409
+ none?: Prisma.CreditAuditLogWhereInput
410
+ }
411
+
412
+ export type CreditAuditLogOrderByRelationAggregateInput = {
413
+ _count?: Prisma.SortOrder
414
+ }
415
+
416
+ export type CreditAuditLogCountOrderByAggregateInput = {
417
+ id?: Prisma.SortOrder
418
+ userId?: Prisma.SortOrder
419
+ creditsChange?: Prisma.SortOrder
420
+ feature?: Prisma.SortOrder
421
+ creditType?: Prisma.SortOrder
422
+ operationType?: Prisma.SortOrder
423
+ operationReferId?: Prisma.SortOrder
424
+ createdAt?: Prisma.SortOrder
425
+ deleted?: Prisma.SortOrder
426
+ }
427
+
428
+ export type CreditAuditLogAvgOrderByAggregateInput = {
429
+ id?: Prisma.SortOrder
430
+ creditsChange?: Prisma.SortOrder
431
+ deleted?: Prisma.SortOrder
432
+ }
433
+
434
+ export type CreditAuditLogMaxOrderByAggregateInput = {
435
+ id?: Prisma.SortOrder
436
+ userId?: Prisma.SortOrder
437
+ creditsChange?: Prisma.SortOrder
438
+ feature?: Prisma.SortOrder
439
+ creditType?: Prisma.SortOrder
440
+ operationType?: Prisma.SortOrder
441
+ operationReferId?: Prisma.SortOrder
442
+ createdAt?: Prisma.SortOrder
443
+ deleted?: Prisma.SortOrder
444
+ }
445
+
446
+ export type CreditAuditLogMinOrderByAggregateInput = {
447
+ id?: Prisma.SortOrder
448
+ userId?: Prisma.SortOrder
449
+ creditsChange?: Prisma.SortOrder
450
+ feature?: Prisma.SortOrder
451
+ creditType?: Prisma.SortOrder
452
+ operationType?: Prisma.SortOrder
453
+ operationReferId?: Prisma.SortOrder
454
+ createdAt?: Prisma.SortOrder
455
+ deleted?: Prisma.SortOrder
456
+ }
457
+
458
+ export type CreditAuditLogSumOrderByAggregateInput = {
459
+ id?: Prisma.SortOrder
460
+ creditsChange?: Prisma.SortOrder
461
+ deleted?: Prisma.SortOrder
462
+ }
463
+
464
+ export type CreditAuditLogCreateNestedManyWithoutUserInput = {
465
+ create?: Prisma.XOR<Prisma.CreditAuditLogCreateWithoutUserInput, Prisma.CreditAuditLogUncheckedCreateWithoutUserInput> | Prisma.CreditAuditLogCreateWithoutUserInput[] | Prisma.CreditAuditLogUncheckedCreateWithoutUserInput[]
466
+ connectOrCreate?: Prisma.CreditAuditLogCreateOrConnectWithoutUserInput | Prisma.CreditAuditLogCreateOrConnectWithoutUserInput[]
467
+ createMany?: Prisma.CreditAuditLogCreateManyUserInputEnvelope
468
+ connect?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
469
+ }
470
+
471
+ export type CreditAuditLogUncheckedCreateNestedManyWithoutUserInput = {
472
+ create?: Prisma.XOR<Prisma.CreditAuditLogCreateWithoutUserInput, Prisma.CreditAuditLogUncheckedCreateWithoutUserInput> | Prisma.CreditAuditLogCreateWithoutUserInput[] | Prisma.CreditAuditLogUncheckedCreateWithoutUserInput[]
473
+ connectOrCreate?: Prisma.CreditAuditLogCreateOrConnectWithoutUserInput | Prisma.CreditAuditLogCreateOrConnectWithoutUserInput[]
474
+ createMany?: Prisma.CreditAuditLogCreateManyUserInputEnvelope
475
+ connect?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
476
+ }
477
+
478
+ export type CreditAuditLogUpdateManyWithoutUserNestedInput = {
479
+ create?: Prisma.XOR<Prisma.CreditAuditLogCreateWithoutUserInput, Prisma.CreditAuditLogUncheckedCreateWithoutUserInput> | Prisma.CreditAuditLogCreateWithoutUserInput[] | Prisma.CreditAuditLogUncheckedCreateWithoutUserInput[]
480
+ connectOrCreate?: Prisma.CreditAuditLogCreateOrConnectWithoutUserInput | Prisma.CreditAuditLogCreateOrConnectWithoutUserInput[]
481
+ upsert?: Prisma.CreditAuditLogUpsertWithWhereUniqueWithoutUserInput | Prisma.CreditAuditLogUpsertWithWhereUniqueWithoutUserInput[]
482
+ createMany?: Prisma.CreditAuditLogCreateManyUserInputEnvelope
483
+ set?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
484
+ disconnect?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
485
+ delete?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
486
+ connect?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
487
+ update?: Prisma.CreditAuditLogUpdateWithWhereUniqueWithoutUserInput | Prisma.CreditAuditLogUpdateWithWhereUniqueWithoutUserInput[]
488
+ updateMany?: Prisma.CreditAuditLogUpdateManyWithWhereWithoutUserInput | Prisma.CreditAuditLogUpdateManyWithWhereWithoutUserInput[]
489
+ deleteMany?: Prisma.CreditAuditLogScalarWhereInput | Prisma.CreditAuditLogScalarWhereInput[]
490
+ }
491
+
492
+ export type CreditAuditLogUncheckedUpdateManyWithoutUserNestedInput = {
493
+ create?: Prisma.XOR<Prisma.CreditAuditLogCreateWithoutUserInput, Prisma.CreditAuditLogUncheckedCreateWithoutUserInput> | Prisma.CreditAuditLogCreateWithoutUserInput[] | Prisma.CreditAuditLogUncheckedCreateWithoutUserInput[]
494
+ connectOrCreate?: Prisma.CreditAuditLogCreateOrConnectWithoutUserInput | Prisma.CreditAuditLogCreateOrConnectWithoutUserInput[]
495
+ upsert?: Prisma.CreditAuditLogUpsertWithWhereUniqueWithoutUserInput | Prisma.CreditAuditLogUpsertWithWhereUniqueWithoutUserInput[]
496
+ createMany?: Prisma.CreditAuditLogCreateManyUserInputEnvelope
497
+ set?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
498
+ disconnect?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
499
+ delete?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
500
+ connect?: Prisma.CreditAuditLogWhereUniqueInput | Prisma.CreditAuditLogWhereUniqueInput[]
501
+ update?: Prisma.CreditAuditLogUpdateWithWhereUniqueWithoutUserInput | Prisma.CreditAuditLogUpdateWithWhereUniqueWithoutUserInput[]
502
+ updateMany?: Prisma.CreditAuditLogUpdateManyWithWhereWithoutUserInput | Prisma.CreditAuditLogUpdateManyWithWhereWithoutUserInput[]
503
+ deleteMany?: Prisma.CreditAuditLogScalarWhereInput | Prisma.CreditAuditLogScalarWhereInput[]
504
+ }
505
+
506
+ export type CreditAuditLogCreateWithoutUserInput = {
507
+ id?: bigint | number
508
+ creditsChange: number
509
+ feature?: string | null
510
+ creditType: string
511
+ operationType: string
512
+ operationReferId?: string | null
513
+ createdAt?: Date | string | null
514
+ deleted?: number
515
+ }
516
+
517
+ export type CreditAuditLogUncheckedCreateWithoutUserInput = {
518
+ id?: bigint | number
519
+ creditsChange: number
520
+ feature?: string | null
521
+ creditType: string
522
+ operationType: string
523
+ operationReferId?: string | null
524
+ createdAt?: Date | string | null
525
+ deleted?: number
526
+ }
527
+
528
+ export type CreditAuditLogCreateOrConnectWithoutUserInput = {
529
+ where: Prisma.CreditAuditLogWhereUniqueInput
530
+ create: Prisma.XOR<Prisma.CreditAuditLogCreateWithoutUserInput, Prisma.CreditAuditLogUncheckedCreateWithoutUserInput>
531
+ }
532
+
533
+ export type CreditAuditLogCreateManyUserInputEnvelope = {
534
+ data: Prisma.CreditAuditLogCreateManyUserInput | Prisma.CreditAuditLogCreateManyUserInput[]
535
+ skipDuplicates?: boolean
536
+ }
537
+
538
+ export type CreditAuditLogUpsertWithWhereUniqueWithoutUserInput = {
539
+ where: Prisma.CreditAuditLogWhereUniqueInput
540
+ update: Prisma.XOR<Prisma.CreditAuditLogUpdateWithoutUserInput, Prisma.CreditAuditLogUncheckedUpdateWithoutUserInput>
541
+ create: Prisma.XOR<Prisma.CreditAuditLogCreateWithoutUserInput, Prisma.CreditAuditLogUncheckedCreateWithoutUserInput>
542
+ }
543
+
544
+ export type CreditAuditLogUpdateWithWhereUniqueWithoutUserInput = {
545
+ where: Prisma.CreditAuditLogWhereUniqueInput
546
+ data: Prisma.XOR<Prisma.CreditAuditLogUpdateWithoutUserInput, Prisma.CreditAuditLogUncheckedUpdateWithoutUserInput>
547
+ }
548
+
549
+ export type CreditAuditLogUpdateManyWithWhereWithoutUserInput = {
550
+ where: Prisma.CreditAuditLogScalarWhereInput
551
+ data: Prisma.XOR<Prisma.CreditAuditLogUpdateManyMutationInput, Prisma.CreditAuditLogUncheckedUpdateManyWithoutUserInput>
552
+ }
553
+
554
+ export type CreditAuditLogScalarWhereInput = {
555
+ AND?: Prisma.CreditAuditLogScalarWhereInput | Prisma.CreditAuditLogScalarWhereInput[]
556
+ OR?: Prisma.CreditAuditLogScalarWhereInput[]
557
+ NOT?: Prisma.CreditAuditLogScalarWhereInput | Prisma.CreditAuditLogScalarWhereInput[]
558
+ id?: Prisma.BigIntFilter<"CreditAuditLog"> | bigint | number
559
+ userId?: Prisma.UuidFilter<"CreditAuditLog"> | string
560
+ creditsChange?: Prisma.IntFilter<"CreditAuditLog"> | number
561
+ feature?: Prisma.StringNullableFilter<"CreditAuditLog"> | string | null
562
+ creditType?: Prisma.StringFilter<"CreditAuditLog"> | string
563
+ operationType?: Prisma.StringFilter<"CreditAuditLog"> | string
564
+ operationReferId?: Prisma.StringNullableFilter<"CreditAuditLog"> | string | null
565
+ createdAt?: Prisma.DateTimeNullableFilter<"CreditAuditLog"> | Date | string | null
566
+ deleted?: Prisma.IntFilter<"CreditAuditLog"> | number
567
+ }
568
+
569
+ export type CreditAuditLogCreateManyUserInput = {
570
+ id?: bigint | number
571
+ creditsChange: number
572
+ feature?: string | null
573
+ creditType: string
574
+ operationType: string
575
+ operationReferId?: string | null
576
+ createdAt?: Date | string | null
577
+ deleted?: number
578
+ }
579
+
580
+ export type CreditAuditLogUpdateWithoutUserInput = {
581
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
582
+ creditsChange?: Prisma.IntFieldUpdateOperationsInput | number
583
+ feature?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
584
+ creditType?: Prisma.StringFieldUpdateOperationsInput | string
585
+ operationType?: Prisma.StringFieldUpdateOperationsInput | string
586
+ operationReferId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
587
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
588
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
589
+ }
590
+
591
+ export type CreditAuditLogUncheckedUpdateWithoutUserInput = {
592
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
593
+ creditsChange?: Prisma.IntFieldUpdateOperationsInput | number
594
+ feature?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
595
+ creditType?: Prisma.StringFieldUpdateOperationsInput | string
596
+ operationType?: Prisma.StringFieldUpdateOperationsInput | string
597
+ operationReferId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
598
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
599
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
600
+ }
601
+
602
+ export type CreditAuditLogUncheckedUpdateManyWithoutUserInput = {
603
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
604
+ creditsChange?: Prisma.IntFieldUpdateOperationsInput | number
605
+ feature?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
606
+ creditType?: Prisma.StringFieldUpdateOperationsInput | string
607
+ operationType?: Prisma.StringFieldUpdateOperationsInput | string
608
+ operationReferId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
609
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
610
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
611
+ }
612
+
613
+
614
+
615
+ export type CreditAuditLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
616
+ id?: boolean
617
+ userId?: boolean
618
+ creditsChange?: boolean
619
+ feature?: boolean
620
+ creditType?: boolean
621
+ operationType?: boolean
622
+ operationReferId?: boolean
623
+ createdAt?: boolean
624
+ deleted?: boolean
625
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
626
+ }, ExtArgs["result"]["creditAuditLog"]>
627
+
628
+ export type CreditAuditLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
629
+ id?: boolean
630
+ userId?: boolean
631
+ creditsChange?: boolean
632
+ feature?: boolean
633
+ creditType?: boolean
634
+ operationType?: boolean
635
+ operationReferId?: boolean
636
+ createdAt?: boolean
637
+ deleted?: boolean
638
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
639
+ }, ExtArgs["result"]["creditAuditLog"]>
640
+
641
+ export type CreditAuditLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
642
+ id?: boolean
643
+ userId?: boolean
644
+ creditsChange?: boolean
645
+ feature?: boolean
646
+ creditType?: boolean
647
+ operationType?: boolean
648
+ operationReferId?: boolean
649
+ createdAt?: boolean
650
+ deleted?: boolean
651
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
652
+ }, ExtArgs["result"]["creditAuditLog"]>
653
+
654
+ export type CreditAuditLogSelectScalar = {
655
+ id?: boolean
656
+ userId?: boolean
657
+ creditsChange?: boolean
658
+ feature?: boolean
659
+ creditType?: boolean
660
+ operationType?: boolean
661
+ operationReferId?: boolean
662
+ createdAt?: boolean
663
+ deleted?: boolean
664
+ }
665
+
666
+ export type CreditAuditLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "creditsChange" | "feature" | "creditType" | "operationType" | "operationReferId" | "createdAt" | "deleted", ExtArgs["result"]["creditAuditLog"]>
667
+ export type CreditAuditLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
668
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
669
+ }
670
+ export type CreditAuditLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
671
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
672
+ }
673
+ export type CreditAuditLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
674
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
675
+ }
676
+
677
+ export type $CreditAuditLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
678
+ name: "CreditAuditLog"
679
+ objects: {
680
+ user: Prisma.$UserPayload<ExtArgs>
681
+ }
682
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
683
+ id: bigint
684
+ userId: string
685
+ creditsChange: number
686
+ feature: string | null
687
+ creditType: string
688
+ operationType: string
689
+ operationReferId: string | null
690
+ createdAt: Date | null
691
+ deleted: number
692
+ }, ExtArgs["result"]["creditAuditLog"]>
693
+ composites: {}
694
+ }
695
+
696
+ export type CreditAuditLogGetPayload<S extends boolean | null | undefined | CreditAuditLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload, S>
697
+
698
+ export type CreditAuditLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
699
+ Omit<CreditAuditLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
700
+ select?: CreditAuditLogCountAggregateInputType | true
701
+ }
702
+
703
+ export interface CreditAuditLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
704
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CreditAuditLog'], meta: { name: 'CreditAuditLog' } }
705
+ /**
706
+ * Find zero or one CreditAuditLog that matches the filter.
707
+ * @param {CreditAuditLogFindUniqueArgs} args - Arguments to find a CreditAuditLog
708
+ * @example
709
+ * // Get one CreditAuditLog
710
+ * const creditAuditLog = await prisma.creditAuditLog.findUnique({
711
+ * where: {
712
+ * // ... provide filter here
713
+ * }
714
+ * })
715
+ */
716
+ findUnique<T extends CreditAuditLogFindUniqueArgs>(args: Prisma.SelectSubset<T, CreditAuditLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CreditAuditLogClient<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
717
+
718
+ /**
719
+ * Find one CreditAuditLog that matches the filter or throw an error with `error.code='P2025'`
720
+ * if no matches were found.
721
+ * @param {CreditAuditLogFindUniqueOrThrowArgs} args - Arguments to find a CreditAuditLog
722
+ * @example
723
+ * // Get one CreditAuditLog
724
+ * const creditAuditLog = await prisma.creditAuditLog.findUniqueOrThrow({
725
+ * where: {
726
+ * // ... provide filter here
727
+ * }
728
+ * })
729
+ */
730
+ findUniqueOrThrow<T extends CreditAuditLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CreditAuditLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CreditAuditLogClient<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
731
+
732
+ /**
733
+ * Find the first CreditAuditLog that matches the filter.
734
+ * Note, that providing `undefined` is treated as the value not being there.
735
+ * Read more here: https://pris.ly/d/null-undefined
736
+ * @param {CreditAuditLogFindFirstArgs} args - Arguments to find a CreditAuditLog
737
+ * @example
738
+ * // Get one CreditAuditLog
739
+ * const creditAuditLog = await prisma.creditAuditLog.findFirst({
740
+ * where: {
741
+ * // ... provide filter here
742
+ * }
743
+ * })
744
+ */
745
+ findFirst<T extends CreditAuditLogFindFirstArgs>(args?: Prisma.SelectSubset<T, CreditAuditLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__CreditAuditLogClient<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
746
+
747
+ /**
748
+ * Find the first CreditAuditLog that matches the filter or
749
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
750
+ * Note, that providing `undefined` is treated as the value not being there.
751
+ * Read more here: https://pris.ly/d/null-undefined
752
+ * @param {CreditAuditLogFindFirstOrThrowArgs} args - Arguments to find a CreditAuditLog
753
+ * @example
754
+ * // Get one CreditAuditLog
755
+ * const creditAuditLog = await prisma.creditAuditLog.findFirstOrThrow({
756
+ * where: {
757
+ * // ... provide filter here
758
+ * }
759
+ * })
760
+ */
761
+ findFirstOrThrow<T extends CreditAuditLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CreditAuditLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CreditAuditLogClient<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
762
+
763
+ /**
764
+ * Find zero or more CreditAuditLogs that matches the filter.
765
+ * Note, that providing `undefined` is treated as the value not being there.
766
+ * Read more here: https://pris.ly/d/null-undefined
767
+ * @param {CreditAuditLogFindManyArgs} args - Arguments to filter and select certain fields only.
768
+ * @example
769
+ * // Get all CreditAuditLogs
770
+ * const creditAuditLogs = await prisma.creditAuditLog.findMany()
771
+ *
772
+ * // Get first 10 CreditAuditLogs
773
+ * const creditAuditLogs = await prisma.creditAuditLog.findMany({ take: 10 })
774
+ *
775
+ * // Only select the `id`
776
+ * const creditAuditLogWithIdOnly = await prisma.creditAuditLog.findMany({ select: { id: true } })
777
+ *
778
+ */
779
+ findMany<T extends CreditAuditLogFindManyArgs>(args?: Prisma.SelectSubset<T, CreditAuditLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
780
+
781
+ /**
782
+ * Create a CreditAuditLog.
783
+ * @param {CreditAuditLogCreateArgs} args - Arguments to create a CreditAuditLog.
784
+ * @example
785
+ * // Create one CreditAuditLog
786
+ * const CreditAuditLog = await prisma.creditAuditLog.create({
787
+ * data: {
788
+ * // ... data to create a CreditAuditLog
789
+ * }
790
+ * })
791
+ *
792
+ */
793
+ create<T extends CreditAuditLogCreateArgs>(args: Prisma.SelectSubset<T, CreditAuditLogCreateArgs<ExtArgs>>): Prisma.Prisma__CreditAuditLogClient<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
794
+
795
+ /**
796
+ * Create many CreditAuditLogs.
797
+ * @param {CreditAuditLogCreateManyArgs} args - Arguments to create many CreditAuditLogs.
798
+ * @example
799
+ * // Create many CreditAuditLogs
800
+ * const creditAuditLog = await prisma.creditAuditLog.createMany({
801
+ * data: [
802
+ * // ... provide data here
803
+ * ]
804
+ * })
805
+ *
806
+ */
807
+ createMany<T extends CreditAuditLogCreateManyArgs>(args?: Prisma.SelectSubset<T, CreditAuditLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
808
+
809
+ /**
810
+ * Create many CreditAuditLogs and returns the data saved in the database.
811
+ * @param {CreditAuditLogCreateManyAndReturnArgs} args - Arguments to create many CreditAuditLogs.
812
+ * @example
813
+ * // Create many CreditAuditLogs
814
+ * const creditAuditLog = await prisma.creditAuditLog.createManyAndReturn({
815
+ * data: [
816
+ * // ... provide data here
817
+ * ]
818
+ * })
819
+ *
820
+ * // Create many CreditAuditLogs and only return the `id`
821
+ * const creditAuditLogWithIdOnly = await prisma.creditAuditLog.createManyAndReturn({
822
+ * select: { id: true },
823
+ * data: [
824
+ * // ... provide data here
825
+ * ]
826
+ * })
827
+ * Note, that providing `undefined` is treated as the value not being there.
828
+ * Read more here: https://pris.ly/d/null-undefined
829
+ *
830
+ */
831
+ createManyAndReturn<T extends CreditAuditLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CreditAuditLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
832
+
833
+ /**
834
+ * Delete a CreditAuditLog.
835
+ * @param {CreditAuditLogDeleteArgs} args - Arguments to delete one CreditAuditLog.
836
+ * @example
837
+ * // Delete one CreditAuditLog
838
+ * const CreditAuditLog = await prisma.creditAuditLog.delete({
839
+ * where: {
840
+ * // ... filter to delete one CreditAuditLog
841
+ * }
842
+ * })
843
+ *
844
+ */
845
+ delete<T extends CreditAuditLogDeleteArgs>(args: Prisma.SelectSubset<T, CreditAuditLogDeleteArgs<ExtArgs>>): Prisma.Prisma__CreditAuditLogClient<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
846
+
847
+ /**
848
+ * Update one CreditAuditLog.
849
+ * @param {CreditAuditLogUpdateArgs} args - Arguments to update one CreditAuditLog.
850
+ * @example
851
+ * // Update one CreditAuditLog
852
+ * const creditAuditLog = await prisma.creditAuditLog.update({
853
+ * where: {
854
+ * // ... provide filter here
855
+ * },
856
+ * data: {
857
+ * // ... provide data here
858
+ * }
859
+ * })
860
+ *
861
+ */
862
+ update<T extends CreditAuditLogUpdateArgs>(args: Prisma.SelectSubset<T, CreditAuditLogUpdateArgs<ExtArgs>>): Prisma.Prisma__CreditAuditLogClient<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
863
+
864
+ /**
865
+ * Delete zero or more CreditAuditLogs.
866
+ * @param {CreditAuditLogDeleteManyArgs} args - Arguments to filter CreditAuditLogs to delete.
867
+ * @example
868
+ * // Delete a few CreditAuditLogs
869
+ * const { count } = await prisma.creditAuditLog.deleteMany({
870
+ * where: {
871
+ * // ... provide filter here
872
+ * }
873
+ * })
874
+ *
875
+ */
876
+ deleteMany<T extends CreditAuditLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, CreditAuditLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
877
+
878
+ /**
879
+ * Update zero or more CreditAuditLogs.
880
+ * Note, that providing `undefined` is treated as the value not being there.
881
+ * Read more here: https://pris.ly/d/null-undefined
882
+ * @param {CreditAuditLogUpdateManyArgs} args - Arguments to update one or more rows.
883
+ * @example
884
+ * // Update many CreditAuditLogs
885
+ * const creditAuditLog = await prisma.creditAuditLog.updateMany({
886
+ * where: {
887
+ * // ... provide filter here
888
+ * },
889
+ * data: {
890
+ * // ... provide data here
891
+ * }
892
+ * })
893
+ *
894
+ */
895
+ updateMany<T extends CreditAuditLogUpdateManyArgs>(args: Prisma.SelectSubset<T, CreditAuditLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
896
+
897
+ /**
898
+ * Update zero or more CreditAuditLogs and returns the data updated in the database.
899
+ * @param {CreditAuditLogUpdateManyAndReturnArgs} args - Arguments to update many CreditAuditLogs.
900
+ * @example
901
+ * // Update many CreditAuditLogs
902
+ * const creditAuditLog = await prisma.creditAuditLog.updateManyAndReturn({
903
+ * where: {
904
+ * // ... provide filter here
905
+ * },
906
+ * data: [
907
+ * // ... provide data here
908
+ * ]
909
+ * })
910
+ *
911
+ * // Update zero or more CreditAuditLogs and only return the `id`
912
+ * const creditAuditLogWithIdOnly = await prisma.creditAuditLog.updateManyAndReturn({
913
+ * select: { id: true },
914
+ * where: {
915
+ * // ... provide filter here
916
+ * },
917
+ * data: [
918
+ * // ... provide data here
919
+ * ]
920
+ * })
921
+ * Note, that providing `undefined` is treated as the value not being there.
922
+ * Read more here: https://pris.ly/d/null-undefined
923
+ *
924
+ */
925
+ updateManyAndReturn<T extends CreditAuditLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CreditAuditLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
926
+
927
+ /**
928
+ * Create or update one CreditAuditLog.
929
+ * @param {CreditAuditLogUpsertArgs} args - Arguments to update or create a CreditAuditLog.
930
+ * @example
931
+ * // Update or create a CreditAuditLog
932
+ * const creditAuditLog = await prisma.creditAuditLog.upsert({
933
+ * create: {
934
+ * // ... data to create a CreditAuditLog
935
+ * },
936
+ * update: {
937
+ * // ... in case it already exists, update
938
+ * },
939
+ * where: {
940
+ * // ... the filter for the CreditAuditLog we want to update
941
+ * }
942
+ * })
943
+ */
944
+ upsert<T extends CreditAuditLogUpsertArgs>(args: Prisma.SelectSubset<T, CreditAuditLogUpsertArgs<ExtArgs>>): Prisma.Prisma__CreditAuditLogClient<runtime.Types.Result.GetResult<Prisma.$CreditAuditLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
945
+
946
+
947
+ /**
948
+ * Count the number of CreditAuditLogs.
949
+ * Note, that providing `undefined` is treated as the value not being there.
950
+ * Read more here: https://pris.ly/d/null-undefined
951
+ * @param {CreditAuditLogCountArgs} args - Arguments to filter CreditAuditLogs to count.
952
+ * @example
953
+ * // Count the number of CreditAuditLogs
954
+ * const count = await prisma.creditAuditLog.count({
955
+ * where: {
956
+ * // ... the filter for the CreditAuditLogs we want to count
957
+ * }
958
+ * })
959
+ **/
960
+ count<T extends CreditAuditLogCountArgs>(
961
+ args?: Prisma.Subset<T, CreditAuditLogCountArgs>,
962
+ ): Prisma.PrismaPromise<
963
+ T extends runtime.Types.Utils.Record<'select', any>
964
+ ? T['select'] extends true
965
+ ? number
966
+ : Prisma.GetScalarType<T['select'], CreditAuditLogCountAggregateOutputType>
967
+ : number
968
+ >
969
+
970
+ /**
971
+ * Allows you to perform aggregations operations on a CreditAuditLog.
972
+ * Note, that providing `undefined` is treated as the value not being there.
973
+ * Read more here: https://pris.ly/d/null-undefined
974
+ * @param {CreditAuditLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
975
+ * @example
976
+ * // Ordered by age ascending
977
+ * // Where email contains prisma.io
978
+ * // Limited to the 10 users
979
+ * const aggregations = await prisma.user.aggregate({
980
+ * _avg: {
981
+ * age: true,
982
+ * },
983
+ * where: {
984
+ * email: {
985
+ * contains: "prisma.io",
986
+ * },
987
+ * },
988
+ * orderBy: {
989
+ * age: "asc",
990
+ * },
991
+ * take: 10,
992
+ * })
993
+ **/
994
+ aggregate<T extends CreditAuditLogAggregateArgs>(args: Prisma.Subset<T, CreditAuditLogAggregateArgs>): Prisma.PrismaPromise<GetCreditAuditLogAggregateType<T>>
995
+
996
+ /**
997
+ * Group by CreditAuditLog.
998
+ * Note, that providing `undefined` is treated as the value not being there.
999
+ * Read more here: https://pris.ly/d/null-undefined
1000
+ * @param {CreditAuditLogGroupByArgs} args - Group by arguments.
1001
+ * @example
1002
+ * // Group by city, order by createdAt, get count
1003
+ * const result = await prisma.user.groupBy({
1004
+ * by: ['city', 'createdAt'],
1005
+ * orderBy: {
1006
+ * createdAt: true
1007
+ * },
1008
+ * _count: {
1009
+ * _all: true
1010
+ * },
1011
+ * })
1012
+ *
1013
+ **/
1014
+ groupBy<
1015
+ T extends CreditAuditLogGroupByArgs,
1016
+ HasSelectOrTake extends Prisma.Or<
1017
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1018
+ Prisma.Extends<'take', Prisma.Keys<T>>
1019
+ >,
1020
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1021
+ ? { orderBy: CreditAuditLogGroupByArgs['orderBy'] }
1022
+ : { orderBy?: CreditAuditLogGroupByArgs['orderBy'] },
1023
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1024
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1025
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1026
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1027
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1028
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1029
+ InputErrors extends ByEmpty extends Prisma.True
1030
+ ? `Error: "by" must not be empty.`
1031
+ : HavingValid extends Prisma.False
1032
+ ? {
1033
+ [P in HavingFields]: P extends ByFields
1034
+ ? never
1035
+ : P extends string
1036
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1037
+ : [
1038
+ Error,
1039
+ 'Field ',
1040
+ P,
1041
+ ` in "having" needs to be provided in "by"`,
1042
+ ]
1043
+ }[HavingFields]
1044
+ : 'take' extends Prisma.Keys<T>
1045
+ ? 'orderBy' extends Prisma.Keys<T>
1046
+ ? ByValid extends Prisma.True
1047
+ ? {}
1048
+ : {
1049
+ [P in OrderFields]: P extends ByFields
1050
+ ? never
1051
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1052
+ }[OrderFields]
1053
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1054
+ : 'skip' extends Prisma.Keys<T>
1055
+ ? 'orderBy' extends Prisma.Keys<T>
1056
+ ? ByValid extends Prisma.True
1057
+ ? {}
1058
+ : {
1059
+ [P in OrderFields]: P extends ByFields
1060
+ ? never
1061
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1062
+ }[OrderFields]
1063
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1064
+ : ByValid extends Prisma.True
1065
+ ? {}
1066
+ : {
1067
+ [P in OrderFields]: P extends ByFields
1068
+ ? never
1069
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1070
+ }[OrderFields]
1071
+ >(args: Prisma.SubsetIntersection<T, CreditAuditLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCreditAuditLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1072
+ /**
1073
+ * Fields of the CreditAuditLog model
1074
+ */
1075
+ readonly fields: CreditAuditLogFieldRefs;
1076
+ }
1077
+
1078
+ /**
1079
+ * The delegate class that acts as a "Promise-like" for CreditAuditLog.
1080
+ * Why is this prefixed with `Prisma__`?
1081
+ * Because we want to prevent naming conflicts as mentioned in
1082
+ * https://github.com/prisma/prisma-client-js/issues/707
1083
+ */
1084
+ export interface Prisma__CreditAuditLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1085
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1086
+ 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>
1087
+ /**
1088
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1089
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1090
+ * @param onrejected The callback to execute when the Promise is rejected.
1091
+ * @returns A Promise for the completion of which ever callback is executed.
1092
+ */
1093
+ 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>
1094
+ /**
1095
+ * Attaches a callback for only the rejection of the Promise.
1096
+ * @param onrejected The callback to execute when the Promise is rejected.
1097
+ * @returns A Promise for the completion of the callback.
1098
+ */
1099
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1100
+ /**
1101
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1102
+ * resolved value cannot be modified from the callback.
1103
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1104
+ * @returns A Promise for the completion of the callback.
1105
+ */
1106
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1107
+ }
1108
+
1109
+
1110
+
1111
+
1112
+ /**
1113
+ * Fields of the CreditAuditLog model
1114
+ */
1115
+ export interface CreditAuditLogFieldRefs {
1116
+ readonly id: Prisma.FieldRef<"CreditAuditLog", 'BigInt'>
1117
+ readonly userId: Prisma.FieldRef<"CreditAuditLog", 'String'>
1118
+ readonly creditsChange: Prisma.FieldRef<"CreditAuditLog", 'Int'>
1119
+ readonly feature: Prisma.FieldRef<"CreditAuditLog", 'String'>
1120
+ readonly creditType: Prisma.FieldRef<"CreditAuditLog", 'String'>
1121
+ readonly operationType: Prisma.FieldRef<"CreditAuditLog", 'String'>
1122
+ readonly operationReferId: Prisma.FieldRef<"CreditAuditLog", 'String'>
1123
+ readonly createdAt: Prisma.FieldRef<"CreditAuditLog", 'DateTime'>
1124
+ readonly deleted: Prisma.FieldRef<"CreditAuditLog", 'Int'>
1125
+ }
1126
+
1127
+
1128
+ // Custom InputTypes
1129
+ /**
1130
+ * CreditAuditLog findUnique
1131
+ */
1132
+ export type CreditAuditLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1133
+ /**
1134
+ * Select specific fields to fetch from the CreditAuditLog
1135
+ */
1136
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1137
+ /**
1138
+ * Omit specific fields from the CreditAuditLog
1139
+ */
1140
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1141
+ /**
1142
+ * Choose, which related nodes to fetch as well
1143
+ */
1144
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1145
+ /**
1146
+ * Filter, which CreditAuditLog to fetch.
1147
+ */
1148
+ where: Prisma.CreditAuditLogWhereUniqueInput
1149
+ }
1150
+
1151
+ /**
1152
+ * CreditAuditLog findUniqueOrThrow
1153
+ */
1154
+ export type CreditAuditLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
+ /**
1156
+ * Select specific fields to fetch from the CreditAuditLog
1157
+ */
1158
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1159
+ /**
1160
+ * Omit specific fields from the CreditAuditLog
1161
+ */
1162
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1163
+ /**
1164
+ * Choose, which related nodes to fetch as well
1165
+ */
1166
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1167
+ /**
1168
+ * Filter, which CreditAuditLog to fetch.
1169
+ */
1170
+ where: Prisma.CreditAuditLogWhereUniqueInput
1171
+ }
1172
+
1173
+ /**
1174
+ * CreditAuditLog findFirst
1175
+ */
1176
+ export type CreditAuditLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1177
+ /**
1178
+ * Select specific fields to fetch from the CreditAuditLog
1179
+ */
1180
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1181
+ /**
1182
+ * Omit specific fields from the CreditAuditLog
1183
+ */
1184
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1185
+ /**
1186
+ * Choose, which related nodes to fetch as well
1187
+ */
1188
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1189
+ /**
1190
+ * Filter, which CreditAuditLog to fetch.
1191
+ */
1192
+ where?: Prisma.CreditAuditLogWhereInput
1193
+ /**
1194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1195
+ *
1196
+ * Determine the order of CreditAuditLogs to fetch.
1197
+ */
1198
+ orderBy?: Prisma.CreditAuditLogOrderByWithRelationInput | Prisma.CreditAuditLogOrderByWithRelationInput[]
1199
+ /**
1200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1201
+ *
1202
+ * Sets the position for searching for CreditAuditLogs.
1203
+ */
1204
+ cursor?: Prisma.CreditAuditLogWhereUniqueInput
1205
+ /**
1206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1207
+ *
1208
+ * Take `±n` CreditAuditLogs from the position of the cursor.
1209
+ */
1210
+ take?: number
1211
+ /**
1212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1213
+ *
1214
+ * Skip the first `n` CreditAuditLogs.
1215
+ */
1216
+ skip?: number
1217
+ /**
1218
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1219
+ *
1220
+ * Filter by unique combinations of CreditAuditLogs.
1221
+ */
1222
+ distinct?: Prisma.CreditAuditLogScalarFieldEnum | Prisma.CreditAuditLogScalarFieldEnum[]
1223
+ }
1224
+
1225
+ /**
1226
+ * CreditAuditLog findFirstOrThrow
1227
+ */
1228
+ export type CreditAuditLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1229
+ /**
1230
+ * Select specific fields to fetch from the CreditAuditLog
1231
+ */
1232
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1233
+ /**
1234
+ * Omit specific fields from the CreditAuditLog
1235
+ */
1236
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1237
+ /**
1238
+ * Choose, which related nodes to fetch as well
1239
+ */
1240
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1241
+ /**
1242
+ * Filter, which CreditAuditLog to fetch.
1243
+ */
1244
+ where?: Prisma.CreditAuditLogWhereInput
1245
+ /**
1246
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1247
+ *
1248
+ * Determine the order of CreditAuditLogs to fetch.
1249
+ */
1250
+ orderBy?: Prisma.CreditAuditLogOrderByWithRelationInput | Prisma.CreditAuditLogOrderByWithRelationInput[]
1251
+ /**
1252
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1253
+ *
1254
+ * Sets the position for searching for CreditAuditLogs.
1255
+ */
1256
+ cursor?: Prisma.CreditAuditLogWhereUniqueInput
1257
+ /**
1258
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1259
+ *
1260
+ * Take `±n` CreditAuditLogs from the position of the cursor.
1261
+ */
1262
+ take?: number
1263
+ /**
1264
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1265
+ *
1266
+ * Skip the first `n` CreditAuditLogs.
1267
+ */
1268
+ skip?: number
1269
+ /**
1270
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1271
+ *
1272
+ * Filter by unique combinations of CreditAuditLogs.
1273
+ */
1274
+ distinct?: Prisma.CreditAuditLogScalarFieldEnum | Prisma.CreditAuditLogScalarFieldEnum[]
1275
+ }
1276
+
1277
+ /**
1278
+ * CreditAuditLog findMany
1279
+ */
1280
+ export type CreditAuditLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1281
+ /**
1282
+ * Select specific fields to fetch from the CreditAuditLog
1283
+ */
1284
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1285
+ /**
1286
+ * Omit specific fields from the CreditAuditLog
1287
+ */
1288
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1289
+ /**
1290
+ * Choose, which related nodes to fetch as well
1291
+ */
1292
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1293
+ /**
1294
+ * Filter, which CreditAuditLogs to fetch.
1295
+ */
1296
+ where?: Prisma.CreditAuditLogWhereInput
1297
+ /**
1298
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1299
+ *
1300
+ * Determine the order of CreditAuditLogs to fetch.
1301
+ */
1302
+ orderBy?: Prisma.CreditAuditLogOrderByWithRelationInput | Prisma.CreditAuditLogOrderByWithRelationInput[]
1303
+ /**
1304
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1305
+ *
1306
+ * Sets the position for listing CreditAuditLogs.
1307
+ */
1308
+ cursor?: Prisma.CreditAuditLogWhereUniqueInput
1309
+ /**
1310
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1311
+ *
1312
+ * Take `±n` CreditAuditLogs from the position of the cursor.
1313
+ */
1314
+ take?: number
1315
+ /**
1316
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1317
+ *
1318
+ * Skip the first `n` CreditAuditLogs.
1319
+ */
1320
+ skip?: number
1321
+ distinct?: Prisma.CreditAuditLogScalarFieldEnum | Prisma.CreditAuditLogScalarFieldEnum[]
1322
+ }
1323
+
1324
+ /**
1325
+ * CreditAuditLog create
1326
+ */
1327
+ export type CreditAuditLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1328
+ /**
1329
+ * Select specific fields to fetch from the CreditAuditLog
1330
+ */
1331
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1332
+ /**
1333
+ * Omit specific fields from the CreditAuditLog
1334
+ */
1335
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1336
+ /**
1337
+ * Choose, which related nodes to fetch as well
1338
+ */
1339
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1340
+ /**
1341
+ * The data needed to create a CreditAuditLog.
1342
+ */
1343
+ data: Prisma.XOR<Prisma.CreditAuditLogCreateInput, Prisma.CreditAuditLogUncheckedCreateInput>
1344
+ }
1345
+
1346
+ /**
1347
+ * CreditAuditLog createMany
1348
+ */
1349
+ export type CreditAuditLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1350
+ /**
1351
+ * The data used to create many CreditAuditLogs.
1352
+ */
1353
+ data: Prisma.CreditAuditLogCreateManyInput | Prisma.CreditAuditLogCreateManyInput[]
1354
+ skipDuplicates?: boolean
1355
+ }
1356
+
1357
+ /**
1358
+ * CreditAuditLog createManyAndReturn
1359
+ */
1360
+ export type CreditAuditLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1361
+ /**
1362
+ * Select specific fields to fetch from the CreditAuditLog
1363
+ */
1364
+ select?: Prisma.CreditAuditLogSelectCreateManyAndReturn<ExtArgs> | null
1365
+ /**
1366
+ * Omit specific fields from the CreditAuditLog
1367
+ */
1368
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1369
+ /**
1370
+ * The data used to create many CreditAuditLogs.
1371
+ */
1372
+ data: Prisma.CreditAuditLogCreateManyInput | Prisma.CreditAuditLogCreateManyInput[]
1373
+ skipDuplicates?: boolean
1374
+ /**
1375
+ * Choose, which related nodes to fetch as well
1376
+ */
1377
+ include?: Prisma.CreditAuditLogIncludeCreateManyAndReturn<ExtArgs> | null
1378
+ }
1379
+
1380
+ /**
1381
+ * CreditAuditLog update
1382
+ */
1383
+ export type CreditAuditLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1384
+ /**
1385
+ * Select specific fields to fetch from the CreditAuditLog
1386
+ */
1387
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1388
+ /**
1389
+ * Omit specific fields from the CreditAuditLog
1390
+ */
1391
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1392
+ /**
1393
+ * Choose, which related nodes to fetch as well
1394
+ */
1395
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1396
+ /**
1397
+ * The data needed to update a CreditAuditLog.
1398
+ */
1399
+ data: Prisma.XOR<Prisma.CreditAuditLogUpdateInput, Prisma.CreditAuditLogUncheckedUpdateInput>
1400
+ /**
1401
+ * Choose, which CreditAuditLog to update.
1402
+ */
1403
+ where: Prisma.CreditAuditLogWhereUniqueInput
1404
+ }
1405
+
1406
+ /**
1407
+ * CreditAuditLog updateMany
1408
+ */
1409
+ export type CreditAuditLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1410
+ /**
1411
+ * The data used to update CreditAuditLogs.
1412
+ */
1413
+ data: Prisma.XOR<Prisma.CreditAuditLogUpdateManyMutationInput, Prisma.CreditAuditLogUncheckedUpdateManyInput>
1414
+ /**
1415
+ * Filter which CreditAuditLogs to update
1416
+ */
1417
+ where?: Prisma.CreditAuditLogWhereInput
1418
+ /**
1419
+ * Limit how many CreditAuditLogs to update.
1420
+ */
1421
+ limit?: number
1422
+ }
1423
+
1424
+ /**
1425
+ * CreditAuditLog updateManyAndReturn
1426
+ */
1427
+ export type CreditAuditLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1428
+ /**
1429
+ * Select specific fields to fetch from the CreditAuditLog
1430
+ */
1431
+ select?: Prisma.CreditAuditLogSelectUpdateManyAndReturn<ExtArgs> | null
1432
+ /**
1433
+ * Omit specific fields from the CreditAuditLog
1434
+ */
1435
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1436
+ /**
1437
+ * The data used to update CreditAuditLogs.
1438
+ */
1439
+ data: Prisma.XOR<Prisma.CreditAuditLogUpdateManyMutationInput, Prisma.CreditAuditLogUncheckedUpdateManyInput>
1440
+ /**
1441
+ * Filter which CreditAuditLogs to update
1442
+ */
1443
+ where?: Prisma.CreditAuditLogWhereInput
1444
+ /**
1445
+ * Limit how many CreditAuditLogs to update.
1446
+ */
1447
+ limit?: number
1448
+ /**
1449
+ * Choose, which related nodes to fetch as well
1450
+ */
1451
+ include?: Prisma.CreditAuditLogIncludeUpdateManyAndReturn<ExtArgs> | null
1452
+ }
1453
+
1454
+ /**
1455
+ * CreditAuditLog upsert
1456
+ */
1457
+ export type CreditAuditLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1458
+ /**
1459
+ * Select specific fields to fetch from the CreditAuditLog
1460
+ */
1461
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1462
+ /**
1463
+ * Omit specific fields from the CreditAuditLog
1464
+ */
1465
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1466
+ /**
1467
+ * Choose, which related nodes to fetch as well
1468
+ */
1469
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1470
+ /**
1471
+ * The filter to search for the CreditAuditLog to update in case it exists.
1472
+ */
1473
+ where: Prisma.CreditAuditLogWhereUniqueInput
1474
+ /**
1475
+ * In case the CreditAuditLog found by the `where` argument doesn't exist, create a new CreditAuditLog with this data.
1476
+ */
1477
+ create: Prisma.XOR<Prisma.CreditAuditLogCreateInput, Prisma.CreditAuditLogUncheckedCreateInput>
1478
+ /**
1479
+ * In case the CreditAuditLog was found with the provided `where` argument, update it with this data.
1480
+ */
1481
+ update: Prisma.XOR<Prisma.CreditAuditLogUpdateInput, Prisma.CreditAuditLogUncheckedUpdateInput>
1482
+ }
1483
+
1484
+ /**
1485
+ * CreditAuditLog delete
1486
+ */
1487
+ export type CreditAuditLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1488
+ /**
1489
+ * Select specific fields to fetch from the CreditAuditLog
1490
+ */
1491
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1492
+ /**
1493
+ * Omit specific fields from the CreditAuditLog
1494
+ */
1495
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1496
+ /**
1497
+ * Choose, which related nodes to fetch as well
1498
+ */
1499
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1500
+ /**
1501
+ * Filter which CreditAuditLog to delete.
1502
+ */
1503
+ where: Prisma.CreditAuditLogWhereUniqueInput
1504
+ }
1505
+
1506
+ /**
1507
+ * CreditAuditLog deleteMany
1508
+ */
1509
+ export type CreditAuditLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1510
+ /**
1511
+ * Filter which CreditAuditLogs to delete
1512
+ */
1513
+ where?: Prisma.CreditAuditLogWhereInput
1514
+ /**
1515
+ * Limit how many CreditAuditLogs to delete.
1516
+ */
1517
+ limit?: number
1518
+ }
1519
+
1520
+ /**
1521
+ * CreditAuditLog without action
1522
+ */
1523
+ export type CreditAuditLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1524
+ /**
1525
+ * Select specific fields to fetch from the CreditAuditLog
1526
+ */
1527
+ select?: Prisma.CreditAuditLogSelect<ExtArgs> | null
1528
+ /**
1529
+ * Omit specific fields from the CreditAuditLog
1530
+ */
1531
+ omit?: Prisma.CreditAuditLogOmit<ExtArgs> | null
1532
+ /**
1533
+ * Choose, which related nodes to fetch as well
1534
+ */
1535
+ include?: Prisma.CreditAuditLogInclude<ExtArgs> | null
1536
+ }