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