@actuate-media/cms-core 0.90.1 → 0.91.1

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