@valentine-efagene/qshelter-common 2.0.52 → 2.0.54

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