@actuate-media/cms-core 0.13.0 → 0.14.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 (55) hide show
  1. package/LICENSE +21 -21
  2. package/dist/__tests__/api/api-key-auth.test.d.ts +2 -0
  3. package/dist/__tests__/api/api-key-auth.test.d.ts.map +1 -0
  4. package/dist/__tests__/api/api-key-auth.test.js +217 -0
  5. package/dist/__tests__/api/api-key-auth.test.js.map +1 -0
  6. package/dist/__tests__/security/api-key-enhanced.test.d.ts +2 -0
  7. package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +1 -0
  8. package/dist/__tests__/security/api-key-enhanced.test.js +110 -0
  9. package/dist/__tests__/security/api-key-enhanced.test.js.map +1 -0
  10. package/dist/api/handler-factory.d.ts.map +1 -1
  11. package/dist/api/handler-factory.js +19 -2
  12. package/dist/api/handler-factory.js.map +1 -1
  13. package/dist/api/handlers.d.ts.map +1 -1
  14. package/dist/api/handlers.js +427 -30
  15. package/dist/api/handlers.js.map +1 -1
  16. package/dist/security/api-key-enhanced.d.ts +48 -5
  17. package/dist/security/api-key-enhanced.d.ts.map +1 -1
  18. package/dist/security/api-key-enhanced.js +60 -9
  19. package/dist/security/api-key-enhanced.js.map +1 -1
  20. package/generated/browser.ts +109 -0
  21. package/generated/client.ts +133 -0
  22. package/generated/commonInputTypes.ts +709 -0
  23. package/generated/enums.ts +125 -0
  24. package/generated/internal/class.ts +376 -0
  25. package/generated/internal/prismaNamespace.ts +2617 -0
  26. package/generated/internal/prismaNamespaceBrowser.ts +611 -0
  27. package/generated/models/ApiKey.ts +1550 -0
  28. package/generated/models/AuditLog.ts +1206 -0
  29. package/generated/models/BackupRecord.ts +1250 -0
  30. package/generated/models/ContentLock.ts +1472 -0
  31. package/generated/models/ContentTemplate.ts +1416 -0
  32. package/generated/models/Document.ts +3005 -0
  33. package/generated/models/Folder.ts +1904 -0
  34. package/generated/models/FormSubmission.ts +1200 -0
  35. package/generated/models/InAppNotification.ts +1457 -0
  36. package/generated/models/Media.ts +2340 -0
  37. package/generated/models/MediaUsage.ts +1472 -0
  38. package/generated/models/OAuthAccount.ts +1463 -0
  39. package/generated/models/Redirect.ts +1284 -0
  40. package/generated/models/Session.ts +1492 -0
  41. package/generated/models/Site.ts +1206 -0
  42. package/generated/models/User.ts +3513 -0
  43. package/generated/models/Version.ts +1511 -0
  44. package/generated/models/WorkflowState.ts +1514 -0
  45. package/generated/models.ts +29 -0
  46. package/package.json +1 -1
  47. package/prisma/cms-schema.prisma +306 -306
  48. package/prisma/migrations/0001_init/migration.sql +384 -384
  49. package/prisma/migrations/0002_folders/migration.sql +39 -39
  50. package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
  51. package/prisma/migrations/0004_script_tags/migration.sql +21 -21
  52. package/prisma/migrations/0005_password_reset_tokens/migration.sql +20 -20
  53. package/prisma/migrations/0006_page_builder/migration.sql +38 -38
  54. package/prisma/migrations/migration_lock.toml +3 -3
  55. package/prisma/schema.prisma +549 -549
