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