@techstream/quark-create-app 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/package.json +34 -33
  2. package/src/index.js +193 -56
  3. package/templates/base-project/apps/web/src/app/api/auth/register/route.js +17 -1
  4. package/templates/base-project/apps/web/src/app/api/error-handler.js +4 -2
  5. package/templates/base-project/apps/web/src/app/api/health/route.js +8 -3
  6. package/templates/base-project/apps/web/src/app/api/posts/[id]/route.js +9 -5
  7. package/templates/base-project/apps/web/src/app/api/posts/route.js +13 -5
  8. package/templates/base-project/apps/web/src/app/api/users/[id]/route.js +9 -9
  9. package/templates/base-project/apps/web/src/app/api/users/route.js +6 -6
  10. package/templates/base-project/apps/web/src/lib/auth-middleware.js +18 -1
  11. package/templates/base-project/apps/web/src/{middleware.js → proxy.js} +3 -3
  12. package/templates/base-project/apps/worker/package.json +1 -2
  13. package/templates/base-project/apps/worker/src/index.js +71 -19
  14. package/templates/base-project/docker-compose.yml +3 -6
  15. package/templates/base-project/package.json +16 -1
  16. package/templates/base-project/packages/db/package.json +10 -4
  17. package/templates/base-project/packages/db/prisma.config.ts +2 -2
  18. package/templates/base-project/packages/db/scripts/seed.js +1 -1
  19. package/templates/base-project/packages/db/src/client.js +41 -25
  20. package/templates/base-project/packages/db/src/queries.js +22 -9
  21. package/templates/base-project/packages/db/src/schemas.js +6 -1
  22. package/templates/base-project/turbo.json +17 -1
  23. package/templates/config/package.json +3 -1
  24. package/templates/config/src/app-url.js +71 -0
  25. package/templates/config/src/validate-env.js +104 -0
  26. package/templates/base-project/packages/db/src/generated/prisma/browser.ts +0 -53
  27. package/templates/base-project/packages/db/src/generated/prisma/client.ts +0 -82
  28. package/templates/base-project/packages/db/src/generated/prisma/commonInputTypes.ts +0 -649
  29. package/templates/base-project/packages/db/src/generated/prisma/enums.ts +0 -19
  30. package/templates/base-project/packages/db/src/generated/prisma/internal/class.ts +0 -305
  31. package/templates/base-project/packages/db/src/generated/prisma/internal/prismaNamespace.ts +0 -1428
  32. package/templates/base-project/packages/db/src/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -217
  33. package/templates/base-project/packages/db/src/generated/prisma/models/Account.ts +0 -2098
  34. package/templates/base-project/packages/db/src/generated/prisma/models/AuditLog.ts +0 -1805
  35. package/templates/base-project/packages/db/src/generated/prisma/models/Job.ts +0 -1737
  36. package/templates/base-project/packages/db/src/generated/prisma/models/Post.ts +0 -1762
  37. package/templates/base-project/packages/db/src/generated/prisma/models/Session.ts +0 -1738
  38. package/templates/base-project/packages/db/src/generated/prisma/models/User.ts +0 -2298
  39. package/templates/base-project/packages/db/src/generated/prisma/models/VerificationToken.ts +0 -1450
  40. package/templates/base-project/packages/db/src/generated/prisma/models.ts +0 -18
