@valentine-efagene/qshelter-common 2.0.51 → 2.0.53

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 (118) hide show
  1. package/dist/src/middleware/tenant.js +3 -3
  2. package/package.json +1 -1
  3. package/dist/generated/client/models/ContractPhaseStep.d.ts +0 -1819
  4. package/dist/generated/client/models/ContractPhaseStep.js +0 -1
  5. package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +0 -1253
  6. package/dist/generated/client/models/ContractPhaseStepApproval.js +0 -1
  7. package/dist/generated/client/models/ContractPhaseStepDocument.d.ts +0 -1052
  8. package/dist/generated/client/models/ContractPhaseStepDocument.js +0 -1
  9. package/dist/generated/client/models/Mortgage.d.ts +0 -2777
  10. package/dist/generated/client/models/Mortgage.js +0 -1
  11. package/dist/generated/client/models/MortgageDocument.d.ts +0 -1118
  12. package/dist/generated/client/models/MortgageDocument.js +0 -1
  13. package/dist/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
  14. package/dist/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
  15. package/dist/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
  16. package/dist/generated/client/models/MortgageDownpaymentPayment.js +0 -1
  17. package/dist/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
  18. package/dist/generated/client/models/MortgageDownpaymentPlan.js +0 -1
  19. package/dist/generated/client/models/MortgageStep.d.ts +0 -1222
  20. package/dist/generated/client/models/MortgageStep.js +0 -1
  21. package/dist/generated/client/models/MortgageTransition.d.ts +0 -1118
  22. package/dist/generated/client/models/MortgageTransition.js +0 -1
  23. package/dist/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
  24. package/dist/generated/client/models/MortgageTransitionEvent.js +0 -1
  25. package/dist/generated/client/models/MortgageType.d.ts +0 -1052
  26. package/dist/generated/client/models/MortgageType.js +0 -1
  27. package/dist/generated/client/models/Payment.d.ts +0 -2026
  28. package/dist/generated/client/models/Payment.js +0 -1
  29. package/dist/generated/client/models/PaymentInstallment.d.ts +0 -1539
  30. package/dist/generated/client/models/PaymentInstallment.js +0 -1
  31. package/dist/generated/client/models/PaymentSchedule.d.ts +0 -1450
  32. package/dist/generated/client/models/PaymentSchedule.js +0 -1
  33. package/dist/index.d.ts +0 -6
  34. package/dist/index.js +0 -6
  35. package/dist/src/generated/client/client.d.ts +0 -201
  36. package/dist/src/generated/client/client.js +0 -32
  37. package/dist/src/generated/client/commonInputTypes.d.ts +0 -403
  38. package/dist/src/generated/client/commonInputTypes.js +0 -10
  39. package/dist/src/generated/client/enums.d.ts +0 -1
  40. package/dist/src/generated/client/enums.js +0 -10
  41. package/dist/src/generated/client/internal/class.d.ts +0 -511
  42. package/dist/src/generated/client/internal/class.js +0 -40
  43. package/dist/src/generated/client/internal/prismaNamespace.d.ts +0 -3571
  44. package/dist/src/generated/client/internal/prismaNamespace.js +0 -739
  45. package/dist/src/generated/client/models/Amenity.d.ts +0 -1020
  46. package/dist/src/generated/client/models/Amenity.js +0 -1
  47. package/dist/src/generated/client/models/Contract.d.ts +0 -2099
  48. package/dist/src/generated/client/models/Contract.js +0 -1
  49. package/dist/src/generated/client/models/ContractDocument.d.ts +0 -1118
  50. package/dist/src/generated/client/models/ContractDocument.js +0 -1
  51. package/dist/src/generated/client/models/DeviceEndpoint.d.ts +0 -1118
  52. package/dist/src/generated/client/models/DeviceEndpoint.js +0 -1
  53. package/dist/src/generated/client/models/EmailPreference.d.ts +0 -1151
  54. package/dist/src/generated/client/models/EmailPreference.js +0 -1
  55. package/dist/src/generated/client/models/Mortgage.d.ts +0 -2777
  56. package/dist/src/generated/client/models/Mortgage.js +0 -1
  57. package/dist/src/generated/client/models/MortgageDocument.d.ts +0 -1118
  58. package/dist/src/generated/client/models/MortgageDocument.js +0 -1
  59. package/dist/src/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
  60. package/dist/src/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
  61. package/dist/src/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
  62. package/dist/src/generated/client/models/MortgageDownpaymentPayment.js +0 -1
  63. package/dist/src/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
  64. package/dist/src/generated/client/models/MortgageDownpaymentPlan.js +0 -1
  65. package/dist/src/generated/client/models/MortgageStep.d.ts +0 -1222
  66. package/dist/src/generated/client/models/MortgageStep.js +0 -1
  67. package/dist/src/generated/client/models/MortgageTransition.d.ts +0 -1118
  68. package/dist/src/generated/client/models/MortgageTransition.js +0 -1
  69. package/dist/src/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
  70. package/dist/src/generated/client/models/MortgageTransitionEvent.js +0 -1
  71. package/dist/src/generated/client/models/MortgageType.d.ts +0 -1052
  72. package/dist/src/generated/client/models/MortgageType.js +0 -1
  73. package/dist/src/generated/client/models/OAuthState.d.ts +0 -864
  74. package/dist/src/generated/client/models/OAuthState.js +0 -1
  75. package/dist/src/generated/client/models/PasswordReset.d.ts +0 -1085
  76. package/dist/src/generated/client/models/PasswordReset.js +0 -1
  77. package/dist/src/generated/client/models/Payment.d.ts +0 -2026
  78. package/dist/src/generated/client/models/Payment.js +0 -1
  79. package/dist/src/generated/client/models/PaymentInstallment.d.ts +0 -1539
  80. package/dist/src/generated/client/models/PaymentInstallment.js +0 -1
  81. package/dist/src/generated/client/models/PaymentPlan.d.ts +0 -2148
  82. package/dist/src/generated/client/models/PaymentPlan.js +0 -1
  83. package/dist/src/generated/client/models/PaymentSchedule.d.ts +0 -1450
  84. package/dist/src/generated/client/models/PaymentSchedule.js +0 -1
  85. package/dist/src/generated/client/models/Permission.d.ts +0 -1115
  86. package/dist/src/generated/client/models/Permission.js +0 -1
  87. package/dist/src/generated/client/models/Property.d.ts +0 -3254
  88. package/dist/src/generated/client/models/Property.js +0 -1
  89. package/dist/src/generated/client/models/PropertyAmenity.d.ts +0 -1080
  90. package/dist/src/generated/client/models/PropertyAmenity.js +0 -1
  91. package/dist/src/generated/client/models/PropertyDocument.d.ts +0 -1118
  92. package/dist/src/generated/client/models/PropertyDocument.js +0 -1
  93. package/dist/src/generated/client/models/PropertyMedia.d.ts +0 -1331
  94. package/dist/src/generated/client/models/PropertyMedia.js +0 -1
  95. package/dist/src/generated/client/models/RefreshToken.d.ts +0 -1085
  96. package/dist/src/generated/client/models/RefreshToken.js +0 -1
  97. package/dist/src/generated/client/models/Role.d.ts +0 -1153
  98. package/dist/src/generated/client/models/Role.js +0 -1
  99. package/dist/src/generated/client/models/RolePermission.d.ts +0 -1080
  100. package/dist/src/generated/client/models/RolePermission.js +0 -1
  101. package/dist/src/generated/client/models/Settings.d.ts +0 -916
  102. package/dist/src/generated/client/models/Settings.js +0 -1
  103. package/dist/src/generated/client/models/Social.d.ts +0 -1090
  104. package/dist/src/generated/client/models/Social.js +0 -1
  105. package/dist/src/generated/client/models/Tenant.d.ts +0 -1082
  106. package/dist/src/generated/client/models/Tenant.js +0 -1
  107. package/dist/src/generated/client/models/Transaction.d.ts +0 -1222
  108. package/dist/src/generated/client/models/Transaction.js +0 -1
  109. package/dist/src/generated/client/models/User.d.ts +0 -4239
  110. package/dist/src/generated/client/models/User.js +0 -1
  111. package/dist/src/generated/client/models/UserRole.d.ts +0 -1080
  112. package/dist/src/generated/client/models/UserRole.js +0 -1
  113. package/dist/src/generated/client/models/UserSuspension.d.ts +0 -1085
  114. package/dist/src/generated/client/models/UserSuspension.js +0 -1
  115. package/dist/src/generated/client/models/Wallet.d.ts +0 -1191
  116. package/dist/src/generated/client/models/Wallet.js +0 -1
  117. package/dist/src/generated/client/models.d.ts +0 -37
  118. package/dist/src/generated/client/models.js +0 -1
