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