@@ -0,0 +1,1457 @@
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"
13
+ import type * as Prisma from "../internal/prismaNamespace"
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
+ 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'> & {
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
+ }
1066
+
1067
+ /**
1068
+ * InAppNotification findUniqueOrThrow
1069
+ */
1070
+ export type InAppNotificationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * Select specific fields to fetch from the InAppNotification
1073
+ */
1074
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1075
+ /**
1076
+ * Omit specific fields from the InAppNotification
1077
+ */
1078
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1079
+ /**
1080
+ * Choose, which related nodes to fetch as well
1081
+ */
1082
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1083
+ /**
1084
+ * Filter, which InAppNotification to fetch.
1085
+ */
1086
+ where: Prisma.InAppNotificationWhereUniqueInput
1087
+ }
1088
+
1089
+ /**
1090
+ * InAppNotification findFirst
1091
+ */
1092
+ export type InAppNotificationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1093
+ /**
1094
+ * Select specific fields to fetch from the InAppNotification
1095
+ */
1096
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1097
+ /**
1098
+ * Omit specific fields from the InAppNotification
1099
+ */
1100
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1101
+ /**
1102
+ * Choose, which related nodes to fetch as well
1103
+ */
1104
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1105
+ /**
1106
+ * Filter, which InAppNotification to fetch.
1107
+ */
1108
+ where?: Prisma.InAppNotificationWhereInput
1109
+ /**
1110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1111
+ *
1112
+ * Determine the order of InAppNotifications to fetch.
1113
+ */
1114
+ orderBy?: Prisma.InAppNotificationOrderByWithRelationInput | Prisma.InAppNotificationOrderByWithRelationInput[]
1115
+ /**
1116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1117
+ *
1118
+ * Sets the position for searching for InAppNotifications.
1119
+ */
1120
+ cursor?: Prisma.InAppNotificationWhereUniqueInput
1121
+ /**
1122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1123
+ *
1124
+ * Take `±n` InAppNotifications from the position of the cursor.
1125
+ */
1126
+ take?: number
1127
+ /**
1128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1129
+ *
1130
+ * Skip the first `n` InAppNotifications.
1131
+ */
1132
+ skip?: number
1133
+ /**
1134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1135
+ *
1136
+ * Filter by unique combinations of InAppNotifications.
1137
+ */
1138
+ distinct?: Prisma.InAppNotificationScalarFieldEnum | Prisma.InAppNotificationScalarFieldEnum[]
1139
+ }
1140
+
1141
+ /**
1142
+ * InAppNotification findFirstOrThrow
1143
+ */
1144
+ export type InAppNotificationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1145
+ /**
1146
+ * Select specific fields to fetch from the InAppNotification
1147
+ */
1148
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1149
+ /**
1150
+ * Omit specific fields from the InAppNotification
1151
+ */
1152
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1153
+ /**
1154
+ * Choose, which related nodes to fetch as well
1155
+ */
1156
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1157
+ /**
1158
+ * Filter, which InAppNotification to fetch.
1159
+ */
1160
+ where?: Prisma.InAppNotificationWhereInput
1161
+ /**
1162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1163
+ *
1164
+ * Determine the order of InAppNotifications to fetch.
1165
+ */
1166
+ orderBy?: Prisma.InAppNotificationOrderByWithRelationInput | Prisma.InAppNotificationOrderByWithRelationInput[]
1167
+ /**
1168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1169
+ *
1170
+ * Sets the position for searching for InAppNotifications.
1171
+ */
1172
+ cursor?: Prisma.InAppNotificationWhereUniqueInput
1173
+ /**
1174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1175
+ *
1176
+ * Take `±n` InAppNotifications from the position of the cursor.
1177
+ */
1178
+ take?: number
1179
+ /**
1180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1181
+ *
1182
+ * Skip the first `n` InAppNotifications.
1183
+ */
1184
+ skip?: number
1185
+ /**
1186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1187
+ *
1188
+ * Filter by unique combinations of InAppNotifications.
1189
+ */
1190
+ distinct?: Prisma.InAppNotificationScalarFieldEnum | Prisma.InAppNotificationScalarFieldEnum[]
1191
+ }
1192
+
1193
+ /**
1194
+ * InAppNotification findMany
1195
+ */
1196
+ export type InAppNotificationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1197
+ /**
1198
+ * Select specific fields to fetch from the InAppNotification
1199
+ */
1200
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1201
+ /**
1202
+ * Omit specific fields from the InAppNotification
1203
+ */
1204
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1205
+ /**
1206
+ * Choose, which related nodes to fetch as well
1207
+ */
1208
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1209
+ /**
1210
+ * Filter, which InAppNotifications to fetch.
1211
+ */
1212
+ where?: Prisma.InAppNotificationWhereInput
1213
+ /**
1214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1215
+ *
1216
+ * Determine the order of InAppNotifications to fetch.
1217
+ */
1218
+ orderBy?: Prisma.InAppNotificationOrderByWithRelationInput | Prisma.InAppNotificationOrderByWithRelationInput[]
1219
+ /**
1220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1221
+ *
1222
+ * Sets the position for listing InAppNotifications.
1223
+ */
1224
+ cursor?: Prisma.InAppNotificationWhereUniqueInput
1225
+ /**
1226
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1227
+ *
1228
+ * Take `±n` InAppNotifications from the position of the cursor.
1229
+ */
1230
+ take?: number
1231
+ /**
1232
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1233
+ *
1234
+ * Skip the first `n` InAppNotifications.
1235
+ */
1236
+ skip?: number
1237
+ /**
1238
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1239
+ *
1240
+ * Filter by unique combinations of InAppNotifications.
1241
+ */
1242
+ distinct?: Prisma.InAppNotificationScalarFieldEnum | Prisma.InAppNotificationScalarFieldEnum[]
1243
+ }
1244
+
1245
+ /**
1246
+ * InAppNotification create
1247
+ */
1248
+ export type InAppNotificationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1249
+ /**
1250
+ * Select specific fields to fetch from the InAppNotification
1251
+ */
1252
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1253
+ /**
1254
+ * Omit specific fields from the InAppNotification
1255
+ */
1256
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1257
+ /**
1258
+ * Choose, which related nodes to fetch as well
1259
+ */
1260
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1261
+ /**
1262
+ * The data needed to create a InAppNotification.
1263
+ */
1264
+ data: Prisma.XOR<Prisma.InAppNotificationCreateInput, Prisma.InAppNotificationUncheckedCreateInput>
1265
+ }
1266
+
1267
+ /**
1268
+ * InAppNotification createMany
1269
+ */
1270
+ export type InAppNotificationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1271
+ /**
1272
+ * The data used to create many InAppNotifications.
1273
+ */
1274
+ data: Prisma.InAppNotificationCreateManyInput | Prisma.InAppNotificationCreateManyInput[]
1275
+ skipDuplicates?: boolean
1276
+ }
1277
+
1278
+ /**
1279
+ * InAppNotification createManyAndReturn
1280
+ */
1281
+ export type InAppNotificationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1282
+ /**
1283
+ * Select specific fields to fetch from the InAppNotification
1284
+ */
1285
+ select?: Prisma.InAppNotificationSelectCreateManyAndReturn<ExtArgs> | null
1286
+ /**
1287
+ * Omit specific fields from the InAppNotification
1288
+ */
1289
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1290
+ /**
1291
+ * The data used to create many InAppNotifications.
1292
+ */
1293
+ data: Prisma.InAppNotificationCreateManyInput | Prisma.InAppNotificationCreateManyInput[]
1294
+ skipDuplicates?: boolean
1295
+ /**
1296
+ * Choose, which related nodes to fetch as well
1297
+ */
1298
+ include?: Prisma.InAppNotificationIncludeCreateManyAndReturn<ExtArgs> | null
1299
+ }
1300
+
1301
+ /**
1302
+ * InAppNotification update
1303
+ */
1304
+ export type InAppNotificationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1305
+ /**
1306
+ * Select specific fields to fetch from the InAppNotification
1307
+ */
1308
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1309
+ /**
1310
+ * Omit specific fields from the InAppNotification
1311
+ */
1312
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1313
+ /**
1314
+ * Choose, which related nodes to fetch as well
1315
+ */
1316
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1317
+ /**
1318
+ * The data needed to update a InAppNotification.
1319
+ */
1320
+ data: Prisma.XOR<Prisma.InAppNotificationUpdateInput, Prisma.InAppNotificationUncheckedUpdateInput>
1321
+ /**
1322
+ * Choose, which InAppNotification to update.
1323
+ */
1324
+ where: Prisma.InAppNotificationWhereUniqueInput
1325
+ }
1326
+
1327
+ /**
1328
+ * InAppNotification updateMany
1329
+ */
1330
+ export type InAppNotificationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1331
+ /**
1332
+ * The data used to update InAppNotifications.
1333
+ */
1334
+ data: Prisma.XOR<Prisma.InAppNotificationUpdateManyMutationInput, Prisma.InAppNotificationUncheckedUpdateManyInput>
1335
+ /**
1336
+ * Filter which InAppNotifications to update
1337
+ */
1338
+ where?: Prisma.InAppNotificationWhereInput
1339
+ /**
1340
+ * Limit how many InAppNotifications to update.
1341
+ */
1342
+ limit?: number
1343
+ }
1344
+
1345
+ /**
1346
+ * InAppNotification updateManyAndReturn
1347
+ */
1348
+ export type InAppNotificationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * Select specific fields to fetch from the InAppNotification
1351
+ */
1352
+ select?: Prisma.InAppNotificationSelectUpdateManyAndReturn<ExtArgs> | null
1353
+ /**
1354
+ * Omit specific fields from the InAppNotification
1355
+ */
1356
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1357
+ /**
1358
+ * The data used to update InAppNotifications.
1359
+ */
1360
+ data: Prisma.XOR<Prisma.InAppNotificationUpdateManyMutationInput, Prisma.InAppNotificationUncheckedUpdateManyInput>
1361
+ /**
1362
+ * Filter which InAppNotifications to update
1363
+ */
1364
+ where?: Prisma.InAppNotificationWhereInput
1365
+ /**
1366
+ * Limit how many InAppNotifications to update.
1367
+ */
1368
+ limit?: number
1369
+ /**
1370
+ * Choose, which related nodes to fetch as well
1371
+ */
1372
+ include?: Prisma.InAppNotificationIncludeUpdateManyAndReturn<ExtArgs> | null
1373
+ }
1374
+
1375
+ /**
1376
+ * InAppNotification upsert
1377
+ */
1378
+ export type InAppNotificationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1379
+ /**
1380
+ * Select specific fields to fetch from the InAppNotification
1381
+ */
1382
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1383
+ /**
1384
+ * Omit specific fields from the InAppNotification
1385
+ */
1386
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1387
+ /**
1388
+ * Choose, which related nodes to fetch as well
1389
+ */
1390
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1391
+ /**
1392
+ * The filter to search for the InAppNotification to update in case it exists.
1393
+ */
1394
+ where: Prisma.InAppNotificationWhereUniqueInput
1395
+ /**
1396
+ * In case the InAppNotification found by the `where` argument doesn't exist, create a new InAppNotification with this data.
1397
+ */
1398
+ create: Prisma.XOR<Prisma.InAppNotificationCreateInput, Prisma.InAppNotificationUncheckedCreateInput>
1399
+ /**
1400
+ * In case the InAppNotification was found with the provided `where` argument, update it with this data.
1401
+ */
1402
+ update: Prisma.XOR<Prisma.InAppNotificationUpdateInput, Prisma.InAppNotificationUncheckedUpdateInput>
1403
+ }
1404
+
1405
+ /**
1406
+ * InAppNotification delete
1407
+ */
1408
+ export type InAppNotificationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1409
+ /**
1410
+ * Select specific fields to fetch from the InAppNotification
1411
+ */
1412
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1413
+ /**
1414
+ * Omit specific fields from the InAppNotification
1415
+ */
1416
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1417
+ /**
1418
+ * Choose, which related nodes to fetch as well
1419
+ */
1420
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1421
+ /**
1422
+ * Filter which InAppNotification to delete.
1423
+ */
1424
+ where: Prisma.InAppNotificationWhereUniqueInput
1425
+ }
1426
+
1427
+ /**
1428
+ * InAppNotification deleteMany
1429
+ */
1430
+ export type InAppNotificationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1431
+ /**
1432
+ * Filter which InAppNotifications to delete
1433
+ */
1434
+ where?: Prisma.InAppNotificationWhereInput
1435
+ /**
1436
+ * Limit how many InAppNotifications to delete.
1437
+ */
1438
+ limit?: number
1439
+ }
1440
+
1441
+ /**
1442
+ * InAppNotification without action
1443
+ */
1444
+ export type InAppNotificationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1445
+ /**
1446
+ * Select specific fields to fetch from the InAppNotification
1447
+ */
1448
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null
1449
+ /**
1450
+ * Omit specific fields from the InAppNotification
1451
+ */
1452
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null
1453
+ /**
1454
+ * Choose, which related nodes to fetch as well
1455
+ */
1456
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null
1457
+ }