@optimatech88/titomeet-shared-lib 1.0.56 → 1.1.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 (404) 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.js +41 -41
  7. package/dist/auth/auth.guard.js.map +1 -1
  8. package/dist/auth/auth.module.js +8 -11
  9. package/dist/auth/auth.module.js.map +1 -1
  10. package/dist/cache/cache.module.js +12 -18
  11. package/dist/cache/cache.module.js.map +1 -1
  12. package/dist/cache/cache.service.js +8 -10
  13. package/dist/cache/cache.service.js.map +1 -1
  14. package/dist/generated/prisma/client.d.ts +33 -0
  15. package/dist/generated/prisma/client.d.ts.map +1 -0
  16. package/dist/generated/prisma/client.js +10 -0
  17. package/dist/generated/prisma/client.js.map +1 -0
  18. package/dist/generated/prisma/commonInputTypes.d.ts +966 -0
  19. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  20. package/dist/generated/prisma/commonInputTypes.js +2 -0
  21. package/dist/generated/prisma/commonInputTypes.js.map +1 -0
  22. package/dist/generated/prisma/enums.d.ts +111 -0
  23. package/dist/generated/prisma/enums.d.ts.map +1 -0
  24. package/dist/generated/prisma/enums.js +93 -0
  25. package/dist/generated/prisma/enums.js.map +1 -0
  26. package/dist/generated/prisma/internal/class.d.ts +105 -0
  27. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  28. package/dist/generated/prisma/internal/class.js +39 -0
  29. package/dist/generated/prisma/internal/class.js.map +1 -0
  30. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2431 -0
  31. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  32. package/dist/generated/prisma/internal/prismaNamespace.js +338 -0
  33. package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
  34. package/dist/generated/prisma/models/Account.d.ts +582 -0
  35. package/dist/generated/prisma/models/Account.d.ts.map +1 -0
  36. package/dist/generated/prisma/models/Account.js +2 -0
  37. package/dist/generated/prisma/models/Account.js.map +1 -0
  38. package/dist/generated/prisma/models/Address.d.ts +930 -0
  39. package/dist/generated/prisma/models/Address.d.ts.map +1 -0
  40. package/dist/generated/prisma/models/Address.js +2 -0
  41. package/dist/generated/prisma/models/Address.js.map +1 -0
  42. package/dist/generated/prisma/models/Chat.d.ts +788 -0
  43. package/dist/generated/prisma/models/Chat.d.ts.map +1 -0
  44. package/dist/generated/prisma/models/Chat.js +2 -0
  45. package/dist/generated/prisma/models/Chat.js.map +1 -0
  46. package/dist/generated/prisma/models/ChatUser.d.ts +648 -0
  47. package/dist/generated/prisma/models/ChatUser.d.ts.map +1 -0
  48. package/dist/generated/prisma/models/ChatUser.js +2 -0
  49. package/dist/generated/prisma/models/ChatUser.js.map +1 -0
  50. package/dist/generated/prisma/models/Country.d.ts +543 -0
  51. package/dist/generated/prisma/models/Country.d.ts.map +1 -0
  52. package/dist/generated/prisma/models/Country.js +2 -0
  53. package/dist/generated/prisma/models/Country.js.map +1 -0
  54. package/dist/generated/prisma/models/Event.d.ts +3206 -0
  55. package/dist/generated/prisma/models/Event.d.ts.map +1 -0
  56. package/dist/generated/prisma/models/Event.js +2 -0
  57. package/dist/generated/prisma/models/Event.js.map +1 -0
  58. package/dist/generated/prisma/models/EventCategory.d.ts +1004 -0
  59. package/dist/generated/prisma/models/EventCategory.d.ts.map +1 -0
  60. package/dist/generated/prisma/models/EventCategory.js +2 -0
  61. package/dist/generated/prisma/models/EventCategory.js.map +1 -0
  62. package/dist/generated/prisma/models/EventPrice.d.ts +798 -0
  63. package/dist/generated/prisma/models/EventPrice.d.ts.map +1 -0
  64. package/dist/generated/prisma/models/EventPrice.js +2 -0
  65. package/dist/generated/prisma/models/EventPrice.js.map +1 -0
  66. package/dist/generated/prisma/models/Favorite.d.ts +648 -0
  67. package/dist/generated/prisma/models/Favorite.d.ts.map +1 -0
  68. package/dist/generated/prisma/models/Favorite.js +2 -0
  69. package/dist/generated/prisma/models/Favorite.js.map +1 -0
  70. package/dist/generated/prisma/models/Feedback.d.ts +682 -0
  71. package/dist/generated/prisma/models/Feedback.d.ts.map +1 -0
  72. package/dist/generated/prisma/models/Feedback.js +2 -0
  73. package/dist/generated/prisma/models/Feedback.js.map +1 -0
  74. package/dist/generated/prisma/models/Message.d.ts +724 -0
  75. package/dist/generated/prisma/models/Message.d.ts.map +1 -0
  76. package/dist/generated/prisma/models/Message.js +2 -0
  77. package/dist/generated/prisma/models/Message.js.map +1 -0
  78. package/dist/generated/prisma/models/Newsletter.d.ts +404 -0
  79. package/dist/generated/prisma/models/Newsletter.d.ts.map +1 -0
  80. package/dist/generated/prisma/models/Newsletter.js +2 -0
  81. package/dist/generated/prisma/models/Newsletter.js.map +1 -0
  82. package/dist/generated/prisma/models/Notification.d.ts +775 -0
  83. package/dist/generated/prisma/models/Notification.d.ts.map +1 -0
  84. package/dist/generated/prisma/models/Notification.js +2 -0
  85. package/dist/generated/prisma/models/Notification.js.map +1 -0
  86. package/dist/generated/prisma/models/Order.d.ts +1009 -0
  87. package/dist/generated/prisma/models/Order.d.ts.map +1 -0
  88. package/dist/generated/prisma/models/Order.js +2 -0
  89. package/dist/generated/prisma/models/Order.js.map +1 -0
  90. package/dist/generated/prisma/models/OrderItem.d.ts +806 -0
  91. package/dist/generated/prisma/models/OrderItem.d.ts.map +1 -0
  92. package/dist/generated/prisma/models/OrderItem.js +2 -0
  93. package/dist/generated/prisma/models/OrderItem.js.map +1 -0
  94. package/dist/generated/prisma/models/Pricing.d.ts +739 -0
  95. package/dist/generated/prisma/models/Pricing.d.ts.map +1 -0
  96. package/dist/generated/prisma/models/Pricing.js +2 -0
  97. package/dist/generated/prisma/models/Pricing.js.map +1 -0
  98. package/dist/generated/prisma/models/Provider.d.ts +1650 -0
  99. package/dist/generated/prisma/models/Provider.d.ts.map +1 -0
  100. package/dist/generated/prisma/models/Provider.js +2 -0
  101. package/dist/generated/prisma/models/Provider.js.map +1 -0
  102. package/dist/generated/prisma/models/ProviderCategory.d.ts +830 -0
  103. package/dist/generated/prisma/models/ProviderCategory.d.ts.map +1 -0
  104. package/dist/generated/prisma/models/ProviderCategory.js +2 -0
  105. package/dist/generated/prisma/models/ProviderCategory.js.map +1 -0
  106. package/dist/generated/prisma/models/ProviderOnEvent.d.ts +693 -0
  107. package/dist/generated/prisma/models/ProviderOnEvent.d.ts.map +1 -0
  108. package/dist/generated/prisma/models/ProviderOnEvent.js +2 -0
  109. package/dist/generated/prisma/models/ProviderOnEvent.js.map +1 -0
  110. package/dist/generated/prisma/models/Report.d.ts +689 -0
  111. package/dist/generated/prisma/models/Report.d.ts.map +1 -0
  112. package/dist/generated/prisma/models/Report.js +2 -0
  113. package/dist/generated/prisma/models/Report.js.map +1 -0
  114. package/dist/generated/prisma/models/Review.d.ts +758 -0
  115. package/dist/generated/prisma/models/Review.d.ts.map +1 -0
  116. package/dist/generated/prisma/models/Review.js +2 -0
  117. package/dist/generated/prisma/models/Review.js.map +1 -0
  118. package/dist/generated/prisma/models/Transaction.d.ts +894 -0
  119. package/dist/generated/prisma/models/Transaction.d.ts.map +1 -0
  120. package/dist/generated/prisma/models/Transaction.js +2 -0
  121. package/dist/generated/prisma/models/Transaction.js.map +1 -0
  122. package/dist/generated/prisma/models/User.d.ts +2966 -0
  123. package/dist/generated/prisma/models/User.d.ts.map +1 -0
  124. package/dist/generated/prisma/models/User.js +2 -0
  125. package/dist/generated/prisma/models/User.js.map +1 -0
  126. package/dist/generated/prisma/models/UserInterests.d.ts +605 -0
  127. package/dist/generated/prisma/models/UserInterests.d.ts.map +1 -0
  128. package/dist/generated/prisma/models/UserInterests.js +2 -0
  129. package/dist/generated/prisma/models/UserInterests.js.map +1 -0
  130. package/dist/generated/prisma/models.d.ts +26 -0
  131. package/dist/generated/prisma/models.d.ts.map +1 -0
  132. package/dist/generated/prisma/models.js +2 -0
  133. package/dist/generated/prisma/models.js.map +1 -0
  134. package/dist/index.d.ts +1 -1
  135. package/dist/index.d.ts.map +1 -1
  136. package/dist/index.js +15 -51
  137. package/dist/index.js.map +1 -1
  138. package/dist/prisma/prisma.module.js +8 -11
  139. package/dist/prisma/prisma.module.js.map +1 -1
  140. package/dist/prisma/prisma.service.d.ts +2 -1
  141. package/dist/prisma/prisma.service.d.ts.map +1 -1
  142. package/dist/prisma/prisma.service.js +17 -9
  143. package/dist/prisma/prisma.service.js.map +1 -1
  144. package/dist/prisma/seed.js +2 -4
  145. package/dist/prisma/seed.js.map +1 -1
  146. package/dist/src/auth/admin.middleware.d.ts +11 -0
  147. package/dist/src/auth/admin.middleware.d.ts.map +1 -0
  148. package/dist/src/auth/admin.middleware.js +22 -0
  149. package/dist/src/auth/admin.middleware.js.map +1 -0
  150. package/dist/src/auth/auth.guard.d.ts +25 -0
  151. package/dist/src/auth/auth.guard.d.ts.map +1 -0
  152. package/dist/src/auth/auth.guard.js +137 -0
  153. package/dist/src/auth/auth.guard.js.map +1 -0
  154. package/dist/src/auth/auth.module.d.ts +9 -0
  155. package/dist/src/auth/auth.module.d.ts.map +1 -0
  156. package/dist/src/auth/auth.module.js +30 -0
  157. package/dist/src/auth/auth.module.js.map +1 -0
  158. package/dist/src/cache/cache.module.d.ts +5 -0
  159. package/dist/src/cache/cache.module.d.ts.map +1 -0
  160. package/dist/src/cache/cache.module.js +35 -0
  161. package/dist/src/cache/cache.module.js.map +1 -0
  162. package/dist/src/cache/cache.service.d.ts +9 -0
  163. package/dist/src/cache/cache.service.d.ts.map +1 -0
  164. package/dist/src/cache/cache.service.js +36 -0
  165. package/dist/src/cache/cache.service.js.map +1 -0
  166. package/dist/src/index.d.ts +16 -0
  167. package/dist/src/index.d.ts.map +1 -0
  168. package/dist/src/index.js +16 -0
  169. package/dist/src/index.js.map +1 -0
  170. package/dist/src/prisma/prisma.module.d.ts +3 -0
  171. package/dist/src/prisma/prisma.module.d.ts.map +1 -0
  172. package/dist/src/prisma/prisma.module.js +19 -0
  173. package/dist/src/prisma/prisma.module.js.map +1 -0
  174. package/dist/src/prisma/prisma.service.d.ts +8 -0
  175. package/dist/src/prisma/prisma.service.d.ts.map +1 -0
  176. package/dist/src/prisma/prisma.service.js +32 -0
  177. package/dist/src/prisma/prisma.service.js.map +1 -0
  178. package/dist/src/prisma/seed.d.ts +2 -0
  179. package/dist/src/prisma/seed.d.ts.map +1 -0
  180. package/dist/src/prisma/seed.js +75 -0
  181. package/dist/src/prisma/seed.js.map +1 -0
  182. package/dist/src/types/index.d.ts +12 -0
  183. package/dist/src/types/index.d.ts.map +1 -0
  184. package/dist/src/types/index.js +2 -0
  185. package/dist/src/types/index.js.map +1 -0
  186. package/dist/src/utils/api/endpoints.d.ts +7 -0
  187. package/dist/src/utils/api/endpoints.d.ts.map +1 -0
  188. package/dist/src/utils/api/endpoints.js +7 -0
  189. package/dist/src/utils/api/endpoints.js.map +1 -0
  190. package/dist/src/utils/constants.d.ts +3 -0
  191. package/dist/src/utils/constants.d.ts.map +1 -0
  192. package/dist/src/utils/constants.js +12 -0
  193. package/dist/src/utils/constants.js.map +1 -0
  194. package/dist/src/utils/events.d.ts +7 -0
  195. package/dist/src/utils/events.d.ts.map +1 -0
  196. package/dist/src/utils/events.js +7 -0
  197. package/dist/src/utils/events.js.map +1 -0
  198. package/dist/src/utils/index.d.ts +8 -0
  199. package/dist/src/utils/index.d.ts.map +1 -0
  200. package/dist/src/utils/index.js +9 -0
  201. package/dist/src/utils/index.js.map +1 -0
  202. package/dist/types/index.js +1 -2
  203. package/dist/utils/api/endpoints.js +3 -6
  204. package/dist/utils/api/endpoints.js.map +1 -1
  205. package/dist/utils/constants.js +2 -5
  206. package/dist/utils/constants.js.map +1 -1
  207. package/dist/utils/events.js +1 -4
  208. package/dist/utils/events.js.map +1 -1
  209. package/dist/utils/index.js +2 -7
  210. package/dist/utils/index.js.map +1 -1
  211. package/generated/prisma/browser.ts +139 -0
  212. package/generated/prisma/client/browser.ts +139 -0
  213. package/generated/prisma/client/client.ts +163 -0
  214. package/generated/prisma/client/commonInputTypes.ts +1102 -0
  215. package/generated/prisma/client/enums.ts +173 -0
  216. package/generated/prisma/client/internal/class.ts +434 -0
  217. package/generated/prisma/client/internal/prismaNamespace.ts +3141 -0
  218. package/generated/prisma/client/internal/prismaNamespaceBrowser.ts +489 -0
  219. package/generated/prisma/client/models/Account.ts +1384 -0
  220. package/generated/prisma/client/models/Address.ts +1791 -0
  221. package/generated/prisma/client/models/Chat.ts +1676 -0
  222. package/generated/prisma/client/models/ChatUser.ts +1465 -0
  223. package/generated/prisma/client/models/Country.ts +1361 -0
  224. package/generated/prisma/client/models/Event.ts +4258 -0
  225. package/generated/prisma/client/models/EventCategory.ts +1919 -0
  226. package/generated/prisma/client/models/EventPrice.ts +1657 -0
  227. package/generated/prisma/client/models/Favorite.ts +1465 -0
  228. package/generated/prisma/client/models/Feedback.ts +1513 -0
  229. package/generated/prisma/client/models/Message.ts +1541 -0
  230. package/generated/prisma/client/models/Newsletter.ts +1153 -0
  231. package/generated/prisma/client/models/Notification.ts +1605 -0
  232. package/generated/prisma/client/models/Order.ts +1883 -0
  233. package/generated/prisma/client/models/OrderItem.ts +1641 -0
  234. package/generated/prisma/client/models/Pricing.ts +1576 -0
  235. package/generated/prisma/client/models/Provider.ts +2577 -0
  236. package/generated/prisma/client/models/ProviderCategory.ts +1712 -0
  237. package/generated/prisma/client/models/ProviderOnEvent.ts +1510 -0
  238. package/generated/prisma/client/models/Report.ts +1506 -0
  239. package/generated/prisma/client/models/Review.ts +1591 -0
  240. package/generated/prisma/client/models/Transaction.ts +1741 -0
  241. package/generated/prisma/client/models/User.ts +4124 -0
  242. package/generated/prisma/client/models/UserInterests.ts +1447 -0
  243. package/generated/prisma/client/models.ts +35 -0
  244. package/generated/prisma/client.d.ts +33 -0
  245. package/generated/prisma/client.d.ts.map +1 -0
  246. package/generated/prisma/client.js +10 -0
  247. package/generated/prisma/client.js.map +1 -0
  248. package/generated/prisma/client.ts +163 -0
  249. package/generated/prisma/commonInputTypes.d.ts +966 -0
  250. package/generated/prisma/commonInputTypes.d.ts.map +1 -0
  251. package/generated/prisma/commonInputTypes.js +2 -0
  252. package/generated/prisma/commonInputTypes.js.map +1 -0
  253. package/generated/prisma/commonInputTypes.ts +1102 -0
  254. package/generated/prisma/enums.d.ts +111 -0
  255. package/generated/prisma/enums.d.ts.map +1 -0
  256. package/generated/prisma/enums.js +93 -0
  257. package/generated/prisma/enums.js.map +1 -0
  258. package/generated/prisma/enums.ts +173 -0
  259. package/generated/prisma/internal/class.d.ts +105 -0
  260. package/generated/prisma/internal/class.d.ts.map +1 -0
  261. package/generated/prisma/internal/class.js +39 -0
  262. package/generated/prisma/internal/class.js.map +1 -0
  263. package/generated/prisma/internal/class.ts +434 -0
  264. package/generated/prisma/internal/prismaNamespace.d.ts +2431 -0
  265. package/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  266. package/generated/prisma/internal/prismaNamespace.js +338 -0
  267. package/generated/prisma/internal/prismaNamespace.js.map +1 -0
  268. package/generated/prisma/internal/prismaNamespace.ts +3141 -0
  269. package/generated/prisma/internal/prismaNamespaceBrowser.ts +489 -0
  270. package/generated/prisma/models/Account.d.ts +582 -0
  271. package/generated/prisma/models/Account.d.ts.map +1 -0
  272. package/generated/prisma/models/Account.js +2 -0
  273. package/generated/prisma/models/Account.js.map +1 -0
  274. package/generated/prisma/models/Account.ts +1384 -0
  275. package/generated/prisma/models/Address.d.ts +930 -0
  276. package/generated/prisma/models/Address.d.ts.map +1 -0
  277. package/generated/prisma/models/Address.js +2 -0
  278. package/generated/prisma/models/Address.js.map +1 -0
  279. package/generated/prisma/models/Address.ts +1791 -0
  280. package/generated/prisma/models/Chat.d.ts +788 -0
  281. package/generated/prisma/models/Chat.d.ts.map +1 -0
  282. package/generated/prisma/models/Chat.js +2 -0
  283. package/generated/prisma/models/Chat.js.map +1 -0
  284. package/generated/prisma/models/Chat.ts +1676 -0
  285. package/generated/prisma/models/ChatUser.d.ts +648 -0
  286. package/generated/prisma/models/ChatUser.d.ts.map +1 -0
  287. package/generated/prisma/models/ChatUser.js +2 -0
  288. package/generated/prisma/models/ChatUser.js.map +1 -0
  289. package/generated/prisma/models/ChatUser.ts +1465 -0
  290. package/generated/prisma/models/Country.d.ts +543 -0
  291. package/generated/prisma/models/Country.d.ts.map +1 -0
  292. package/generated/prisma/models/Country.js +2 -0
  293. package/generated/prisma/models/Country.js.map +1 -0
  294. package/generated/prisma/models/Country.ts +1361 -0
  295. package/generated/prisma/models/Event.d.ts +3206 -0
  296. package/generated/prisma/models/Event.d.ts.map +1 -0
  297. package/generated/prisma/models/Event.js +2 -0
  298. package/generated/prisma/models/Event.js.map +1 -0
  299. package/generated/prisma/models/Event.ts +4258 -0
  300. package/generated/prisma/models/EventCategory.d.ts +1004 -0
  301. package/generated/prisma/models/EventCategory.d.ts.map +1 -0
  302. package/generated/prisma/models/EventCategory.js +2 -0
  303. package/generated/prisma/models/EventCategory.js.map +1 -0
  304. package/generated/prisma/models/EventCategory.ts +1919 -0
  305. package/generated/prisma/models/EventPrice.d.ts +798 -0
  306. package/generated/prisma/models/EventPrice.d.ts.map +1 -0
  307. package/generated/prisma/models/EventPrice.js +2 -0
  308. package/generated/prisma/models/EventPrice.js.map +1 -0
  309. package/generated/prisma/models/EventPrice.ts +1657 -0
  310. package/generated/prisma/models/Favorite.d.ts +648 -0
  311. package/generated/prisma/models/Favorite.d.ts.map +1 -0
  312. package/generated/prisma/models/Favorite.js +2 -0
  313. package/generated/prisma/models/Favorite.js.map +1 -0
  314. package/generated/prisma/models/Favorite.ts +1465 -0
  315. package/generated/prisma/models/Feedback.d.ts +682 -0
  316. package/generated/prisma/models/Feedback.d.ts.map +1 -0
  317. package/generated/prisma/models/Feedback.js +2 -0
  318. package/generated/prisma/models/Feedback.js.map +1 -0
  319. package/generated/prisma/models/Feedback.ts +1513 -0
  320. package/generated/prisma/models/Message.d.ts +724 -0
  321. package/generated/prisma/models/Message.d.ts.map +1 -0
  322. package/generated/prisma/models/Message.js +2 -0
  323. package/generated/prisma/models/Message.js.map +1 -0
  324. package/generated/prisma/models/Message.ts +1541 -0
  325. package/generated/prisma/models/Newsletter.d.ts +404 -0
  326. package/generated/prisma/models/Newsletter.d.ts.map +1 -0
  327. package/generated/prisma/models/Newsletter.js +2 -0
  328. package/generated/prisma/models/Newsletter.js.map +1 -0
  329. package/generated/prisma/models/Newsletter.ts +1153 -0
  330. package/generated/prisma/models/Notification.d.ts +775 -0
  331. package/generated/prisma/models/Notification.d.ts.map +1 -0
  332. package/generated/prisma/models/Notification.js +2 -0
  333. package/generated/prisma/models/Notification.js.map +1 -0
  334. package/generated/prisma/models/Notification.ts +1605 -0
  335. package/generated/prisma/models/Order.d.ts +1009 -0
  336. package/generated/prisma/models/Order.d.ts.map +1 -0
  337. package/generated/prisma/models/Order.js +2 -0
  338. package/generated/prisma/models/Order.js.map +1 -0
  339. package/generated/prisma/models/Order.ts +1883 -0
  340. package/generated/prisma/models/OrderItem.d.ts +806 -0
  341. package/generated/prisma/models/OrderItem.d.ts.map +1 -0
  342. package/generated/prisma/models/OrderItem.js +2 -0
  343. package/generated/prisma/models/OrderItem.js.map +1 -0
  344. package/generated/prisma/models/OrderItem.ts +1641 -0
  345. package/generated/prisma/models/Pricing.d.ts +739 -0
  346. package/generated/prisma/models/Pricing.d.ts.map +1 -0
  347. package/generated/prisma/models/Pricing.js +2 -0
  348. package/generated/prisma/models/Pricing.js.map +1 -0
  349. package/generated/prisma/models/Pricing.ts +1576 -0
  350. package/generated/prisma/models/Provider.d.ts +1650 -0
  351. package/generated/prisma/models/Provider.d.ts.map +1 -0
  352. package/generated/prisma/models/Provider.js +2 -0
  353. package/generated/prisma/models/Provider.js.map +1 -0
  354. package/generated/prisma/models/Provider.ts +2577 -0
  355. package/generated/prisma/models/ProviderCategory.d.ts +830 -0
  356. package/generated/prisma/models/ProviderCategory.d.ts.map +1 -0
  357. package/generated/prisma/models/ProviderCategory.js +2 -0
  358. package/generated/prisma/models/ProviderCategory.js.map +1 -0
  359. package/generated/prisma/models/ProviderCategory.ts +1712 -0
  360. package/generated/prisma/models/ProviderOnEvent.d.ts +693 -0
  361. package/generated/prisma/models/ProviderOnEvent.d.ts.map +1 -0
  362. package/generated/prisma/models/ProviderOnEvent.js +2 -0
  363. package/generated/prisma/models/ProviderOnEvent.js.map +1 -0
  364. package/generated/prisma/models/ProviderOnEvent.ts +1510 -0
  365. package/generated/prisma/models/Report.d.ts +689 -0
  366. package/generated/prisma/models/Report.d.ts.map +1 -0
  367. package/generated/prisma/models/Report.js +2 -0
  368. package/generated/prisma/models/Report.js.map +1 -0
  369. package/generated/prisma/models/Report.ts +1506 -0
  370. package/generated/prisma/models/Review.d.ts +758 -0
  371. package/generated/prisma/models/Review.d.ts.map +1 -0
  372. package/generated/prisma/models/Review.js +2 -0
  373. package/generated/prisma/models/Review.js.map +1 -0
  374. package/generated/prisma/models/Review.ts +1591 -0
  375. package/generated/prisma/models/Transaction.d.ts +894 -0
  376. package/generated/prisma/models/Transaction.d.ts.map +1 -0
  377. package/generated/prisma/models/Transaction.js +2 -0
  378. package/generated/prisma/models/Transaction.js.map +1 -0
  379. package/generated/prisma/models/Transaction.ts +1741 -0
  380. package/generated/prisma/models/User.d.ts +2966 -0
  381. package/generated/prisma/models/User.d.ts.map +1 -0
  382. package/generated/prisma/models/User.js +2 -0
  383. package/generated/prisma/models/User.js.map +1 -0
  384. package/generated/prisma/models/User.ts +4124 -0
  385. package/generated/prisma/models/UserInterests.d.ts +605 -0
  386. package/generated/prisma/models/UserInterests.d.ts.map +1 -0
  387. package/generated/prisma/models/UserInterests.js +2 -0
  388. package/generated/prisma/models/UserInterests.js.map +1 -0
  389. package/generated/prisma/models/UserInterests.ts +1447 -0
  390. package/generated/prisma/models.d.ts +26 -0
  391. package/generated/prisma/models.d.ts.map +1 -0
  392. package/generated/prisma/models.js +2 -0
  393. package/generated/prisma/models.js.map +1 -0
  394. package/generated/prisma/models.ts +35 -0
  395. package/package.json +26 -20
  396. package/prisma/schema.prisma +3 -2
  397. package/prisma.config.ts +13 -0
  398. package/src/auth/admin.middleware.ts +1 -1
  399. package/src/auth/auth.guard.ts +10 -4
  400. package/src/auth/auth.module.ts +1 -1
  401. package/src/index.ts +1 -1
  402. package/src/prisma/prisma.service.ts +10 -1
  403. package/src/prisma/seed.ts +7 -2
  404. package/tsconfig.json +12 -7