@@ -1,2098 +0,0 @@
1
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
- /* eslint-disable */
3
- // biome-ignore-all lint: generated file
4
- // @ts-nocheck
5
- /*
6
- * This file exports the `Account` model and its related types.
7
- *
8
- * 🟢 You can import this file directly.
9
- */
10
- import type * as runtime from "@prisma/client/runtime/client";
11
- import type * as $Enums from "../enums.ts";
12
- import type * as Prisma from "../internal/prismaNamespace.ts";
13
-
14
- /**
15
- * Model Account
16
- *
17
- */
18
- export type AccountModel =
19
- runtime.Types.Result.DefaultSelection<Prisma.$AccountPayload>;
20
-
21
- export type AggregateAccount = {
22
- _count: AccountCountAggregateOutputType | null;
23
- _avg: AccountAvgAggregateOutputType | null;
24
- _sum: AccountSumAggregateOutputType | null;
25
- _min: AccountMinAggregateOutputType | null;
26
- _max: AccountMaxAggregateOutputType | null;
27
- };
28
-
29
- export type AccountAvgAggregateOutputType = {
30
- expires_at: number | null;
31
- };
32
-
33
- export type AccountSumAggregateOutputType = {
34
- expires_at: number | null;
35
- };
36
-
37
- export type AccountMinAggregateOutputType = {
38
- id: string | null;
39
- userId: string | null;
40
- type: string | null;
41
- provider: string | null;
42
- providerAccountId: string | null;
43
- refresh_token: string | null;
44
- access_token: string | null;
45
- expires_at: number | null;
46
- token_type: string | null;
47
- scope: string | null;
48
- id_token: string | null;
49
- session_state: string | null;
50
- };
51
-
52
- export type AccountMaxAggregateOutputType = {
53
- id: string | null;
54
- userId: string | null;
55
- type: string | null;
56
- provider: string | null;
57
- providerAccountId: string | null;
58
- refresh_token: string | null;
59
- access_token: string | null;
60
- expires_at: number | null;
61
- token_type: string | null;
62
- scope: string | null;
63
- id_token: string | null;
64
- session_state: string | null;
65
- };
66
-
67
- export type AccountCountAggregateOutputType = {
68
- id: number;
69
- userId: number;
70
- type: number;
71
- provider: number;
72
- providerAccountId: number;
73
- refresh_token: number;
74
- access_token: number;
75
- expires_at: number;
76
- token_type: number;
77
- scope: number;
78
- id_token: number;
79
- session_state: number;
80
- _all: number;
81
- };
82
-
83
- export type AccountAvgAggregateInputType = {
84
- expires_at?: true;
85
- };
86
-
87
- export type AccountSumAggregateInputType = {
88
- expires_at?: true;
89
- };
90
-
91
- export type AccountMinAggregateInputType = {
92
- id?: true;
93
- userId?: true;
94
- type?: true;
95
- provider?: true;
96
- providerAccountId?: true;
97
- refresh_token?: true;
98
- access_token?: true;
99
- expires_at?: true;
100
- token_type?: true;
101
- scope?: true;
102
- id_token?: true;
103
- session_state?: true;
104
- };
105
-
106
- export type AccountMaxAggregateInputType = {
107
- id?: true;
108
- userId?: true;
109
- type?: true;
110
- provider?: true;
111
- providerAccountId?: true;
112
- refresh_token?: true;
113
- access_token?: true;
114
- expires_at?: true;
115
- token_type?: true;
116
- scope?: true;
117
- id_token?: true;
118
- session_state?: true;
119
- };
120
-
121
- export type AccountCountAggregateInputType = {
122
- id?: true;
123
- userId?: true;
124
- type?: true;
125
- provider?: true;
126
- providerAccountId?: true;
127
- refresh_token?: true;
128
- access_token?: true;
129
- expires_at?: true;
130
- token_type?: true;
131
- scope?: true;
132
- id_token?: true;
133
- session_state?: true;
134
- _all?: true;
135
- };
136
-
137
- export type AccountAggregateArgs<
138
- ExtArgs extends
139
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
140
- > = {
141
- /**
142
- * Filter which Account to aggregate.
143
- */
144
- where?: Prisma.AccountWhereInput;
145
- /**
146
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
147
- *
148
- * Determine the order of Accounts to fetch.
149
- */
150
- orderBy?:
151
- | Prisma.AccountOrderByWithRelationInput
152
- | Prisma.AccountOrderByWithRelationInput[];
153
- /**
154
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
155
- *
156
- * Sets the start position
157
- */
158
- cursor?: Prisma.AccountWhereUniqueInput;
159
- /**
160
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
161
- *
162
- * Take `±n` Accounts from the position of the cursor.
163
- */
164
- take?: number;
165
- /**
166
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
167
- *
168
- * Skip the first `n` Accounts.
169
- */
170
- skip?: number;
171
- /**
172
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
- *
174
- * Count returned Accounts
175
- **/
176
- _count?: true | AccountCountAggregateInputType;
177
- /**
178
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
- *
180
- * Select which fields to average
181
- **/
182
- _avg?: AccountAvgAggregateInputType;
183
- /**
184
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
- *
186
- * Select which fields to sum
187
- **/
188
- _sum?: AccountSumAggregateInputType;
189
- /**
190
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
- *
192
- * Select which fields to find the minimum value
193
- **/
194
- _min?: AccountMinAggregateInputType;
195
- /**
196
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
- *
198
- * Select which fields to find the maximum value
199
- **/
200
- _max?: AccountMaxAggregateInputType;
201
- };
202
-
203
- export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
204
- [P in keyof T & keyof AggregateAccount]: P extends "_count" | "count"
205
- ? T[P] extends true
206
- ? number
207
- : Prisma.GetScalarType<T[P], AggregateAccount[P]>
208
- : Prisma.GetScalarType<T[P], AggregateAccount[P]>;
209
- };
210
-
211
- export type AccountGroupByArgs<
212
- ExtArgs extends
213
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
214
- > = {
215
- where?: Prisma.AccountWhereInput;
216
- orderBy?:
217
- | Prisma.AccountOrderByWithAggregationInput
218
- | Prisma.AccountOrderByWithAggregationInput[];
219
- by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum;
220
- having?: Prisma.AccountScalarWhereWithAggregatesInput;
221
- take?: number;
222
- skip?: number;
223
- _count?: AccountCountAggregateInputType | true;
224
- _avg?: AccountAvgAggregateInputType;
225
- _sum?: AccountSumAggregateInputType;
226
- _min?: AccountMinAggregateInputType;
227
- _max?: AccountMaxAggregateInputType;
228
- };
229
-
230
- export type AccountGroupByOutputType = {
231
- id: string;
232
- userId: string;
233
- type: string;
234
- provider: string;
235
- providerAccountId: string;
236
- refresh_token: string | null;
237
- access_token: string | null;
238
- expires_at: number | null;
239
- token_type: string | null;
240
- scope: string | null;
241
- id_token: string | null;
242
- session_state: string | null;
243
- _count: AccountCountAggregateOutputType | null;
244
- _avg: AccountAvgAggregateOutputType | null;
245
- _sum: AccountSumAggregateOutputType | null;
246
- _min: AccountMinAggregateOutputType | null;
247
- _max: AccountMaxAggregateOutputType | null;
248
- };
249
-
250
- type GetAccountGroupByPayload<T extends AccountGroupByArgs> =
251
- Prisma.PrismaPromise<
252
- Array<
253
- Prisma.PickEnumerable<AccountGroupByOutputType, T["by"]> & {
254
- [P in keyof T & keyof AccountGroupByOutputType]: P extends "_count"
255
- ? T[P] extends boolean
256
- ? number
257
- : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
258
- : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>;
259
- }
260
- >
261
- >;
262
-
263
- export type AccountWhereInput = {
264
- AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[];
265
- OR?: Prisma.AccountWhereInput[];
266
- NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[];
267
- id?: Prisma.StringFilter<"Account"> | string;
268
- userId?: Prisma.StringFilter<"Account"> | string;
269
- type?: Prisma.StringFilter<"Account"> | string;
270
- provider?: Prisma.StringFilter<"Account"> | string;
271
- providerAccountId?: Prisma.StringFilter<"Account"> | string;
272
- refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null;
273
- access_token?: Prisma.StringNullableFilter<"Account"> | string | null;
274
- expires_at?: Prisma.IntNullableFilter<"Account"> | number | null;
275
- token_type?: Prisma.StringNullableFilter<"Account"> | string | null;
276
- scope?: Prisma.StringNullableFilter<"Account"> | string | null;
277
- id_token?: Prisma.StringNullableFilter<"Account"> | string | null;
278
- session_state?: Prisma.StringNullableFilter<"Account"> | string | null;
279
- user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
280
- };
281
-
282
- export type AccountOrderByWithRelationInput = {
283
- id?: Prisma.SortOrder;
284
- userId?: Prisma.SortOrder;
285
- type?: Prisma.SortOrder;
286
- provider?: Prisma.SortOrder;
287
- providerAccountId?: Prisma.SortOrder;
288
- refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder;
289
- access_token?: Prisma.SortOrderInput | Prisma.SortOrder;
290
- expires_at?: Prisma.SortOrderInput | Prisma.SortOrder;
291
- token_type?: Prisma.SortOrderInput | Prisma.SortOrder;
292
- scope?: Prisma.SortOrderInput | Prisma.SortOrder;
293
- id_token?: Prisma.SortOrderInput | Prisma.SortOrder;
294
- session_state?: Prisma.SortOrderInput | Prisma.SortOrder;
295
- user?: Prisma.UserOrderByWithRelationInput;
296
- };
297
-
298
- export type AccountWhereUniqueInput = Prisma.AtLeast<
299
- {
300
- id?: string;
301
- provider_providerAccountId?: Prisma.AccountProviderProviderAccountIdCompoundUniqueInput;
302
- AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[];
303
- OR?: Prisma.AccountWhereInput[];
304
- NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[];
305
- userId?: Prisma.StringFilter<"Account"> | string;
306
- type?: Prisma.StringFilter<"Account"> | string;
307
- provider?: Prisma.StringFilter<"Account"> | string;
308
- providerAccountId?: Prisma.StringFilter<"Account"> | string;
309
- refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null;
310
- access_token?: Prisma.StringNullableFilter<"Account"> | string | null;
311
- expires_at?: Prisma.IntNullableFilter<"Account"> | number | null;
312
- token_type?: Prisma.StringNullableFilter<"Account"> | string | null;
313
- scope?: Prisma.StringNullableFilter<"Account"> | string | null;
314
- id_token?: Prisma.StringNullableFilter<"Account"> | string | null;
315
- session_state?: Prisma.StringNullableFilter<"Account"> | string | null;
316
- user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
317
- },
318
- "id" | "provider_providerAccountId"
319
- >;
320
-
321
- export type AccountOrderByWithAggregationInput = {
322
- id?: Prisma.SortOrder;
323
- userId?: Prisma.SortOrder;
324
- type?: Prisma.SortOrder;
325
- provider?: Prisma.SortOrder;
326
- providerAccountId?: Prisma.SortOrder;
327
- refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder;
328
- access_token?: Prisma.SortOrderInput | Prisma.SortOrder;
329
- expires_at?: Prisma.SortOrderInput | Prisma.SortOrder;
330
- token_type?: Prisma.SortOrderInput | Prisma.SortOrder;
331
- scope?: Prisma.SortOrderInput | Prisma.SortOrder;
332
- id_token?: Prisma.SortOrderInput | Prisma.SortOrder;
333
- session_state?: Prisma.SortOrderInput | Prisma.SortOrder;
334
- _count?: Prisma.AccountCountOrderByAggregateInput;
335
- _avg?: Prisma.AccountAvgOrderByAggregateInput;
336
- _max?: Prisma.AccountMaxOrderByAggregateInput;
337
- _min?: Prisma.AccountMinOrderByAggregateInput;
338
- _sum?: Prisma.AccountSumOrderByAggregateInput;
339
- };
340
-
341
- export type AccountScalarWhereWithAggregatesInput = {
342
- AND?:
343
- | Prisma.AccountScalarWhereWithAggregatesInput
344
- | Prisma.AccountScalarWhereWithAggregatesInput[];
345
- OR?: Prisma.AccountScalarWhereWithAggregatesInput[];
346
- NOT?:
347
- | Prisma.AccountScalarWhereWithAggregatesInput
348
- | Prisma.AccountScalarWhereWithAggregatesInput[];
349
- id?: Prisma.StringWithAggregatesFilter<"Account"> | string;
350
- userId?: Prisma.StringWithAggregatesFilter<"Account"> | string;
351
- type?: Prisma.StringWithAggregatesFilter<"Account"> | string;
352
- provider?: Prisma.StringWithAggregatesFilter<"Account"> | string;
353
- providerAccountId?: Prisma.StringWithAggregatesFilter<"Account"> | string;
354
- refresh_token?:
355
- | Prisma.StringNullableWithAggregatesFilter<"Account">
356
- | string
357
- | null;
358
- access_token?:
359
- | Prisma.StringNullableWithAggregatesFilter<"Account">
360
- | string
361
- | null;
362
- expires_at?:
363
- | Prisma.IntNullableWithAggregatesFilter<"Account">
364
- | number
365
- | null;
366
- token_type?:
367
- | Prisma.StringNullableWithAggregatesFilter<"Account">
368
- | string
369
- | null;
370
- scope?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null;
371
- id_token?:
372
- | Prisma.StringNullableWithAggregatesFilter<"Account">
373
- | string
374
- | null;
375
- session_state?:
376
- | Prisma.StringNullableWithAggregatesFilter<"Account">
377
- | string
378
- | null;
379
- };
380
-
381
- export type AccountCreateInput = {
382
- id?: string;
383
- type: string;
384
- provider: string;
385
- providerAccountId: string;
386
- refresh_token?: string | null;
387
- access_token?: string | null;
388
- expires_at?: number | null;
389
- token_type?: string | null;
390
- scope?: string | null;
391
- id_token?: string | null;
392
- session_state?: string | null;
393
- user: Prisma.UserCreateNestedOneWithoutAccountsInput;
394
- };
395
-
396
- export type AccountUncheckedCreateInput = {
397
- id?: string;
398
- userId: string;
399
- type: string;
400
- provider: string;
401
- providerAccountId: string;
402
- refresh_token?: string | null;
403
- access_token?: string | null;
404
- expires_at?: number | null;
405
- token_type?: string | null;
406
- scope?: string | null;
407
- id_token?: string | null;
408
- session_state?: string | null;
409
- };
410
-
411
- export type AccountUpdateInput = {
412
- id?: Prisma.StringFieldUpdateOperationsInput | string;
413
- type?: Prisma.StringFieldUpdateOperationsInput | string;
414
- provider?: Prisma.StringFieldUpdateOperationsInput | string;
415
- providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string;
416
- refresh_token?:
417
- | Prisma.NullableStringFieldUpdateOperationsInput
418
- | string
419
- | null;
420
- access_token?:
421
- | Prisma.NullableStringFieldUpdateOperationsInput
422
- | string
423
- | null;
424
- expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
425
- token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
426
- scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
427
- id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
428
- session_state?:
429
- | Prisma.NullableStringFieldUpdateOperationsInput
430
- | string
431
- | null;
432
- user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput;
433
- };
434
-
435
- export type AccountUncheckedUpdateInput = {
436
- id?: Prisma.StringFieldUpdateOperationsInput | string;
437
- userId?: Prisma.StringFieldUpdateOperationsInput | string;
438
- type?: Prisma.StringFieldUpdateOperationsInput | string;
439
- provider?: Prisma.StringFieldUpdateOperationsInput | string;
440
- providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string;
441
- refresh_token?:
442
- | Prisma.NullableStringFieldUpdateOperationsInput
443
- | string
444
- | null;
445
- access_token?:
446
- | Prisma.NullableStringFieldUpdateOperationsInput
447
- | string
448
- | null;
449
- expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
450
- token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
451
- scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
452
- id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
453
- session_state?:
454
- | Prisma.NullableStringFieldUpdateOperationsInput
455
- | string
456
- | null;
457
- };
458
-
459
- export type AccountCreateManyInput = {
460
- id?: string;
461
- userId: string;
462
- type: string;
463
- provider: string;
464
- providerAccountId: string;
465
- refresh_token?: string | null;
466
- access_token?: string | null;
467
- expires_at?: number | null;
468
- token_type?: string | null;
469
- scope?: string | null;
470
- id_token?: string | null;
471
- session_state?: string | null;
472
- };
473
-
474
- export type AccountUpdateManyMutationInput = {
475
- id?: Prisma.StringFieldUpdateOperationsInput | string;
476
- type?: Prisma.StringFieldUpdateOperationsInput | string;
477
- provider?: Prisma.StringFieldUpdateOperationsInput | string;
478
- providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string;
479
- refresh_token?:
480
- | Prisma.NullableStringFieldUpdateOperationsInput
481
- | string
482
- | null;
483
- access_token?:
484
- | Prisma.NullableStringFieldUpdateOperationsInput
485
- | string
486
- | null;
487
- expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
488
- token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
489
- scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
490
- id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
491
- session_state?:
492
- | Prisma.NullableStringFieldUpdateOperationsInput
493
- | string
494
- | null;
495
- };
496
-
497
- export type AccountUncheckedUpdateManyInput = {
498
- id?: Prisma.StringFieldUpdateOperationsInput | string;
499
- userId?: Prisma.StringFieldUpdateOperationsInput | string;
500
- type?: Prisma.StringFieldUpdateOperationsInput | string;
501
- provider?: Prisma.StringFieldUpdateOperationsInput | string;
502
- providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string;
503
- refresh_token?:
504
- | Prisma.NullableStringFieldUpdateOperationsInput
505
- | string
506
- | null;
507
- access_token?:
508
- | Prisma.NullableStringFieldUpdateOperationsInput
509
- | string
510
- | null;
511
- expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
512
- token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
513
- scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
514
- id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
515
- session_state?:
516
- | Prisma.NullableStringFieldUpdateOperationsInput
517
- | string
518
- | null;
519
- };
520
-
521
- export type AccountListRelationFilter = {
522
- every?: Prisma.AccountWhereInput;
523
- some?: Prisma.AccountWhereInput;
524
- none?: Prisma.AccountWhereInput;
525
- };
526
-
527
- export type AccountOrderByRelationAggregateInput = {
528
- _count?: Prisma.SortOrder;
529
- };
530
-
531
- export type AccountProviderProviderAccountIdCompoundUniqueInput = {
532
- provider: string;
533
- providerAccountId: string;
534
- };
535
-
536
- export type AccountCountOrderByAggregateInput = {
537
- id?: Prisma.SortOrder;
538
- userId?: Prisma.SortOrder;
539
- type?: Prisma.SortOrder;
540
- provider?: Prisma.SortOrder;
541
- providerAccountId?: Prisma.SortOrder;
542
- refresh_token?: Prisma.SortOrder;
543
- access_token?: Prisma.SortOrder;
544
- expires_at?: Prisma.SortOrder;
545
- token_type?: Prisma.SortOrder;
546
- scope?: Prisma.SortOrder;
547
- id_token?: Prisma.SortOrder;
548
- session_state?: Prisma.SortOrder;
549
- };
550
-
551
- export type AccountAvgOrderByAggregateInput = {
552
- expires_at?: Prisma.SortOrder;
553
- };
554
-
555
- export type AccountMaxOrderByAggregateInput = {
556
- id?: Prisma.SortOrder;
557
- userId?: Prisma.SortOrder;
558
- type?: Prisma.SortOrder;
559
- provider?: Prisma.SortOrder;
560
- providerAccountId?: Prisma.SortOrder;
561
- refresh_token?: Prisma.SortOrder;
562
- access_token?: Prisma.SortOrder;
563
- expires_at?: Prisma.SortOrder;
564
- token_type?: Prisma.SortOrder;
565
- scope?: Prisma.SortOrder;
566
- id_token?: Prisma.SortOrder;
567
- session_state?: Prisma.SortOrder;
568
- };
569
-
570
- export type AccountMinOrderByAggregateInput = {
571
- id?: Prisma.SortOrder;
572
- userId?: Prisma.SortOrder;
573
- type?: Prisma.SortOrder;
574
- provider?: Prisma.SortOrder;
575
- providerAccountId?: Prisma.SortOrder;
576
- refresh_token?: Prisma.SortOrder;
577
- access_token?: Prisma.SortOrder;
578
- expires_at?: Prisma.SortOrder;
579
- token_type?: Prisma.SortOrder;
580
- scope?: Prisma.SortOrder;
581
- id_token?: Prisma.SortOrder;
582
- session_state?: Prisma.SortOrder;
583
- };
584
-
585
- export type AccountSumOrderByAggregateInput = {
586
- expires_at?: Prisma.SortOrder;
587
- };
588
-
589
- export type AccountCreateNestedManyWithoutUserInput = {
590
- create?:
591
- | Prisma.XOR<
592
- Prisma.AccountCreateWithoutUserInput,
593
- Prisma.AccountUncheckedCreateWithoutUserInput
594
- >
595
- | Prisma.AccountCreateWithoutUserInput[]
596
- | Prisma.AccountUncheckedCreateWithoutUserInput[];
597
- connectOrCreate?:
598
- | Prisma.AccountCreateOrConnectWithoutUserInput
599
- | Prisma.AccountCreateOrConnectWithoutUserInput[];
600
- createMany?: Prisma.AccountCreateManyUserInputEnvelope;
601
- connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
602
- };
603
-
604
- export type AccountUncheckedCreateNestedManyWithoutUserInput = {
605
- create?:
606
- | Prisma.XOR<
607
- Prisma.AccountCreateWithoutUserInput,
608
- Prisma.AccountUncheckedCreateWithoutUserInput
609
- >
610
- | Prisma.AccountCreateWithoutUserInput[]
611
- | Prisma.AccountUncheckedCreateWithoutUserInput[];
612
- connectOrCreate?:
613
- | Prisma.AccountCreateOrConnectWithoutUserInput
614
- | Prisma.AccountCreateOrConnectWithoutUserInput[];
615
- createMany?: Prisma.AccountCreateManyUserInputEnvelope;
616
- connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
617
- };
618
-
619
- export type AccountUpdateManyWithoutUserNestedInput = {
620
- create?:
621
- | Prisma.XOR<
622
- Prisma.AccountCreateWithoutUserInput,
623
- Prisma.AccountUncheckedCreateWithoutUserInput
624
- >
625
- | Prisma.AccountCreateWithoutUserInput[]
626
- | Prisma.AccountUncheckedCreateWithoutUserInput[];
627
- connectOrCreate?:
628
- | Prisma.AccountCreateOrConnectWithoutUserInput
629
- | Prisma.AccountCreateOrConnectWithoutUserInput[];
630
- upsert?:
631
- | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput
632
- | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[];
633
- createMany?: Prisma.AccountCreateManyUserInputEnvelope;
634
- set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
635
- disconnect?:
636
- | Prisma.AccountWhereUniqueInput
637
- | Prisma.AccountWhereUniqueInput[];
638
- delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
639
- connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
640
- update?:
641
- | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput
642
- | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[];
643
- updateMany?:
644
- | Prisma.AccountUpdateManyWithWhereWithoutUserInput
645
- | Prisma.AccountUpdateManyWithWhereWithoutUserInput[];
646
- deleteMany?:
647
- | Prisma.AccountScalarWhereInput
648
- | Prisma.AccountScalarWhereInput[];
649
- };
650
-
651
- export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
652
- create?:
653
- | Prisma.XOR<
654
- Prisma.AccountCreateWithoutUserInput,
655
- Prisma.AccountUncheckedCreateWithoutUserInput
656
- >
657
- | Prisma.AccountCreateWithoutUserInput[]
658
- | Prisma.AccountUncheckedCreateWithoutUserInput[];
659
- connectOrCreate?:
660
- | Prisma.AccountCreateOrConnectWithoutUserInput
661
- | Prisma.AccountCreateOrConnectWithoutUserInput[];
662
- upsert?:
663
- | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput
664
- | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[];
665
- createMany?: Prisma.AccountCreateManyUserInputEnvelope;
666
- set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
667
- disconnect?:
668
- | Prisma.AccountWhereUniqueInput
669
- | Prisma.AccountWhereUniqueInput[];
670
- delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
671
- connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
672
- update?:
673
- | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput
674
- | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[];
675
- updateMany?:
676
- | Prisma.AccountUpdateManyWithWhereWithoutUserInput
677
- | Prisma.AccountUpdateManyWithWhereWithoutUserInput[];
678
- deleteMany?:
679
- | Prisma.AccountScalarWhereInput
680
- | Prisma.AccountScalarWhereInput[];
681
- };
682
-
683
- export type NullableIntFieldUpdateOperationsInput = {
684
- set?: number | null;
685
- increment?: number;
686
- decrement?: number;
687
- multiply?: number;
688
- divide?: number;
689
- };
690
-
691
- export type AccountCreateWithoutUserInput = {
692
- id?: string;
693
- type: string;
694
- provider: string;
695
- providerAccountId: string;
696
- refresh_token?: string | null;
697
- access_token?: string | null;
698
- expires_at?: number | null;
699
- token_type?: string | null;
700
- scope?: string | null;
701
- id_token?: string | null;
702
- session_state?: string | null;
703
- };
704
-
705
- export type AccountUncheckedCreateWithoutUserInput = {
706
- id?: string;
707
- type: string;
708
- provider: string;
709
- providerAccountId: string;
710
- refresh_token?: string | null;
711
- access_token?: string | null;
712
- expires_at?: number | null;
713
- token_type?: string | null;
714
- scope?: string | null;
715
- id_token?: string | null;
716
- session_state?: string | null;
717
- };
718
-
719
- export type AccountCreateOrConnectWithoutUserInput = {
720
- where: Prisma.AccountWhereUniqueInput;
721
- create: Prisma.XOR<
722
- Prisma.AccountCreateWithoutUserInput,
723
- Prisma.AccountUncheckedCreateWithoutUserInput
724
- >;
725
- };
726
-
727
- export type AccountCreateManyUserInputEnvelope = {
728
- data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[];
729
- skipDuplicates?: boolean;
730
- };
731
-
732
- export type AccountUpsertWithWhereUniqueWithoutUserInput = {
733
- where: Prisma.AccountWhereUniqueInput;
734
- update: Prisma.XOR<
735
- Prisma.AccountUpdateWithoutUserInput,
736
- Prisma.AccountUncheckedUpdateWithoutUserInput
737
- >;
738
- create: Prisma.XOR<
739
- Prisma.AccountCreateWithoutUserInput,
740
- Prisma.AccountUncheckedCreateWithoutUserInput
741
- >;
742
- };
743
-
744
- export type AccountUpdateWithWhereUniqueWithoutUserInput = {
745
- where: Prisma.AccountWhereUniqueInput;
746
- data: Prisma.XOR<
747
- Prisma.AccountUpdateWithoutUserInput,
748
- Prisma.AccountUncheckedUpdateWithoutUserInput
749
- >;
750
- };
751
-
752
- export type AccountUpdateManyWithWhereWithoutUserInput = {
753
- where: Prisma.AccountScalarWhereInput;
754
- data: Prisma.XOR<
755
- Prisma.AccountUpdateManyMutationInput,
756
- Prisma.AccountUncheckedUpdateManyWithoutUserInput
757
- >;
758
- };
759
-
760
- export type AccountScalarWhereInput = {
761
- AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[];
762
- OR?: Prisma.AccountScalarWhereInput[];
763
- NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[];
764
- id?: Prisma.StringFilter<"Account"> | string;
765
- userId?: Prisma.StringFilter<"Account"> | string;
766
- type?: Prisma.StringFilter<"Account"> | string;
767
- provider?: Prisma.StringFilter<"Account"> | string;
768
- providerAccountId?: Prisma.StringFilter<"Account"> | string;
769
- refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null;
770
- access_token?: Prisma.StringNullableFilter<"Account"> | string | null;
771
- expires_at?: Prisma.IntNullableFilter<"Account"> | number | null;
772
- token_type?: Prisma.StringNullableFilter<"Account"> | string | null;
773
- scope?: Prisma.StringNullableFilter<"Account"> | string | null;
774
- id_token?: Prisma.StringNullableFilter<"Account"> | string | null;
775
- session_state?: Prisma.StringNullableFilter<"Account"> | string | null;
776
- };
777
-
778
- export type AccountCreateManyUserInput = {
779
- id?: string;
780
- type: string;
781
- provider: string;
782
- providerAccountId: string;
783
- refresh_token?: string | null;
784
- access_token?: string | null;
785
- expires_at?: number | null;
786
- token_type?: string | null;
787
- scope?: string | null;
788
- id_token?: string | null;
789
- session_state?: string | null;
790
- };
791
-
792
- export type AccountUpdateWithoutUserInput = {
793
- id?: Prisma.StringFieldUpdateOperationsInput | string;
794
- type?: Prisma.StringFieldUpdateOperationsInput | string;
795
- provider?: Prisma.StringFieldUpdateOperationsInput | string;
796
- providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string;
797
- refresh_token?:
798
- | Prisma.NullableStringFieldUpdateOperationsInput
799
- | string
800
- | null;
801
- access_token?:
802
- | Prisma.NullableStringFieldUpdateOperationsInput
803
- | string
804
- | null;
805
- expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
806
- token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
807
- scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
808
- id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
809
- session_state?:
810
- | Prisma.NullableStringFieldUpdateOperationsInput
811
- | string
812
- | null;
813
- };
814
-
815
- export type AccountUncheckedUpdateWithoutUserInput = {
816
- id?: Prisma.StringFieldUpdateOperationsInput | string;
817
- type?: Prisma.StringFieldUpdateOperationsInput | string;
818
- provider?: Prisma.StringFieldUpdateOperationsInput | string;
819
- providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string;
820
- refresh_token?:
821
- | Prisma.NullableStringFieldUpdateOperationsInput
822
- | string
823
- | null;
824
- access_token?:
825
- | Prisma.NullableStringFieldUpdateOperationsInput
826
- | string
827
- | null;
828
- expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
829
- token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
830
- scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
831
- id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
832
- session_state?:
833
- | Prisma.NullableStringFieldUpdateOperationsInput
834
- | string
835
- | null;
836
- };
837
-
838
- export type AccountUncheckedUpdateManyWithoutUserInput = {
839
- id?: Prisma.StringFieldUpdateOperationsInput | string;
840
- type?: Prisma.StringFieldUpdateOperationsInput | string;
841
- provider?: Prisma.StringFieldUpdateOperationsInput | string;
842
- providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string;
843
- refresh_token?:
844
- | Prisma.NullableStringFieldUpdateOperationsInput
845
- | string
846
- | null;
847
- access_token?:
848
- | Prisma.NullableStringFieldUpdateOperationsInput
849
- | string
850
- | null;
851
- expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
852
- token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
853
- scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
854
- id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
855
- session_state?:
856
- | Prisma.NullableStringFieldUpdateOperationsInput
857
- | string
858
- | null;
859
- };
860
-
861
- export type AccountSelect<
862
- ExtArgs extends
863
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
864
- > = runtime.Types.Extensions.GetSelect<
865
- {
866
- id?: boolean;
867
- userId?: boolean;
868
- type?: boolean;
869
- provider?: boolean;
870
- providerAccountId?: boolean;
871
- refresh_token?: boolean;
872
- access_token?: boolean;
873
- expires_at?: boolean;
874
- token_type?: boolean;
875
- scope?: boolean;
876
- id_token?: boolean;
877
- session_state?: boolean;
878
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
879
- },
880
- ExtArgs["result"]["account"]
881
- >;
882
-
883
- export type AccountSelectCreateManyAndReturn<
884
- ExtArgs extends
885
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
886
- > = runtime.Types.Extensions.GetSelect<
887
- {
888
- id?: boolean;
889
- userId?: boolean;
890
- type?: boolean;
891
- provider?: boolean;
892
- providerAccountId?: boolean;
893
- refresh_token?: boolean;
894
- access_token?: boolean;
895
- expires_at?: boolean;
896
- token_type?: boolean;
897
- scope?: boolean;
898
- id_token?: boolean;
899
- session_state?: boolean;
900
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
901
- },
902
- ExtArgs["result"]["account"]
903
- >;
904
-
905
- export type AccountSelectUpdateManyAndReturn<
906
- ExtArgs extends
907
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
908
- > = runtime.Types.Extensions.GetSelect<
909
- {
910
- id?: boolean;
911
- userId?: boolean;
912
- type?: boolean;
913
- provider?: boolean;
914
- providerAccountId?: boolean;
915
- refresh_token?: boolean;
916
- access_token?: boolean;
917
- expires_at?: boolean;
918
- token_type?: boolean;
919
- scope?: boolean;
920
- id_token?: boolean;
921
- session_state?: boolean;
922
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
923
- },
924
- ExtArgs["result"]["account"]
925
- >;
926
-
927
- export type AccountSelectScalar = {
928
- id?: boolean;
929
- userId?: boolean;
930
- type?: boolean;
931
- provider?: boolean;
932
- providerAccountId?: boolean;
933
- refresh_token?: boolean;
934
- access_token?: boolean;
935
- expires_at?: boolean;
936
- token_type?: boolean;
937
- scope?: boolean;
938
- id_token?: boolean;
939
- session_state?: boolean;
940
- };
941
-
942
- export type AccountOmit<
943
- ExtArgs extends
944
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
945
- > = runtime.Types.Extensions.GetOmit<
946
- | "id"
947
- | "userId"
948
- | "type"
949
- | "provider"
950
- | "providerAccountId"
951
- | "refresh_token"
952
- | "access_token"
953
- | "expires_at"
954
- | "token_type"
955
- | "scope"
956
- | "id_token"
957
- | "session_state",
958
- ExtArgs["result"]["account"]
959
- >;
960
- export type AccountInclude<
961
- ExtArgs extends
962
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
963
- > = {
964
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
965
- };
966
- export type AccountIncludeCreateManyAndReturn<
967
- ExtArgs extends
968
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
969
- > = {
970
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
971
- };
972
- export type AccountIncludeUpdateManyAndReturn<
973
- ExtArgs extends
974
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
975
- > = {
976
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
977
- };
978
-
979
- export type $AccountPayload<
980
- ExtArgs extends
981
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
982
- > = {
983
- name: "Account";
984
- objects: {
985
- user: Prisma.$UserPayload<ExtArgs>;
986
- };
987
- scalars: runtime.Types.Extensions.GetPayloadResult<
988
- {
989
- id: string;
990
- userId: string;
991
- type: string;
992
- provider: string;
993
- providerAccountId: string;
994
- refresh_token: string | null;
995
- access_token: string | null;
996
- expires_at: number | null;
997
- token_type: string | null;
998
- scope: string | null;
999
- id_token: string | null;
1000
- session_state: string | null;
1001
- },
1002
- ExtArgs["result"]["account"]
1003
- >;
1004
- composites: {};
1005
- };
1006
-
1007
- export type AccountGetPayload<
1008
- S extends boolean | null | undefined | AccountDefaultArgs,
1009
- > = runtime.Types.Result.GetResult<Prisma.$AccountPayload, S>;
1010
-
1011
- export type AccountCountArgs<
1012
- ExtArgs extends
1013
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1014
- > = Omit<AccountFindManyArgs, "select" | "include" | "distinct" | "omit"> & {
1015
- select?: AccountCountAggregateInputType | true;
1016
- };
1017
-
1018
- export interface AccountDelegate<
1019
- ExtArgs extends
1020
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1021
- GlobalOmitOptions = {},
1022
- > {
1023
- [K: symbol]: {
1024
- types: Prisma.TypeMap<ExtArgs>["model"]["Account"];
1025
- meta: { name: "Account" };
1026
- };
1027
- /**
1028
- * Find zero or one Account that matches the filter.
1029
- * @param {AccountFindUniqueArgs} args - Arguments to find a Account
1030
- * @example
1031
- * // Get one Account
1032
- * const account = await prisma.account.findUnique({
1033
- * where: {
1034
- * // ... provide filter here
1035
- * }
1036
- * })
1037
- */
1038
- findUnique<T extends AccountFindUniqueArgs>(
1039
- args: Prisma.SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>,
1040
- ): Prisma.Prisma__AccountClient<
1041
- runtime.Types.Result.GetResult<
1042
- Prisma.$AccountPayload<ExtArgs>,
1043
- T,
1044
- "findUnique",
1045
- GlobalOmitOptions
1046
- > | null,
1047
- null,
1048
- ExtArgs,
1049
- GlobalOmitOptions
1050
- >;
1051
-
1052
- /**
1053
- * Find one Account that matches the filter or throw an error with `error.code='P2025'`
1054
- * if no matches were found.
1055
- * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
1056
- * @example
1057
- * // Get one Account
1058
- * const account = await prisma.account.findUniqueOrThrow({
1059
- * where: {
1060
- * // ... provide filter here
1061
- * }
1062
- * })
1063
- */
1064
- findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(
1065
- args: Prisma.SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>,
1066
- ): Prisma.Prisma__AccountClient<
1067
- runtime.Types.Result.GetResult<
1068
- Prisma.$AccountPayload<ExtArgs>,
1069
- T,
1070
- "findUniqueOrThrow",
1071
- GlobalOmitOptions
1072
- >,
1073
- never,
1074
- ExtArgs,
1075
- GlobalOmitOptions
1076
- >;
1077
-
1078
- /**
1079
- * Find the first Account that matches the filter.
1080
- * Note, that providing `undefined` is treated as the value not being there.
1081
- * Read more here: https://pris.ly/d/null-undefined
1082
- * @param {AccountFindFirstArgs} args - Arguments to find a Account
1083
- * @example
1084
- * // Get one Account
1085
- * const account = await prisma.account.findFirst({
1086
- * where: {
1087
- * // ... provide filter here
1088
- * }
1089
- * })
1090
- */
1091
- findFirst<T extends AccountFindFirstArgs>(
1092
- args?: Prisma.SelectSubset<T, AccountFindFirstArgs<ExtArgs>>,
1093
- ): Prisma.Prisma__AccountClient<
1094
- runtime.Types.Result.GetResult<
1095
- Prisma.$AccountPayload<ExtArgs>,
1096
- T,
1097
- "findFirst",
1098
- GlobalOmitOptions
1099
- > | null,
1100
- null,
1101
- ExtArgs,
1102
- GlobalOmitOptions
1103
- >;
1104
-
1105
- /**
1106
- * Find the first Account that matches the filter or
1107
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1108
- * Note, that providing `undefined` is treated as the value not being there.
1109
- * Read more here: https://pris.ly/d/null-undefined
1110
- * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
1111
- * @example
1112
- * // Get one Account
1113
- * const account = await prisma.account.findFirstOrThrow({
1114
- * where: {
1115
- * // ... provide filter here
1116
- * }
1117
- * })
1118
- */
1119
- findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(
1120
- args?: Prisma.SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>,
1121
- ): Prisma.Prisma__AccountClient<
1122
- runtime.Types.Result.GetResult<
1123
- Prisma.$AccountPayload<ExtArgs>,
1124
- T,
1125
- "findFirstOrThrow",
1126
- GlobalOmitOptions
1127
- >,
1128
- never,
1129
- ExtArgs,
1130
- GlobalOmitOptions
1131
- >;
1132
-
1133
- /**
1134
- * Find zero or more Accounts that matches the filter.
1135
- * Note, that providing `undefined` is treated as the value not being there.
1136
- * Read more here: https://pris.ly/d/null-undefined
1137
- * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
1138
- * @example
1139
- * // Get all Accounts
1140
- * const accounts = await prisma.account.findMany()
1141
- *
1142
- * // Get first 10 Accounts
1143
- * const accounts = await prisma.account.findMany({ take: 10 })
1144
- *
1145
- * // Only select the `id`
1146
- * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
1147
- *
1148
- */
1149
- findMany<T extends AccountFindManyArgs>(
1150
- args?: Prisma.SelectSubset<T, AccountFindManyArgs<ExtArgs>>,
1151
- ): Prisma.PrismaPromise<
1152
- runtime.Types.Result.GetResult<
1153
- Prisma.$AccountPayload<ExtArgs>,
1154
- T,
1155
- "findMany",
1156
- GlobalOmitOptions
1157
- >
1158
- >;
1159
-
1160
- /**
1161
- * Create a Account.
1162
- * @param {AccountCreateArgs} args - Arguments to create a Account.
1163
- * @example
1164
- * // Create one Account
1165
- * const Account = await prisma.account.create({
1166
- * data: {
1167
- * // ... data to create a Account
1168
- * }
1169
- * })
1170
- *
1171
- */
1172
- create<T extends AccountCreateArgs>(
1173
- args: Prisma.SelectSubset<T, AccountCreateArgs<ExtArgs>>,
1174
- ): Prisma.Prisma__AccountClient<
1175
- runtime.Types.Result.GetResult<
1176
- Prisma.$AccountPayload<ExtArgs>,
1177
- T,
1178
- "create",
1179
- GlobalOmitOptions
1180
- >,
1181
- never,
1182
- ExtArgs,
1183
- GlobalOmitOptions
1184
- >;
1185
-
1186
- /**
1187
- * Create many Accounts.
1188
- * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
1189
- * @example
1190
- * // Create many Accounts
1191
- * const account = await prisma.account.createMany({
1192
- * data: [
1193
- * // ... provide data here
1194
- * ]
1195
- * })
1196
- *
1197
- */
1198
- createMany<T extends AccountCreateManyArgs>(
1199
- args?: Prisma.SelectSubset<T, AccountCreateManyArgs<ExtArgs>>,
1200
- ): Prisma.PrismaPromise<Prisma.BatchPayload>;
1201
-
1202
- /**
1203
- * Create many Accounts and returns the data saved in the database.
1204
- * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
1205
- * @example
1206
- * // Create many Accounts
1207
- * const account = await prisma.account.createManyAndReturn({
1208
- * data: [
1209
- * // ... provide data here
1210
- * ]
1211
- * })
1212
- *
1213
- * // Create many Accounts and only return the `id`
1214
- * const accountWithIdOnly = await prisma.account.createManyAndReturn({
1215
- * select: { id: true },
1216
- * data: [
1217
- * // ... provide data here
1218
- * ]
1219
- * })
1220
- * Note, that providing `undefined` is treated as the value not being there.
1221
- * Read more here: https://pris.ly/d/null-undefined
1222
- *
1223
- */
1224
- createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(
1225
- args?: Prisma.SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>,
1226
- ): Prisma.PrismaPromise<
1227
- runtime.Types.Result.GetResult<
1228
- Prisma.$AccountPayload<ExtArgs>,
1229
- T,
1230
- "createManyAndReturn",
1231
- GlobalOmitOptions
1232
- >
1233
- >;
1234
-
1235
- /**
1236
- * Delete a Account.
1237
- * @param {AccountDeleteArgs} args - Arguments to delete one Account.
1238
- * @example
1239
- * // Delete one Account
1240
- * const Account = await prisma.account.delete({
1241
- * where: {
1242
- * // ... filter to delete one Account
1243
- * }
1244
- * })
1245
- *
1246
- */
1247
- delete<T extends AccountDeleteArgs>(
1248
- args: Prisma.SelectSubset<T, AccountDeleteArgs<ExtArgs>>,
1249
- ): Prisma.Prisma__AccountClient<
1250
- runtime.Types.Result.GetResult<
1251
- Prisma.$AccountPayload<ExtArgs>,
1252
- T,
1253
- "delete",
1254
- GlobalOmitOptions
1255
- >,
1256
- never,
1257
- ExtArgs,
1258
- GlobalOmitOptions
1259
- >;
1260
-
1261
- /**
1262
- * Update one Account.
1263
- * @param {AccountUpdateArgs} args - Arguments to update one Account.
1264
- * @example
1265
- * // Update one Account
1266
- * const account = await prisma.account.update({
1267
- * where: {
1268
- * // ... provide filter here
1269
- * },
1270
- * data: {
1271
- * // ... provide data here
1272
- * }
1273
- * })
1274
- *
1275
- */
1276
- update<T extends AccountUpdateArgs>(
1277
- args: Prisma.SelectSubset<T, AccountUpdateArgs<ExtArgs>>,
1278
- ): Prisma.Prisma__AccountClient<
1279
- runtime.Types.Result.GetResult<
1280
- Prisma.$AccountPayload<ExtArgs>,
1281
- T,
1282
- "update",
1283
- GlobalOmitOptions
1284
- >,
1285
- never,
1286
- ExtArgs,
1287
- GlobalOmitOptions
1288
- >;
1289
-
1290
- /**
1291
- * Delete zero or more Accounts.
1292
- * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
1293
- * @example
1294
- * // Delete a few Accounts
1295
- * const { count } = await prisma.account.deleteMany({
1296
- * where: {
1297
- * // ... provide filter here
1298
- * }
1299
- * })
1300
- *
1301
- */
1302
- deleteMany<T extends AccountDeleteManyArgs>(
1303
- args?: Prisma.SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>,
1304
- ): Prisma.PrismaPromise<Prisma.BatchPayload>;
1305
-
1306
- /**
1307
- * Update zero or more Accounts.
1308
- * Note, that providing `undefined` is treated as the value not being there.
1309
- * Read more here: https://pris.ly/d/null-undefined
1310
- * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
1311
- * @example
1312
- * // Update many Accounts
1313
- * const account = await prisma.account.updateMany({
1314
- * where: {
1315
- * // ... provide filter here
1316
- * },
1317
- * data: {
1318
- * // ... provide data here
1319
- * }
1320
- * })
1321
- *
1322
- */
1323
- updateMany<T extends AccountUpdateManyArgs>(
1324
- args: Prisma.SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>,
1325
- ): Prisma.PrismaPromise<Prisma.BatchPayload>;
1326
-
1327
- /**
1328
- * Update zero or more Accounts and returns the data updated in the database.
1329
- * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
1330
- * @example
1331
- * // Update many Accounts
1332
- * const account = await prisma.account.updateManyAndReturn({
1333
- * where: {
1334
- * // ... provide filter here
1335
- * },
1336
- * data: [
1337
- * // ... provide data here
1338
- * ]
1339
- * })
1340
- *
1341
- * // Update zero or more Accounts and only return the `id`
1342
- * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
1343
- * select: { id: true },
1344
- * where: {
1345
- * // ... provide filter here
1346
- * },
1347
- * data: [
1348
- * // ... provide data here
1349
- * ]
1350
- * })
1351
- * Note, that providing `undefined` is treated as the value not being there.
1352
- * Read more here: https://pris.ly/d/null-undefined
1353
- *
1354
- */
1355
- updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(
1356
- args: Prisma.SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>,
1357
- ): Prisma.PrismaPromise<
1358
- runtime.Types.Result.GetResult<
1359
- Prisma.$AccountPayload<ExtArgs>,
1360
- T,
1361
- "updateManyAndReturn",
1362
- GlobalOmitOptions
1363
- >
1364
- >;
1365
-
1366
- /**
1367
- * Create or update one Account.
1368
- * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
1369
- * @example
1370
- * // Update or create a Account
1371
- * const account = await prisma.account.upsert({
1372
- * create: {
1373
- * // ... data to create a Account
1374
- * },
1375
- * update: {
1376
- * // ... in case it already exists, update
1377
- * },
1378
- * where: {
1379
- * // ... the filter for the Account we want to update
1380
- * }
1381
- * })
1382
- */
1383
- upsert<T extends AccountUpsertArgs>(
1384
- args: Prisma.SelectSubset<T, AccountUpsertArgs<ExtArgs>>,
1385
- ): Prisma.Prisma__AccountClient<
1386
- runtime.Types.Result.GetResult<
1387
- Prisma.$AccountPayload<ExtArgs>,
1388
- T,
1389
- "upsert",
1390
- GlobalOmitOptions
1391
- >,
1392
- never,
1393
- ExtArgs,
1394
- GlobalOmitOptions
1395
- >;
1396
-
1397
- /**
1398
- * Count the number of Accounts.
1399
- * Note, that providing `undefined` is treated as the value not being there.
1400
- * Read more here: https://pris.ly/d/null-undefined
1401
- * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
1402
- * @example
1403
- * // Count the number of Accounts
1404
- * const count = await prisma.account.count({
1405
- * where: {
1406
- * // ... the filter for the Accounts we want to count
1407
- * }
1408
- * })
1409
- **/
1410
- count<T extends AccountCountArgs>(
1411
- args?: Prisma.Subset<T, AccountCountArgs>,
1412
- ): Prisma.PrismaPromise<
1413
- T extends runtime.Types.Utils.Record<"select", any>
1414
- ? T["select"] extends true
1415
- ? number
1416
- : Prisma.GetScalarType<T["select"], AccountCountAggregateOutputType>
1417
- : number
1418
- >;
1419
-
1420
- /**
1421
- * Allows you to perform aggregations operations on a Account.
1422
- * Note, that providing `undefined` is treated as the value not being there.
1423
- * Read more here: https://pris.ly/d/null-undefined
1424
- * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1425
- * @example
1426
- * // Ordered by age ascending
1427
- * // Where email contains prisma.io
1428
- * // Limited to the 10 users
1429
- * const aggregations = await prisma.user.aggregate({
1430
- * _avg: {
1431
- * age: true,
1432
- * },
1433
- * where: {
1434
- * email: {
1435
- * contains: "prisma.io",
1436
- * },
1437
- * },
1438
- * orderBy: {
1439
- * age: "asc",
1440
- * },
1441
- * take: 10,
1442
- * })
1443
- **/
1444
- aggregate<T extends AccountAggregateArgs>(
1445
- args: Prisma.Subset<T, AccountAggregateArgs>,
1446
- ): Prisma.PrismaPromise<GetAccountAggregateType<T>>;
1447
-
1448
- /**
1449
- * Group by Account.
1450
- * Note, that providing `undefined` is treated as the value not being there.
1451
- * Read more here: https://pris.ly/d/null-undefined
1452
- * @param {AccountGroupByArgs} args - Group by arguments.
1453
- * @example
1454
- * // Group by city, order by createdAt, get count
1455
- * const result = await prisma.user.groupBy({
1456
- * by: ['city', 'createdAt'],
1457
- * orderBy: {
1458
- * createdAt: true
1459
- * },
1460
- * _count: {
1461
- * _all: true
1462
- * },
1463
- * })
1464
- *
1465
- **/
1466
- groupBy<
1467
- T extends AccountGroupByArgs,
1468
- HasSelectOrTake extends Prisma.Or<
1469
- Prisma.Extends<"skip", Prisma.Keys<T>>,
1470
- Prisma.Extends<"take", Prisma.Keys<T>>
1471
- >,
1472
- OrderByArg extends Prisma.True extends HasSelectOrTake
1473
- ? { orderBy: AccountGroupByArgs["orderBy"] }
1474
- : { orderBy?: AccountGroupByArgs["orderBy"] },
1475
- OrderFields extends Prisma.ExcludeUnderscoreKeys<
1476
- Prisma.Keys<Prisma.MaybeTupleToUnion<T["orderBy"]>>
1477
- >,
1478
- ByFields extends Prisma.MaybeTupleToUnion<T["by"]>,
1479
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1480
- HavingFields extends Prisma.GetHavingFields<T["having"]>,
1481
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1482
- ByEmpty extends T["by"] extends never[] ? Prisma.True : Prisma.False,
1483
- InputErrors extends ByEmpty extends Prisma.True
1484
- ? `Error: "by" must not be empty.`
1485
- : HavingValid extends Prisma.False
1486
- ? {
1487
- [P in HavingFields]: P extends ByFields
1488
- ? never
1489
- : P extends string
1490
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1491
- : [
1492
- Error,
1493
- "Field ",
1494
- P,
1495
- ` in "having" needs to be provided in "by"`,
1496
- ];
1497
- }[HavingFields]
1498
- : "take" extends Prisma.Keys<T>
1499
- ? "orderBy" extends Prisma.Keys<T>
1500
- ? ByValid extends Prisma.True
1501
- ? {}
1502
- : {
1503
- [P in OrderFields]: P extends ByFields
1504
- ? never
1505
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1506
- }[OrderFields]
1507
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1508
- : "skip" extends Prisma.Keys<T>
1509
- ? "orderBy" extends Prisma.Keys<T>
1510
- ? ByValid extends Prisma.True
1511
- ? {}
1512
- : {
1513
- [P in OrderFields]: P extends ByFields
1514
- ? never
1515
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1516
- }[OrderFields]
1517
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1518
- : ByValid extends Prisma.True
1519
- ? {}
1520
- : {
1521
- [P in OrderFields]: P extends ByFields
1522
- ? never
1523
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1524
- }[OrderFields],
1525
- >(
1526
- args: Prisma.SubsetIntersection<T, AccountGroupByArgs, OrderByArg> &
1527
- InputErrors,
1528
- ): {} extends InputErrors
1529
- ? GetAccountGroupByPayload<T>
1530
- : Prisma.PrismaPromise<InputErrors>;
1531
- /**
1532
- * Fields of the Account model
1533
- */
1534
- readonly fields: AccountFieldRefs;
1535
- }
1536
-
1537
- /**
1538
- * The delegate class that acts as a "Promise-like" for Account.
1539
- * Why is this prefixed with `Prisma__`?
1540
- * Because we want to prevent naming conflicts as mentioned in
1541
- * https://github.com/prisma/prisma-client-js/issues/707
1542
- */
1543
- export interface Prisma__AccountClient<
1544
- T,
1545
- Null = never,
1546
- ExtArgs extends
1547
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1548
- GlobalOmitOptions = {},
1549
- > extends Prisma.PrismaPromise<T> {
1550
- readonly [Symbol.toStringTag]: "PrismaPromise";
1551
- user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(
1552
- args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>,
1553
- ): Prisma.Prisma__UserClient<
1554
- | runtime.Types.Result.GetResult<
1555
- Prisma.$UserPayload<ExtArgs>,
1556
- T,
1557
- "findUniqueOrThrow",
1558
- GlobalOmitOptions
1559
- >
1560
- | Null,
1561
- Null,
1562
- ExtArgs,
1563
- GlobalOmitOptions
1564
- >;
1565
- /**
1566
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1567
- * @param onfulfilled The callback to execute when the Promise is resolved.
1568
- * @param onrejected The callback to execute when the Promise is rejected.
1569
- * @returns A Promise for the completion of which ever callback is executed.
1570
- */
1571
- then<TResult1 = T, TResult2 = never>(
1572
- onfulfilled?:
1573
- | ((value: T) => TResult1 | PromiseLike<TResult1>)
1574
- | undefined
1575
- | null,
1576
- onrejected?:
1577
- | ((reason: any) => TResult2 | PromiseLike<TResult2>)
1578
- | undefined
1579
- | null,
1580
- ): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
1581
- /**
1582
- * Attaches a callback for only the rejection of the Promise.
1583
- * @param onrejected The callback to execute when the Promise is rejected.
1584
- * @returns A Promise for the completion of the callback.
1585
- */
1586
- catch<TResult = never>(
1587
- onrejected?:
1588
- | ((reason: any) => TResult | PromiseLike<TResult>)
1589
- | undefined
1590
- | null,
1591
- ): runtime.Types.Utils.JsPromise<T | TResult>;
1592
- /**
1593
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1594
- * resolved value cannot be modified from the callback.
1595
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1596
- * @returns A Promise for the completion of the callback.
1597
- */
1598
- finally(
1599
- onfinally?: (() => void) | undefined | null,
1600
- ): runtime.Types.Utils.JsPromise<T>;
1601
- }
1602
-
1603
- /**
1604
- * Fields of the Account model
1605
- */
1606
- export interface AccountFieldRefs {
1607
- readonly id: Prisma.FieldRef<"Account", "String">;
1608
- readonly userId: Prisma.FieldRef<"Account", "String">;
1609
- readonly type: Prisma.FieldRef<"Account", "String">;
1610
- readonly provider: Prisma.FieldRef<"Account", "String">;
1611
- readonly providerAccountId: Prisma.FieldRef<"Account", "String">;
1612
- readonly refresh_token: Prisma.FieldRef<"Account", "String">;
1613
- readonly access_token: Prisma.FieldRef<"Account", "String">;
1614
- readonly expires_at: Prisma.FieldRef<"Account", "Int">;
1615
- readonly token_type: Prisma.FieldRef<"Account", "String">;
1616
- readonly scope: Prisma.FieldRef<"Account", "String">;
1617
- readonly id_token: Prisma.FieldRef<"Account", "String">;
1618
- readonly session_state: Prisma.FieldRef<"Account", "String">;
1619
- }
1620
-
1621
- // Custom InputTypes
1622
- /**
1623
- * Account findUnique
1624
- */
1625
- export type AccountFindUniqueArgs<
1626
- ExtArgs extends
1627
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1628
- > = {
1629
- /**
1630
- * Select specific fields to fetch from the Account
1631
- */
1632
- select?: Prisma.AccountSelect<ExtArgs> | null;
1633
- /**
1634
- * Omit specific fields from the Account
1635
- */
1636
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1637
- /**
1638
- * Choose, which related nodes to fetch as well
1639
- */
1640
- include?: Prisma.AccountInclude<ExtArgs> | null;
1641
- /**
1642
- * Filter, which Account to fetch.
1643
- */
1644
- where: Prisma.AccountWhereUniqueInput;
1645
- };
1646
-
1647
- /**
1648
- * Account findUniqueOrThrow
1649
- */
1650
- export type AccountFindUniqueOrThrowArgs<
1651
- ExtArgs extends
1652
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1653
- > = {
1654
- /**
1655
- * Select specific fields to fetch from the Account
1656
- */
1657
- select?: Prisma.AccountSelect<ExtArgs> | null;
1658
- /**
1659
- * Omit specific fields from the Account
1660
- */
1661
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1662
- /**
1663
- * Choose, which related nodes to fetch as well
1664
- */
1665
- include?: Prisma.AccountInclude<ExtArgs> | null;
1666
- /**
1667
- * Filter, which Account to fetch.
1668
- */
1669
- where: Prisma.AccountWhereUniqueInput;
1670
- };
1671
-
1672
- /**
1673
- * Account findFirst
1674
- */
1675
- export type AccountFindFirstArgs<
1676
- ExtArgs extends
1677
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1678
- > = {
1679
- /**
1680
- * Select specific fields to fetch from the Account
1681
- */
1682
- select?: Prisma.AccountSelect<ExtArgs> | null;
1683
- /**
1684
- * Omit specific fields from the Account
1685
- */
1686
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1687
- /**
1688
- * Choose, which related nodes to fetch as well
1689
- */
1690
- include?: Prisma.AccountInclude<ExtArgs> | null;
1691
- /**
1692
- * Filter, which Account to fetch.
1693
- */
1694
- where?: Prisma.AccountWhereInput;
1695
- /**
1696
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1697
- *
1698
- * Determine the order of Accounts to fetch.
1699
- */
1700
- orderBy?:
1701
- | Prisma.AccountOrderByWithRelationInput
1702
- | Prisma.AccountOrderByWithRelationInput[];
1703
- /**
1704
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1705
- *
1706
- * Sets the position for searching for Accounts.
1707
- */
1708
- cursor?: Prisma.AccountWhereUniqueInput;
1709
- /**
1710
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1711
- *
1712
- * Take `±n` Accounts from the position of the cursor.
1713
- */
1714
- take?: number;
1715
- /**
1716
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1717
- *
1718
- * Skip the first `n` Accounts.
1719
- */
1720
- skip?: number;
1721
- /**
1722
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1723
- *
1724
- * Filter by unique combinations of Accounts.
1725
- */
1726
- distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
1727
- };
1728
-
1729
- /**
1730
- * Account findFirstOrThrow
1731
- */
1732
- export type AccountFindFirstOrThrowArgs<
1733
- ExtArgs extends
1734
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1735
- > = {
1736
- /**
1737
- * Select specific fields to fetch from the Account
1738
- */
1739
- select?: Prisma.AccountSelect<ExtArgs> | null;
1740
- /**
1741
- * Omit specific fields from the Account
1742
- */
1743
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1744
- /**
1745
- * Choose, which related nodes to fetch as well
1746
- */
1747
- include?: Prisma.AccountInclude<ExtArgs> | null;
1748
- /**
1749
- * Filter, which Account to fetch.
1750
- */
1751
- where?: Prisma.AccountWhereInput;
1752
- /**
1753
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1754
- *
1755
- * Determine the order of Accounts to fetch.
1756
- */
1757
- orderBy?:
1758
- | Prisma.AccountOrderByWithRelationInput
1759
- | Prisma.AccountOrderByWithRelationInput[];
1760
- /**
1761
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1762
- *
1763
- * Sets the position for searching for Accounts.
1764
- */
1765
- cursor?: Prisma.AccountWhereUniqueInput;
1766
- /**
1767
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1768
- *
1769
- * Take `±n` Accounts from the position of the cursor.
1770
- */
1771
- take?: number;
1772
- /**
1773
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1774
- *
1775
- * Skip the first `n` Accounts.
1776
- */
1777
- skip?: number;
1778
- /**
1779
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1780
- *
1781
- * Filter by unique combinations of Accounts.
1782
- */
1783
- distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
1784
- };
1785
-
1786
- /**
1787
- * Account findMany
1788
- */
1789
- export type AccountFindManyArgs<
1790
- ExtArgs extends
1791
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1792
- > = {
1793
- /**
1794
- * Select specific fields to fetch from the Account
1795
- */
1796
- select?: Prisma.AccountSelect<ExtArgs> | null;
1797
- /**
1798
- * Omit specific fields from the Account
1799
- */
1800
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1801
- /**
1802
- * Choose, which related nodes to fetch as well
1803
- */
1804
- include?: Prisma.AccountInclude<ExtArgs> | null;
1805
- /**
1806
- * Filter, which Accounts to fetch.
1807
- */
1808
- where?: Prisma.AccountWhereInput;
1809
- /**
1810
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1811
- *
1812
- * Determine the order of Accounts to fetch.
1813
- */
1814
- orderBy?:
1815
- | Prisma.AccountOrderByWithRelationInput
1816
- | Prisma.AccountOrderByWithRelationInput[];
1817
- /**
1818
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1819
- *
1820
- * Sets the position for listing Accounts.
1821
- */
1822
- cursor?: Prisma.AccountWhereUniqueInput;
1823
- /**
1824
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1825
- *
1826
- * Take `±n` Accounts from the position of the cursor.
1827
- */
1828
- take?: number;
1829
- /**
1830
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1831
- *
1832
- * Skip the first `n` Accounts.
1833
- */
1834
- skip?: number;
1835
- distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
1836
- };
1837
-
1838
- /**
1839
- * Account create
1840
- */
1841
- export type AccountCreateArgs<
1842
- ExtArgs extends
1843
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1844
- > = {
1845
- /**
1846
- * Select specific fields to fetch from the Account
1847
- */
1848
- select?: Prisma.AccountSelect<ExtArgs> | null;
1849
- /**
1850
- * Omit specific fields from the Account
1851
- */
1852
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1853
- /**
1854
- * Choose, which related nodes to fetch as well
1855
- */
1856
- include?: Prisma.AccountInclude<ExtArgs> | null;
1857
- /**
1858
- * The data needed to create a Account.
1859
- */
1860
- data: Prisma.XOR<
1861
- Prisma.AccountCreateInput,
1862
- Prisma.AccountUncheckedCreateInput
1863
- >;
1864
- };
1865
-
1866
- /**
1867
- * Account createMany
1868
- */
1869
- export type AccountCreateManyArgs<
1870
- ExtArgs extends
1871
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1872
- > = {
1873
- /**
1874
- * The data used to create many Accounts.
1875
- */
1876
- data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[];
1877
- skipDuplicates?: boolean;
1878
- };
1879
-
1880
- /**
1881
- * Account createManyAndReturn
1882
- */
1883
- export type AccountCreateManyAndReturnArgs<
1884
- ExtArgs extends
1885
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1886
- > = {
1887
- /**
1888
- * Select specific fields to fetch from the Account
1889
- */
1890
- select?: Prisma.AccountSelectCreateManyAndReturn<ExtArgs> | null;
1891
- /**
1892
- * Omit specific fields from the Account
1893
- */
1894
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1895
- /**
1896
- * The data used to create many Accounts.
1897
- */
1898
- data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[];
1899
- skipDuplicates?: boolean;
1900
- /**
1901
- * Choose, which related nodes to fetch as well
1902
- */
1903
- include?: Prisma.AccountIncludeCreateManyAndReturn<ExtArgs> | null;
1904
- };
1905
-
1906
- /**
1907
- * Account update
1908
- */
1909
- export type AccountUpdateArgs<
1910
- ExtArgs extends
1911
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1912
- > = {
1913
- /**
1914
- * Select specific fields to fetch from the Account
1915
- */
1916
- select?: Prisma.AccountSelect<ExtArgs> | null;
1917
- /**
1918
- * Omit specific fields from the Account
1919
- */
1920
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1921
- /**
1922
- * Choose, which related nodes to fetch as well
1923
- */
1924
- include?: Prisma.AccountInclude<ExtArgs> | null;
1925
- /**
1926
- * The data needed to update a Account.
1927
- */
1928
- data: Prisma.XOR<
1929
- Prisma.AccountUpdateInput,
1930
- Prisma.AccountUncheckedUpdateInput
1931
- >;
1932
- /**
1933
- * Choose, which Account to update.
1934
- */
1935
- where: Prisma.AccountWhereUniqueInput;
1936
- };
1937
-
1938
- /**
1939
- * Account updateMany
1940
- */
1941
- export type AccountUpdateManyArgs<
1942
- ExtArgs extends
1943
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1944
- > = {
1945
- /**
1946
- * The data used to update Accounts.
1947
- */
1948
- data: Prisma.XOR<
1949
- Prisma.AccountUpdateManyMutationInput,
1950
- Prisma.AccountUncheckedUpdateManyInput
1951
- >;
1952
- /**
1953
- * Filter which Accounts to update
1954
- */
1955
- where?: Prisma.AccountWhereInput;
1956
- /**
1957
- * Limit how many Accounts to update.
1958
- */
1959
- limit?: number;
1960
- };
1961
-
1962
- /**
1963
- * Account updateManyAndReturn
1964
- */
1965
- export type AccountUpdateManyAndReturnArgs<
1966
- ExtArgs extends
1967
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1968
- > = {
1969
- /**
1970
- * Select specific fields to fetch from the Account
1971
- */
1972
- select?: Prisma.AccountSelectUpdateManyAndReturn<ExtArgs> | null;
1973
- /**
1974
- * Omit specific fields from the Account
1975
- */
1976
- omit?: Prisma.AccountOmit<ExtArgs> | null;
1977
- /**
1978
- * The data used to update Accounts.
1979
- */
1980
- data: Prisma.XOR<
1981
- Prisma.AccountUpdateManyMutationInput,
1982
- Prisma.AccountUncheckedUpdateManyInput
1983
- >;
1984
- /**
1985
- * Filter which Accounts to update
1986
- */
1987
- where?: Prisma.AccountWhereInput;
1988
- /**
1989
- * Limit how many Accounts to update.
1990
- */
1991
- limit?: number;
1992
- /**
1993
- * Choose, which related nodes to fetch as well
1994
- */
1995
- include?: Prisma.AccountIncludeUpdateManyAndReturn<ExtArgs> | null;
1996
- };
1997
-
1998
- /**
1999
- * Account upsert
2000
- */
2001
- export type AccountUpsertArgs<
2002
- ExtArgs extends
2003
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
2004
- > = {
2005
- /**
2006
- * Select specific fields to fetch from the Account
2007
- */
2008
- select?: Prisma.AccountSelect<ExtArgs> | null;
2009
- /**
2010
- * Omit specific fields from the Account
2011
- */
2012
- omit?: Prisma.AccountOmit<ExtArgs> | null;
2013
- /**
2014
- * Choose, which related nodes to fetch as well
2015
- */
2016
- include?: Prisma.AccountInclude<ExtArgs> | null;
2017
- /**
2018
- * The filter to search for the Account to update in case it exists.
2019
- */
2020
- where: Prisma.AccountWhereUniqueInput;
2021
- /**
2022
- * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
2023
- */
2024
- create: Prisma.XOR<
2025
- Prisma.AccountCreateInput,
2026
- Prisma.AccountUncheckedCreateInput
2027
- >;
2028
- /**
2029
- * In case the Account was found with the provided `where` argument, update it with this data.
2030
- */
2031
- update: Prisma.XOR<
2032
- Prisma.AccountUpdateInput,
2033
- Prisma.AccountUncheckedUpdateInput
2034
- >;
2035
- };
2036
-
2037
- /**
2038
- * Account delete
2039
- */
2040
- export type AccountDeleteArgs<
2041
- ExtArgs extends
2042
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
2043
- > = {
2044
- /**
2045
- * Select specific fields to fetch from the Account
2046
- */
2047
- select?: Prisma.AccountSelect<ExtArgs> | null;
2048
- /**
2049
- * Omit specific fields from the Account
2050
- */
2051
- omit?: Prisma.AccountOmit<ExtArgs> | null;
2052
- /**
2053
- * Choose, which related nodes to fetch as well
2054
- */
2055
- include?: Prisma.AccountInclude<ExtArgs> | null;
2056
- /**
2057
- * Filter which Account to delete.
2058
- */
2059
- where: Prisma.AccountWhereUniqueInput;
2060
- };
2061
-
2062
- /**
2063
- * Account deleteMany
2064
- */
2065
- export type AccountDeleteManyArgs<
2066
- ExtArgs extends
2067
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
2068
- > = {
2069
- /**
2070
- * Filter which Accounts to delete
2071
- */
2072
- where?: Prisma.AccountWhereInput;
2073
- /**
2074
- * Limit how many Accounts to delete.
2075
- */
2076
- limit?: number;
2077
- };
2078
-
2079
- /**
2080
- * Account without action
2081
- */
2082
- export type AccountDefaultArgs<
2083
- ExtArgs extends
2084
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
2085
- > = {
2086
- /**
2087
- * Select specific fields to fetch from the Account
2088
- */
2089
- select?: Prisma.AccountSelect<ExtArgs> | null;
2090
- /**
2091
- * Omit specific fields from the Account
2092
- */
2093
- omit?: Prisma.AccountOmit<ExtArgs> | null;
2094
- /**
2095
- * Choose, which related nodes to fetch as well
2096
- */
2097
- include?: Prisma.AccountInclude<ExtArgs> | null;
2098
- };