@igstack/app-catalog-backend-core 6.3.0 → 6.4.0

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