@@ -1,1191 +0,0 @@
1
- import type * as runtime from "@prisma/client/runtime/client";
2
- import type * as Prisma from "../internal/prismaNamespace.js";
3
- /**
4
- * Model Wallet
5
- *
6
- */
7
- export type WalletModel = runtime.Types.Result.DefaultSelection<Prisma.$WalletPayload>;
8
- export type AggregateWallet = {
9
- _count: WalletCountAggregateOutputType | null;
10
- _avg: WalletAvgAggregateOutputType | null;
11
- _sum: WalletSumAggregateOutputType | null;
12
- _min: WalletMinAggregateOutputType | null;
13
- _max: WalletMaxAggregateOutputType | null;
14
- };
15
- export type WalletAvgAggregateOutputType = {
16
- balance: number | null;
17
- };
18
- export type WalletSumAggregateOutputType = {
19
- balance: number | null;
20
- };
21
- export type WalletMinAggregateOutputType = {
22
- id: string | null;
23
- balance: number | null;
24
- currency: string | null;
25
- createdAt: Date | null;
26
- updatedAt: Date | null;
27
- };
28
- export type WalletMaxAggregateOutputType = {
29
- id: string | null;
30
- balance: number | null;
31
- currency: string | null;
32
- createdAt: Date | null;
33
- updatedAt: Date | null;
34
- };
35
- export type WalletCountAggregateOutputType = {
36
- id: number;
37
- balance: number;
38
- currency: number;
39
- createdAt: number;
40
- updatedAt: number;
41
- _all: number;
42
- };
43
- export type WalletAvgAggregateInputType = {
44
- balance?: true;
45
- };
46
- export type WalletSumAggregateInputType = {
47
- balance?: true;
48
- };
49
- export type WalletMinAggregateInputType = {
50
- id?: true;
51
- balance?: true;
52
- currency?: true;
53
- createdAt?: true;
54
- updatedAt?: true;
55
- };
56
- export type WalletMaxAggregateInputType = {
57
- id?: true;
58
- balance?: true;
59
- currency?: true;
60
- createdAt?: true;
61
- updatedAt?: true;
62
- };
63
- export type WalletCountAggregateInputType = {
64
- id?: true;
65
- balance?: true;
66
- currency?: true;
67
- createdAt?: true;
68
- updatedAt?: true;
69
- _all?: true;
70
- };
71
- export type WalletAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
72
- /**
73
- * Filter which Wallet to aggregate.
74
- */
75
- where?: Prisma.WalletWhereInput;
76
- /**
77
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
78
- *
79
- * Determine the order of Wallets to fetch.
80
- */
81
- orderBy?: Prisma.WalletOrderByWithRelationInput | Prisma.WalletOrderByWithRelationInput[];
82
- /**
83
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
84
- *
85
- * Sets the start position
86
- */
87
- cursor?: Prisma.WalletWhereUniqueInput;
88
- /**
89
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
90
- *
91
- * Take `±n` Wallets from the position of the cursor.
92
- */
93
- take?: number;
94
- /**
95
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
96
- *
97
- * Skip the first `n` Wallets.
98
- */
99
- skip?: number;
100
- /**
101
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
102
- *
103
- * Count returned Wallets
104
- **/
105
- _count?: true | WalletCountAggregateInputType;
106
- /**
107
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
108
- *
109
- * Select which fields to average
110
- **/
111
- _avg?: WalletAvgAggregateInputType;
112
- /**
113
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
114
- *
115
- * Select which fields to sum
116
- **/
117
- _sum?: WalletSumAggregateInputType;
118
- /**
119
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
120
- *
121
- * Select which fields to find the minimum value
122
- **/
123
- _min?: WalletMinAggregateInputType;
124
- /**
125
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
126
- *
127
- * Select which fields to find the maximum value
128
- **/
129
- _max?: WalletMaxAggregateInputType;
130
- };
131
- export type GetWalletAggregateType<T extends WalletAggregateArgs> = {
132
- [P in keyof T & keyof AggregateWallet]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateWallet[P]> : Prisma.GetScalarType<T[P], AggregateWallet[P]>;
133
- };
134
- export type WalletGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
135
- where?: Prisma.WalletWhereInput;
136
- orderBy?: Prisma.WalletOrderByWithAggregationInput | Prisma.WalletOrderByWithAggregationInput[];
137
- by: Prisma.WalletScalarFieldEnum[] | Prisma.WalletScalarFieldEnum;
138
- having?: Prisma.WalletScalarWhereWithAggregatesInput;
139
- take?: number;
140
- skip?: number;
141
- _count?: WalletCountAggregateInputType | true;
142
- _avg?: WalletAvgAggregateInputType;
143
- _sum?: WalletSumAggregateInputType;
144
- _min?: WalletMinAggregateInputType;
145
- _max?: WalletMaxAggregateInputType;
146
- };
147
- export type WalletGroupByOutputType = {
148
- id: string;
149
- balance: number;
150
- currency: string;
151
- createdAt: Date;
152
- updatedAt: Date;
153
- _count: WalletCountAggregateOutputType | null;
154
- _avg: WalletAvgAggregateOutputType | null;
155
- _sum: WalletSumAggregateOutputType | null;
156
- _min: WalletMinAggregateOutputType | null;
157
- _max: WalletMaxAggregateOutputType | null;
158
- };
159
- type GetWalletGroupByPayload<T extends WalletGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<WalletGroupByOutputType, T['by']> & {
160
- [P in ((keyof T) & (keyof WalletGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], WalletGroupByOutputType[P]> : Prisma.GetScalarType<T[P], WalletGroupByOutputType[P]>;
161
- }>>;
162
- export type WalletWhereInput = {
163
- AND?: Prisma.WalletWhereInput | Prisma.WalletWhereInput[];
164
- OR?: Prisma.WalletWhereInput[];
165
- NOT?: Prisma.WalletWhereInput | Prisma.WalletWhereInput[];
166
- id?: Prisma.StringFilter<"Wallet"> | string;
167
- balance?: Prisma.FloatFilter<"Wallet"> | number;
168
- currency?: Prisma.StringFilter<"Wallet"> | string;
169
- createdAt?: Prisma.DateTimeFilter<"Wallet"> | Date | string;
170
- updatedAt?: Prisma.DateTimeFilter<"Wallet"> | Date | string;
171
- user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
172
- transactions?: Prisma.TransactionListRelationFilter;
173
- };
174
- export type WalletOrderByWithRelationInput = {
175
- id?: Prisma.SortOrder;
176
- balance?: Prisma.SortOrder;
177
- currency?: Prisma.SortOrder;
178
- createdAt?: Prisma.SortOrder;
179
- updatedAt?: Prisma.SortOrder;
180
- user?: Prisma.UserOrderByWithRelationInput;
181
- transactions?: Prisma.TransactionOrderByRelationAggregateInput;
182
- _relevance?: Prisma.WalletOrderByRelevanceInput;
183
- };
184
- export type WalletWhereUniqueInput = Prisma.AtLeast<{
185
- id?: string;
186
- AND?: Prisma.WalletWhereInput | Prisma.WalletWhereInput[];
187
- OR?: Prisma.WalletWhereInput[];
188
- NOT?: Prisma.WalletWhereInput | Prisma.WalletWhereInput[];
189
- balance?: Prisma.FloatFilter<"Wallet"> | number;
190
- currency?: Prisma.StringFilter<"Wallet"> | string;
191
- createdAt?: Prisma.DateTimeFilter<"Wallet"> | Date | string;
192
- updatedAt?: Prisma.DateTimeFilter<"Wallet"> | Date | string;
193
- user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
194
- transactions?: Prisma.TransactionListRelationFilter;
195
- }, "id">;
196
- export type WalletOrderByWithAggregationInput = {
197
- id?: Prisma.SortOrder;
198
- balance?: Prisma.SortOrder;
199
- currency?: Prisma.SortOrder;
200
- createdAt?: Prisma.SortOrder;
201
- updatedAt?: Prisma.SortOrder;
202
- _count?: Prisma.WalletCountOrderByAggregateInput;
203
- _avg?: Prisma.WalletAvgOrderByAggregateInput;
204
- _max?: Prisma.WalletMaxOrderByAggregateInput;
205
- _min?: Prisma.WalletMinOrderByAggregateInput;
206
- _sum?: Prisma.WalletSumOrderByAggregateInput;
207
- };
208
- export type WalletScalarWhereWithAggregatesInput = {
209
- AND?: Prisma.WalletScalarWhereWithAggregatesInput | Prisma.WalletScalarWhereWithAggregatesInput[];
210
- OR?: Prisma.WalletScalarWhereWithAggregatesInput[];
211
- NOT?: Prisma.WalletScalarWhereWithAggregatesInput | Prisma.WalletScalarWhereWithAggregatesInput[];
212
- id?: Prisma.StringWithAggregatesFilter<"Wallet"> | string;
213
- balance?: Prisma.FloatWithAggregatesFilter<"Wallet"> | number;
214
- currency?: Prisma.StringWithAggregatesFilter<"Wallet"> | string;
215
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"Wallet"> | Date | string;
216
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Wallet"> | Date | string;
217
- };
218
- export type WalletCreateInput = {
219
- id?: string;
220
- balance?: number;
221
- currency?: string;
222
- createdAt?: Date | string;
223
- updatedAt?: Date | string;
224
- user?: Prisma.UserCreateNestedOneWithoutWalletInput;
225
- transactions?: Prisma.TransactionCreateNestedManyWithoutWalletInput;
226
- };
227
- export type WalletUncheckedCreateInput = {
228
- id?: string;
229
- balance?: number;
230
- currency?: string;
231
- createdAt?: Date | string;
232
- updatedAt?: Date | string;
233
- user?: Prisma.UserUncheckedCreateNestedOneWithoutWalletInput;
234
- transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutWalletInput;
235
- };
236
- export type WalletUpdateInput = {
237
- id?: Prisma.StringFieldUpdateOperationsInput | string;
238
- balance?: Prisma.FloatFieldUpdateOperationsInput | number;
239
- currency?: Prisma.StringFieldUpdateOperationsInput | string;
240
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
241
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
242
- user?: Prisma.UserUpdateOneWithoutWalletNestedInput;
243
- transactions?: Prisma.TransactionUpdateManyWithoutWalletNestedInput;
244
- };
245
- export type WalletUncheckedUpdateInput = {
246
- id?: Prisma.StringFieldUpdateOperationsInput | string;
247
- balance?: Prisma.FloatFieldUpdateOperationsInput | number;
248
- currency?: Prisma.StringFieldUpdateOperationsInput | string;
249
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
250
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
251
- user?: Prisma.UserUncheckedUpdateOneWithoutWalletNestedInput;
252
- transactions?: Prisma.TransactionUncheckedUpdateManyWithoutWalletNestedInput;
253
- };
254
- export type WalletCreateManyInput = {
255
- id?: string;
256
- balance?: number;
257
- currency?: string;
258
- createdAt?: Date | string;
259
- updatedAt?: Date | string;
260
- };
261
- export type WalletUpdateManyMutationInput = {
262
- id?: Prisma.StringFieldUpdateOperationsInput | string;
263
- balance?: Prisma.FloatFieldUpdateOperationsInput | number;
264
- currency?: Prisma.StringFieldUpdateOperationsInput | string;
265
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
266
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
267
- };
268
- export type WalletUncheckedUpdateManyInput = {
269
- id?: Prisma.StringFieldUpdateOperationsInput | string;
270
- balance?: Prisma.FloatFieldUpdateOperationsInput | number;
271
- currency?: Prisma.StringFieldUpdateOperationsInput | string;
272
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
273
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
274
- };
275
- export type WalletNullableScalarRelationFilter = {
276
- is?: Prisma.WalletWhereInput | null;
277
- isNot?: Prisma.WalletWhereInput | null;
278
- };
279
- export type WalletOrderByRelevanceInput = {
280
- fields: Prisma.WalletOrderByRelevanceFieldEnum | Prisma.WalletOrderByRelevanceFieldEnum[];
281
- sort: Prisma.SortOrder;
282
- search: string;
283
- };
284
- export type WalletCountOrderByAggregateInput = {
285
- id?: Prisma.SortOrder;
286
- balance?: Prisma.SortOrder;
287
- currency?: Prisma.SortOrder;
288
- createdAt?: Prisma.SortOrder;
289
- updatedAt?: Prisma.SortOrder;
290
- };
291
- export type WalletAvgOrderByAggregateInput = {
292
- balance?: Prisma.SortOrder;
293
- };
294
- export type WalletMaxOrderByAggregateInput = {
295
- id?: Prisma.SortOrder;
296
- balance?: Prisma.SortOrder;
297
- currency?: Prisma.SortOrder;
298
- createdAt?: Prisma.SortOrder;
299
- updatedAt?: Prisma.SortOrder;
300
- };
301
- export type WalletMinOrderByAggregateInput = {
302
- id?: Prisma.SortOrder;
303
- balance?: Prisma.SortOrder;
304
- currency?: Prisma.SortOrder;
305
- createdAt?: Prisma.SortOrder;
306
- updatedAt?: Prisma.SortOrder;
307
- };
308
- export type WalletSumOrderByAggregateInput = {
309
- balance?: Prisma.SortOrder;
310
- };
311
- export type WalletScalarRelationFilter = {
312
- is?: Prisma.WalletWhereInput;
313
- isNot?: Prisma.WalletWhereInput;
314
- };
315
- export type WalletCreateNestedOneWithoutUserInput = {
316
- create?: Prisma.XOR<Prisma.WalletCreateWithoutUserInput, Prisma.WalletUncheckedCreateWithoutUserInput>;
317
- connectOrCreate?: Prisma.WalletCreateOrConnectWithoutUserInput;
318
- connect?: Prisma.WalletWhereUniqueInput;
319
- };
320
- export type WalletUpdateOneWithoutUserNestedInput = {
321
- create?: Prisma.XOR<Prisma.WalletCreateWithoutUserInput, Prisma.WalletUncheckedCreateWithoutUserInput>;
322
- connectOrCreate?: Prisma.WalletCreateOrConnectWithoutUserInput;
323
- upsert?: Prisma.WalletUpsertWithoutUserInput;
324
- disconnect?: Prisma.WalletWhereInput | boolean;
325
- delete?: Prisma.WalletWhereInput | boolean;
326
- connect?: Prisma.WalletWhereUniqueInput;
327
- update?: Prisma.XOR<Prisma.XOR<Prisma.WalletUpdateToOneWithWhereWithoutUserInput, Prisma.WalletUpdateWithoutUserInput>, Prisma.WalletUncheckedUpdateWithoutUserInput>;
328
- };
329
- export type FloatFieldUpdateOperationsInput = {
330
- set?: number;
331
- increment?: number;
332
- decrement?: number;
333
- multiply?: number;
334
- divide?: number;
335
- };
336
- export type WalletCreateNestedOneWithoutTransactionsInput = {
337
- create?: Prisma.XOR<Prisma.WalletCreateWithoutTransactionsInput, Prisma.WalletUncheckedCreateWithoutTransactionsInput>;
338
- connectOrCreate?: Prisma.WalletCreateOrConnectWithoutTransactionsInput;
339
- connect?: Prisma.WalletWhereUniqueInput;
340
- };
341
- export type WalletUpdateOneRequiredWithoutTransactionsNestedInput = {
342
- create?: Prisma.XOR<Prisma.WalletCreateWithoutTransactionsInput, Prisma.WalletUncheckedCreateWithoutTransactionsInput>;
343
- connectOrCreate?: Prisma.WalletCreateOrConnectWithoutTransactionsInput;
344
- upsert?: Prisma.WalletUpsertWithoutTransactionsInput;
345
- connect?: Prisma.WalletWhereUniqueInput;
346
- update?: Prisma.XOR<Prisma.XOR<Prisma.WalletUpdateToOneWithWhereWithoutTransactionsInput, Prisma.WalletUpdateWithoutTransactionsInput>, Prisma.WalletUncheckedUpdateWithoutTransactionsInput>;
347
- };
348
- export type WalletCreateWithoutUserInput = {
349
- id?: string;
350
- balance?: number;
351
- currency?: string;
352
- createdAt?: Date | string;
353
- updatedAt?: Date | string;
354
- transactions?: Prisma.TransactionCreateNestedManyWithoutWalletInput;
355
- };
356
- export type WalletUncheckedCreateWithoutUserInput = {
357
- id?: string;
358
- balance?: number;
359
- currency?: string;
360
- createdAt?: Date | string;
361
- updatedAt?: Date | string;
362
- transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutWalletInput;
363
- };
364
- export type WalletCreateOrConnectWithoutUserInput = {
365
- where: Prisma.WalletWhereUniqueInput;
366
- create: Prisma.XOR<Prisma.WalletCreateWithoutUserInput, Prisma.WalletUncheckedCreateWithoutUserInput>;
367
- };
368
- export type WalletUpsertWithoutUserInput = {
369
- update: Prisma.XOR<Prisma.WalletUpdateWithoutUserInput, Prisma.WalletUncheckedUpdateWithoutUserInput>;
370
- create: Prisma.XOR<Prisma.WalletCreateWithoutUserInput, Prisma.WalletUncheckedCreateWithoutUserInput>;
371
- where?: Prisma.WalletWhereInput;
372
- };
373
- export type WalletUpdateToOneWithWhereWithoutUserInput = {
374
- where?: Prisma.WalletWhereInput;
375
- data: Prisma.XOR<Prisma.WalletUpdateWithoutUserInput, Prisma.WalletUncheckedUpdateWithoutUserInput>;
376
- };
377
- export type WalletUpdateWithoutUserInput = {
378
- id?: Prisma.StringFieldUpdateOperationsInput | string;
379
- balance?: Prisma.FloatFieldUpdateOperationsInput | number;
380
- currency?: Prisma.StringFieldUpdateOperationsInput | string;
381
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
382
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
383
- transactions?: Prisma.TransactionUpdateManyWithoutWalletNestedInput;
384
- };
385
- export type WalletUncheckedUpdateWithoutUserInput = {
386
- id?: Prisma.StringFieldUpdateOperationsInput | string;
387
- balance?: Prisma.FloatFieldUpdateOperationsInput | number;
388
- currency?: Prisma.StringFieldUpdateOperationsInput | string;
389
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
390
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
391
- transactions?: Prisma.TransactionUncheckedUpdateManyWithoutWalletNestedInput;
392
- };
393
- export type WalletCreateWithoutTransactionsInput = {
394
- id?: string;
395
- balance?: number;
396
- currency?: string;
397
- createdAt?: Date | string;
398
- updatedAt?: Date | string;
399
- user?: Prisma.UserCreateNestedOneWithoutWalletInput;
400
- };
401
- export type WalletUncheckedCreateWithoutTransactionsInput = {
402
- id?: string;
403
- balance?: number;
404
- currency?: string;
405
- createdAt?: Date | string;
406
- updatedAt?: Date | string;
407
- user?: Prisma.UserUncheckedCreateNestedOneWithoutWalletInput;
408
- };
409
- export type WalletCreateOrConnectWithoutTransactionsInput = {
410
- where: Prisma.WalletWhereUniqueInput;
411
- create: Prisma.XOR<Prisma.WalletCreateWithoutTransactionsInput, Prisma.WalletUncheckedCreateWithoutTransactionsInput>;
412
- };
413
- export type WalletUpsertWithoutTransactionsInput = {
414
- update: Prisma.XOR<Prisma.WalletUpdateWithoutTransactionsInput, Prisma.WalletUncheckedUpdateWithoutTransactionsInput>;
415
- create: Prisma.XOR<Prisma.WalletCreateWithoutTransactionsInput, Prisma.WalletUncheckedCreateWithoutTransactionsInput>;
416
- where?: Prisma.WalletWhereInput;
417
- };
418
- export type WalletUpdateToOneWithWhereWithoutTransactionsInput = {
419
- where?: Prisma.WalletWhereInput;
420
- data: Prisma.XOR<Prisma.WalletUpdateWithoutTransactionsInput, Prisma.WalletUncheckedUpdateWithoutTransactionsInput>;
421
- };
422
- export type WalletUpdateWithoutTransactionsInput = {
423
- id?: Prisma.StringFieldUpdateOperationsInput | string;
424
- balance?: Prisma.FloatFieldUpdateOperationsInput | number;
425
- currency?: Prisma.StringFieldUpdateOperationsInput | string;
426
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
427
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
428
- user?: Prisma.UserUpdateOneWithoutWalletNestedInput;
429
- };
430
- export type WalletUncheckedUpdateWithoutTransactionsInput = {
431
- id?: Prisma.StringFieldUpdateOperationsInput | string;
432
- balance?: Prisma.FloatFieldUpdateOperationsInput | number;
433
- currency?: Prisma.StringFieldUpdateOperationsInput | string;
434
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
435
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
436
- user?: Prisma.UserUncheckedUpdateOneWithoutWalletNestedInput;
437
- };
438
- /**
439
- * Count Type WalletCountOutputType
440
- */
441
- export type WalletCountOutputType = {
442
- transactions: number;
443
- };
444
- export type WalletCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
445
- transactions?: boolean | WalletCountOutputTypeCountTransactionsArgs;
446
- };
447
- /**
448
- * WalletCountOutputType without action
449
- */
450
- export type WalletCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
451
- /**
452
- * Select specific fields to fetch from the WalletCountOutputType
453
- */
454
- select?: Prisma.WalletCountOutputTypeSelect<ExtArgs> | null;
455
- };
456
- /**
457
- * WalletCountOutputType without action
458
- */
459
- export type WalletCountOutputTypeCountTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
460
- where?: Prisma.TransactionWhereInput;
461
- };
462
- export type WalletSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
463
- id?: boolean;
464
- balance?: boolean;
465
- currency?: boolean;
466
- createdAt?: boolean;
467
- updatedAt?: boolean;
468
- user?: boolean | Prisma.Wallet$userArgs<ExtArgs>;
469
- transactions?: boolean | Prisma.Wallet$transactionsArgs<ExtArgs>;
470
- _count?: boolean | Prisma.WalletCountOutputTypeDefaultArgs<ExtArgs>;
471
- }, ExtArgs["result"]["wallet"]>;
472
- export type WalletSelectScalar = {
473
- id?: boolean;
474
- balance?: boolean;
475
- currency?: boolean;
476
- createdAt?: boolean;
477
- updatedAt?: boolean;
478
- };
479
- export type WalletOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "balance" | "currency" | "createdAt" | "updatedAt", ExtArgs["result"]["wallet"]>;
480
- export type WalletInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
481
- user?: boolean | Prisma.Wallet$userArgs<ExtArgs>;
482
- transactions?: boolean | Prisma.Wallet$transactionsArgs<ExtArgs>;
483
- _count?: boolean | Prisma.WalletCountOutputTypeDefaultArgs<ExtArgs>;
484
- };
485
- export type $WalletPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
486
- name: "Wallet";
487
- objects: {
488
- user: Prisma.$UserPayload<ExtArgs> | null;
489
- transactions: Prisma.$TransactionPayload<ExtArgs>[];
490
- };
491
- scalars: runtime.Types.Extensions.GetPayloadResult<{
492
- id: string;
493
- balance: number;
494
- currency: string;
495
- createdAt: Date;
496
- updatedAt: Date;
497
- }, ExtArgs["result"]["wallet"]>;
498
- composites: {};
499
- };
500
- export type WalletGetPayload<S extends boolean | null | undefined | WalletDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WalletPayload, S>;
501
- export type WalletCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<WalletFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
502
- select?: WalletCountAggregateInputType | true;
503
- };
504
- export interface WalletDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
505
- [K: symbol]: {
506
- types: Prisma.TypeMap<ExtArgs>['model']['Wallet'];
507
- meta: {
508
- name: 'Wallet';
509
- };
510
- };
511
- /**
512
- * Find zero or one Wallet that matches the filter.
513
- * @param {WalletFindUniqueArgs} args - Arguments to find a Wallet
514
- * @example
515
- * // Get one Wallet
516
- * const wallet = await prisma.wallet.findUnique({
517
- * where: {
518
- * // ... provide filter here
519
- * }
520
- * })
521
- */
522
- findUnique<T extends WalletFindUniqueArgs>(args: Prisma.SelectSubset<T, WalletFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
523
- /**
524
- * Find one Wallet that matches the filter or throw an error with `error.code='P2025'`
525
- * if no matches were found.
526
- * @param {WalletFindUniqueOrThrowArgs} args - Arguments to find a Wallet
527
- * @example
528
- * // Get one Wallet
529
- * const wallet = await prisma.wallet.findUniqueOrThrow({
530
- * where: {
531
- * // ... provide filter here
532
- * }
533
- * })
534
- */
535
- findUniqueOrThrow<T extends WalletFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WalletFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
536
- /**
537
- * Find the first Wallet that matches the filter.
538
- * Note, that providing `undefined` is treated as the value not being there.
539
- * Read more here: https://pris.ly/d/null-undefined
540
- * @param {WalletFindFirstArgs} args - Arguments to find a Wallet
541
- * @example
542
- * // Get one Wallet
543
- * const wallet = await prisma.wallet.findFirst({
544
- * where: {
545
- * // ... provide filter here
546
- * }
547
- * })
548
- */
549
- findFirst<T extends WalletFindFirstArgs>(args?: Prisma.SelectSubset<T, WalletFindFirstArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
550
- /**
551
- * Find the first Wallet that matches the filter or
552
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
553
- * Note, that providing `undefined` is treated as the value not being there.
554
- * Read more here: https://pris.ly/d/null-undefined
555
- * @param {WalletFindFirstOrThrowArgs} args - Arguments to find a Wallet
556
- * @example
557
- * // Get one Wallet
558
- * const wallet = await prisma.wallet.findFirstOrThrow({
559
- * where: {
560
- * // ... provide filter here
561
- * }
562
- * })
563
- */
564
- findFirstOrThrow<T extends WalletFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WalletFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
565
- /**
566
- * Find zero or more Wallets that matches the filter.
567
- * Note, that providing `undefined` is treated as the value not being there.
568
- * Read more here: https://pris.ly/d/null-undefined
569
- * @param {WalletFindManyArgs} args - Arguments to filter and select certain fields only.
570
- * @example
571
- * // Get all Wallets
572
- * const wallets = await prisma.wallet.findMany()
573
- *
574
- * // Get first 10 Wallets
575
- * const wallets = await prisma.wallet.findMany({ take: 10 })
576
- *
577
- * // Only select the `id`
578
- * const walletWithIdOnly = await prisma.wallet.findMany({ select: { id: true } })
579
- *
580
- */
581
- findMany<T extends WalletFindManyArgs>(args?: Prisma.SelectSubset<T, WalletFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
582
- /**
583
- * Create a Wallet.
584
- * @param {WalletCreateArgs} args - Arguments to create a Wallet.
585
- * @example
586
- * // Create one Wallet
587
- * const Wallet = await prisma.wallet.create({
588
- * data: {
589
- * // ... data to create a Wallet
590
- * }
591
- * })
592
- *
593
- */
594
- create<T extends WalletCreateArgs>(args: Prisma.SelectSubset<T, WalletCreateArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
595
- /**
596
- * Create many Wallets.
597
- * @param {WalletCreateManyArgs} args - Arguments to create many Wallets.
598
- * @example
599
- * // Create many Wallets
600
- * const wallet = await prisma.wallet.createMany({
601
- * data: [
602
- * // ... provide data here
603
- * ]
604
- * })
605
- *
606
- */
607
- createMany<T extends WalletCreateManyArgs>(args?: Prisma.SelectSubset<T, WalletCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
608
- /**
609
- * Delete a Wallet.
610
- * @param {WalletDeleteArgs} args - Arguments to delete one Wallet.
611
- * @example
612
- * // Delete one Wallet
613
- * const Wallet = await prisma.wallet.delete({
614
- * where: {
615
- * // ... filter to delete one Wallet
616
- * }
617
- * })
618
- *
619
- */
620
- delete<T extends WalletDeleteArgs>(args: Prisma.SelectSubset<T, WalletDeleteArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
621
- /**
622
- * Update one Wallet.
623
- * @param {WalletUpdateArgs} args - Arguments to update one Wallet.
624
- * @example
625
- * // Update one Wallet
626
- * const wallet = await prisma.wallet.update({
627
- * where: {
628
- * // ... provide filter here
629
- * },
630
- * data: {
631
- * // ... provide data here
632
- * }
633
- * })
634
- *
635
- */
636
- update<T extends WalletUpdateArgs>(args: Prisma.SelectSubset<T, WalletUpdateArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
637
- /**
638
- * Delete zero or more Wallets.
639
- * @param {WalletDeleteManyArgs} args - Arguments to filter Wallets to delete.
640
- * @example
641
- * // Delete a few Wallets
642
- * const { count } = await prisma.wallet.deleteMany({
643
- * where: {
644
- * // ... provide filter here
645
- * }
646
- * })
647
- *
648
- */
649
- deleteMany<T extends WalletDeleteManyArgs>(args?: Prisma.SelectSubset<T, WalletDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
650
- /**
651
- * Update zero or more Wallets.
652
- * Note, that providing `undefined` is treated as the value not being there.
653
- * Read more here: https://pris.ly/d/null-undefined
654
- * @param {WalletUpdateManyArgs} args - Arguments to update one or more rows.
655
- * @example
656
- * // Update many Wallets
657
- * const wallet = await prisma.wallet.updateMany({
658
- * where: {
659
- * // ... provide filter here
660
- * },
661
- * data: {
662
- * // ... provide data here
663
- * }
664
- * })
665
- *
666
- */
667
- updateMany<T extends WalletUpdateManyArgs>(args: Prisma.SelectSubset<T, WalletUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
668
- /**
669
- * Create or update one Wallet.
670
- * @param {WalletUpsertArgs} args - Arguments to update or create a Wallet.
671
- * @example
672
- * // Update or create a Wallet
673
- * const wallet = await prisma.wallet.upsert({
674
- * create: {
675
- * // ... data to create a Wallet
676
- * },
677
- * update: {
678
- * // ... in case it already exists, update
679
- * },
680
- * where: {
681
- * // ... the filter for the Wallet we want to update
682
- * }
683
- * })
684
- */
685
- upsert<T extends WalletUpsertArgs>(args: Prisma.SelectSubset<T, WalletUpsertArgs<ExtArgs>>): Prisma.Prisma__WalletClient<runtime.Types.Result.GetResult<Prisma.$WalletPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
686
- /**
687
- * Count the number of Wallets.
688
- * Note, that providing `undefined` is treated as the value not being there.
689
- * Read more here: https://pris.ly/d/null-undefined
690
- * @param {WalletCountArgs} args - Arguments to filter Wallets to count.
691
- * @example
692
- * // Count the number of Wallets
693
- * const count = await prisma.wallet.count({
694
- * where: {
695
- * // ... the filter for the Wallets we want to count
696
- * }
697
- * })
698
- **/
699
- count<T extends WalletCountArgs>(args?: Prisma.Subset<T, WalletCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], WalletCountAggregateOutputType> : number>;
700
- /**
701
- * Allows you to perform aggregations operations on a Wallet.
702
- * Note, that providing `undefined` is treated as the value not being there.
703
- * Read more here: https://pris.ly/d/null-undefined
704
- * @param {WalletAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
705
- * @example
706
- * // Ordered by age ascending
707
- * // Where email contains prisma.io
708
- * // Limited to the 10 users
709
- * const aggregations = await prisma.user.aggregate({
710
- * _avg: {
711
- * age: true,
712
- * },
713
- * where: {
714
- * email: {
715
- * contains: "prisma.io",
716
- * },
717
- * },
718
- * orderBy: {
719
- * age: "asc",
720
- * },
721
- * take: 10,
722
- * })
723
- **/
724
- aggregate<T extends WalletAggregateArgs>(args: Prisma.Subset<T, WalletAggregateArgs>): Prisma.PrismaPromise<GetWalletAggregateType<T>>;
725
- /**
726
- * Group by Wallet.
727
- * Note, that providing `undefined` is treated as the value not being there.
728
- * Read more here: https://pris.ly/d/null-undefined
729
- * @param {WalletGroupByArgs} args - Group by arguments.
730
- * @example
731
- * // Group by city, order by createdAt, get count
732
- * const result = await prisma.user.groupBy({
733
- * by: ['city', 'createdAt'],
734
- * orderBy: {
735
- * createdAt: true
736
- * },
737
- * _count: {
738
- * _all: true
739
- * },
740
- * })
741
- *
742
- **/
743
- groupBy<T extends WalletGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
744
- orderBy: WalletGroupByArgs['orderBy'];
745
- } : {
746
- orderBy?: WalletGroupByArgs['orderBy'];
747
- }, 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 ? {
748
- [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
749
- Error,
750
- 'Field ',
751
- P,
752
- ` in "having" needs to be provided in "by"`
753
- ];
754
- }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
755
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
756
- }[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 ? {} : {
757
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
758
- }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
759
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
760
- }[OrderFields]>(args: Prisma.SubsetIntersection<T, WalletGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWalletGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
761
- /**
762
- * Fields of the Wallet model
763
- */
764
- readonly fields: WalletFieldRefs;
765
- }
766
- /**
767
- * The delegate class that acts as a "Promise-like" for Wallet.
768
- * Why is this prefixed with `Prisma__`?
769
- * Because we want to prevent naming conflicts as mentioned in
770
- * https://github.com/prisma/prisma-client-js/issues/707
771
- */
772
- export interface Prisma__WalletClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
773
- readonly [Symbol.toStringTag]: "PrismaPromise";
774
- user<T extends Prisma.Wallet$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Wallet$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
775
- transactions<T extends Prisma.Wallet$transactionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Wallet$transactionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
776
- /**
777
- * Attaches callbacks for the resolution and/or rejection of the Promise.
778
- * @param onfulfilled The callback to execute when the Promise is resolved.
779
- * @param onrejected The callback to execute when the Promise is rejected.
780
- * @returns A Promise for the completion of which ever callback is executed.
781
- */
782
- 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>;
783
- /**
784
- * Attaches a callback for only the rejection of the Promise.
785
- * @param onrejected The callback to execute when the Promise is rejected.
786
- * @returns A Promise for the completion of the callback.
787
- */
788
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
789
- /**
790
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
791
- * resolved value cannot be modified from the callback.
792
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
793
- * @returns A Promise for the completion of the callback.
794
- */
795
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
796
- }
797
- /**
798
- * Fields of the Wallet model
799
- */
800
- export interface WalletFieldRefs {
801
- readonly id: Prisma.FieldRef<"Wallet", 'String'>;
802
- readonly balance: Prisma.FieldRef<"Wallet", 'Float'>;
803
- readonly currency: Prisma.FieldRef<"Wallet", 'String'>;
804
- readonly createdAt: Prisma.FieldRef<"Wallet", 'DateTime'>;
805
- readonly updatedAt: Prisma.FieldRef<"Wallet", 'DateTime'>;
806
- }
807
- /**
808
- * Wallet findUnique
809
- */
810
- export type WalletFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
811
- /**
812
- * Select specific fields to fetch from the Wallet
813
- */
814
- select?: Prisma.WalletSelect<ExtArgs> | null;
815
- /**
816
- * Omit specific fields from the Wallet
817
- */
818
- omit?: Prisma.WalletOmit<ExtArgs> | null;
819
- /**
820
- * Choose, which related nodes to fetch as well
821
- */
822
- include?: Prisma.WalletInclude<ExtArgs> | null;
823
- /**
824
- * Filter, which Wallet to fetch.
825
- */
826
- where: Prisma.WalletWhereUniqueInput;
827
- };
828
- /**
829
- * Wallet findUniqueOrThrow
830
- */
831
- export type WalletFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
832
- /**
833
- * Select specific fields to fetch from the Wallet
834
- */
835
- select?: Prisma.WalletSelect<ExtArgs> | null;
836
- /**
837
- * Omit specific fields from the Wallet
838
- */
839
- omit?: Prisma.WalletOmit<ExtArgs> | null;
840
- /**
841
- * Choose, which related nodes to fetch as well
842
- */
843
- include?: Prisma.WalletInclude<ExtArgs> | null;
844
- /**
845
- * Filter, which Wallet to fetch.
846
- */
847
- where: Prisma.WalletWhereUniqueInput;
848
- };
849
- /**
850
- * Wallet findFirst
851
- */
852
- export type WalletFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
853
- /**
854
- * Select specific fields to fetch from the Wallet
855
- */
856
- select?: Prisma.WalletSelect<ExtArgs> | null;
857
- /**
858
- * Omit specific fields from the Wallet
859
- */
860
- omit?: Prisma.WalletOmit<ExtArgs> | null;
861
- /**
862
- * Choose, which related nodes to fetch as well
863
- */
864
- include?: Prisma.WalletInclude<ExtArgs> | null;
865
- /**
866
- * Filter, which Wallet to fetch.
867
- */
868
- where?: Prisma.WalletWhereInput;
869
- /**
870
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
871
- *
872
- * Determine the order of Wallets to fetch.
873
- */
874
- orderBy?: Prisma.WalletOrderByWithRelationInput | Prisma.WalletOrderByWithRelationInput[];
875
- /**
876
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
877
- *
878
- * Sets the position for searching for Wallets.
879
- */
880
- cursor?: Prisma.WalletWhereUniqueInput;
881
- /**
882
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
883
- *
884
- * Take `±n` Wallets from the position of the cursor.
885
- */
886
- take?: number;
887
- /**
888
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
889
- *
890
- * Skip the first `n` Wallets.
891
- */
892
- skip?: number;
893
- /**
894
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
895
- *
896
- * Filter by unique combinations of Wallets.
897
- */
898
- distinct?: Prisma.WalletScalarFieldEnum | Prisma.WalletScalarFieldEnum[];
899
- };
900
- /**
901
- * Wallet findFirstOrThrow
902
- */
903
- export type WalletFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
904
- /**
905
- * Select specific fields to fetch from the Wallet
906
- */
907
- select?: Prisma.WalletSelect<ExtArgs> | null;
908
- /**
909
- * Omit specific fields from the Wallet
910
- */
911
- omit?: Prisma.WalletOmit<ExtArgs> | null;
912
- /**
913
- * Choose, which related nodes to fetch as well
914
- */
915
- include?: Prisma.WalletInclude<ExtArgs> | null;
916
- /**
917
- * Filter, which Wallet to fetch.
918
- */
919
- where?: Prisma.WalletWhereInput;
920
- /**
921
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
922
- *
923
- * Determine the order of Wallets to fetch.
924
- */
925
- orderBy?: Prisma.WalletOrderByWithRelationInput | Prisma.WalletOrderByWithRelationInput[];
926
- /**
927
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
928
- *
929
- * Sets the position for searching for Wallets.
930
- */
931
- cursor?: Prisma.WalletWhereUniqueInput;
932
- /**
933
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
934
- *
935
- * Take `±n` Wallets from the position of the cursor.
936
- */
937
- take?: number;
938
- /**
939
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
940
- *
941
- * Skip the first `n` Wallets.
942
- */
943
- skip?: number;
944
- /**
945
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
946
- *
947
- * Filter by unique combinations of Wallets.
948
- */
949
- distinct?: Prisma.WalletScalarFieldEnum | Prisma.WalletScalarFieldEnum[];
950
- };
951
- /**
952
- * Wallet findMany
953
- */
954
- export type WalletFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
955
- /**
956
- * Select specific fields to fetch from the Wallet
957
- */
958
- select?: Prisma.WalletSelect<ExtArgs> | null;
959
- /**
960
- * Omit specific fields from the Wallet
961
- */
962
- omit?: Prisma.WalletOmit<ExtArgs> | null;
963
- /**
964
- * Choose, which related nodes to fetch as well
965
- */
966
- include?: Prisma.WalletInclude<ExtArgs> | null;
967
- /**
968
- * Filter, which Wallets to fetch.
969
- */
970
- where?: Prisma.WalletWhereInput;
971
- /**
972
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
973
- *
974
- * Determine the order of Wallets to fetch.
975
- */
976
- orderBy?: Prisma.WalletOrderByWithRelationInput | Prisma.WalletOrderByWithRelationInput[];
977
- /**
978
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
979
- *
980
- * Sets the position for listing Wallets.
981
- */
982
- cursor?: Prisma.WalletWhereUniqueInput;
983
- /**
984
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
985
- *
986
- * Take `±n` Wallets from the position of the cursor.
987
- */
988
- take?: number;
989
- /**
990
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
991
- *
992
- * Skip the first `n` Wallets.
993
- */
994
- skip?: number;
995
- distinct?: Prisma.WalletScalarFieldEnum | Prisma.WalletScalarFieldEnum[];
996
- };
997
- /**
998
- * Wallet create
999
- */
1000
- export type WalletCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1001
- /**
1002
- * Select specific fields to fetch from the Wallet
1003
- */
1004
- select?: Prisma.WalletSelect<ExtArgs> | null;
1005
- /**
1006
- * Omit specific fields from the Wallet
1007
- */
1008
- omit?: Prisma.WalletOmit<ExtArgs> | null;
1009
- /**
1010
- * Choose, which related nodes to fetch as well
1011
- */
1012
- include?: Prisma.WalletInclude<ExtArgs> | null;
1013
- /**
1014
- * The data needed to create a Wallet.
1015
- */
1016
- data: Prisma.XOR<Prisma.WalletCreateInput, Prisma.WalletUncheckedCreateInput>;
1017
- };
1018
- /**
1019
- * Wallet createMany
1020
- */
1021
- export type WalletCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1022
- /**
1023
- * The data used to create many Wallets.
1024
- */
1025
- data: Prisma.WalletCreateManyInput | Prisma.WalletCreateManyInput[];
1026
- skipDuplicates?: boolean;
1027
- };
1028
- /**
1029
- * Wallet update
1030
- */
1031
- export type WalletUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1032
- /**
1033
- * Select specific fields to fetch from the Wallet
1034
- */
1035
- select?: Prisma.WalletSelect<ExtArgs> | null;
1036
- /**
1037
- * Omit specific fields from the Wallet
1038
- */
1039
- omit?: Prisma.WalletOmit<ExtArgs> | null;
1040
- /**
1041
- * Choose, which related nodes to fetch as well
1042
- */
1043
- include?: Prisma.WalletInclude<ExtArgs> | null;
1044
- /**
1045
- * The data needed to update a Wallet.
1046
- */
1047
- data: Prisma.XOR<Prisma.WalletUpdateInput, Prisma.WalletUncheckedUpdateInput>;
1048
- /**
1049
- * Choose, which Wallet to update.
1050
- */
1051
- where: Prisma.WalletWhereUniqueInput;
1052
- };
1053
- /**
1054
- * Wallet updateMany
1055
- */
1056
- export type WalletUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1057
- /**
1058
- * The data used to update Wallets.
1059
- */
1060
- data: Prisma.XOR<Prisma.WalletUpdateManyMutationInput, Prisma.WalletUncheckedUpdateManyInput>;
1061
- /**
1062
- * Filter which Wallets to update
1063
- */
1064
- where?: Prisma.WalletWhereInput;
1065
- /**
1066
- * Limit how many Wallets to update.
1067
- */
1068
- limit?: number;
1069
- };
1070
- /**
1071
- * Wallet upsert
1072
- */
1073
- export type WalletUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1074
- /**
1075
- * Select specific fields to fetch from the Wallet
1076
- */
1077
- select?: Prisma.WalletSelect<ExtArgs> | null;
1078
- /**
1079
- * Omit specific fields from the Wallet
1080
- */
1081
- omit?: Prisma.WalletOmit<ExtArgs> | null;
1082
- /**
1083
- * Choose, which related nodes to fetch as well
1084
- */
1085
- include?: Prisma.WalletInclude<ExtArgs> | null;
1086
- /**
1087
- * The filter to search for the Wallet to update in case it exists.
1088
- */
1089
- where: Prisma.WalletWhereUniqueInput;
1090
- /**
1091
- * In case the Wallet found by the `where` argument doesn't exist, create a new Wallet with this data.
1092
- */
1093
- create: Prisma.XOR<Prisma.WalletCreateInput, Prisma.WalletUncheckedCreateInput>;
1094
- /**
1095
- * In case the Wallet was found with the provided `where` argument, update it with this data.
1096
- */
1097
- update: Prisma.XOR<Prisma.WalletUpdateInput, Prisma.WalletUncheckedUpdateInput>;
1098
- };
1099
- /**
1100
- * Wallet delete
1101
- */
1102
- export type WalletDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
- /**
1104
- * Select specific fields to fetch from the Wallet
1105
- */
1106
- select?: Prisma.WalletSelect<ExtArgs> | null;
1107
- /**
1108
- * Omit specific fields from the Wallet
1109
- */
1110
- omit?: Prisma.WalletOmit<ExtArgs> | null;
1111
- /**
1112
- * Choose, which related nodes to fetch as well
1113
- */
1114
- include?: Prisma.WalletInclude<ExtArgs> | null;
1115
- /**
1116
- * Filter which Wallet to delete.
1117
- */
1118
- where: Prisma.WalletWhereUniqueInput;
1119
- };
1120
- /**
1121
- * Wallet deleteMany
1122
- */
1123
- export type WalletDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1124
- /**
1125
- * Filter which Wallets to delete
1126
- */
1127
- where?: Prisma.WalletWhereInput;
1128
- /**
1129
- * Limit how many Wallets to delete.
1130
- */
1131
- limit?: number;
1132
- };
1133
- /**
1134
- * Wallet.user
1135
- */
1136
- export type Wallet$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1137
- /**
1138
- * Select specific fields to fetch from the User
1139
- */
1140
- select?: Prisma.UserSelect<ExtArgs> | null;
1141
- /**
1142
- * Omit specific fields from the User
1143
- */
1144
- omit?: Prisma.UserOmit<ExtArgs> | null;
1145
- /**
1146
- * Choose, which related nodes to fetch as well
1147
- */
1148
- include?: Prisma.UserInclude<ExtArgs> | null;
1149
- where?: Prisma.UserWhereInput;
1150
- };
1151
- /**
1152
- * Wallet.transactions
1153
- */
1154
- export type Wallet$transactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
- /**
1156
- * Select specific fields to fetch from the Transaction
1157
- */
1158
- select?: Prisma.TransactionSelect<ExtArgs> | null;
1159
- /**
1160
- * Omit specific fields from the Transaction
1161
- */
1162
- omit?: Prisma.TransactionOmit<ExtArgs> | null;
1163
- /**
1164
- * Choose, which related nodes to fetch as well
1165
- */
1166
- include?: Prisma.TransactionInclude<ExtArgs> | null;
1167
- where?: Prisma.TransactionWhereInput;
1168
- orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[];
1169
- cursor?: Prisma.TransactionWhereUniqueInput;
1170
- take?: number;
1171
- skip?: number;
1172
- distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[];
1173
- };
1174
- /**
1175
- * Wallet without action
1176
- */
1177
- export type WalletDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1178
- /**
1179
- * Select specific fields to fetch from the Wallet
1180
- */
1181
- select?: Prisma.WalletSelect<ExtArgs> | null;
1182
- /**
1183
- * Omit specific fields from the Wallet
1184
- */
1185
- omit?: Prisma.WalletOmit<ExtArgs> | null;
1186
- /**
1187
- * Choose, which related nodes to fetch as well
1188
- */
1189
- include?: Prisma.WalletInclude<ExtArgs> | null;
1190
- };
1191
- export {};