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