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