@@ -0,0 +1,775 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums";
3
+ import type * as Prisma from "../internal/prismaNamespace";
4
+ export type NotificationModel = runtime.Types.Result.DefaultSelection<Prisma.$NotificationPayload>;
5
+ export type AggregateNotification = {
6
+ _count: NotificationCountAggregateOutputType | null;
7
+ _min: NotificationMinAggregateOutputType | null;
8
+ _max: NotificationMaxAggregateOutputType | null;
9
+ };
10
+ export type NotificationMinAggregateOutputType = {
11
+ id: string | null;
12
+ notifiedToId: string | null;
13
+ userId: string | null;
14
+ type: $Enums.NotificationType | null;
15
+ read: boolean | null;
16
+ createdAt: Date | null;
17
+ updatedAt: Date | null;
18
+ };
19
+ export type NotificationMaxAggregateOutputType = {
20
+ id: string | null;
21
+ notifiedToId: string | null;
22
+ userId: string | null;
23
+ type: $Enums.NotificationType | null;
24
+ read: boolean | null;
25
+ createdAt: Date | null;
26
+ updatedAt: Date | null;
27
+ };
28
+ export type NotificationCountAggregateOutputType = {
29
+ id: number;
30
+ notifiedToId: number;
31
+ userId: number;
32
+ type: number;
33
+ read: number;
34
+ data: number;
35
+ createdAt: number;
36
+ updatedAt: number;
37
+ _all: number;
38
+ };
39
+ export type NotificationMinAggregateInputType = {
40
+ id?: true;
41
+ notifiedToId?: true;
42
+ userId?: true;
43
+ type?: true;
44
+ read?: true;
45
+ createdAt?: true;
46
+ updatedAt?: true;
47
+ };
48
+ export type NotificationMaxAggregateInputType = {
49
+ id?: true;
50
+ notifiedToId?: true;
51
+ userId?: true;
52
+ type?: true;
53
+ read?: true;
54
+ createdAt?: true;
55
+ updatedAt?: true;
56
+ };
57
+ export type NotificationCountAggregateInputType = {
58
+ id?: true;
59
+ notifiedToId?: true;
60
+ userId?: true;
61
+ type?: true;
62
+ read?: true;
63
+ data?: true;
64
+ createdAt?: true;
65
+ updatedAt?: true;
66
+ _all?: true;
67
+ };
68
+ export type NotificationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
69
+ where?: Prisma.NotificationWhereInput;
70
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
71
+ cursor?: Prisma.NotificationWhereUniqueInput;
72
+ take?: number;
73
+ skip?: number;
74
+ _count?: true | NotificationCountAggregateInputType;
75
+ _min?: NotificationMinAggregateInputType;
76
+ _max?: NotificationMaxAggregateInputType;
77
+ };
78
+ export type GetNotificationAggregateType<T extends NotificationAggregateArgs> = {
79
+ [P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateNotification[P]> : Prisma.GetScalarType<T[P], AggregateNotification[P]>;
80
+ };
81
+ export type NotificationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
82
+ where?: Prisma.NotificationWhereInput;
83
+ orderBy?: Prisma.NotificationOrderByWithAggregationInput | Prisma.NotificationOrderByWithAggregationInput[];
84
+ by: Prisma.NotificationScalarFieldEnum[] | Prisma.NotificationScalarFieldEnum;
85
+ having?: Prisma.NotificationScalarWhereWithAggregatesInput;
86
+ take?: number;
87
+ skip?: number;
88
+ _count?: NotificationCountAggregateInputType | true;
89
+ _min?: NotificationMinAggregateInputType;
90
+ _max?: NotificationMaxAggregateInputType;
91
+ };
92
+ export type NotificationGroupByOutputType = {
93
+ id: string;
94
+ notifiedToId: string;
95
+ userId: string | null;
96
+ type: $Enums.NotificationType;
97
+ read: boolean;
98
+ data: runtime.JsonValue | null;
99
+ createdAt: Date;
100
+ updatedAt: Date;
101
+ _count: NotificationCountAggregateOutputType | null;
102
+ _min: NotificationMinAggregateOutputType | null;
103
+ _max: NotificationMaxAggregateOutputType | null;
104
+ };
105
+ export type GetNotificationGroupByPayload<T extends NotificationGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<NotificationGroupByOutputType, T['by']> & {
106
+ [P in ((keyof T) & (keyof NotificationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], NotificationGroupByOutputType[P]> : Prisma.GetScalarType<T[P], NotificationGroupByOutputType[P]>;
107
+ }>>;
108
+ export type NotificationWhereInput = {
109
+ AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[];
110
+ OR?: Prisma.NotificationWhereInput[];
111
+ NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[];
112
+ id?: Prisma.StringFilter<"Notification"> | string;
113
+ notifiedToId?: Prisma.StringFilter<"Notification"> | string;
114
+ userId?: Prisma.StringNullableFilter<"Notification"> | string | null;
115
+ type?: Prisma.EnumNotificationTypeFilter<"Notification"> | $Enums.NotificationType;
116
+ read?: Prisma.BoolFilter<"Notification"> | boolean;
117
+ data?: Prisma.JsonNullableFilter<"Notification">;
118
+ createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
119
+ updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
120
+ notifiedTo?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
121
+ user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
122
+ };
123
+ export type NotificationOrderByWithRelationInput = {
124
+ id?: Prisma.SortOrder;
125
+ notifiedToId?: Prisma.SortOrder;
126
+ userId?: Prisma.SortOrderInput | Prisma.SortOrder;
127
+ type?: Prisma.SortOrder;
128
+ read?: Prisma.SortOrder;
129
+ data?: Prisma.SortOrderInput | Prisma.SortOrder;
130
+ createdAt?: Prisma.SortOrder;
131
+ updatedAt?: Prisma.SortOrder;
132
+ notifiedTo?: Prisma.UserOrderByWithRelationInput;
133
+ user?: Prisma.UserOrderByWithRelationInput;
134
+ };
135
+ export type NotificationWhereUniqueInput = Prisma.AtLeast<{
136
+ id?: string;
137
+ AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[];
138
+ OR?: Prisma.NotificationWhereInput[];
139
+ NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[];
140
+ notifiedToId?: Prisma.StringFilter<"Notification"> | string;
141
+ userId?: Prisma.StringNullableFilter<"Notification"> | string | null;
142
+ type?: Prisma.EnumNotificationTypeFilter<"Notification"> | $Enums.NotificationType;
143
+ read?: Prisma.BoolFilter<"Notification"> | boolean;
144
+ data?: Prisma.JsonNullableFilter<"Notification">;
145
+ createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
146
+ updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
147
+ notifiedTo?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
148
+ user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
149
+ }, "id">;
150
+ export type NotificationOrderByWithAggregationInput = {
151
+ id?: Prisma.SortOrder;
152
+ notifiedToId?: Prisma.SortOrder;
153
+ userId?: Prisma.SortOrderInput | Prisma.SortOrder;
154
+ type?: Prisma.SortOrder;
155
+ read?: Prisma.SortOrder;
156
+ data?: Prisma.SortOrderInput | Prisma.SortOrder;
157
+ createdAt?: Prisma.SortOrder;
158
+ updatedAt?: Prisma.SortOrder;
159
+ _count?: Prisma.NotificationCountOrderByAggregateInput;
160
+ _max?: Prisma.NotificationMaxOrderByAggregateInput;
161
+ _min?: Prisma.NotificationMinOrderByAggregateInput;
162
+ };
163
+ export type NotificationScalarWhereWithAggregatesInput = {
164
+ AND?: Prisma.NotificationScalarWhereWithAggregatesInput | Prisma.NotificationScalarWhereWithAggregatesInput[];
165
+ OR?: Prisma.NotificationScalarWhereWithAggregatesInput[];
166
+ NOT?: Prisma.NotificationScalarWhereWithAggregatesInput | Prisma.NotificationScalarWhereWithAggregatesInput[];
167
+ id?: Prisma.StringWithAggregatesFilter<"Notification"> | string;
168
+ notifiedToId?: Prisma.StringWithAggregatesFilter<"Notification"> | string;
169
+ userId?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null;
170
+ type?: Prisma.EnumNotificationTypeWithAggregatesFilter<"Notification"> | $Enums.NotificationType;
171
+ read?: Prisma.BoolWithAggregatesFilter<"Notification"> | boolean;
172
+ data?: Prisma.JsonNullableWithAggregatesFilter<"Notification">;
173
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Notification"> | Date | string;
174
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Notification"> | Date | string;
175
+ };
176
+ export type NotificationCreateInput = {
177
+ id?: string;
178
+ type: $Enums.NotificationType;
179
+ read?: boolean;
180
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
181
+ createdAt?: Date | string;
182
+ updatedAt?: Date | string;
183
+ notifiedTo: Prisma.UserCreateNestedOneWithoutNotificationsReceivedInput;
184
+ user?: Prisma.UserCreateNestedOneWithoutNotificationsSentInput;
185
+ };
186
+ export type NotificationUncheckedCreateInput = {
187
+ id?: string;
188
+ notifiedToId: string;
189
+ userId?: string | null;
190
+ type: $Enums.NotificationType;
191
+ read?: boolean;
192
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
193
+ createdAt?: Date | string;
194
+ updatedAt?: Date | string;
195
+ };
196
+ export type NotificationUpdateInput = {
197
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
198
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
199
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
200
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
201
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
202
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
203
+ notifiedTo?: Prisma.UserUpdateOneRequiredWithoutNotificationsReceivedNestedInput;
204
+ user?: Prisma.UserUpdateOneWithoutNotificationsSentNestedInput;
205
+ };
206
+ export type NotificationUncheckedUpdateInput = {
207
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
208
+ notifiedToId?: Prisma.StringFieldUpdateOperationsInput | string;
209
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
210
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
211
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
212
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
213
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
214
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
215
+ };
216
+ export type NotificationCreateManyInput = {
217
+ id?: string;
218
+ notifiedToId: string;
219
+ userId?: string | null;
220
+ type: $Enums.NotificationType;
221
+ read?: boolean;
222
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
223
+ createdAt?: Date | string;
224
+ updatedAt?: Date | string;
225
+ };
226
+ export type NotificationUpdateManyMutationInput = {
227
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
228
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
229
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
230
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
231
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
232
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
233
+ };
234
+ export type NotificationUncheckedUpdateManyInput = {
235
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
236
+ notifiedToId?: Prisma.StringFieldUpdateOperationsInput | string;
237
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
238
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
239
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
240
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
241
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
242
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
243
+ };
244
+ export type NotificationListRelationFilter = {
245
+ every?: Prisma.NotificationWhereInput;
246
+ some?: Prisma.NotificationWhereInput;
247
+ none?: Prisma.NotificationWhereInput;
248
+ };
249
+ export type NotificationOrderByRelationAggregateInput = {
250
+ _count?: Prisma.SortOrder;
251
+ };
252
+ export type NotificationCountOrderByAggregateInput = {
253
+ id?: Prisma.SortOrder;
254
+ notifiedToId?: Prisma.SortOrder;
255
+ userId?: Prisma.SortOrder;
256
+ type?: Prisma.SortOrder;
257
+ read?: Prisma.SortOrder;
258
+ data?: Prisma.SortOrder;
259
+ createdAt?: Prisma.SortOrder;
260
+ updatedAt?: Prisma.SortOrder;
261
+ };
262
+ export type NotificationMaxOrderByAggregateInput = {
263
+ id?: Prisma.SortOrder;
264
+ notifiedToId?: Prisma.SortOrder;
265
+ userId?: Prisma.SortOrder;
266
+ type?: Prisma.SortOrder;
267
+ read?: Prisma.SortOrder;
268
+ createdAt?: Prisma.SortOrder;
269
+ updatedAt?: Prisma.SortOrder;
270
+ };
271
+ export type NotificationMinOrderByAggregateInput = {
272
+ id?: Prisma.SortOrder;
273
+ notifiedToId?: Prisma.SortOrder;
274
+ userId?: Prisma.SortOrder;
275
+ type?: Prisma.SortOrder;
276
+ read?: Prisma.SortOrder;
277
+ createdAt?: Prisma.SortOrder;
278
+ updatedAt?: Prisma.SortOrder;
279
+ };
280
+ export type NotificationCreateNestedManyWithoutNotifiedToInput = {
281
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutNotifiedToInput, Prisma.NotificationUncheckedCreateWithoutNotifiedToInput> | Prisma.NotificationCreateWithoutNotifiedToInput[] | Prisma.NotificationUncheckedCreateWithoutNotifiedToInput[];
282
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutNotifiedToInput | Prisma.NotificationCreateOrConnectWithoutNotifiedToInput[];
283
+ createMany?: Prisma.NotificationCreateManyNotifiedToInputEnvelope;
284
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
285
+ };
286
+ export type NotificationCreateNestedManyWithoutUserInput = {
287
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput> | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[];
288
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[];
289
+ createMany?: Prisma.NotificationCreateManyUserInputEnvelope;
290
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
291
+ };
292
+ export type NotificationUncheckedCreateNestedManyWithoutNotifiedToInput = {
293
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutNotifiedToInput, Prisma.NotificationUncheckedCreateWithoutNotifiedToInput> | Prisma.NotificationCreateWithoutNotifiedToInput[] | Prisma.NotificationUncheckedCreateWithoutNotifiedToInput[];
294
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutNotifiedToInput | Prisma.NotificationCreateOrConnectWithoutNotifiedToInput[];
295
+ createMany?: Prisma.NotificationCreateManyNotifiedToInputEnvelope;
296
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
297
+ };
298
+ export type NotificationUncheckedCreateNestedManyWithoutUserInput = {
299
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput> | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[];
300
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[];
301
+ createMany?: Prisma.NotificationCreateManyUserInputEnvelope;
302
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
303
+ };
304
+ export type NotificationUpdateManyWithoutNotifiedToNestedInput = {
305
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutNotifiedToInput, Prisma.NotificationUncheckedCreateWithoutNotifiedToInput> | Prisma.NotificationCreateWithoutNotifiedToInput[] | Prisma.NotificationUncheckedCreateWithoutNotifiedToInput[];
306
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutNotifiedToInput | Prisma.NotificationCreateOrConnectWithoutNotifiedToInput[];
307
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutNotifiedToInput | Prisma.NotificationUpsertWithWhereUniqueWithoutNotifiedToInput[];
308
+ createMany?: Prisma.NotificationCreateManyNotifiedToInputEnvelope;
309
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
310
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
311
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
312
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
313
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutNotifiedToInput | Prisma.NotificationUpdateWithWhereUniqueWithoutNotifiedToInput[];
314
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutNotifiedToInput | Prisma.NotificationUpdateManyWithWhereWithoutNotifiedToInput[];
315
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
316
+ };
317
+ export type NotificationUpdateManyWithoutUserNestedInput = {
318
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput> | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[];
319
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[];
320
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[];
321
+ createMany?: Prisma.NotificationCreateManyUserInputEnvelope;
322
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
323
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
324
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
325
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
326
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[];
327
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutUserInput | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[];
328
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
329
+ };
330
+ export type NotificationUncheckedUpdateManyWithoutNotifiedToNestedInput = {
331
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutNotifiedToInput, Prisma.NotificationUncheckedCreateWithoutNotifiedToInput> | Prisma.NotificationCreateWithoutNotifiedToInput[] | Prisma.NotificationUncheckedCreateWithoutNotifiedToInput[];
332
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutNotifiedToInput | Prisma.NotificationCreateOrConnectWithoutNotifiedToInput[];
333
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutNotifiedToInput | Prisma.NotificationUpsertWithWhereUniqueWithoutNotifiedToInput[];
334
+ createMany?: Prisma.NotificationCreateManyNotifiedToInputEnvelope;
335
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
336
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
337
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
338
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
339
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutNotifiedToInput | Prisma.NotificationUpdateWithWhereUniqueWithoutNotifiedToInput[];
340
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutNotifiedToInput | Prisma.NotificationUpdateManyWithWhereWithoutNotifiedToInput[];
341
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
342
+ };
343
+ export type NotificationUncheckedUpdateManyWithoutUserNestedInput = {
344
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput> | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[];
345
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[];
346
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[];
347
+ createMany?: Prisma.NotificationCreateManyUserInputEnvelope;
348
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
349
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
350
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
351
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
352
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[];
353
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutUserInput | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[];
354
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
355
+ };
356
+ export type EnumNotificationTypeFieldUpdateOperationsInput = {
357
+ set?: $Enums.NotificationType;
358
+ };
359
+ export type NotificationCreateWithoutNotifiedToInput = {
360
+ id?: string;
361
+ type: $Enums.NotificationType;
362
+ read?: boolean;
363
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
364
+ createdAt?: Date | string;
365
+ updatedAt?: Date | string;
366
+ user?: Prisma.UserCreateNestedOneWithoutNotificationsSentInput;
367
+ };
368
+ export type NotificationUncheckedCreateWithoutNotifiedToInput = {
369
+ id?: string;
370
+ userId?: string | null;
371
+ type: $Enums.NotificationType;
372
+ read?: boolean;
373
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
374
+ createdAt?: Date | string;
375
+ updatedAt?: Date | string;
376
+ };
377
+ export type NotificationCreateOrConnectWithoutNotifiedToInput = {
378
+ where: Prisma.NotificationWhereUniqueInput;
379
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutNotifiedToInput, Prisma.NotificationUncheckedCreateWithoutNotifiedToInput>;
380
+ };
381
+ export type NotificationCreateManyNotifiedToInputEnvelope = {
382
+ data: Prisma.NotificationCreateManyNotifiedToInput | Prisma.NotificationCreateManyNotifiedToInput[];
383
+ skipDuplicates?: boolean;
384
+ };
385
+ export type NotificationCreateWithoutUserInput = {
386
+ id?: string;
387
+ type: $Enums.NotificationType;
388
+ read?: boolean;
389
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
390
+ createdAt?: Date | string;
391
+ updatedAt?: Date | string;
392
+ notifiedTo: Prisma.UserCreateNestedOneWithoutNotificationsReceivedInput;
393
+ };
394
+ export type NotificationUncheckedCreateWithoutUserInput = {
395
+ id?: string;
396
+ notifiedToId: string;
397
+ type: $Enums.NotificationType;
398
+ read?: boolean;
399
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
400
+ createdAt?: Date | string;
401
+ updatedAt?: Date | string;
402
+ };
403
+ export type NotificationCreateOrConnectWithoutUserInput = {
404
+ where: Prisma.NotificationWhereUniqueInput;
405
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput>;
406
+ };
407
+ export type NotificationCreateManyUserInputEnvelope = {
408
+ data: Prisma.NotificationCreateManyUserInput | Prisma.NotificationCreateManyUserInput[];
409
+ skipDuplicates?: boolean;
410
+ };
411
+ export type NotificationUpsertWithWhereUniqueWithoutNotifiedToInput = {
412
+ where: Prisma.NotificationWhereUniqueInput;
413
+ update: Prisma.XOR<Prisma.NotificationUpdateWithoutNotifiedToInput, Prisma.NotificationUncheckedUpdateWithoutNotifiedToInput>;
414
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutNotifiedToInput, Prisma.NotificationUncheckedCreateWithoutNotifiedToInput>;
415
+ };
416
+ export type NotificationUpdateWithWhereUniqueWithoutNotifiedToInput = {
417
+ where: Prisma.NotificationWhereUniqueInput;
418
+ data: Prisma.XOR<Prisma.NotificationUpdateWithoutNotifiedToInput, Prisma.NotificationUncheckedUpdateWithoutNotifiedToInput>;
419
+ };
420
+ export type NotificationUpdateManyWithWhereWithoutNotifiedToInput = {
421
+ where: Prisma.NotificationScalarWhereInput;
422
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyWithoutNotifiedToInput>;
423
+ };
424
+ export type NotificationScalarWhereInput = {
425
+ AND?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
426
+ OR?: Prisma.NotificationScalarWhereInput[];
427
+ NOT?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
428
+ id?: Prisma.StringFilter<"Notification"> | string;
429
+ notifiedToId?: Prisma.StringFilter<"Notification"> | string;
430
+ userId?: Prisma.StringNullableFilter<"Notification"> | string | null;
431
+ type?: Prisma.EnumNotificationTypeFilter<"Notification"> | $Enums.NotificationType;
432
+ read?: Prisma.BoolFilter<"Notification"> | boolean;
433
+ data?: Prisma.JsonNullableFilter<"Notification">;
434
+ createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
435
+ updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
436
+ };
437
+ export type NotificationUpsertWithWhereUniqueWithoutUserInput = {
438
+ where: Prisma.NotificationWhereUniqueInput;
439
+ update: Prisma.XOR<Prisma.NotificationUpdateWithoutUserInput, Prisma.NotificationUncheckedUpdateWithoutUserInput>;
440
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput>;
441
+ };
442
+ export type NotificationUpdateWithWhereUniqueWithoutUserInput = {
443
+ where: Prisma.NotificationWhereUniqueInput;
444
+ data: Prisma.XOR<Prisma.NotificationUpdateWithoutUserInput, Prisma.NotificationUncheckedUpdateWithoutUserInput>;
445
+ };
446
+ export type NotificationUpdateManyWithWhereWithoutUserInput = {
447
+ where: Prisma.NotificationScalarWhereInput;
448
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyWithoutUserInput>;
449
+ };
450
+ export type NotificationCreateManyNotifiedToInput = {
451
+ id?: string;
452
+ userId?: string | null;
453
+ type: $Enums.NotificationType;
454
+ read?: boolean;
455
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
456
+ createdAt?: Date | string;
457
+ updatedAt?: Date | string;
458
+ };
459
+ export type NotificationCreateManyUserInput = {
460
+ id?: string;
461
+ notifiedToId: string;
462
+ type: $Enums.NotificationType;
463
+ read?: boolean;
464
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
465
+ createdAt?: Date | string;
466
+ updatedAt?: Date | string;
467
+ };
468
+ export type NotificationUpdateWithoutNotifiedToInput = {
469
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
470
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
471
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
472
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
473
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
474
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
475
+ user?: Prisma.UserUpdateOneWithoutNotificationsSentNestedInput;
476
+ };
477
+ export type NotificationUncheckedUpdateWithoutNotifiedToInput = {
478
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
479
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
480
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
481
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
482
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
483
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
484
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
485
+ };
486
+ export type NotificationUncheckedUpdateManyWithoutNotifiedToInput = {
487
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
488
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
489
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
490
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
491
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
492
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
493
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
494
+ };
495
+ export type NotificationUpdateWithoutUserInput = {
496
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
497
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
498
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
499
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
500
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
501
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
502
+ notifiedTo?: Prisma.UserUpdateOneRequiredWithoutNotificationsReceivedNestedInput;
503
+ };
504
+ export type NotificationUncheckedUpdateWithoutUserInput = {
505
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
506
+ notifiedToId?: Prisma.StringFieldUpdateOperationsInput | string;
507
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
508
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
509
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
510
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
511
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
512
+ };
513
+ export type NotificationUncheckedUpdateManyWithoutUserInput = {
514
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
515
+ notifiedToId?: Prisma.StringFieldUpdateOperationsInput | string;
516
+ type?: Prisma.EnumNotificationTypeFieldUpdateOperationsInput | $Enums.NotificationType;
517
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
518
+ data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
519
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
520
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
521
+ };
522
+ export type NotificationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
523
+ id?: boolean;
524
+ notifiedToId?: boolean;
525
+ userId?: boolean;
526
+ type?: boolean;
527
+ read?: boolean;
528
+ data?: boolean;
529
+ createdAt?: boolean;
530
+ updatedAt?: boolean;
531
+ notifiedTo?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
532
+ user?: boolean | Prisma.Notification$userArgs<ExtArgs>;
533
+ }, ExtArgs["result"]["notification"]>;
534
+ export type NotificationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
535
+ id?: boolean;
536
+ notifiedToId?: boolean;
537
+ userId?: boolean;
538
+ type?: boolean;
539
+ read?: boolean;
540
+ data?: boolean;
541
+ createdAt?: boolean;
542
+ updatedAt?: boolean;
543
+ notifiedTo?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
544
+ user?: boolean | Prisma.Notification$userArgs<ExtArgs>;
545
+ }, ExtArgs["result"]["notification"]>;
546
+ export type NotificationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
547
+ id?: boolean;
548
+ notifiedToId?: boolean;
549
+ userId?: boolean;
550
+ type?: boolean;
551
+ read?: boolean;
552
+ data?: boolean;
553
+ createdAt?: boolean;
554
+ updatedAt?: boolean;
555
+ notifiedTo?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
556
+ user?: boolean | Prisma.Notification$userArgs<ExtArgs>;
557
+ }, ExtArgs["result"]["notification"]>;
558
+ export type NotificationSelectScalar = {
559
+ id?: boolean;
560
+ notifiedToId?: boolean;
561
+ userId?: boolean;
562
+ type?: boolean;
563
+ read?: boolean;
564
+ data?: boolean;
565
+ createdAt?: boolean;
566
+ updatedAt?: boolean;
567
+ };
568
+ 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"]>;
569
+ export type NotificationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
570
+ notifiedTo?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
571
+ user?: boolean | Prisma.Notification$userArgs<ExtArgs>;
572
+ };
573
+ export type NotificationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
574
+ notifiedTo?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
575
+ user?: boolean | Prisma.Notification$userArgs<ExtArgs>;
576
+ };
577
+ export type NotificationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
578
+ notifiedTo?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
579
+ user?: boolean | Prisma.Notification$userArgs<ExtArgs>;
580
+ };
581
+ export type $NotificationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
582
+ name: "Notification";
583
+ objects: {
584
+ notifiedTo: Prisma.$UserPayload<ExtArgs>;
585
+ user: Prisma.$UserPayload<ExtArgs> | null;
586
+ };
587
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
588
+ id: string;
589
+ notifiedToId: string;
590
+ userId: string | null;
591
+ type: $Enums.NotificationType;
592
+ read: boolean;
593
+ data: runtime.JsonValue | null;
594
+ createdAt: Date;
595
+ updatedAt: Date;
596
+ }, ExtArgs["result"]["notification"]>;
597
+ composites: {};
598
+ };
599
+ export type NotificationGetPayload<S extends boolean | null | undefined | NotificationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$NotificationPayload, S>;
600
+ export type NotificationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<NotificationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
601
+ select?: NotificationCountAggregateInputType | true;
602
+ };
603
+ export interface NotificationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
604
+ [K: symbol]: {
605
+ types: Prisma.TypeMap<ExtArgs>['model']['Notification'];
606
+ meta: {
607
+ name: 'Notification';
608
+ };
609
+ };
610
+ 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>;
611
+ 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>;
612
+ 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>;
613
+ 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>;
614
+ findMany<T extends NotificationFindManyArgs>(args?: Prisma.SelectSubset<T, NotificationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
615
+ 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>;
616
+ createMany<T extends NotificationCreateManyArgs>(args?: Prisma.SelectSubset<T, NotificationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
617
+ createManyAndReturn<T extends NotificationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, NotificationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
618
+ 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>;
619
+ 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>;
620
+ deleteMany<T extends NotificationDeleteManyArgs>(args?: Prisma.SelectSubset<T, NotificationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
621
+ updateMany<T extends NotificationUpdateManyArgs>(args: Prisma.SelectSubset<T, NotificationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
622
+ updateManyAndReturn<T extends NotificationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, NotificationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
623
+ 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>;
624
+ count<T extends NotificationCountArgs>(args?: Prisma.Subset<T, NotificationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], NotificationCountAggregateOutputType> : number>;
625
+ aggregate<T extends NotificationAggregateArgs>(args: Prisma.Subset<T, NotificationAggregateArgs>): Prisma.PrismaPromise<GetNotificationAggregateType<T>>;
626
+ groupBy<T extends NotificationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
627
+ orderBy: NotificationGroupByArgs['orderBy'];
628
+ } : {
629
+ orderBy?: NotificationGroupByArgs['orderBy'];
630
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
631
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
632
+ Error,
633
+ 'Field ',
634
+ P,
635
+ ` in "having" needs to be provided in "by"`
636
+ ];
637
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
638
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
639
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
640
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
641
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
642
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
643
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, NotificationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNotificationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
644
+ readonly fields: NotificationFieldRefs;
645
+ }
646
+ export interface Prisma__NotificationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
647
+ readonly [Symbol.toStringTag]: "PrismaPromise";
648
+ 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>;
649
+ 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>;
650
+ 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>;
651
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
652
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
653
+ }
654
+ export interface NotificationFieldRefs {
655
+ readonly id: Prisma.FieldRef<"Notification", 'String'>;
656
+ readonly notifiedToId: Prisma.FieldRef<"Notification", 'String'>;
657
+ readonly userId: Prisma.FieldRef<"Notification", 'String'>;
658
+ readonly type: Prisma.FieldRef<"Notification", 'NotificationType'>;
659
+ readonly read: Prisma.FieldRef<"Notification", 'Boolean'>;
660
+ readonly data: Prisma.FieldRef<"Notification", 'Json'>;
661
+ readonly createdAt: Prisma.FieldRef<"Notification", 'DateTime'>;
662
+ readonly updatedAt: Prisma.FieldRef<"Notification", 'DateTime'>;
663
+ }
664
+ export type NotificationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
665
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
666
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
667
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
668
+ where: Prisma.NotificationWhereUniqueInput;
669
+ };
670
+ export type NotificationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
671
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
672
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
673
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
674
+ where: Prisma.NotificationWhereUniqueInput;
675
+ };
676
+ export type NotificationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
677
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
678
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
679
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
680
+ where?: Prisma.NotificationWhereInput;
681
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
682
+ cursor?: Prisma.NotificationWhereUniqueInput;
683
+ take?: number;
684
+ skip?: number;
685
+ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[];
686
+ };
687
+ export type NotificationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
688
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
689
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
690
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
691
+ where?: Prisma.NotificationWhereInput;
692
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
693
+ cursor?: Prisma.NotificationWhereUniqueInput;
694
+ take?: number;
695
+ skip?: number;
696
+ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[];
697
+ };
698
+ export type NotificationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
699
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
700
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
701
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
702
+ where?: Prisma.NotificationWhereInput;
703
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
704
+ cursor?: Prisma.NotificationWhereUniqueInput;
705
+ take?: number;
706
+ skip?: number;
707
+ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[];
708
+ };
709
+ export type NotificationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
710
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
711
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
712
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
713
+ data: Prisma.XOR<Prisma.NotificationCreateInput, Prisma.NotificationUncheckedCreateInput>;
714
+ };
715
+ export type NotificationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
716
+ data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[];
717
+ skipDuplicates?: boolean;
718
+ };
719
+ export type NotificationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
720
+ select?: Prisma.NotificationSelectCreateManyAndReturn<ExtArgs> | null;
721
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
722
+ data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[];
723
+ skipDuplicates?: boolean;
724
+ include?: Prisma.NotificationIncludeCreateManyAndReturn<ExtArgs> | null;
725
+ };
726
+ export type NotificationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
727
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
728
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
729
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
730
+ data: Prisma.XOR<Prisma.NotificationUpdateInput, Prisma.NotificationUncheckedUpdateInput>;
731
+ where: Prisma.NotificationWhereUniqueInput;
732
+ };
733
+ export type NotificationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
734
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyInput>;
735
+ where?: Prisma.NotificationWhereInput;
736
+ limit?: number;
737
+ };
738
+ export type NotificationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
739
+ select?: Prisma.NotificationSelectUpdateManyAndReturn<ExtArgs> | null;
740
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
741
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyInput>;
742
+ where?: Prisma.NotificationWhereInput;
743
+ limit?: number;
744
+ include?: Prisma.NotificationIncludeUpdateManyAndReturn<ExtArgs> | null;
745
+ };
746
+ export type NotificationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
747
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
748
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
749
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
750
+ where: Prisma.NotificationWhereUniqueInput;
751
+ create: Prisma.XOR<Prisma.NotificationCreateInput, Prisma.NotificationUncheckedCreateInput>;
752
+ update: Prisma.XOR<Prisma.NotificationUpdateInput, Prisma.NotificationUncheckedUpdateInput>;
753
+ };
754
+ export type NotificationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
755
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
756
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
757
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
758
+ where: Prisma.NotificationWhereUniqueInput;
759
+ };
760
+ export type NotificationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
761
+ where?: Prisma.NotificationWhereInput;
762
+ limit?: number;
763
+ };
764
+ export type Notification$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
765
+ select?: Prisma.UserSelect<ExtArgs> | null;
766
+ omit?: Prisma.UserOmit<ExtArgs> | null;
767
+ include?: Prisma.UserInclude<ExtArgs> | null;
768
+ where?: Prisma.UserWhereInput;
769
+ };
770
+ export type NotificationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
771
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
772
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
773
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
774
+ };
775
+ //# sourceMappingURL=Notification.d.ts.map