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